/* ==========================================================================
   ALLSCEY — storefront stylesheet
   Theme: "Trust & Ledger" — navy ink, brass gold, warm paper.
   Drafted for a corporate-secretarial brand: document rules, stamped accents,
   tabular figures for money. Bilingual (zh default / en).
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
    --ink: #0f1b33;
    --ink-2: #1b2a4a;
    --ink-3: #33436b;
    --gold: #a8802c;
    --gold-2: #c39b3f;
    --gold-soft: #ecdfbf;
    --gold-wash: #f6efdd;
    --paper: #f7f5ef;
    --paper-2: #efeadd;
    --card: #ffffff;
    --line: #e2dccd;
    --line-2: #d3cab4;
    --muted: #5d6883;
    --muted-2: #7b849b;
    --ok: #1c6b46;
    --ok-wash: #e6f2ea;
    --warn: #8a5a12;
    --warn-wash: #fbf0d8;
    --err: #97302a;
    --err-wash: #fbe7e4;
    --info: #1d4e79;
    --info-wash: #e7f0f8;

    --font-display: 'Fraunces', 'Songti SC', 'Noto Serif SC', Georgia, serif;
    --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI',
        'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(15, 27, 51, .05), 0 2px 8px rgba(15, 27, 51, .04);
    --shadow-md: 0 10px 30px -12px rgba(15, 27, 51, .18);
    --shadow-lg: 0 24px 60px -24px rgba(15, 27, 51, .28);
    --wrap: 1180px;
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background:
        linear-gradient(180deg, #fbfaf6 0%, var(--paper) 42%, var(--paper) 100%);
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

::selection { background: var(--gold-soft); color: var(--ink); }

/* ---------- 2. Layout ---------- */
.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: linear-gradient(180deg, rgba(236, 223, 191, .28), rgba(236, 223, 191, 0)); }

.section-head { max-width: 720px; margin: 0 0 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .lede { color: var(--muted); }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 48px;
    align-items: center;
}

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -.01em;
    margin: 0 0 14px;
    color: var(--ink);
}
h1 { font-size: clamp(34px, 4.6vw, 54px); }
h2 { font-size: clamp(26px, 3.1vw, 38px); }
h3 { font-size: 20px; }
h4 { font-size: 17px; }

p { margin: 0 0 16px; }
.lede { font-size: 17.5px; line-height: 1.7; color: var(--ink-2); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 14px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold);
}
.eyebrow .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--gold); box-shadow: 0 0 0 4px rgba(168, 128, 44, .14);
}

.ru { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }

.hr-rule {
    height: 1px; border: 0; margin: 0;
    background: linear-gradient(90deg, transparent, var(--line-2) 12%, var(--line-2) 88%, transparent);
}

/* ---------- 4. Buttons, chips, badges ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 650;
    line-height: 1;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease,
        border-color .16s ease, color .16s ease;
    white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: linear-gradient(180deg, var(--gold-2), var(--gold));
    color: #fff;
    box-shadow: 0 10px 22px -12px rgba(168, 128, 44, .8);
}
.btn-primary:hover { box-shadow: 0 14px 26px -12px rgba(168, 128, 44, .9); }

.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: #fff; border-color: var(--ink-3); }

.btn-line { background: #fff; color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn-line:hover { border-color: var(--gold); color: var(--gold); }

.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .55; pointer-events: none; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    background: #fff;
    font-size: 12.5px;
    font-weight: 650;
    color: var(--ink-2);
}
.chip-gold { border-color: var(--gold-soft); background: var(--gold-wash); color: var(--gold); }
.chip-ink { border-color: var(--ink); background: var(--ink); color: #fff; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
}
.badge-gold { background: var(--gold-wash); color: var(--gold); border: 1px solid var(--gold-soft); }
.badge-ink { background: #eef1f7; color: var(--ink-2); border: 1px solid #dbe1ee; }

.status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    border: 1px solid transparent;
}
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pending { background: var(--warn-wash); color: var(--warn); border-color: #efdcb4; }
.status-paid { background: var(--info-wash); color: var(--info); border-color: #cfe0ef; }
.status-processing { background: var(--gold-wash); color: var(--gold); border-color: var(--gold-soft); }
.status-completed { background: var(--ok-wash); color: var(--ok); border-color: #cbe4d5; }
.status-cancelled { background: #f2f2f4; color: var(--muted); border-color: #e3e3e8; }

/* ---------- 5. Header ---------- */
.site-head {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(251, 250, 246, .88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.head-inner {
    display: flex;
    align-items: center;
    gap: 26px;
    min-height: 72px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { width: 34px; height: 34px; flex: 0 0 auto; }
.brand-text {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--ink);
}
.brand-text span { color: var(--gold); font-weight: 500; letter-spacing: .01em; }
.brand-sub {
    display: block;
    font-family: var(--font-body);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-top: 1px;
}

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 14px; }
.nav-link {
    padding: 9px 13px;
    border-radius: 9px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink-2);
    transition: background .15s ease, color .15s ease;
}
.nav-link:hover { background: rgba(15, 27, 51, .05); }
.nav-link.is-active { color: var(--gold); background: var(--gold-wash); }

