: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); }

/* 语义化标签重置 */
fieldset { border: none; padding: 0; margin: 0; }
legend { padding: 0; }
mark { background: transparent; }
.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('images/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: block; line-height: 1.6; }

/* 金额网格 */
.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; display: block; }
.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-icon { width: 20px; height: 20px; vertical-align: middle; }

/* 支付方式 */
.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; }

/* 提交按钮区域 */
.pc-submit-wrap { margin-top: 30px; }
.pc-submit-wrap .btn-submit { width: 100%; height: 60px; font-size: 18px; }

/* 安全提示样式 */
.safety-tips .section-title { margin-bottom: 16px; }
.safety-content { display: flex; gap: 20px; align-items: stretch; }
.warning-box { flex: 1; background: #FFF9E6; border: 1px solid #FFE58F; border-radius: var(--radius-md); padding: 20px; }
.safety-list { font-size: 14px; color: #856404; line-height: 1.8; margin: 0; padding-left: 20px; }
.safety-list li { margin-bottom: 4px; }
.safety-list li:last-child { margin-bottom: 0; }

/* 二维码下载区域 */
.qrcode-download { 
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #FFF9E6; 
    border: 1px solid #FFE58F; 
    border-radius: var(--radius-md); 
    padding: 16px 20px;
}
.qrcode-download p { font-size: 14px; color: #856404; margin-bottom: 10px; font-weight: 600; }
.qrcode-download img { width: 100px; height: auto; border-radius: 8px; }

/* --- 蛋仔外观展示 --- */
.skin-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 12px; 
}
.skin-item { 
    position: relative; 
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-md); 
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background-image: url('images/6_2143_25c1650d-6c59-4d99-80a8-04639e1416b6_8589489.jpg');
    background-size: cover;
    background-position: center;
}
.skin-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    display: block;
}
.skin-name { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    padding: 8px 6px; 
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff; 
    font-size: 12px; 
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- 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; align-items: center; outline: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { 
    content: ""; 
    width: 8px; 
    height: 8px; 
    border-right: 2px solid var(--text-sec); 
    border-bottom: 2px solid var(--text-sec); 
    transform: rotate(45deg); 
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
details[open] summary::after { transform: rotate(-135deg); }
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); display: block; }
.price-total .num { font-size: 22px; font-weight: 900; color: var(--danger); display: block; }
.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; }
    .safety-content { flex-direction: column; }
    .qrcode-download { padding: 12px; }
    .qrcode-download img { width: 80px; }
}

/* 页脚 */
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; list-style: none; }
.safe-icons li { display: inline; }

/* 页脚导航链接 */
.footer-links { margin-bottom: 10px; }
.footer-links a { color: #999; text-decoration: none; margin: 0 8px; }
.footer-links a:hover { color: #666; text-decoration: underline; }
.footer-links span { margin: 0 8px; }
.footer-brand { margin-top: 10px; }
.footer-copyright { margin-top: 10px; }
