/* Soul币充值中心 - www.gictu.cn */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --brand-blue: #1677ff;
    --brand-blue-hover: #0958d9;
    --brand-blue-light: rgba(22, 119, 255, 0.06);
    --page-bg: #f0f2f5;
    --card-bg: #ffffff;
    --text-primary: #1f1f1f;
    --text-secondary: #595959;
    --text-tertiary: #8c8c8c;
    --border-color: #d9d9d9;
    --border-light: #f0f0f0;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --shadow-header: 0 1px 4px rgba(0, 21, 41, 0.08);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.03), 0 2px 8px rgba(0, 0, 0, 0.04);
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body {
    font-family: var(--font-stack);
    background-color: var(--page-bg);
    color: var(--text-primary);
    line-height: 1.5715;
    -webkit-font-smoothing: antialiased;
}

.layout-container {
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* 顶栏 */
.site-header {
    background: var(--card-bg);
    height: 60px;
    box-shadow: var(--shadow-header);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-group img {
    height: 30px;
}

.logo-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-secondary);
    margin-left: 28px;
    font-size: 14px;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--brand-blue);
}

.main-nav a.nav-active {
    color: var(--brand-blue);
    font-weight: 500;
}

/* 横幅 */
.hero-strip {
    background: linear-gradient(135deg, #1677ff 0%, #0958d9 100%);
    padding: 14px 0;
}

.hero-tagline {
    text-align: center;
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    letter-spacing: 0.12em;
    font-weight: 400;
}

/* 主内容 */
.main-content {
    padding-bottom: 16px;
}

.content-card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 28px 32px;
    margin-top: 24px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-primary);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 48px;
    height: 2px;
    background: var(--brand-blue);
    border-radius: 1px;
}

/* 表单 */
.field-group {
    margin-bottom: 24px;
}

.field-group label,
.field-group .field-label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.field-group input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    outline: none;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--card-bg);
}

.field-group input[type="text"]:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.1);
}

.field-group input[type="text"]::placeholder {
    color: var(--text-tertiary);
}

/* 充值档位 */
.tier-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.tier-item {
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px 10px 14px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
    background: var(--card-bg);
    user-select: none;
}

.tier-item:hover:not(.tier-active) {
    border-color: #91caff;
}

.tier-item.tier-active {
    border-color: var(--brand-blue);
    background: var(--brand-blue-light);
    box-shadow: 0 0 0 1px var(--brand-blue);
}

.bonus-tag {
    position: absolute;
    top: 0;
    right: 0;
    padding: 2px 8px;
    border-radius: 0 var(--radius-lg) 0 var(--radius-lg);
    font-size: 11px;
    line-height: 1.4;
    color: #fff;
    background: linear-gradient(135deg, #ff7875, #f5222d);
}

.coin-info strong {
    font-size: 22px;
    color: var(--text-primary);
    font-style: normal;
    font-weight: 600;
}

.coin-info em {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-left: 2px;
    font-style: normal;
}

.price-tag {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-top: 6px;
}

.tier-item.tier-active .coin-info strong {
    color: var(--brand-blue);
}

.tier-item.tier-active .coin-info em {
    color: var(--brand-blue-hover);
}

/* 支付方式 */
.pay-methods {
    display: flex;
    gap: 16px;
}

.pay-method {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 14px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: #fafafa;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.pay-method-body {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    pointer-events: none;
}

.pay-method img {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    object-fit: contain;
}

.pay-method-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.pay-method:hover:not(.pay-active) {
    border-color: #91caff;
    background: var(--card-bg);
}

.pay-method.pay-active {
    border-color: var(--brand-blue);
    background: var(--brand-blue-light);
    box-shadow: 0 0 0 1px var(--brand-blue);
}

.pay-method.pay-active::after {
    content: "✓";
    position: absolute;
    top: 6px;
    right: 8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--brand-blue);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.pay-method.pay-active .pay-method-name {
    color: var(--brand-blue);
    font-weight: 600;
}

.pay-method input {
    position: absolute;
    width: 0;
    height: 0;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.submit-btn {
    width: 100%;
    padding: 12px 16px;
    background: var(--brand-blue);
    color: #fff;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s;
    letter-spacing: 0.04em;
}

.submit-btn:hover {
    background: var(--brand-blue-hover);
}

/* 帮助中心 */
.faq-card {
    background: var(--card-bg);
}

.faq-intro {
    margin: -8px 0 20px;
    font-size: 13px;
    color: var(--text-tertiary);
}

.faq-list {
    display: grid;
    gap: 10px;
}

.faq-item {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: #fafafa;
    transition: border-color 0.2s, background 0.2s;
    overflow: hidden;
}

.faq-item:hover {
    border-color: #d6e4ff;
    background: var(--card-bg);
}

.faq-item summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    margin-left: auto;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--border-light);
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 400;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.faq-item[open] summary::after {
    content: "−";
    background: var(--brand-blue);
    color: #fff;
}

.faq-index {
    min-width: 32px;
    padding: 2px 0;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    color: var(--brand-blue);
    font-variant-numeric: tabular-nums;
}

.faq-question {
    flex: 1;
}

.faq-item p {
    padding: 0 16px 16px 60px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-answer-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    margin-right: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: #52c41a;
    vertical-align: top;
}

/* 客户端下载 */
.download-grid {
    display: flex;
    justify-content: space-around;
    padding: 16px 0 8px;
}

.download-item {
    position: relative;
    text-align: center;
    margin: 0;
}

.store-badge {
    height: 42px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

.store-badge:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.qr-popup {
    position: absolute;
    bottom: 52px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    padding: 12px;
    border-radius: var(--radius-lg);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-light);
    display: none;
    width: 140px;
    z-index: 10;
}

.qr-popup img {
    width: 116px;
    height: 116px;
}

.qr-popup p {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 6px;
}

.download-item:hover .qr-popup {
    display: block;
}

/* 页脚 */
.page-footer {
    background: #141414;
    color: rgba(255, 255, 255, 0.45);
    padding: 36px 0;
    text-align: center;
    font-size: 12px;
    margin-top: 48px;
    line-height: 1.8;
}

.footer-links {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    margin: 0 6px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.85);
}

/* 响应式 */
@media (max-width: 768px) {
    .layout-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .site-header {
        height: 52px;
    }

    .header-inner {
        justify-content: flex-start;
    }

    .main-nav {
        display: none;
    }

    .logo-title {
        font-size: 15px;
    }

    .logo-group img {
        height: 26px;
    }

    .content-card {
        padding: 20px 16px;
        margin-top: 16px;
    }

    .hero-tagline {
        font-size: 12px;
        letter-spacing: 0.08em;
    }

    .tier-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .download-grid {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .qr-popup {
        position: static;
        transform: none;
        display: block;
        margin-top: 10px;
        box-shadow: none;
        border: none;
        width: 120px;
    }

    .pay-methods {
        flex-direction: column;
        gap: 10px;
    }

    .pay-method {
        min-height: 50px;
        padding: 12px 16px;
    }

    .faq-item summary {
        padding: 12px;
        gap: 8px;
        font-size: 13px;
    }

    .faq-index {
        min-width: 28px;
        font-size: 11px;
    }

    .faq-item p {
        padding: 0 12px 14px 12px;
        font-size: 13px;
    }
}
