:root {
    --official-yellow: #FFD200;
    --official-blue: #007AFF;
    --success: #22C55E;
    --warning: #F59E0B;
    --danger: #EF4444;
    --text-main: #111827;
    --text-sec: #6B7280;
    --bg-gray: #F5F7FA;
    --white: #FFFFFF;
    --radius-lg: 20px;
    --radius-md: 12px;
    --shadow: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.05);
}

/* 基础样式复位 */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; background: var(--bg-gray); color: var(--text-main); }
.container { max-width: 720px; margin: 0 auto; padding: 0 16px; }

/* --- 1. 顶部氛围层 --- */
.hero-banner {
    background-image: linear-gradient(rgba(255, 210, 0, 0.3), rgba(255, 210, 0, 0.3)), url('6_2143_25c1650d-6c59-4d99-80a8-04639e1416b6_8589489.jpg');
    background-repeat: repeat-x;
    background-size: auto 100%;
    background-position: top;
    height: 180px;
    padding-top: 30px;
    text-align: center;
    border-radius: 0 0 40px 40px;
    /* position: relative; */
    width: 100%;
}
.hero-banner h1 { font-size: 24px; font-weight: 800; letter-spacing: 1px; display: flex; align-items: center; justify-content: center; gap: 12px; color: #8B4513; }
.hero-banner h1 .logo-img { height: 40px; width: auto; vertical-align: middle; }
.hero-banner p { color: #654321; font-size: 13px; margin-top: 5px; font-weight: 600; }

/* --- 2. 主操作布局 --- */
.main-wrapper { margin-top: -60px; display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: 60px; }

.card { background: var(--white); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); margin-bottom: 24px; border: 1px solid rgba(255,255,255,0.8); }
.section-title { font-size: 18px; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.section-title i { color: var(--official-blue); font-size: 22px; }

/* 输入框优化 */
.uid-group { position: relative; }
.uid-input { width: 100%; padding: 18px 20px; border: 2px solid #EEE; border-radius: var(--radius-md); font-size: 18px; font-weight: bold; background: #F9FAFB; outline: none; transition: 0.3s; }
.uid-input:focus { border-color: var(--official-yellow); background: #FFF; box-shadow: 0 0 0 4px rgba(255, 210, 0, 0.15); }
.uid-hint { font-size: 12px; color: var(--text-sec); margin-top: 10px; display: flex; align-items: center; gap: 4px; }

/* 金额网格 */
.grid-amt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.amt-item { position: relative; cursor: pointer; }
.amt-item input { position: absolute; opacity: 0; }
.amt-box { 
    display: block; border: 2px solid #F3F4F6; border-radius: var(--radius-md); padding: 22px 10px; 
    text-align: center; transition: 0.3s; background: var(--white);
}
.amt-box .price { font-size: 20px; font-weight: 900; display: block; }
.amt-box .coins { font-size: 12px; color: var(--text-sec); margin-top: 4px; }
.amt-item input:checked + .amt-box { border-color: var(--official-yellow); background: #FFFDF0; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(255, 210, 0, 0.2); }

.badge { position: absolute; top: -8px; right: -4px; background: var(--danger); color: white; font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: bold; z-index: 2; }

/* 支付方式 */
.pay-flex { display: flex; gap: 12px; }
.pay-item { flex: 1; position: relative; cursor: pointer; }
.pay-item input { position: absolute; opacity: 0; }
.pay-box { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px; border: 2px solid #EEE; border-radius: var(--radius-md); font-weight: 600; }
.pay-item input:checked + .pay-box { border-color: var(--official-blue); background: #F0F7FF; color: var(--official-blue); }
.ri-alipay-fill { color: #108EE9; font-size: 20px; }
.ri-wechat-pay-fill { color: #09BB07; font-size: 20px; }

/* --- 3. 常见问题 (手风琴) --- */
.faq-item { border-bottom: 1px solid #F3F4F6; }
.faq-item:last-child { border-bottom: none; }
.faq-title { width: 100%; padding: 16px 0; background: none; border: none; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-size: 15px; font-weight: 600; text-align: left; outline: none; }
.faq-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; color: var(--text-sec); font-size: 14px; line-height: 1.8; }
/* 这种结构用 HTML5 details 更简洁 */
details summary { list-style: none; padding: 16px 0; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; outline: none; }
details summary::after { content: "\ea4c"; font-family: "remixicon"; transition: 0.3s; }
details[open] summary::after { transform: rotate(180deg); }
details p { padding-bottom: 16px; color: var(--text-sec); font-size: 14px; }

/* --- 4. 侧边栏动态 --- */
.order-widget { background: #fff; border-radius: var(--radius-lg); padding: 24px; margin-bottom: 24px; box-shadow: var(--shadow); }
.order-scroll { height: 180px; overflow: hidden; position: relative; mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent); }
.order-list { animation: scrollList 12s linear infinite; }
.order-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 13px; border-bottom: 1px solid #F9FAFB; }
.order-row .tag { color: var(--success); font-weight: bold; }
@keyframes scrollList { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }

/* --- 5. 移动端悬浮支付栏 --- */
.mobile-pay-bar { 
    display: none; position: fixed; bottom: 0; left: 0; right: 0; 
    background: var(--white); padding: 12px 20px; border-top: 1px solid #EEE; 
    z-index: 999; align-items: center; justify-content: space-between;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
}
.price-total .label { font-size: 12px; color: var(--text-sec); }
.price-total .num { font-size: 22px; font-weight: 900; color: var(--danger); }
.btn-submit { background: var(--official-yellow); border: none; padding: 12px 30px; border-radius: 50px; font-weight: 800; font-size: 16px; box-shadow: 0 4px 12px rgba(255, 210, 0, 0.4); }

/* --- 响应式适配 --- */
@media (max-width: 900px) {
    .main-wrapper { grid-template-columns: 1fr; }
    .hero-banner {
        /* height: 140px; */
        border-radius: 0;
        background-size: 100% 100%;
        width: 100%;
    }
    .mobile-pay-bar { display: flex; }
    .pc-submit-wrap { display: none; }
    .grid-amt { grid-template-columns: repeat(2, 1fr); }
    .sidebar { order: 2; }
    body { padding-bottom: 80px; }
}

@media (max-width: 480px) {
    .grid-amt { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .card { padding: 20px 16px; }
}

/* 页脚 */
footer { text-align: center; padding: 40px 0; color: #999; font-size: 12px; }
.safe-icons { display: flex; justify-content: center; gap: 20px; margin-bottom: 15px; opacity: 0.6; }
