:root {
    --brand: #1a6fe8;
    --brand-deep: #0f56c2;
    --brand-soft: #eaf2ff;
    --ink: #1f2329;
    --ink-secondary: #646a73;
    --ink-muted: #8f959e;
    --line: #e8ebf0;
    --surface: #ffffff;
    --canvas: #f3f5f8;
    --success: #07c160;
    --alipay: #1677ff;
    --radius-lg: 14px;
    --radius-md: 10px;
    --shadow-sm: 0 1px 2px rgba(31, 35, 41, 0.04);
    --shadow-md: 0 8px 24px rgba(31, 35, 41, 0.06);
    --max: 1120px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, #d9e8ff 0%, transparent 55%),
        var(--canvas);
    color: var(--ink);
    line-height: 1.65;
    min-height: 100vh;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

/* —— 顶栏 —— */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.topbar__wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand__mark {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.brand__name {
    font-size: 18px;
    font-weight: 650;
    letter-spacing: 0.02em;
    color: var(--ink);
}

.topbar__nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.topbar__link {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--ink-secondary);
    transition: color 0.2s, background 0.2s;
}

.topbar__link:hover,
.topbar__link.is-active {
    color: var(--brand);
    background: var(--brand-soft);
}

/* —— 简介横幅 —— */
.intro-banner {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(135deg, rgba(26, 111, 232, 0.08) 0%, rgba(255, 255, 255, 0) 42%),
        linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%);
}

.intro-banner::before {
    content: "";
    position: absolute;
    right: -80px;
    top: -60px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 111, 232, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.intro-banner::after {
    content: "";
    position: absolute;
    left: 8%;
    bottom: -40px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 86, 194, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.intro-banner__wrap {
    position: relative;
    z-index: 1;
    max-width: var(--max);
    margin: 0 auto;
    padding: 40px 24px 32px;
    display: grid;
    gap: 28px;
}

.intro-banner__main {
    max-width: 680px;
}

.intro-banner__kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--brand-deep);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(26, 111, 232, 0.18);
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
    box-shadow: 0 1px 2px rgba(26, 111, 232, 0.06);
}

.intro-banner__kicker::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 3px rgba(26, 111, 232, 0.18);
}

.intro-banner__title {
    font-size: clamp(24px, 3.2vw, 32px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: var(--ink);
    margin-bottom: 10px;
}

.intro-banner__lead {
    max-width: 560px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink-secondary);
}

.trust-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.trust-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(232, 235, 240, 0.95);
    box-shadow: 0 4px 14px rgba(31, 35, 41, 0.04);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.trust-card:hover {
    border-color: rgba(26, 111, 232, 0.28);
    box-shadow: 0 8px 20px rgba(26, 111, 232, 0.08);
    transform: translateY(-2px);
}

.trust-card__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    background: linear-gradient(180deg, #eff5ff 0%, #e4efff 100%);
    border: 1px solid rgba(26, 111, 232, 0.12);
}

.trust-card__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.trust-card__title {
    font-size: 14px;
    font-weight: 650;
    color: var(--ink);
    line-height: 1.4;
}

.trust-card__desc {
    font-size: 12px;
    color: var(--ink-muted);
    line-height: 1.45;
}

/* —— 主布局 —— */
.page {
    max-width: var(--max);
    margin: 0 auto;
    padding: 28px 24px 48px;
}

.page__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
    gap: 20px;
    align-items: start;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 28px;
}

.panel + .panel,
.page__primary > .panel + .panel {
    margin-top: 20px;
}

.panel__head {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.panel__title {
    font-size: 18px;
    font-weight: 650;
    color: var(--ink);
    margin-bottom: 4px;
}

.panel__desc {
    font-size: 13px;
    color: var(--ink-muted);
}

/* —— 表单字段 —— */
.field {
    margin-bottom: 22px;
}

.field__label,
.field-block__label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 550;
    color: var(--ink);
}

