:root {
    --primary-color: #6C5CE7;
    --primary-gradient: linear-gradient(135deg, #A855F7 0%, #6366F1 100%);
    --bg-dark: #0B0F19;
    --card-bg: rgba(255, 255, 255, 0.04);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-main: #F3F4F6;
    --text-muted: #9CA3AF;
    --text-active: #22C55E;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans CJK SC", sans-serif;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-width: 0;
    background-image: radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
                      radial-gradient(circle at 10% 60%, rgba(168, 85, 247, 0.1) 0%, transparent 30%);
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

input, button {
    background: none;
    border: none;
    outline: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 1. 头部区域 --- */
.header {
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 40px;
}

.logo-area h1 {
    font-size: 20px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-item a {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 500;
}

.nav-item a:hover, .nav-item.active a {
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

/* 移动端汉堡菜单（桌面端隐藏） */
.nav-toggle {
    display: none;
}

.nav-overlay {
    display: none;
}

.nav-drawer-head {
    display: none;
}

body.nav-open {
    overflow: hidden;
}

/* --- 2. 充值中心（主体版块） --- */
.main-content {
    padding: 40px 0 80px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    position: relative;
    padding-left: 12px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18%;
    height: 64%;
    width: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.recharge-panel {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 40px;
    backdrop-filter: blur(10px);
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 32px;
}

.form-label {
    display: block;
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 500;
}

/* 账号输入框 */
.input-wrapper {
    position: relative;
    max-width: 480px;
    width: 100%;
}

.account-input {
    width: 100%;
    height: 52px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 0 16px;
    color: var(--text-main);
    font-size: 16px;
    transition: all 0.3s ease;
}

.account-input:focus {
    border-color: #A855F7;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.2);
}

/* 金额格子选择 */
.grid-amount {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.amount-item {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.amount-item:hover {
    border-color: rgba(168, 85, 247, 0.5);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
}

.amount-item.selected {
    border-color: #A855F7;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.15);
}

/* 隐藏原生单选框 */
.amount-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.coin-value {
    font-size: 20px;
    font-weight: 700;
    color: #FFF;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.coin-value::after {
    content: '比心币';
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
}

.rmb-price {
    font-size: 14px;
    color: var(--text-muted);
}

.amount-bonus-tag {
    position: absolute;
    top: 0;
    right: 0;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    color: #FFF;
    background: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
    border-radius: 0 11px 0 10px;
    line-height: 1.3;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.35);
    z-index: 1;
}

.amount-item.has-bonus {
    padding-top: 22px;
}

.coin-bonus-tip {
    font-size: 12px;
    color: #FBBF24;
    margin-bottom: 6px;
    font-weight: 500;
}

.amount-item.selected .coin-bonus-tip {
    color: #FCD34D;
}

.summary-row {
    margin-bottom: 4px;
}

.summary-coins {
    font-size: 14px;
    color: var(--text-muted);
}

.summary-coins strong {
    color: #FBBF24;
    font-size: 16px;
    font-weight: 700;
}

.summary-bonus {
    color: #F59E0B;
    font-size: 13px;
    margin-left: 4px;
}

/* 支付方式 */
.pay-methods {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.pay-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pay-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* 微信/支付宝图标 */
.pay-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.pay-item.selected[data-pay="alipay"] {
    border-color: #1677FF;
    background: rgba(22, 119, 255, 0.08);
}
.pay-item.selected[data-pay="wechat"] {
    border-color: #07C160;
    background: rgba(7, 193, 96, 0.08);
}

/* 确认按钮 */
.submit-box {
    margin-top: 40px;
    border-top: 1px solid var(--card-border);
    padding-top: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.summary-text {
    font-size: 15px;
    color: var(--text-muted);
}

.summary-text .total-price {
    font-size: 28px;
    font-weight: 700;
    color: #FFF;
    margin-left: 8px;
}

.btn-submit {
    height: 54px;
    padding: 0 48px;
    background: var(--primary-gradient);
    color: #FFF;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.4);
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.6);
    opacity: 0.95;
}

/* --- 3 & 4. 说明与FAQ区域 --- */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 60px;
}

/* --- 响应式适配 --- */
@media (max-width: 992px) {
    .grid-amount {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .header {
        z-index: 201;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(11, 15, 25, 0.96);
    }

    .header-wrap {
        height: 56px;
        padding: 0;
        flex-direction: row;
        gap: 0;
        position: relative;
    }

    .logo-area {
        flex: 1;
        min-width: 0;
    }

    .logo-area h1 {
        font-size: 17px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        flex-shrink: 0;
        width: 44px;
        height: 44px;
        margin-left: 12px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        cursor: pointer;
        gap: 5px;
        z-index: 202;
        transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .nav-toggle:active {
        background: rgba(168, 85, 247, 0.15);
    }

    body.nav-open .nav-toggle {
        background: rgba(168, 85, 247, 0.12);
        border-color: rgba(168, 85, 247, 0.35);
        box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
    }

    .nav-toggle-bar {
        display: block;
        width: 20px;
        height: 2px;
        background: var(--text-main);
        border-radius: 2px;
        transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.22s ease,
                    width 0.25s ease;
        transform-origin: center;
    }

    body.nav-open .nav-toggle-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
        width: 22px;
    }

    body.nav-open .nav-toggle-bar:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    body.nav-open .nav-toggle-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
        width: 22px;
    }

    .nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(6, 9, 16, 0.72);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        z-index: 199;
        transition: opacity 0.35s ease, visibility 0.35s ease;
    }

    body.nav-open .nav-overlay {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(300px, 82vw);
        height: 100dvh;
        height: 100vh;
        padding: 0;
        background: linear-gradient(165deg, rgba(18, 22, 36, 0.98) 0%, rgba(11, 15, 25, 0.99) 100%);
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: -24px 0 64px rgba(0, 0, 0, 0.45);
        z-index: 200;
        transform: translateX(100%);
        transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .main-nav::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 3px;
        height: 100%;
        background: var(--primary-gradient);
        opacity: 0.85;
    }

    body.nav-open .main-nav {
        transform: translateX(0);
    }

    .nav-drawer-head {
        display: flex;
        align-items: center;
        height: 56px;
        padding: 0 24px 0 28px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        margin-bottom: 8px;
    }

    .nav-drawer-title {
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: var(--text-muted);
    }

    .nav-list {
        flex-direction: column;
        gap: 4px;
        padding: 12px 16px 32px;
    }

    .nav-item a {
        display: flex;
        align-items: center;
        min-height: 52px;
        padding: 0 20px;
        font-size: 16px;
        font-weight: 500;
        color: var(--text-muted);
        border-radius: 12px;
        transition: color 0.25s ease, background 0.25s ease, transform 0.2s ease;
    }

    .nav-item a:active {
        transform: scale(0.98);
    }

    .nav-item a:hover {
        color: var(--text-main);
        background: rgba(255, 255, 255, 0.04);
        text-shadow: none;
    }

    .nav-item.active a {
        color: #FFF;
        background: linear-gradient(135deg, rgba(168, 85, 247, 0.22) 0%, rgba(99, 102, 241, 0.18) 100%);
        border: 1px solid rgba(168, 85, 247, 0.25);
        box-shadow: 0 4px 16px rgba(108, 92, 231, 0.15);
        text-shadow: none;
    }

    body.nav-open .nav-item {
        animation: navItemIn 0.45s cubic-bezier(0.4, 0, 0.2, 1) backwards;
    }

    body.nav-open .nav-item:nth-child(1) { animation-delay: 0.06s; }
    body.nav-open .nav-item:nth-child(2) { animation-delay: 0.1s; }
    body.nav-open .nav-item:nth-child(3) { animation-delay: 0.14s; }
    body.nav-open .nav-item:nth-child(4) { animation-delay: 0.18s; }

    @keyframes navItemIn {
        from {
            opacity: 0;
            transform: translateX(16px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .main-content {
        padding: 24px 0 48px;
    }

    .recharge-panel {
        padding: 24px 20px;
        border-radius: 12px;
        margin-bottom: 24px;
    }

    .section-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .form-group {
        margin-bottom: 24px;
    }

    .input-wrapper {
        max-width: 100%;
    }

    .grid-amount {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .amount-item {
        padding: 16px 10px;
    }

    .coin-value {
        font-size: 18px;
    }

    .pay-methods {
        flex-direction: column;
    }

    .pay-item {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    .submit-box {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        margin-top: 28px;
        padding-top: 24px;
        gap: 16px;
    }

    .summary-text .total-price {
        font-size: 24px;
    }

    .btn-submit {
        width: 100%;
        padding: 0 24px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }

    .info-card {
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .logo-img {
        width: 32px;
        height: 32px;
    }

    .logo-area h1 {
        font-size: 15px;
    }

    .main-content {
        padding: 16px 0 40px;
    }

    .recharge-panel {
        padding: 20px 14px;
    }

    .section-title {
        font-size: 18px;
        padding-left: 10px;
    }

    .form-label {
        font-size: 14px;
    }

    .account-input {
        height: 48px;
        font-size: 15px;
    }

    .grid-amount {
        gap: 10px;
    }

    .amount-item {
        padding: 14px 8px;
        border-radius: 10px;
    }

    .coin-value {
        font-size: 16px;
    }

    .coin-value::after {
        font-size: 11px;
    }

    .rmb-price {
        font-size: 12px;
    }

    .pay-item {
        font-size: 14px;
        gap: 10px;
    }

    .summary-text {
        font-size: 14px;
    }

    .summary-text .total-price {
        font-size: 22px;
        display: block;
        margin-left: 0;
        margin-top: 4px;
    }

    .btn-submit {
        height: 50px;
        font-size: 15px;
    }

    .info-card {
        padding: 20px 16px;
        border-radius: 12px;
    }

    .info-card ul li,
    .faq-a {
        font-size: 13px;
    }

    .faq-q {
        font-size: 14px;
    }

    .footer {
        padding: 32px 0 24px;
    }

    .footer-links {
        gap: 10px 14px;
        font-size: 12px;
    }

    .footer-compliances {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        font-size: 11px;
    }

    .footer-copyright {
        font-size: 11px;
        padding: 0 8px;
    }
}

.info-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 32px;
}

.info-card ul li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-muted);
}

.info-card ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #A855F7;
    font-weight: bold;
}

.faq-item {
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 16px;
}

.faq-item:last-child {
    border: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.faq-q {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
    display: flex;
    gap: 8px;
}

.faq-q span { color: #A855F7; }

.faq-a {
    font-size: 14px;
    color: var(--text-muted);
    padding-left: 20px;
}

/* --- 5. 底部大厂化模板 --- */
.footer {
    background: #060910;
    border-top: 1px solid var(--card-border);
    padding: 48px 0 32px;
    font-size: 13px;
    color: #6B7280;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.footer-links a:hover {
    color: var(--text-muted);
}

.footer-compliances {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.footer-compliances a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.footer-copyright {
    text-align: center;
    line-height: 1.8;
}