.head-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.head-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 650;
    color: var(--ink-2);
    padding: 8px 10px;
    border-radius: 9px;
}
.head-link:hover { background: rgba(15, 27, 51, .05); }
.avatar-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--ink);
    color: #f4e7c6;
    font-size: 12.5px;
    font-weight: 700;
}
.lang-switch {
    padding: 7px 12px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 650;
    color: var(--ink-2);
    background: #fff;
}
.lang-switch:hover { border-color: var(--gold); color: var(--gold); }

.nav-toggle {
    display: none;
    width: 42px; height: 42px;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
}
.nav-toggle span {
    display: block;
    width: 18px; height: 2px;
    margin: 4px auto;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    padding: 10px 16px;
    background: var(--ink);
    color: #fff;
    border-radius: 0 0 10px 0;
    z-index: 90;
}
.skip-link:focus { left: 0; }

/* ---------- 6. Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 420px at 88% -10%, rgba(168, 128, 44, .28), transparent 62%),
        radial-gradient(700px 380px at -6% 108%, rgba(60, 92, 160, .25), transparent 60%),
        linear-gradient(160deg, #0d1730 0%, #12203f 52%, #16264a 100%);
    color: #eef1f8;
}
.hero::after {
    /* ledger rules */
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(180deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 56px);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .8), transparent 88%);
    pointer-events: none;
}
.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: 54px;
    align-items: center;
    padding: 92px 0 96px;
}
.hero h1 { color: #fdfbf5; }
.hero h1 em {
    font-style: normal;
    color: var(--gold-2);
    box-shadow: inset 0 -.28em 0 rgba(195, 155, 63, .18);
}
.hero .lede { color: #c3cbdd; max-width: 54ch; }
.hero .eyebrow { color: var(--gold-2); }
.hero .eyebrow .dot { background: var(--gold-2); }

.hero-points { list-style: none; margin: 26px 0 30px; padding: 0; display: grid; gap: 12px; }
.hero-points li {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    font-size: 15.5px;
    color: #d7ddea;
}
.hero-points .tick {
    flex: 0 0 auto;
    width: 20px; height: 20px;
    margin-top: 2px;
    border-radius: 50%;
    background: rgba(195, 155, 63, .18);
    color: var(--gold-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { margin: 18px 0 0; font-size: 13.5px; color: #9aa6c0; }

/* Ledger card (hero right) */
.ledger {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03));
    border: 1px solid rgba(238, 241, 248, .18);
    border-radius: var(--r-lg);
    padding: 26px 26px 22px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(6px);
}
.ledger::before {
    content: '';
    position: absolute;
    top: -1px; left: 26px; right: 26px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
    border-radius: 3px;
}
.ledger-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px dashed rgba(238, 241, 248, .22);
}
.ledger-title { font-family: var(--font-display); font-size: 17px; color: #fdfbf5; }
.ledger-seal {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold-2);
    border: 1px solid rgba(195, 155, 63, .45);
    border-radius: 6px;
    padding: 3px 8px;
}
.ledger-rows { list-style: none; margin: 6px 0 0; padding: 0; }
.ledger-rows li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(238, 241, 248, .1);
    font-size: 14.5px;
    color: #dfe4ef;
}
.ledger-rows li:last-child { border-bottom: 0; }
.ledger-rows .k { color: #a7b1c8; }
.ledger-figures {
    display: flex;
    gap: 26px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed rgba(238, 241, 248, .22);
}
.ledger-fig { display: grid; gap: 3px; }
.ledger-fig b { font-family: var(--font-display); font-size: 24px; color: #fdfbf5; }
.ledger-fig span { font-size: 12.5px; color: #9aa6c0; }

/* ---------- 7. Stats band ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
}
.stat { background: #fff; padding: 24px 22px; }
.stat b {
    display: block;
    font-family: var(--font-display);
    font-size: 30px;
    line-height: 1.1;
    color: var(--ink);
}
.stat span { font-size: 13.5px; color: var(--muted); }

.trust-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 18px 0 0;
}
.trust-strip .chip { background: rgba(255, 255, 255, .08); border-color: rgba(238, 241, 248, .22); color: #dfe4ef; }

/* ---------- 8. Cards ---------- */
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 26px;
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-2); }

.service-card { display: flex; flex-direction: column; gap: 14px; }
.service-icon {
    width: 46px; height: 46px;
    border-radius: 13px;
    background: var(--gold-wash);
    border: 1px solid var(--gold-soft);
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.service-icon svg { width: 22px; height: 22px; }
.service-card p { color: var(--muted); margin: 0; }
.service-card .btn { align-self: flex-start; margin-top: 4px; }

.value-card { display: grid; gap: 10px; }
.value-card .num {
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: .12em;
    color: var(--gold);
}
.value-card p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* Package card */
.pack-card { display: flex; flex-direction: column; gap: 16px; position: relative; }
.pack-card.is-featured { border-color: var(--gold-soft); box-shadow: 0 16px 40px -22px rgba(168, 128, 44, .5); }
.pack-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.pack-region { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.pack-card h3 { margin: 0; font-size: 20px; }
.pack-card .tagline { color: var(--muted); font-size: 14.5px; margin: 0; }
.pack-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 14px 0 0;
    border-top: 1px dashed var(--line-2);
}
.pack-price .usd {
    font-family: var(--font-display);
    font-size: 27px;
    font-weight: 600;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.pack-price .cny { color: var(--muted); font-size: 14.5px; font-variant-numeric: tabular-nums; }
.pack-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.pack-foot { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 4px; }
.pack-foot .btn { flex: 1 1 auto; }

.card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}
.pack-card .btn, .pack-card a.chip { position: relative; z-index: 2; }

/* ---------- 9. Process steps ---------- */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
    position: relative;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 20px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: 0; }
.step::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 1px solid var(--gold-soft);
    background: var(--gold-wash);
}
.step h3 { margin: 2px 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }

.timeline-note {
    margin-top: 26px;
    padding: 16px 18px;
    border-left: 3px solid var(--gold);
    background: var(--gold-wash);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    font-size: 14px;
    color: var(--ink-2);
}

.material-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.material-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    font-size: 14.5px;
}
.material-list .n {
    flex: 0 0 auto;
    width: 22px; height: 22px;
    border-radius: 6px;
    background: var(--ink);
    color: #f4e7c6;
    font-size: 11.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

/* ---------- 10. FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
}
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 22px;
    cursor: pointer;
    font-weight: 650;
    font-size: 15.5px;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    flex: 0 0 auto;
    width: 26px; height: 26px;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    transition: transform .2s ease, background .2s ease;
}
.faq-item[open] summary::after { content: '−'; background: var(--gold-wash); transform: rotate(180deg); }
.faq-item .faq-body { padding: 0 22px 20px; color: var(--muted); font-size: 14.8px; }

/* ---------- 11. CTA band ---------- */
.cta-band {
    background:
        radial-gradient(620px 300px at 12% 0%, rgba(168, 128, 44, .22), transparent 60%),
        linear-gradient(140deg, #101c37, #17264a);
    color: #eef1f8;
}
.cta-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) auto;
    gap: 34px;
    align-items: center;
    padding: 62px 24px;
}
.cta-band h2 { color: #fdfbf5; margin-bottom: 10px; }
.cta-band .lede { color: #c3cbdd; margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- 12. Footer ---------- */
.site-foot {
    background: #0c1529;
    color: #aeb7cc;
    padding: 66px 0 30px;
    font-size: 14px;
}
.foot-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, .8fr)) minmax(0, 1.1fr);
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(238, 241, 248, .12);
}
.site-foot .brand-text { color: #fdfbf5; }
.foot-blurb { margin: 16px 0 14px; max-width: 40ch; }
.foot-meta { color: #8593ad; font-size: 13px; line-height: 1.7; }
.foot-col { display: grid; gap: 10px; align-content: start; }
.foot-col h3 {
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #fdfbf5;
    margin: 0 0 6px;
}
.foot-col a { color: #aeb7cc; }
.foot-col a:hover { color: #f4e7c6; }
.foot-mail { color: #f4e7c6; font-weight: 650; }
.foot-note { color: #8593ad; font-size: 13px; margin: 4px 0 8px; }
.foot-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    align-items: center;
    justify-content: space-between;
    padding-top: 22px;
    color: #8593ad;
    font-size: 13px;
}
.foot-disc { max-width: 78ch; color: #6f7d99; }
.foot-disc a { color: #9fb0cc; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- 13. Flash messages ---------- */
.flash-wrap { margin: 20px auto 0; display: grid; gap: 10px; }
.flash {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--r-sm);
    border: 1px solid;
    font-size: 14.5px;
}
.flash-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; margin-top: 7px; flex: 0 0 auto; }
.flash-ok { background: var(--ok-wash); border-color: #cbe4d5; color: var(--ok); }
.flash-info { background: var(--info-wash); border-color: #cfe0ef; color: var(--info); }
.flash-error { background: var(--err-wash); border-color: #f0cfcb; color: var(--err); }
.flash-warn { background: var(--warn-wash); border-color: #efdcb4; color: var(--warn); }

/* ---------- 14. Forms ---------- */
.form-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 34px;
    box-shadow: var(--shadow-md);
}
.form-grid { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.field { display: grid; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 650; color: var(--ink-2); }
.field .hint { font-size: 12.5px; color: var(--muted-2); }
.field .req { color: var(--gold); }

.input, .select, .textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    background: #fff;
    font: inherit;
    font-size: 15px;
    color: var(--ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(168, 128, 44, .15);
}
.textarea { min-height: 120px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%235d6883' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 38px; }
.input.has-error, .select.has-error, .textarea.has-error { border-color: var(--err); }
.field-error { font-size: 13px; color: var(--err); }
.field-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; }
.field-check input { margin-top: 4px; accent-color: var(--gold); }

.form-note { font-size: 13px; color: var(--muted); }
.form-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 6px; }

.auth-wrap { max-width: 560px; margin: 0 auto; }
.auth-alt { margin: 18px 0 0; text-align: center; font-size: 14.5px; color: var(--muted); }
.auth-alt a { color: var(--gold); font-weight: 650; }

/* ---------- 15. Tables & receipts ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.data th {
    text-align: left;
    padding: 13px 16px;
    background: #fbfaf6;
    border-bottom: 1px solid var(--line);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}
table.data td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: #fcfbf7; }
table.data .num { font-variant-numeric: tabular-nums; white-space: nowrap; }

.receipt {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.receipt-head {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 22px 28px;
    background: linear-gradient(140deg, #101c37, #17264a);
    color: #eef1f8;
}
.receipt-head h1, .receipt-head h2 { margin: 0; color: #fdfbf5; font-size: 22px; }
.receipt-head .order-no { font-family: var(--font-mono); font-size: 13.5px; color: var(--gold-2); letter-spacing: .06em; }
.receipt-body { padding: 26px 28px; display: grid; gap: 20px; }
.kv { display: grid; gap: 0; }
.kv-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    justify-content: space-between;
    padding: 11px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 14.5px;
}
.kv-row:last-child { border-bottom: 0; }
.kv-row .k { color: var(--muted); }
.kv-row .v { font-weight: 650; text-align: right; }
.receipt-total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px; }
.receipt-total .amt { font-family: var(--font-display); font-size: 30px; }

.pay-box {
    padding: 20px 22px;
    border: 1px dashed var(--gold-soft);
    background: var(--gold-wash);
    border-radius: var(--r-md);
    font-size: 14.5px;
    color: var(--ink-2);
    white-space: pre-line;
}
.pay-box h3 { margin: 0 0 10px; font-size: 16px; }

/* ---------- 16. Filter bar & pagination ---------- */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 16px 0 26px;
}
.filter-bar .spacer { flex: 1 1 auto; }
.filter-bar .count { font-size: 13.5px; color: var(--muted); }
.pagination { display: flex; gap: 8px; justify-content: center; padding-top: 34px; flex-wrap: wrap; }
.pagination a, .pagination span {
    min-width: 38px;
    padding: 8px 12px;
    text-align: center;
    border: 1px solid var(--line-2);
    border-radius: 9px;
    font-size: 14px;
    background: #fff;
}
.pagination .is-current { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; }

/* ---------- 17. Page header (inner pages) ---------- */
.page-head {
    background:
        radial-gradient(560px 260px at 92% -30%, rgba(168, 128, 44, .2), transparent 60%),
        linear-gradient(150deg, #101c37, #16254a);
    color: #eef1f8;
    padding: 62px 0 58px;
}
.page-head h1 { color: #fdfbf5; margin-bottom: 10px; }
.page-head .lede { color: #c3cbdd; max-width: 68ch; margin: 0; }
.page-head .eyebrow { color: var(--gold-2); }
.page-head .eyebrow .dot { background: var(--gold-2); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: #9aa6c0; margin-bottom: 16px; }
.crumbs a:hover { color: #f4e7c6; }
.crumbs .sep { opacity: .5; }

/* ---------- 18. Prose (terms / privacy) ---------- */
.prose { max-width: 78ch; }
.prose h2 { margin-top: 40px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); font-size: 15.5px; }
.prose .updated { color: var(--muted); font-size: 13.5px; }

.side-nav { display: grid; gap: 4px; align-content: start; position: sticky; top: 96px; }
.side-nav a {
    padding: 9px 13px;
    border-radius: 9px;
    font-size: 14.5px;
    color: var(--ink-2);
    border: 1px solid transparent;
}
.side-nav a:hover { background: #fff; border-color: var(--line); }
.side-nav a.is-active { background: var(--ink); color: #fff; }

/* ---------- 19. Package detail ---------- */
.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, .95fr);
    gap: 44px;
    align-items: start;
}
.detail-aside { position: sticky; top: 96px; display: grid; gap: 18px; }
.price-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 26px;
    box-shadow: var(--shadow-md);
}
.price-panel .usd {
    font-family: var(--font-display);
    font-size: 38px;
    line-height: 1.05;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.price-panel .cny { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.price-panel .note { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.price-panel .actions { display: grid; gap: 10px; margin-top: 18px; }

.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.feature-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.feature-list .tick {
    flex: 0 0 auto;
    width: 20px; height: 20px;
    margin-top: 2px;
    border-radius: 50%;
    background: var(--gold-wash);
    border: 1px solid var(--gold-soft);
    color: var(--gold);
    font-size: 11.5px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mini-card {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    transition: border-color .15s ease, transform .15s ease;
}
.mini-card:hover { border-color: var(--gold); transform: translateX(2px); }
.mini-card .t { font-weight: 650; font-size: 14.5px; }
.mini-card .p { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }

/* ---------- 20. Account ---------- */
.account-grid {
    display: grid;
    grid-template-columns: minmax(0, .78fr) minmax(0, 1.6fr);
    gap: 32px;
    align-items: start;
}
.account-side { display: grid; gap: 16px; position: sticky; top: 96px; }
.account-hello { display: grid; gap: 4px; }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stat-box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 18px;
}
.stat-box b { display: block; font-family: var(--font-display); font-size: 24px; line-height: 1.15; }
.stat-box span { font-size: 13px; color: var(--muted); }

.empty-state {
    padding: 46px 26px;
    text-align: center;
    background: #fff;
    border: 1px dashed var(--line-2);
    border-radius: var(--r-md);
    color: var(--muted);
}
.empty-state h3 { color: var(--ink); }

/* ---------- 21. Motion & reveal ---------- */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .btn:hover { transform: none; }
}

/* ---------- 22. Responsive ---------- */
@media (max-width: 1080px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 66px 0 72px; }
    .detail-grid { grid-template-columns: 1fr; }
    .detail-aside { position: static; }
    .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .account-grid { grid-template-columns: 1fr; }
    .account-side { position: static; }
    .split { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 900px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cta-inner { grid-template-columns: 1fr; padding: 52px 24px; }

    .nav-toggle { display: block; }
    .main-nav {
        position: fixed;
        inset: 72px 0 auto;
        display: grid;
        gap: 2px;
        margin: 0;
        padding: 14px 20px 20px;
        background: rgba(251, 250, 246, .98);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-md);
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: transform .2s ease, opacity .2s ease;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
    }
    .main-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
    .nav-link { padding: 13px 14px; font-size: 16px; }
    .head-actions { gap: 8px; }
    .head-link .head-link-txt { display: none; }
}

@media (max-width: 640px) {
    .section { padding: 60px 0; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .form-card { padding: 24px 20px; border-radius: var(--r-md); }
    .foot-grid { grid-template-columns: 1fr; gap: 30px; }
    .receipt-head, .receipt-body { padding-left: 20px; padding-right: 20px; }
    .stat-row { grid-template-columns: 1fr; }
    .page-head { padding: 44px 0 42px; }
    .hero-inner { padding: 52px 0 58px; }
    .step { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
    .step::before { width: 38px; height: 38px; font-size: 12px; }
    .head-actions .btn { display: none; }
}
