/* Soul币充值中心 - www.soulbibi.com */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --color-primary: #4facfe;
    --color-primary-dark: #2b7fd6;
    --color-bg: #f5f7fa;
    --color-text: #333;
    --color-muted: #666;
    --color-border: #e1e4e8;
    --radius-panel: 12px;
    --radius-btn: 30px;
    --shadow-bar: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-panel: 0 4px 12px rgba(0, 0, 0, 0.02);
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

.site-wrap {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* 顶栏 */
.top-bar {
    background: #fff;
    height: 64px;
    box-shadow: var(--shadow-bar);
    position: sticky;
    top: 0;
    z-index: 999;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.brand-mark {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    color: var(--color-text);
}

.brand-mark img {
    height: 32px;
    margin-right: 8px;
}

.top-menu a {
    text-decoration: none;
    color: var(--color-muted);
    margin-left: 20px;
    font-size: 14px;
}

.top-menu a.is-current {
    color: var(--color-primary);
    font-weight: bold;
}

/* 主内容 */
.page-body {
    padding-bottom: 10px;
}

.panel-box {
    background: #fff;
    border-radius: var(--radius-panel);
    padding: 25px;
    margin-top: 20px;
    box-shadow: var(--shadow-panel);
}

.block-heading {
    font-size: 18px;
    margin-bottom: 20px;
    border-left: 4px solid var(--color-primary);
    padding-left: 12px;
}

/* 表单 */
.form-row {
    margin-bottom: 25px;
}

.form-row label,
.form-row .form-row-label {
    display: block;
    margin-bottom: 12px;
    color: var(--color-muted);
    font-size: 14px;
}

.form-row input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    outline: none;
    font-size: 15px;
}

.form-row input[type="text"]:focus {
    border-color: var(--color-primary);
}

/* 金额档位 */
.amount-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.amount-option {
    position: relative;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
    background: #fff;
    user-select: none;
}

.amount-option.is-selected {
    border-color: var(--color-primary);
    background: rgba(79, 172, 254, 0.05);
}

.gift-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    line-height: 1.2;
    color: #fff;
    background: #ff6b6b;
}

.coin-display strong {
    font-size: 20px;
    color: var(--color-text);
    font-style: normal;
}

.coin-display em {
    font-size: 12px;
    color: var(--color-muted);
    margin-left: 2px;
    font-style: normal;
}

.price-display {
    font-size: 13px;
    color: #999;
    margin-top: 4px;
}

.amount-option.is-selected .coin-display strong,
.amount-option.is-selected .coin-display em {
    color: var(--color-primary);
}

/* 支付方式 */
.payment-options {
    display: flex;
    gap: 16px;
}

.payment-option {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 16px 20px;
    border: 2px solid #e8ecf2;
    border-radius: 14px;
    background: #f9fafb;
    cursor: pointer;
    transition:
        border-color 0.28s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.28s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.payment-option::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(79, 172, 254, 0.08), transparent 70%);
    opacity: 0;
    transition: opacity 0.28s ease;
    pointer-events: none;
}

.payment-option-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    pointer-events: none;
}

.payment-option img {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    object-fit: contain;
    display: block;
}

.payment-option-text {
    font-size: 15px;
    font-weight: 500;
    color: #3d4654;
    white-space: nowrap;
    line-height: 1;
    letter-spacing: 0.02em;
}

.payment-option:hover:not(.is-selected) {
    border-color: #c8e0fc;
    background: #fff;
    box-shadow: 0 4px 14px rgba(79, 172, 254, 0.1);
    transform: translateY(-1px);
}

