:root {
    --accent: #f5a623;
    --accent-deep: #d4890a;
    --accent-soft: #fff6e8;
    --accent-ring: rgba(245, 166, 35, 0.28);
    --ink: #111827;
    --ink-2: #374151;
    --ink-3: #6b7280;
    --ink-4: #9ca3af;
    --line: #e5e7eb;
    --surface: #ffffff;
    --canvas: #f3f4f6;
    --canvas-2: #eef0f4;
    --radius: 12px;
    --radius-lg: 18px;
    --ease: 0.22s ease;
    --wx: #07c160;
    --wx-bg: #edf9f2;
    --ali: #1677ff;
    --ali-bg: #eef4ff;
    --danger: #e11d48;
    --max: 1080px;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(1200px 480px at 50% -120px, rgba(245, 166, 35, 0.12), transparent 60%),
        linear-gradient(180deg, #fafbfc 0%, var(--canvas) 42%, var(--canvas-2) 100%);
    min-height: 100vh;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

/* ── Topbar ── */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border-bottom: 1px solid rgba(17, 24, 39, 0.06);
}

.topbar-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
    height: 68px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.brand-text h1 {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.2;
    color: var(--ink);
}

.brand-sub {
    display: block;
    font-size: 0.7rem;
    color: var(--ink-3);
    font-weight: 500;
    margin-top: 2px;
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.top-nav a {
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--ink-2);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background var(--ease), color var(--ease);
}

.top-nav a:hover,
.top-nav a.is-active {
    color: var(--accent-deep);
    background: var(--accent-soft);
}

.auth-tag {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-deep);
    background: var(--accent-soft);
    border: 1px solid rgba(245, 166, 35, 0.35);
    padding: 5px 12px;
    border-radius: 999px;
}

/* ── Announce ── */
.announce-bar {
    background: linear-gradient(90deg, #fffaf0, #fff, #fffaf0);
    border-bottom: 1px solid rgba(245, 166, 35, 0.2);
}

.announce-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 11px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.announce-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-ring);
    flex-shrink: 0;
}

.announce-inner p {
    font-size: 0.8rem;
    color: var(--ink-2);
}

.announce-inner strong {
    color: var(--accent-deep);
    font-weight: 700;
}

/* ── Main layout ── */
.page-main {
    padding: 28px 24px 48px;
}

.layout-shell {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr);
    gap: 22px;
    align-items: start;
}

.panel-block {
    background: var(--surface);
    border: 1px solid rgba(17, 24, 39, 0.06);
    border-radius: var(--radius-lg);
    padding: 28px 30px 32px;
    box-shadow: 0 10px 40px rgba(17, 24, 39, 0.05);
    position: relative;
    overflow: hidden;
}

.panel-block::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-deep), var(--accent), #ffd166);
}

.panel-head {
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.panel-head h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 0.01em;
}

.panel-head p {
    margin-top: 6px;
    font-size: 0.86rem;
    color: var(--ink-3);
}

.flow-step {
    margin-bottom: 28px;
}

.flow-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.flow-label em {
    font-style: normal;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--ink);
    background: linear-gradient(135deg, var(--accent), #ffcc4d);
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px var(--accent-ring);
}

.flow-label span {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
}

.field-wrap label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--ink-2);
    margin-bottom: 8px;
}

.field-wrap input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    font-size: 0.98rem;
    color: var(--ink);
    background: #f9fafb;
    outline: none;
    transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}

.field-wrap input::placeholder {
    color: var(--ink-4);
}

.field-wrap input:focus {
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 4px var(--accent-ring);
}

/* ── SKU grid ── */
.sku-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.sku-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 20px 10px 16px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    background: #fafafa;
    cursor: pointer;
    user-select: none;
    transition: transform var(--ease), border-color var(--ease), background var(--ease), box-shadow var(--ease);
}

.sku-badge {
    position: absolute;
    top: 0;
    left: 0;
    padding: 3px 8px;
    font-size: 0.66rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 11px 0 8px 0;
    line-height: 1.3;
    letter-spacing: 0.02em;
}

.sku-badge.hot {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.sku-badge.best {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.sku-card input,
.channel-opt input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.sku-card:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 166, 35, 0.45);
    box-shadow: 0 6px 18px rgba(245, 166, 35, 0.1);
}

.sku-card:has(input:checked) {
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: 0 4px 14px var(--accent-ring);
}

.sku-card:has(input:checked)::after {
    content: "";
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-deep);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.25);
}

.sku-coins {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
}

.coin-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.sku-bonus {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-deep);
    line-height: 1.2;
}

.sku-price {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--danger);
}