.field__control {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    font-size: 15px;
    color: var(--ink);
    background: #fafbfc;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.field__control::placeholder {
    color: var(--ink-muted);
}

.field__control:hover {
    border-color: #d0d5dd;
}

.field__control:focus {
    outline: none;
    background: var(--surface);
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(26, 111, 232, 0.12);
}

.field-block {
    border: 0;
    margin: 0 0 22px;
    padding: 0;
    min-width: 0;
}

/* —— 面额网格 —— */
.quota-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.quota {
    cursor: pointer;
}

.quota__radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.quota__face {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 92px;
    padding: 18px 8px 12px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-md);
    background: #fafbfc;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.quota:hover .quota__face {
    border-color: #b8d0f5;
    background: var(--surface);
}

.quota__radio:checked + .quota__face {
    border-color: var(--brand);
    background: var(--brand-soft);
    box-shadow: inset 0 0 0 1px var(--brand);
}

.quota__bonus {
    position: absolute;
    top: 0;
    right: 0;
    padding: 2px 7px;
    border-bottom-left-radius: 8px;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.4;
    color: #fff;
    background: linear-gradient(135deg, #ff7a45 0%, #ff4d1a 100%);
}

.quota__bonus--hot {
    background: linear-gradient(135deg, #ff4d4f 0%, #cf1322 100%);
}

.quota__price {
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.quota__coins {
    font-size: 12px;
    color: var(--ink-secondary);
}

.quota__radio:checked + .quota__face .quota__price {
    color: var(--brand-deep);
}

/* —— 支付方式 —— */
.pay-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pay-chip {
    cursor: pointer;
}

.pay-chip__radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pay-chip__face {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 550;
    background: #fafbfc;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.pay-chip__face img {
    width: 20px;
    height: 20px;
}

.pay-chip__radio:checked + .pay-chip__face--weixin {
    border-color: var(--success);
    color: var(--success);
    background: rgba(7, 193, 96, 0.06);
}

.pay-chip__radio:checked + .pay-chip__face--alipay {
    border-color: var(--alipay);
    color: var(--alipay);
    background: rgba(22, 119, 255, 0.06);
}

/* —— 提交按钮 —— */
.cta {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, #2f7ff0 0%, var(--brand) 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 650;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(26, 111, 232, 0.28);
    transition: transform 0.15s, filter 0.15s, box-shadow 0.15s;
}

.cta:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(26, 111, 232, 0.34);
}

.cta:active {
    transform: translateY(0);
    filter: brightness(0.98);
}

.cta:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 111, 232, 0.28), 0 6px 16px rgba(26, 111, 232, 0.28);
}

/* —— 须知列表 —— */
.notice-list {
    margin: 0;
    padding-left: 18px;
    color: var(--ink-secondary);
    font-size: 14px;
}

.notice-list li {
    padding-left: 4px;
    margin-bottom: 12px;
}

.notice-list li:last-child {
    margin-bottom: 0;
}

.notice-list li::marker {
    color: var(--brand);
    font-weight: 650;
}

/* —— 帮助中心 —— */
.qa__item {
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
}

.qa__item:first-child {
    padding-top: 0;
}

.qa__item:last-of-type {
    border-bottom: 0;
    margin-bottom: 4px;
}

.qa__q {
    list-style: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    padding-right: 20px;
    position: relative;
}

.qa__q::-webkit-details-marker {
    display: none;
}

.qa__q::after {
    content: "";
    position: absolute;
    right: 2px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid var(--ink-muted);
    border-bottom: 1.5px solid var(--ink-muted);
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.2s;
}

.qa__item[open] .qa__q::after {
    transform: translateY(-20%) rotate(225deg);
}

.qa__a {
    margin-top: 8px;
    font-size: 13px;
    color: var(--ink-secondary);
    line-height: 1.7;
}

.app-qr {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    text-align: center;
}