.payment-option.is-selected {
    border-color: var(--color-primary);
    background: linear-gradient(165deg, #eef7ff 0%, #ffffff 42%, #f3f9ff 100%);
    box-shadow:
        0 0 0 3px rgba(79, 172, 254, 0.14),
        0 10px 28px rgba(79, 172, 254, 0.22),
        0 2px 8px rgba(79, 172, 254, 0.1);
    transform: translateY(-2px);
}

.payment-option.is-selected::before {
    opacity: 1;
}

.payment-option.is-selected::after {
    content: "✓";
    position: absolute;
    top: 7px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(145deg, #6ec0ff, var(--color-primary));
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(79, 172, 254, 0.45);
}

.payment-option.is-selected .payment-option-text {
    color: var(--color-primary-dark);
    font-weight: 600;
}

.payment-option input {
    position: absolute;
    width: 0;
    height: 0;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-btn);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: opacity 0.3s;
}

.btn-primary:hover {
    opacity: 0.9;
}

/* 帮助中心 */
.help-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.help-desc {
    margin: -6px 0 16px;
    font-size: 13px;
    color: #7a8699;
}

.help-accordion {
    display: grid;
    gap: 12px;
}

.help-entry {
    border: 1px solid #e7edf5;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(60, 96, 160, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    overflow: hidden;
}

.help-entry:hover {
    border-color: #c6ddff;
    box-shadow: 0 12px 26px rgba(63, 120, 218, 0.14);
    transform: translateY(-2px);
}

.help-entry summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #253043;
}

.help-entry summary::-webkit-details-marker {
    display: none;
}

.help-entry summary::after {
    content: "+";
    margin-left: auto;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f7ff;
    color: var(--color-primary);
    font-size: 18px;
    font-weight: 500;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.help-entry[open] summary::after {
    content: "-";
    transform: rotate(180deg);
    background: var(--color-primary);
    color: #fff;
}

.help-num {
    min-width: 34px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    color: var(--color-primary-dark);
    background: rgba(79, 172, 254, 0.14);
}

.help-q {
    flex: 1;
}

.help-entry p {
    padding: 0 16px 16px;
    font-size: 14px;
    color: #576275;
    line-height: 1.75;
}

.help-a-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    margin-right: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #42d392, #1ea66f);
    vertical-align: top;
}

/* APP 下载 */
.app-download-row {
    display: flex;
    justify-content: space-around;
    padding: 20px 0;
}

.app-download-cell {
    position: relative;
    text-align: center;
    margin: 0;
}

.app-store-img {
    height: 45px;
    cursor: pointer;
    transition: transform 0.2s;
}

.app-store-img:hover {
    transform: translateY(-3px);
}

.qr-tooltip {
    position: absolute;
    bottom: 55px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: none;
    width: 140px;
    z-index: 10;
}

.qr-tooltip img {
    width: 120px;
    height: 120px;
}

.qr-tooltip p {
    font-size: 12px;
    color: var(--color-muted);
    margin-top: 5px;
}

.app-download-cell:hover .qr-tooltip {
    display: block;
}

/* 页脚 */
.site-footer {
    background: #1a1a1a;
    color: var(--color-muted);
    padding: 40px 0;
    text-align: center;
    font-size: 12px;
    margin-top: 40px;
}

.site-footer-nav {
    margin-bottom: 15px;
}

.site-footer-nav a {
    color: #888;
    text-decoration: none;
    margin: 0 8px;
}

/* 响应式 */
@media (max-width: 768px) {
    .top-bar {
        height: 56px;
    }

    .top-bar-inner {
        justify-content: flex-start;
    }

    .top-menu {
        display: none;
    }

    .brand-mark {
        font-size: 16px;
    }

    .brand-mark img {
        height: 28px;
    }

    .amount-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .app-download-row {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .qr-tooltip {
        position: static;
        transform: none;
        display: block;
        margin-top: 10px;
        box-shadow: none;
        width: 120px;
    }

    .payment-options {
        flex-direction: column;
        gap: 10px;
    }

    .payment-option {
        min-height: 52px;
        padding: 14px 16px;
    }

    .payment-option img {
        width: 26px;
        height: 26px;
    }

    .payment-option-text {
        font-size: 14px;
    }

    .help-entry summary {
        padding: 13px 12px;
        gap: 8px;
        font-size: 14px;
    }

    .help-num {
        min-width: 30px;
        padding: 3px 7px;
        font-size: 11px;
    }

    .help-entry p {
        padding: 0 12px 13px;
        font-size: 13px;
    }
}