/* ── Channels ── */
.channel-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.channel-opt {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 12px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    background: #fafafa;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink);
    user-select: none;
    transition: border-color var(--ease), background var(--ease), box-shadow var(--ease);
}

.channel-opt:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.channel-opt:has(input:checked).channel-alipay {
    border-color: var(--ali);
    background: var(--ali-bg);
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.1);
}

.channel-opt:has(input:checked).channel-wechat {
    border-color: var(--wx);
    background: var(--wx-bg);
    box-shadow: 0 0 0 3px rgba(7, 193, 96, 0.1);
}

.channel-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.cta-btn {
    width: 100%;
    margin-top: 4px;
    padding: 15px 18px;
    border: none;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #f5a623 0%, #e8940a 100%);
    color: #1a1205;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(245, 166, 35, 0.35);
    transition: transform var(--ease), box-shadow var(--ease), opacity var(--ease);
}

.cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(232, 148, 10, 0.42);
}

.cta-btn:active {
    transform: translateY(0);
    opacity: 0.94;
}

.cta-note {
    margin-top: 12px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--ink-3);
}

/* ── Side guides ── */
.side-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.guide-box {
    background: var(--surface);
    border: 1px solid rgba(17, 24, 39, 0.06);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    box-shadow: 0 4px 20px rgba(17, 24, 39, 0.04);
}

.guide-box h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.guide-box ol {
    padding-left: 18px;
}

.guide-box ol li {
    font-size: 0.84rem;
    color: var(--ink-2);
    margin-bottom: 10px;
    line-height: 1.7;
}

.guide-box ol li strong {
    color: var(--ink);
    font-weight: 650;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-list dt {
    font-size: 0.86rem;
    font-weight: 650;
    color: var(--ink);
    margin-bottom: 4px;
}

.faq-list dd {
    font-size: 0.82rem;
    color: var(--ink-2);
    line-height: 1.7;
}

/* ── Footer ── */
.page-footer {
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, transparent, #fff 28%);
    margin-top: 8px;
}

.footer-shell {
    max-width: var(--max);
    margin: 0 auto;
    padding: 36px 24px 44px;
    text-align: center;
}

.trust-row {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px 36px;
    margin-bottom: 18px;
}

.trust-row li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink-2);
}

.trust-row svg {
    color: var(--accent-deep);
}

.footer-motto {
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--ink-2);
    margin-bottom: 14px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-bottom: 18px;
}

.footer-nav a {
    font-size: 0.8rem;
    color: var(--ink-3);
    text-decoration: none;
    transition: color var(--ease);
}

.footer-nav a:hover {
    color: var(--accent-deep);
}

.legal-block {
    font-size: 0.74rem;
    color: var(--ink-4);
    line-height: 2;
    margin-bottom: 12px;
}

.legal-block a {
    color: var(--ink-4);
    text-decoration: none;
}

.legal-block a:hover {
    color: var(--ink-3);
}

.site-mark {
    color: var(--accent-deep) !important;
    font-weight: 700;
}

.divider {
    margin: 0 8px;
    color: #d1d5db;
}

.secure-tip {
    margin-top: 8px;
    display: inline-block;
    padding: 8px 14px;
    background: var(--accent-soft);
    border-radius: 8px;
    color: var(--ink-2);
    font-size: 0.72rem;
    line-height: 1.7;
}

.secure-tip strong {
    color: var(--ink);
}

.copy-line {
    font-size: 0.7rem;
    color: #b0b5bf;
}

.copy-line a {
    color: var(--accent-deep);
    text-decoration: none;
    font-weight: 600;
}

.copy-line a:hover {
    text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .layout-shell {
        grid-template-columns: 1fr;
    }

    .sku-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .topbar-inner {
        height: 58px;
        padding: 0 16px;
    }

    .top-nav,
    .auth-tag {
        display: none;
    }

    .brand-text h1 {
        font-size: 0.95rem;
    }

    .page-main {
        padding: 18px 14px 36px;
    }

    .panel-block {
        padding: 22px 18px 26px;
        border-radius: 14px;
    }

    .announce-inner {
        padding: 10px 14px;
    }

    .announce-inner p {
        font-size: 0.74rem;
    }

    .sku-grid {
        gap: 10px;
    }

    .sku-card {
        padding: 18px 8px 14px;
    }

    .sku-coins {
        font-size: 0.86rem;
    }

    .coin-icon {
        width: 16px;
        height: 16px;
    }

    .sku-bonus {
        font-size: 0.68rem;
    }

    .channel-opt {
        padding: 13px 8px;
        font-size: 0.84rem;
    }

    .channel-icon {
        width: 24px;
        height: 24px;
    }

    .guide-box {
        padding: 18px 16px;
    }
}