.app-qr__caption {
    font-size: 13px;
    font-weight: 550;
    color: var(--ink-secondary);
    margin-bottom: 14px;
}

.app-qr__img {
    width: 128px;
    height: 128px;
    margin: 0 auto;
    border-radius: 8px;
    border: 1px solid var(--line);
    padding: 6px;
    background: var(--surface);
    object-fit: contain;
}

/* —— 页脚 —— */
.site-end {
    border-top: 1px solid var(--line);
    background:
        linear-gradient(180deg, #f7f9fc 0%, #ffffff 48%);
}

.site-end__wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 40px 24px 28px;
}

.site-end__grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
    gap: 28px 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
}

.site-end__brand {
    max-width: 300px;
}

.site-end__logo {
    height: 36px;
    width: auto;
    margin-bottom: 14px;
    opacity: 0.92;
}

.site-end__intro {
    font-size: 13px;
    line-height: 1.7;
    color: var(--ink-secondary);
    margin-bottom: 12px;
}

.site-end__domain {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--brand-deep);
    background: var(--brand-soft);
    border: 1px solid rgba(26, 111, 232, 0.14);
    border-radius: 999px;
    padding: 4px 10px;
}

.site-end__heading {
    font-size: 14px;
    font-weight: 650;
    color: var(--ink);
    margin-bottom: 14px;
}

.site-end__links {
    list-style: none;
    display: grid;
    gap: 10px;
}

.site-end__links li,
.site-end__links a {
    font-size: 13px;
    color: var(--ink-secondary);
    line-height: 1.5;
}

.site-end__links a {
    transition: color 0.2s;
}

.site-end__links a:hover {
    color: var(--brand);
}

.site-end__bar {
    padding-top: 20px;
    text-align: center;
}

.site-end__meta {
    font-size: 13px;
    color: var(--ink-secondary);
    margin-bottom: 6px;
}

.site-end__note {
    font-size: 12px;
    color: var(--ink-muted);
    line-height: 1.6;
}

/* —— 响应式 —— */
@media (max-width: 900px) {
    .page__layout {
        grid-template-columns: 1fr;
    }

    .topbar__nav {
        display: none;
    }

    .intro-banner__wrap {
        padding: 24px 24px 20px;
        gap: 16px;
    }

    .trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .site-end__grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px 20px;
    }

    .site-end__brand {
        grid-column: 1 / -1;
        max-width: none;
    }
}

@media (max-width: 560px) {
    .topbar__wrap,
    .page,
    .intro-banner__wrap,
    .site-end__wrap {
        padding-left: 16px;
        padding-right: 16px;
    }

    .panel {
        padding: 20px;
    }

    .quota-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pay-grid {
        grid-template-columns: 1fr;
    }

    .brand__name {
        font-size: 16px;
    }

    .intro-banner__wrap {
        padding-top: 16px;
        padding-bottom: 14px;
        gap: 12px;
    }

    .intro-banner__kicker {
        margin-bottom: 8px;
        padding: 3px 10px;
        font-size: 11px;
    }

    .intro-banner__title {
        font-size: 18px;
        margin-bottom: 0;
        line-height: 1.35;
    }

    .intro-banner__lead {
        display: none;
    }

    .trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .trust-card {
        align-items: center;
        gap: 8px;
        padding: 8px 10px;
        border-radius: 8px;
        box-shadow: none;
    }

    .trust-card:hover {
        transform: none;
        box-shadow: none;
    }

    .trust-card__icon {
        width: 28px;
        height: 28px;
        border-radius: 7px;
    }

    .trust-card__icon svg {
        width: 15px;
        height: 15px;
    }

    .trust-card__title {
        font-size: 12px;
        font-weight: 600;
    }

    .trust-card__desc {
        display: none;
    }

    .site-end__wrap {
        padding-top: 28px;
        padding-bottom: 22px;
    }

    .site-end__grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-bottom: 20px;
    }

    .site-end__bar {
        text-align: left;
    }
}
