/* ══ Taulumi brand color system — deep cognac, fully accessible ═════════
   Primary #6B4226: contrast 7.4:1 on white (WCAG AAA) — premium mahogany
   Muted text override: #6B5C52 — warm, readable, 5.8:1 (AA+)
   All tints derived from same RGB base for absolute coherence.
═══════════════════════════════════════════════════════════════════════════ */
:root {
    /* Core brand: deep cognac — AAA accessible, editorial luxury */
    --brand-gold:        #6B4226;                   /* 7.4:1 contrast on white */
    --brand-gold-dark:   #3D2210;                   /* mahogany deep */
    --brand-gold-light:  rgba(107, 66, 38, 0.07);   /* barely-there surface tint */
    --brand-gold-border: rgba(107, 66, 38, 0.20);   /* visible, not heavy */

    /* Extended scale */
    --gold-glow: rgba(107, 66, 38, 0.04);
    --gold-dim:  rgba(107, 66, 38, 0.55);           /* used for muted decorative hits */

    /* Text readability — override brand-tokens muted gray with warm accessible */
    --brand-text-muted:  #6B5C52;  /* 5.8:1 on white (AA+), warm not clinical */
    --txt-sub:           #6B5C52;

    /* Aliases */
    --amber:        #6B4226;
    --amber-light:  rgba(107, 66, 38, 0.07);
    --amber-border: rgba(107, 66, 38, 0.20);

    /* Result section default accent */
    --accent: #6B4226;
}

/* ════════════════════════════════════════════════════════
   四柱八字 · 浅色奢华版 — 极致转化设计
   Ivory Luxury Edition — Premium Conversion UI
════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Noto+Serif+SC:wght@300;400;500;600;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --bg: var(--brand-bg);
    --bg-2: var(--brand-gold-light);
    --sur: var(--brand-bg-white);
    --sur-2: var(--brand-gold-light);
    --sur-3: var(--brand-bg-stone);
    --sur-hov: var(--brand-gold-light);

    --bd: var(--brand-border);
    --bd-2: var(--brand-border-mid);
    --bd-dark: var(--brand-text);
    --bd-gold: var(--brand-gold-border);

    --txt: var(--brand-text);
    --txt-main: var(--brand-text);
    --txt-sub: var(--brand-text-muted);

    --sans: var(--brand-font);
    --serif-disp: 'Cormorant Garamond', 'Noto Serif SC', serif;
    --serif-cn: 'Noto Serif SC', serif;

    --gold: var(--brand-gold);
    --gold-bright: var(--brand-gold-dark);
    --gold-dim: rgba(107, 66, 38, 0.55);
    --gold-glow: rgba(212, 170, 106, 0.05);

    --ruby: #A04848;
    --jade: #4A7D63;
    --ink: var(--brand-text);

    --radius: var(--brand-radius-sm);

    --shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.03);
    --float: 0 0 0 1px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.04);
    --float-up: 0 0 0 1px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.05), 0 8px 24px rgba(0, 0, 0, 0.06);

    --lite-gap: 12px;
    --lite-section-gap: 56px;
    --shadow-card: var(--float);
    --shadow-card-hover: var(--float-up);
}

/* ═══ SCROLLBAR ═══ */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.10);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.18);
}

body {
    background: var(--bg);
    font-family: var(--sans);
    color: var(--txt-main);
    line-height: 1.75;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle grain texture */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.012;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px 128px;
}

#app {
    position: relative;
    z-index: 1;
}

/* ── Breadcrumb ── */
.breadcrumb-bar {
    max-width: 640px;
    margin: 0 auto;
    padding: 10px 12px 0;
}

.breadcrumb-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--txt-sub);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.breadcrumb-link:hover {
    color: var(--gold);
}

h1,
h2,
h3,
.serif {
    font-family: var(--serif-disp);
    font-weight: 600;
    color: var(--txt);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
select {
    font-family: inherit;
    outline: none;
}

.center-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ═══════════════════════════════════════════════════════
   PAGE HEADER — Luxury Hero
═══════════════════════════════════════════════════════ */
.page-header {
    background: transparent;
    text-align: left;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Radial glow — removed for clean look */
.page-header::before {
    display: none;
}

/* Top gold hairline */
.page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(163, 130, 90, 0.25) 50%, transparent 100%);
}

.page-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--gold);
    margin-bottom: 14px;
    text-transform: uppercase;
    font-family: var(--sans);
    font-style: normal;
    animation: fadeUp 0.8s ease both;
}

.page-title {
    font-size: clamp(24px, 5vw, 32px);
    letter-spacing: 8px;
    margin-right: -8px;
    margin-bottom: 8px;
    font-family: var(--serif-cn);
    font-weight: 600;
    color: var(--txt);
    -webkit-text-fill-color: var(--txt);
    background: none;
    animation: fadeUp 0.9s ease both;
}

@keyframes shimmerText {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 300% center;
    }
}

.page-sub {
    font-size: 13px;
    color: var(--txt-sub);
    letter-spacing: 4px;
    font-family: var(--sans);
    animation: fadeUp 1s ease both;
}

/* ── Social proof counter ── */
.social-proof-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    animation: fadeUp 1.1s ease both;
}

.social-proof-count {
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 700;
    color: var(--txt);
}

.social-proof-label {
    font-size: 13px;
    color: var(--txt-sub);
    font-family: var(--sans);
    letter-spacing: 0.5px;
}

.social-proof-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--bd-gold);
    margin: 0 4px;
}

.social-proof-stars {
    display: flex;
    gap: 3px;
    color: var(--gold);
    align-items: center;
}

/* ── Trust bar ── */
.trust-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 0;
}

/* ── Trust bar (表单内版) ── */
.trust-bar-below {
    margin-top: 20px;
    margin-bottom: 0;
    padding: 14px 0 0;
    border-top: none;
    animation: none;
}

@media (max-width: 768px) {
    .trust-bar-below {
        gap: 4px 0;
        padding: 10px 0 0;
    }

    .trust-bar-below .trust-sep {
        display: none;
    }
}

.trust-item {
    font-size: 12px;
    color: var(--txt-sub);
    font-family: var(--sans);
    letter-spacing: 0.8px;
    padding: 0 16px;
    white-space: nowrap;
}

.trust-sep {
    font-size: 12px;
    color: var(--bd);
    align-self: center;
}

/* ── Form card ── */
.form-card {
    background: var(--sur);
    border-radius: var(--radius);
    padding: 20px 24px 14px;
    margin-top: 0;
    border: none;
    position: relative;
    border: var(--card-border);
    animation: fadeUp 1.1s ease both;
    text-align: left;
}

.form-card::before {
    display: none;
}

/* ── Calendar toggle ── */
.form-cal-toggle {
    display: flex;
    gap: 0;
    width: fit-content;
    background: var(--sur-2);
    border: none;
    border-radius: var(--radius);
    padding: 3px;
    margin-bottom: 28px;
}

.form-cal-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 20px;
    border-radius: var(--brand-radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--txt-sub);
    font-family: var(--sans);
    transition: all 0.2s;
    cursor: pointer;
    white-space: nowrap;
}

.form-cal-btn.active {
    background: var(--sur);
    color: var(--txt);
    font-weight: 700;
    border: var(--card-border);
}

.form-cal-btn:not(.active):hover {
    color: var(--txt);
    background: var(--sur-2);
}

.form-cal-icon {
    font-size: 14px;
}

/* ── Form section ── */
.form-section {
    margin-bottom: 14px;
}

.form-section:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--txt-sub);
    font-family: var(--sans);
    margin-bottom: 12px;
}

/* ── Location row ── */
.form-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.form-field-v2 {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-field-location {
    flex: 1;
    min-width: 180px;
}

.form-label-v2 {
    font-size: 12px;
    font-weight: 600;
    color: var(--txt-sub);
    font-family: var(--sans);
    letter-spacing: 0.3px;
}

.form-input-v2 {
    padding: 14px 16px;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    color: var(--txt);
    background: var(--sur-2);
    transition: box-shadow 0.2s ease;
    width: 100%;
    font-family: inherit;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none;
}

.form-input-v2:focus {
    background: var(--sur);
    border-color: var(--brand-border-focus);
    box-shadow: none;
}

/* Select arrow */
select.form-input-v2 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23A8783C' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-color: var(--sur);
    padding-right: 36px;
    cursor: pointer;
}

/* ── Date + Time row ── */
.form-datetime-row {
    display: flex;
    align-items: stretch;
    background: var(--sur);
    border: none;
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    box-shadow: inset 0 0 0 1px var(--bd-2);
}

.form-datetime-row:focus-within {
    box-shadow: inset 0 0 0 1.5px rgba(0,0,0,0.4), 0 0 0 3px rgba(0,0,0,0.04);
}

.form-datetime-group {
    display: flex;
    align-items: center;
    flex: 1;
}

.form-date-group {
    flex: 3;
}

.form-time-group {
    flex: 2;
}

.form-datetime-divider {
    width: 1px;
    background: var(--bd);
    margin: 7px 0;
    flex-shrink: 0;
}

.form-datetime-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 2px;
    position: relative;
}

/* All number inputs inside the datetime row */
.form-datetime-item input.form-num,
.form-datetime-item .form-num {
    width: 100%;
    border: none;
    background: transparent;
    font-family: var(--serif-disp);
    font-size: 32px;
    font-weight: 600;
    color: var(--txt);
    text-align: center;
    padding: 0;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

.form-datetime-item input.form-num::-webkit-inner-spin-button,
.form-datetime-item .form-num::-webkit-inner-spin-button,
.form-datetime-item input.form-num::-webkit-outer-spin-button,
.form-datetime-item .form-num::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.form-datetime-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--txt-sub);
    font-family: var(--sans);
    margin-top: 0;
    pointer-events: none;
    flex-shrink: 0;
}

.form-datetime-sep {
    font-size: 17px;
    color: var(--bd);
    flex-shrink: 0;
    font-weight: 400;
    padding-bottom: 8px;
    align-self: flex-end;
}

.form-time-colon {
    font-size: 32px;
    font-family: var(--serif-disp);
    font-weight: 300;
    padding-bottom: 8px;
    color: rgba(160, 140, 110, 0.3);
}

/* ── Gender ── */
.form-section-gender {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 24px;
    margin-bottom: 32px;
}

.form-section-gender .form-section-label {
    margin-bottom: 0;
    flex-shrink: 0;
}

.form-gender-row {
    display: flex;
    gap: 10px;
}

.form-gender-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 24px;
    border: none;
    border-radius: var(--radius);
    background: var(--sur-2);
    color: var(--txt-sub);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    box-shadow: none;
}

.form-gender-btn:hover {
    color: var(--txt);
    border: var(--card-border);
}

.form-gender-btn.active {
    background: var(--sur);
    color: var(--txt);
    border-color: var(--brand-gold-border);
}

.form-gender-symbol {
    font-size: 18px;
    font-weight: 600;
    font-family: var(--serif-cn);
}

.form-gender-text {
    font-size: 14px;
    font-weight: 500;
    font-family: var(--sans);
    letter-spacing: 0.5px;
}

/* ── Submit button — GOLD SHIMMER ── */
.calc-btn {
    width: 100%;
    margin-top: 0;
    padding: 16px;
    background: var(--ink);
    color: var(--brand-bg);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 4px;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    font-family: var(--sans);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
}

.calc-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.06) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.calc-btn:hover {
    background: var(--brand-text);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.calc-btn:hover::before {
    transform: translateX(100%);
}

.calc-btn:active {
    transform: translateY(0);
}

/* Micro social proof under button */
.btn-proof {
    margin-top: 12px;
    font-size: 12px;
    color: var(--txt-sub);
    font-family: var(--sans);
    text-align: center;
    letter-spacing: 0.3px;
}

.credibility-inline {
    margin-top: 14px;
    font-size: 10.5px;
    color: var(--brand-text-hint);
    text-align: center;
    line-height: 1.7;
    letter-spacing: 0.2px;
}

.tst-info {
    margin-top: 14px;
    font-size: 13px;
    color: var(--txt-sub);
    font-family: var(--sans);
}

/* Legacy form compat */
.form-grid {
    display: contents;
}

.form-field {
    display: contents;
}

.form-input {
    padding: 12px 16px;
    border: 1px solid var(--bd);
    border-radius: 8px;
    font-size: 15px;
    color: var(--txt);
    background: var(--bg-2);
    transition: 0.2s;
    width: 100%;
    outline: none;
}

.form-input:focus {
    border-color: var(--gold-dim);
    box-shadow: 0 0 0 3px rgba(168, 120, 60, 0.10);
}

.form-input.num {
    font-family: var(--serif-disp);
    font-weight: 600;
    font-size: 19px;
    text-align: center;
}

.gender-wrap {
    display: flex;
    background: var(--bg-2);
    border-radius: 8px;
    border: 1px solid var(--bd);
}

.gender-btn {
    flex: 1;
    padding: 10px;
    font-size: 15px;
    color: var(--txt-sub);
    font-weight: 500;
    transition: 0.2s;
    border-radius: 7px;
}

.gender-btn.active {
    background: var(--sur-3);
    color: var(--gold);
    border: 1px solid var(--bd-gold);
}

/* ═══════════════════════════════════════════════════════
   STICKY TABS
═══════════════════════════════════════════════════════ */
.sticky-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(250, 250, 248, 0.88);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--bd);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.03);
}

.tab-meta {
    padding: 14px 0 6px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    color: var(--txt-main);
    font-family: var(--serif-cn);
}

.tab-row {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    justify-content: center;
    gap: 0;
}

.tab-row::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--txt-sub);
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
    letter-spacing: 1.5px;
    font-family: var(--sans);
    text-transform: uppercase;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.tab-btn:hover,
.tab-btn:focus {
    color: var(--txt);
}

.tab-btn.active {
    color: var(--txt);
    border-bottom-color: var(--gold);
    font-weight: 600;
}

/* Mobile: hide icons to save space */
@media (max-width: 480px) {

    /* ── Mobile: compact header, form-first ── */
    .page-header {
        padding: 0;
    }

    .page-header::after {
        display: none;
    }

    .social-proof-bar {
        margin-top: 10px;
    }

    .form-card {
        padding: 0px;
        margin-top: 8px;
    }

    .page-header .center-wrap {
        padding: 0 !important;
    }

    .form-card {
        padding: 14px 12px !important;
        border-radius: 12px !important;
    }

    .breadcrumb-bar {
        padding: 10px !important;
    }

    /* ── Datetime row: single row on mobile ──────────────────────────────
       Available width at 375px = 375 - 2×10px (form-card) = 355px.
       flex:3 date = 213px → 3 cells × ~64px each (after 2 seps)
       flex:2 time = 142px → 2 cells × ~62px each (after colon)
       Font 17px: "1990" ≈ 4×10px = 40px, fits in 60px content area.
    ── */
    .form-datetime-row {
        flex-direction: row;
    }

    /* Groups: keep desktop flex-ratio, add min-width:0 to prevent blowout */
    .form-date-group {
        flex: 3;
        min-width: 0;
        border-bottom: none;
    }

    .form-time-group {
        flex: 2;
        min-width: 0;
        justify-content: center;
    }

    /* Divider visible — it separates date from time visually */
    .form-datetime-divider {
        display: block;
        width: 1px;
        margin: 8px 0;
    }

    /* Each cell: minimal horizontal padding, min-width:0 prevents input overflow */
    .form-datetime-item {
        padding: 6px 1px 5px;
        min-width: 0;
    }

    /* Number inputs: 20px — slightly larger, still fits all cells */
    .form-datetime-item input.form-num,
    .form-datetime-item .form-num {
        font-size: 20px;
        min-width: 0;
    }

    /* Label under each number */
    .form-datetime-label {
        font-size: 10px;
        letter-spacing: 1px;
        margin-top: 2px;
    }

    /* Separators (·) between date parts */
    .form-datetime-sep {
        font-size: 13px;
        padding-bottom: 10px;
        flex-shrink: 0;
    }

    /* Time colon (:) matches input font */
    .form-time-colon {
        font-size: 20px;
        padding-bottom: 14px;
        flex-shrink: 0;
    }

    /* Time items don't need a fixed width — let them fill proportionally */
    .form-time-group .form-datetime-item {
        flex: 1;
        max-width: none;
    }

    /* ── Time-unknown row: compact inline on mobile ── */
    .time-unknown-row {
        flex-direction: row;
        align-items: center;
        gap: 6px;
    }

    .time-unknown-hint {
        font-size: 11px;
        line-height: 1.4;
    }

    /* ── City search input smaller placeholder text ── */
    .city-search-input::placeholder {
        font-size: 13px;
    }

    /* ── Lunar confirm bar: tighter ── */
    .lunar-confirm-bar {
        padding: 10px 12px;
        gap: 8px;
    }

    .lunar-confirm-text {
        font-size: 13px;
    }
}

/* ═══════════════════════════════════════════════════════
   TAB CONTENT LAYOUT
═══════════════════════════════════════════════════════ */
.tab-content {
    padding: 16px 24px 0;
    overflow: hidden;
}

.tab-panel {
    display: none;
    animation: fadeUp 0.35s ease;
}

.tab-panel.active {
    display: block;
}

/* ═══════════════════════════════════════════════════════
   RESULT SECTION — Progressive reveal transition
   .result-loading applied by JS before overlay lifts;
   removed ~400ms later, triggering the fade-in.
═══════════════════════════════════════════════════════ */
#result-section {
    /* Transition fires when .result-loading class is removed */
    transition: opacity 0.35s ease;
}

/* Reveal animation: result slides up from below as overlay fades */
.result-section-reveal {
    animation: none; /* set by JS after first render */
}
@keyframes resultReveal {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
#result-section:not(.result-loading) .lite-wrap > div:first-child {
    animation: resultReveal 0.4s ease both;
}

#result-section.result-loading {
    opacity: 0;
    pointer-events: none;
}

/* ── Semantic boundary between form and results ───────────────────────── */
.result-boundary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    max-width: 720px;
    margin: 0 auto;
}

.result-boundary-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(163, 130, 90, 0.18) 30%,
        rgba(163, 130, 90, 0.35) 60%,
        rgba(163, 130, 90, 0.18) 100%);
}

.result-boundary-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 6px 10px;
    border: 1px solid rgba(163, 130, 90, 0.28);
    border-radius: 999px;
    background: var(--sur);
    box-shadow: 0 0 18px rgba(163, 130, 90, 0.08);
    white-space: nowrap;
}

.result-boundary-glyph {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(163,130,90,0.22) 0%, rgba(163,130,90,0.08) 100%);
    border: 1px solid rgba(163, 130, 90, 0.3);
    font-size: 12px;
    color: var(--gold);
    font-family: 'Noto Serif SC', serif;
    font-weight: 600;
    letter-spacing: 0;
}

.result-boundary-label {
    font-size: 12px;
    font-family: 'Noto Serif SC', serif;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--txt-sub);
    text-transform: uppercase;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── 破格/成格 折叠面板 (details/summary) ─────────────────────────────── */
details>summary {
    user-select: none;
}

details>summary::-webkit-details-marker {
    display: none;
}

details[open]>summary .toggle-arrow {
    transform: rotate(180deg);
}

details>div {
    animation: fadeUp .25s ease both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.desktop-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

.intro-col {
    position: sticky;
    top: 120px;
}

.data-col-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── Section intro card ── */
.section-intro {
    margin-bottom: 24px;
    padding: 24px 28px;
    background: var(--brand-bg-white);
    border: 1px solid var(--bd);
    border-left: 2px solid var(--gold);
    border-radius: 0 var(--radius) var(--radius) 0;
    box-shadow: var(--shadow-card);
}

.section-intro p {
    font-size: 15px;
    line-height: 1.9;
    color: var(--txt-main);
    margin-bottom: 12px;
}

.section-intro p:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 22px;
    margin-bottom: 16px;
    font-family: var(--serif-cn);
    font-weight: 500;
    color: var(--txt);
    letter-spacing: 0.5px;
}

/* ── Progressive disclosure ── */
.section-detail {
    display: none;
}

.section-detail.open {
    display: block;
}

.toggle-btn {
    background: none;
    border: 1px solid var(--bd);
    border-radius: 4px;
    padding: 3px 10px;
    font-size: 13px;
    cursor: pointer;
    color: var(--txt-sub);
    white-space: nowrap;
    font-family: var(--sans);
    flex-shrink: 0;
    line-height: 1.6;
}

.toggle-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ═══════════════════════════════════════════════════════
   PILLARS GRID
═══════════════════════════════════════════════════════ */
.pillar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    margin-bottom: 28px;
    box-shadow: none;
}

.pillar {
    background: var(--sur);
    padding: 28px 12px 24px;
    text-align: center;
    position: relative;
    border: none;
    border-radius: var(--radius);
    transition: box-shadow 0.3s ease;
    border: var(--card-border);
    opacity: 0;
    transform: translateY(16px);
    animation: pillarReveal 0.5s ease forwards;
}

.pillar:nth-child(1) {
    animation-delay: 0.05s;
}

.pillar:nth-child(2) {
    animation-delay: 0.12s;
}

.pillar:nth-child(3) {
    animation-delay: 0.19s;
}

.pillar:nth-child(4) {
    animation-delay: 0.26s;
}

@keyframes pillarReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pillar:hover {
    border-color: var(--brand-gold-border);
}

.pillar.day {
    background: var(--sur);
    border: var(--card-border);
    border-top: 2px solid var(--gold);
}

.pillar.day::before {
    display: none;
}

.p-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--txt-sub);
    margin-bottom: 20px;
    letter-spacing: 3px;
    font-family: var(--sans);
    text-transform: uppercase;
}

.p-char {
    font-size: clamp(30px, 5vw, 44px);
    font-weight: 500;
    color: var(--txt);
    line-height: 1.1;
    font-family: var(--serif-cn);
}

.p-wx {
    font-size: 12px;
    color: var(--txt-sub);
    margin: 10px 0 14px;
    font-family: var(--sans);
    letter-spacing: 1px;
}

.p-div {
    width: 24px;
    height: 1px;
    background: var(--bd-gold);
    margin: 0 auto 14px;
}

.p-cg {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    margin-top: 16px;
}

.cg-tag {
    font-size: 11px;
    border: none;
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--txt-sub);
    font-family: var(--sans);
    background: var(--sur-2);
}

.day-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--gold);
    color: #FFF;
    font-size: 9px;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    font-family: var(--sans);
}

/* ═══════════════════════════════════════════════════════
   DATA CARDS
═══════════════════════════════════════════════════════ */
.data-card {
    background: var(--sur);
    border: none;
    border-radius: var(--radius);
    margin-bottom: 20px;
    border: var(--card-border);
    overflow: hidden;
    transition: box-shadow 0.25s ease;
}

.data-card:hover {
    border-color: var(--brand-gold-border);
}

.data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid var(--bd);
}

.data-row:last-child {
    border-bottom: none;
}

.data-row.header {
    background: var(--sur-2);
    font-size: 12px;
    font-weight: 700;
    color: var(--txt-sub);
    text-transform: uppercase;
    letter-spacing: 2px;
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
    padding: 14px 24px;
    font-family: var(--sans);
}

/* ═══════════════════════════════════════════════════════
   ACCORDION 大运
═══════════════════════════════════════════════════════ */
.dy-header {
    padding: 20px 24px;
    background: var(--sur);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid var(--bd);
}

.dy-header:hover {
    background: var(--sur-2);
}

.dy-header:active {
    background: var(--sur-3);
}

.dy-title-wrap {
    display: flex;
    flex-direction: column;
}

.dy-age-tag {
    font-size: 11px;
    color: var(--txt-sub);
    margin-bottom: 4px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: var(--sans);
}

.dy-title {
    font-size: 24px;
    font-weight: 500;
    font-family: var(--serif-cn);
    color: var(--txt);
}

.dy-icon {
    font-size: 13px;
    color: var(--gold);
    font-family: var(--sans);
    font-weight: bold;
}

.dy-body {
    display: none;
    background: var(--sur);
}

.dy-body.open {
    display: block;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════════════════════
   TIMELINE
═══════════════════════════════════════════════════════ */
.timeline {
    position: relative;
    padding: 24px 24px 24px 36px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 20px;
    bottom: 20px;
    width: 1px;
    background: linear-gradient(180deg, var(--bd-gold), var(--bd), transparent);
}

.tl-item {
    position: relative;
    margin-bottom: 28px;
}

.tl-item:last-child {
    margin-bottom: 0;
}

.tl-item::before {
    content: '';
    position: absolute;
    left: -17px;
    top: 6px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--sur);
    border: 1px solid var(--bd-2);
    z-index: 2;
}

/* ═══════════════════════════════════════════════════════
   CURRENT YEAR HIGHLIGHT (今年运势的高光动效)
═══════════════════════════════════════════════════════ */
.tl-item.now {
    background: linear-gradient(145deg, var(--brand-bg-white) 0%, var(--brand-bg-input) 100%);
    border: 1px solid var(--bd-gold);
    border-radius: var(--brand-radius-lg);
    padding: 18px;
    margin-left: -18px;
    width: calc(100% + 18px);
    box-shadow: 0 4px 20px rgba(163, 130, 90, 0.08);
    position: relative;
    z-index: 10;
}

/* 今年的小圆点变成发光的金色脉冲 */
.tl-item.now::before {
    left: 1px;
    /* 调整圆点位置对齐被拉出的框 */
    top: 24px;
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(168, 120, 60, 0.2);
    animation: pulseGold 2s infinite;
}

@keyframes pulseGold {
    0% {
        box-shadow: 0 0 0 0 rgba(163, 130, 90, 0.35);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(163, 130, 90, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(163, 130, 90, 0);
    }
}

.tl-item.now .tl-body {
    background: var(--sur);
    /* 今年的内容框用纯白，提高对比度 */
    border-color: rgba(168, 120, 60, 0.2);
}

.tl-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.tl-year {
    font-size: 19px;
    font-weight: 600;
    font-family: var(--serif-disp);
    color: var(--txt);
}

.tl-age {
    font-size: 13px;
    color: var(--txt-sub);
    font-family: var(--sans);
    font-weight: normal;
    margin-left: 8px;
}

.tl-tags {
    display: flex;
    gap: 6px;
}

.tl-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid var(--bd);
    color: var(--txt-sub);
    font-family: var(--sans);
}

.tl-tag.highlight {
    border-color: var(--bd-gold);
    color: var(--gold);
    font-weight: 600;
}

.tl-body {
    background: var(--sur);
    border: 1px solid var(--bd);
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 14px;
    color: var(--txt-main);
    line-height: 1.95;
}

.tl-interaction {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(201, 112, 112, 0.3);
    font-size: 13px;
    color: var(--brand-danger);
    font-weight: 500;
    font-family: var(--sans);
}

/* ═══════════════════════════════════════════════════════
   TOOLTIP
═══════════════════════════════════════════════════════ */
.tip {
    /* Inline anchor — overflow:hidden parents can't clip a fixed-position tooltip */
    color: var(--gold);
    border-bottom: 1px dashed var(--gold-dim);
    cursor: help;
    font-weight: 600;
    padding: 0 2px;
    outline: none;
    /* No position:relative needed — tooltip lives on <body> */
}

/* Hide the inline .tip-box completely — replaced by #tip-global */
.tip .tip-box {
    display: none !important;
}

/* ── Global tooltip singleton (appended to <body> by JS) ── */
#tip-global {
    position: fixed;
    /* escapes all overflow:hidden parents */
    z-index: 9999;
    width: 300px;
    max-width: calc(100vw - 24px);
    background: var(--txt);
    color: var(--brand-bg);
    padding: 16px 20px;
    border-radius: var(--brand-radius-lg);
    font-size: 14px;
    line-height: 1.75;
    font-weight: 400;
    text-align: left;
    font-family: var(--sans);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(0, 0, 0, 0.12);
    pointer-events: none;
    /* won't steal hover from elements beneath */
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    word-break: break-word;
}

#tip-global.tip-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Directional arrow — added via JS class */
#tip-global::after {
    content: '';
    position: absolute;
    border-width: 7px;
    border-style: solid;
    left: var(--tip-arrow-x, 50%);
    transform: translateX(-50%);
}

#tip-global.tip-above::after {
    top: 100%;
    border-color: var(--txt) transparent transparent transparent;
}

#tip-global.tip-below::after {
    bottom: 100%;
    border-color: transparent transparent var(--txt) transparent;
}

.tip-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gold);
    display: block;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 8px;
    font-family: var(--serif-cn);
}

/* Mobile close hint */
.tip-close-hint {
    display: none;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    color: rgba(245, 239, 224, 0.45);
    text-align: right;
    font-family: var(--sans);


    /* ── Mobile padding / margin reductions ── */
    .form-section { margin-bottom: 16px; }
    .form-card { margin-top: 0 !important; }
    .center-wrap { padding: 0 12px; }

    /* ── Mobile font size increases ── */
    body { font-size: 16px; }
    .form-section-label { font-size: 13px; }
    .time-unknown-text { font-size: 13px; }
    .btn-proof { font-size: 13px; }
    .btn-privacy { font-size: 12px; }
    .calc-btn { font-size: 15px; }
    select { font-size: 14px; }
    .city-search-input { font-size: 14px; }
    .city-dropdown-item { font-size: 14px; }
    /* Result page mobile fonts */
    .lite-crystal-header { font-size: 14px; }
    .resonance-hero { font-size: 14px; }

}

@media (hover: none) {

    /* Touch devices: show close hint */
    .tip-close-hint {
        display: block;
    }

    #tip-global {
        pointer-events: auto;
    }

    /* allow tap-to-close */
}

/* ═══════════════════════════════════════════════════════
   MOBILE ADAPTATION
═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* .page-header { padding: 8px 0 0; } */
    .form-card {
        padding: 10px;
        margin-top: 24px;
        border-radius: 16px;
    }

    .form-cal-btn {
        font-size: 13px;
        padding: 6px 14px;
    }

    .form-section-label {
        font-size: 12px;
        letter-spacing: 1.5px;
    }

    .form-section {
        margin-bottom: 14px;
    }

    /* datetime font/padding already set in the first 480px block above — no override here */

    .form-gender-btn {
        padding: 9px 16px;
        gap: 8px;
    }

    .form-gender-symbol {
        font-size: 16px;
    }

    .form-gender-text {
        font-size: 13px;
    }

    .form-section-gender {
        flex-wrap: wrap;
        gap: 10px;
    }

    .calc-btn {
        margin-top: 24px;
        padding: 16px;
        font-size: 13px;
        letter-spacing: 3px;
    }

    .form-field-location {
        min-width: 100%;
    }

    .sticky-bar {
        padding-bottom: 10px;
    }

    .tab-meta {
        padding: 12px 0 8px;
        font-size: 13px;
    }

    .tab-row {
        display: flex;
        gap: 0;
        padding: 0;
        justify-content: center;
    }

    .tab-btn {
        padding: 10px 14px;
        font-size: 12px;
        border: none;
        border-bottom: 2px solid transparent;
        border-radius: 0;
        background: transparent;
        text-align: center;
        cursor: pointer;
        flex: 1;
    }

    .tab-btn.active {
        background: transparent;
        border-bottom-color: var(--gold);
        color: var(--txt);
        font-weight: 600;
    }

    .desktop-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .intro-col {
        position: static;
    }

    .tab-content {
        padding: 12px 12px 0;
    }

    .section-intro {
        padding: 18px 16px;
        margin-bottom: 20px;
    }

    .section-intro p {
        font-size: 14px;
    }

    .section-title {
        font-size: 18px;
    }

    .pillar-grid {
        gap: 6px;
        grid-template-columns: repeat(4, 1fr);
    }

    .pillar {
        padding: 12px 4px 10px;
        border-radius: 8px;
    }

    .p-char {
        font-size: clamp(20px, 6vw, 28px);
    }

    .p-label {
        font-size: 9px;
        margin-bottom: 12px;
        letter-spacing: 1px;
    }

    .p-wx {
        font-size: 11px;
        margin: 6px 0 8px;
    }

    .day-tag {
        font-size: 8px;
        padding: 2px 5px;
        top: 4px;
        right: 4px;
    }

    .data-card {
        margin-bottom: 14px;
    }

    .data-row {
        padding: 14px 16px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .dy-header {
        padding: 14px 16px;
    }

    .dy-title {
        font-size: 19px;
    }

    .timeline {
        padding: 16px 16px 16px 24px;
    }

    .timeline::before {
        left: 14px;
        top: 16px;
        bottom: 16px;
    }

    .tl-item {
        margin-bottom: 20px;
    }

    .tl-item::before {
        left: -15px;
        width: 8px;
        height: 8px;
        top: 5px;
    }

    .tl-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-bottom: 10px;
    }

    /* .tip-box overrides removed — using #tip-global fixed singleton */
}

/* ═══════════════════════════════════════════════════════
═══════════════════════════════════════════════════════ */

.conflict-banner {
    padding: 12px 16px;
    background: rgba(214, 168, 23, 0.08);
    border-left: 3px solid var(--brand-gold);
    border-radius: 0 6px 6px 0;
    margin-bottom: 14px;
    font-size: 14px;
    color: var(--gold);
    line-height: 1.7;
    font-family: var(--sans);
}

/* ── 体质问卷 ── */
.health-survey {
    margin-top: 20px;
    padding: 18px 20px;
    background: var(--sur);
    border: 1px solid var(--bd);
    border-radius: 8px;
}

.health-opt {
    padding: 5px 12px;
    border: 1px solid var(--bd);
    background: var(--bg-2);
    color: var(--txt-sub);
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    font-family: var(--sans);
}

.health-opt:hover {
    border-color: var(--bd-gold);
    color: var(--txt);
}

.health-opt.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--brand-bg-input);
    font-weight: 700;
}

.health-submit {
    margin-top: 12px;
    padding: 9px 22px;
    background: var(--gold);
    color: var(--brand-bg-input);
    border: none;
    border-radius: var(--brand-radius-sm);
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: opacity 0.2s, transform 0.15s;
    font-family: var(--sans);
}

.health-submit:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

/* ── Trust bar responsive ── */
@media (max-width: 768px) {
    .trust-bar {
        gap: 5px 5px;
        padding: 10px 0;
    }

    .trust-sep {
        display: none;
    }

    .trust-item {
        font-size: 12px;
        padding: 0 10px;
    }

    .social-proof-bar {
        flex-wrap: wrap;
        gap: 5px;
    }
}

/* ── Sticky top row ── */
.sticky-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0 4px;
}

.sticky-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--txt-sub);
    border: 1px solid var(--bd);
    padding: 6px 12px;
    border-radius: 20px;
    background: var(--sur);
    transition: 0.2s;
    font-family: var(--sans);
    letter-spacing: 0.5px;
    cursor: pointer;
}

.share-btn:hover {
    border-color: var(--bd-gold);
    color: var(--gold);
}

/* ═══════════════════════════════════════════════════════
   FLOATING CTA — PULSING GOLD
═══════════════════════════════════════════════════════ */

@keyframes floatPulse {

    0%,
    100% {
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    50% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22), 0 2px 8px rgba(0, 0, 0, 0.08);
    }
}

/* ── Share toast ── */
.share-toast {
    position: fixed;
    bottom: 88px;
    right: 24px;
    z-index: 200;
    background: var(--txt);
    color: var(--sur);
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--sans);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.share-toast.show {
    opacity: 1;
}

/* ── Share dropdown ── */
.share-dropdown {
    position: relative;
    display: inline-flex;
}

.share-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--sur);
    border: 1px solid var(--bd);
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    min-width: 160px;
    z-index: 50;
    overflow: hidden;
}

.share-menu.open {
    display: block;
    animation: tipFadeIn 0.15s ease;
}

.share-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    font-size: 14px;
    color: var(--txt-main);
    cursor: pointer;
    font-family: var(--sans);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    transition: background 0.15s;
}

.share-menu-item:hover {
    background: var(--bg);
    color: var(--txt);
}

.share-menu-item+.share-menu-item {
    border-top: 1px solid var(--bd);
}

/* ═══════════════════════════════════════════════════════
═══════════════════════════════════════════════════════ */

.product-info {
    flex: 1;
    min-width: 0;
}

.tier-premium {
    background: rgba(168, 120, 60, 0.12);
    color: var(--gold);
    border: 1px solid var(--bd-gold);
}

.tier-mid {
    background: var(--sur-2);
    color: var(--txt-main);
    border: 1px solid var(--bd);
}

.tier-entry {
    background: var(--sur-2);
    color: var(--txt-sub);
    border: 1px solid var(--bd);
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: var(--brand-radius-sm);
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-family: var(--sans);
    letter-spacing: 0.3px;
    transition: all 0.2s;
    white-space: nowrap;
}

.cta-btn-primary {
    background: var(--gold);
    color: var(--brand-bg-input);
}

.cta-btn-primary:hover {
    background: var(--gold-bright);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(168, 120, 60, 0.30);
}

.cta-btn-secondary {
    background: var(--sur-2);
    color: var(--txt-main);
    border: 1px solid var(--bd);
}

.cta-btn-secondary:hover {
    border-color: var(--bd-gold);
    color: var(--gold);
}

/* ── Year summary hero ── */
.year-summary-hero {
    background: var(--sur);
    border: 1px solid var(--bd);
    border-left: 3px solid var(--gold);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 20px 24px;
    margin-top: 20px;
}

.year-summary-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--gold-dim);
    margin-bottom: 10px;
    font-family: var(--sans);
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .trust-bar {
        gap: 4px 0;
        padding: 10px 0;
    }

    .trust-sep {
        display: none;
    }

    .sticky-top-row {
        padding: 8px 0 4px;
    }

    .tab-meta {
        font-size: 13px;
        padding: 0;
    }

    .cta-btn {
        font-size: 12px;
        padding: 7px 12px;
    }
}

/* ═══════════════════════════════════════════════════════
   NEW LAYOUT SYSTEM
═══════════════════════════════════════════════════════ */
.section-hero-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    background: transparent;
    border: none;
    border-left: 2px solid var(--gold);
    border-radius: 0;
    padding: 0 0 0 16px;
    margin-bottom: 28px;
}

.section-hero-icon {
    font-size: 19px;
    flex-shrink: 0;
    line-height: 1;
    opacity: 0.5;
    filter: grayscale(15%);
}

.section-hero-title {
    font-size: 19px;
    font-weight: 500;
    font-family: var(--serif-cn);
    color: var(--txt);
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}

.section-hero-sub {
    font-size: 13px;
    color: var(--txt-sub);
    line-height: 1.6;
    font-family: var(--sans);
}

.section-layout {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    margin-bottom: 32px;
}

.section-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ── Timeline section ── */
.timeline-section {
    border-top: 1px solid var(--bd);
    padding-top: 24px;
}

.timeline-section-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--gold-dim);
    margin-bottom: 16px;
    font-family: var(--sans);
    text-transform: uppercase;
}

/* ── Decade card ── */
.decade-card {
    background: var(--brand-bg-white);
    border: 1px solid var(--bd);
    border-radius: var(--brand-radius-lg);
    overflow: hidden;
    margin-bottom: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-card);
}

.decade-card:hover {
    border-color: var(--bd-2);
    box-shadow: var(--shadow-card-hover);
}

.decade-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid var(--bd);
}

.decade-header:hover {
    background: var(--sur-2);
}

.decade-ganzhi {
    font-size: 28px;
    font-weight: 600;
    font-family: var(--serif-cn);
    color: var(--txt);
    flex-shrink: 0;
    min-width: 52px;
}

.decade-meta {
    flex: 1;
}

.decade-age {
    font-size: 12px;
    color: var(--txt-sub);
    font-family: var(--sans);
    letter-spacing: 1px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.decade-level-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.decade-level-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 10px;
    border: 1px solid;
    font-family: var(--sans);
}

.decade-toggle-icon {
    font-size: 12px;
    color: var(--gold);
    font-family: var(--sans);
    font-weight: bold;
    flex-shrink: 0;
}

.decade-body {
    display: none;
}

.decade-body.open {
    display: block;
    animation: slideDown 0.2s ease-out;
}

.decade-body-inner {
    padding: 20px 24px;
    border-bottom: 1px solid var(--bd);
    font-size: 15px;
    color: var(--txt-main);
    line-height: 1.85;
}

/* ── Overview grid ── */
.overview-insight-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 28px;
    align-items: start;
}

.overview-insight-left {
    position: sticky;
    top: 130px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.overview-insight-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (max-width: 900px) {
    .section-layout {
        flex-direction: column;
    }

    .overview-insight-grid {
        grid-template-columns: 1fr;
    }

    .overview-insight-left {
        position: static;
    }

    .decade-header {
        padding: 14px 16px;
    }

    .decade-ganzhi {
        font-size: 24px;
        min-width: 44px;
    }

    .decade-body-inner {
        padding: 16px;
    }

    .section-hero-bar {
        padding: 0 0 0 12px;
    }

    .section-hero-icon {
        font-size: 19px;
    }

    .section-hero-title {
        font-size: 17px;
    }
}

/* ═══════════════════════════════════════════════════════
   INPUT UX — lunar / zishi / city hints
═══════════════════════════════════════════════════════ */
.cal-toggle-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.cal-toggle-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--txt-sub);
    font-family: var(--sans);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.cal-toggle-pills {
    display: flex;
    background: var(--bg);
    border: 1px solid var(--bd);
    border-radius: var(--brand-radius-sm);
    padding: 3px;
    gap: 2px;
}

.cal-pill {
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 4px;
    color: var(--txt-sub);
    transition: 0.2s;
    font-family: var(--sans);
    cursor: pointer;
    white-space: nowrap;
}

.cal-pill.active {
    background: var(--gold);
    color: var(--brand-bg-input);
    font-weight: 700;
}

.cal-pill:not(.active):hover {
    color: var(--txt);
    background: var(--sur-2);
}

.lunar-hint {
    font-size: 14px;
    color: var(--txt-sub);
    background: rgba(201, 160, 23, 0.07);
    border: 1px solid rgba(201, 160, 23, 0.25);
    border-left: 3px solid var(--brand-gold);
    border-radius: 0 6px 6px 0;
    padding: 10px 14px;
    margin-bottom: 16px;
    line-height: 1.6;
    font-family: var(--sans);
}

.leap-check {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--txt-sub);
    margin-top: 4px;
    cursor: pointer;
    font-family: var(--sans);
}

.leap-check input[type="checkbox"] {
    accent-color: var(--gold);
    width: 14px;
    height: 14px;
    cursor: pointer;
}

.city-hint {
    font-size: 12px;
    color: var(--txt-sub);
    margin-top: 5px;
    line-height: 1.5;
    font-family: var(--sans);
}

.custom-city-row label {
    color: var(--gold);
}

.zishi-hint {
    font-size: 14px;
    color: var(--txt-main);
    background: rgba(107, 141, 214, 0.08);
    border: 1px solid rgba(107, 141, 214, 0.2);
    border-left: 3px solid var(--brand-water-border);
    border-radius: 0 6px 6px 0;
    padding: 10px 14px;
    margin-bottom: 16px;
    line-height: 1.7;
    font-family: var(--sans);
}

.zishi-hint strong {
    color: var(--brand-water-text);
}

.zishi-hint em {
    font-style: normal;
    color: var(--brand-water-text);
}

@media (max-width: 768px) {
    .cal-toggle-row {
        gap: 8px;
        margin-bottom: 16px;
    }

    .cal-pill {
        font-size: 13px;
        padding: 6px 10px;
    }
}

/* ═══════════════════════════════════════════════════════
   READY-MADE PRODUCT SYSTEM
═══════════════════════════════════════════════════════ */

/* ── Zone wrapper ── */
.rm-zone {
    background: var(--sur);
    border: 1px solid var(--bd);
    border-radius: 14px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.rm-zone-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px 14px;
    border-bottom: 1px solid var(--bd);
    background: var(--sur-2);
}

.rm-zone-title {
    font-size: 16px;
    font-weight: 600;
    font-family: var(--serif-cn);
    color: var(--txt);
}

.rm-zone-sub {
    font-size: 13px;
    color: var(--txt-sub);
    font-family: var(--sans);
    margin-left: auto;
}

/* ── Section (per element) ── */
.rm-section {
    padding: 20px 20px 20px;
    border-bottom: 1px solid var(--bd);
}

.rm-section:last-child {
    border-bottom: none;
}

.rm-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.rm-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--txt-main);
    font-family: var(--serif-cn);
}

.rm-section-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(74, 144, 112, 0.10);
    color: var(--jade);
    border: 1px solid rgba(74, 144, 112, 0.25);
    font-family: var(--sans);
    letter-spacing: 0.3px;
}

/* ── Product card ── */
.rm-card {
    display: flex;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--bd);
    border-radius: var(--brand-radius-lg);
    background: var(--sur);
    margin-bottom: 10px;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.rm-card:last-child {
    margin-bottom: 0;
}

.rm-card-highlight {
    border-color: var(--bd-gold);
    background: var(--brand-bg-white);
}

.rm-card:hover {
    border-color: var(--bd-gold);
    box-shadow: 0 4px 16px rgba(168, 120, 60, 0.10);
    transform: translateY(-1px);
}

/* ── Product image/icon ── */
.rm-card-img {
    flex: 0 0 64px;
    height: 64px;
    border-radius: var(--brand-radius-lg);
    background: var(--sur-2);
    border: 1px solid var(--bd);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    flex-shrink: 0;
    align-self: flex-start;
}

/* ── Card body (right side) ── */
.rm-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Head row: name + stock badge */
.rm-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.rm-card-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--txt);
    font-family: var(--serif-cn);
    line-height: 1.4;
}

.rm-card-tagline {
    font-size: 13px;
    color: var(--txt-sub);
    font-family: var(--sans);
    line-height: 1.5;
    margin-top: 2px;
}

/* Stock badges */
.rm-stock-badge {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    font-family: var(--sans);
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.rm-stock-in {
    background: rgba(74, 144, 112, 0.10);
    color: var(--jade);
    border: 1px solid rgba(74, 144, 112, 0.25);
}

.rm-stock-out {
    background: rgba(160, 140, 110, 0.08);
    color: var(--txt-sub);
    border: 1px solid var(--bd);
}

/* Stone chips */
.rm-card-stones {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.rm-stone-chip {
    display: inline-block;
    font-size: 12px;
    padding: 3px 9px;
    border-radius: 20px;
    background: var(--sur-3);
    border: 1px solid var(--bd);
    color: var(--txt-main);
    font-family: var(--sans);
    white-space: nowrap;
}

.rm-bead-size {
    background: rgba(168, 120, 60, 0.07);
    border-color: rgba(168, 120, 60, 0.20);
    color: var(--gold);
}

/* Footer: price + actions */
.rm-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 2px;
    flex-wrap: wrap;
}

.rm-price-row {
    display: flex;
    align-items: baseline;
    gap: 7px;
}

.rm-price {
    font-size: 22px;
    font-weight: 600;
    color: var(--gold);
    font-family: var(--serif-disp);
    letter-spacing: 0.3px;
    line-height: 1;
}

.rm-orig-price {
    font-size: 14px;
    color: var(--txt-sub);
    font-family: var(--serif-disp);
    text-decoration: line-through;
    text-decoration-color: rgba(122, 110, 92, 0.55);
    opacity: 0.7;
}

.rm-card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

/* Buy button */
.rm-buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    background: var(--ink);
    color: var(--brand-bg);
    border-radius: 8px;
    text-decoration: none;
    font-family: var(--sans);
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.rm-buy-btn:hover {
    background: var(--brand-text);
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.18);
}

.rm-buy-soldout {
    background: var(--sur-3);
    color: var(--txt-sub);
    box-shadow: none;
    cursor: default;
    pointer-events: none;
}

/* Show-more button */
.rm-show-more {
    color: var(--gold);
    font-size: 13px;
    font-family: var(--sans);
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    text-decoration: underline;
    text-decoration-color: rgba(168, 120, 60, 0.35);
    text-underline-offset: 2px;
}

/* Legacy rm-cta for any old usages */
.rm-cta {
    font-size: 13px;
    font-weight: 700;
    padding: 7px 14px;
    background: var(--gold);
    color: var(--brand-bg-input);
    border-radius: var(--brand-radius-sm);
    text-decoration: none;
    font-family: var(--sans);
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: center;
    display: inline-block;
}

.rm-cta:hover {
    background: var(--gold-bright);
    transform: translateY(-1px);
}

/* ── Tag chips (alternative style) ── */
.rm-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    font-family: var(--sans);
    letter-spacing: 0.3px;
    border: 1px solid;
}

.rm-tag-hot {
    color: var(--ruby);
    background: rgba(184, 80, 80, 0.08);
    border-color: rgba(184, 80, 80, 0.25);
}

.rm-tag-new {
    color: var(--jade);
    background: rgba(74, 144, 112, 0.08);
    border-color: rgba(74, 144, 112, 0.25);
}

/* ── Custom banner at bottom ── */
.rm-zone-custom-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--sur-2);
    border-top: 1px solid var(--bd);
}

.rm-custom-banner-text {
    flex: 1;
}

.rm-custom-banner-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--txt);
    font-family: var(--serif-cn);
    margin-bottom: 3px;
}

.rm-custom-banner-sub {
    font-size: 13px;
    color: var(--txt-sub);
    font-family: var(--sans);
    line-height: 1.5;
}

.rm-custom-banner-btn {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 18px;
    background: var(--gold);
    color: var(--brand-bg-input);
    border-radius: 8px;
    text-decoration: none;
    font-family: var(--sans);
    transition: all 0.2s;
    white-space: nowrap;
    display: inline-block;
    box-shadow: 0 3px 10px rgba(168, 120, 60, 0.22);
}

.rm-custom-banner-btn:hover {
    background: var(--gold-bright);
    transform: translateY(-1px);
}

.rm-calendar-zone {
    background: var(--sur);
    border-radius: var(--radius);
    margin-top: 28px;
    overflow: hidden;
    border: 1px solid var(--bd);
}

@media (max-width: 768px) {
    .rm-zone-header {
        padding: 12px 16px;
    }

    .rm-section {
        padding: 14px 16px 16px;
    }

    .rm-card {
        gap: 10px;
        padding: 14px;
    }

    .rm-card-img {
        flex: 0 0 52px;
        height: 52px;
        font-size: 28px;
    }

    .rm-card-name {
        font-size: 15px;
    }

    .rm-price {
        font-size: 19px;
    }

    .rm-card-footer {
        gap: 8px;
    }

    .rm-buy-btn {
        padding: 7px 14px;
        font-size: 12px;
    }

    .rm-zone-custom-banner {
        padding: 14px 16px;
        gap: 10px;
    }

    .rm-calendar-zone .desktop-grid {
        padding: 16px;
    }
}

/* ═══════════════════════════════════════════════════════
   LOADING OVERLAY
═══════════════════════════════════════════════════════ */
/* Overlay: always flex, opacity controls visibility → smooth fade */
#calc-overlay {
    display: flex;   /* always flex — opacity/pointer-events control visibility */
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.40s ease;
}

#calc-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Animated ring spinner */
.calc-spinner {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--bd);
    border-top-color: var(--gold);
    animation: spin 0.9s linear infinite;
    position: relative;
}

.calc-spinner::after {
    content: '';
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    border: 1px solid transparent;
    border-bottom-color: var(--gold-dim);
    animation: spin 1.4s linear infinite reverse;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.calc-step-text {
    font-size: 16px;
    font-weight: 500;
    font-family: var(--serif-cn);
    color: var(--txt-main);
    text-align: center;
    letter-spacing: 0.5px;
    min-height: 1.6em;
}

.calc-brand-mark {
    font-family: var(--serif-cn);
    font-size: 30px;
    font-weight: 300;
    letter-spacing: 12px;
    margin-right: -12px;
    color: var(--txt);
    opacity: 0.15;
    margin-bottom: 32px;
}

.calc-progress-wrap {
    width: 220px;
    height: 2px;
    background: var(--bd);
    border-radius: 2px;
    overflow: hidden;
}

.calc-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-dim), var(--gold));
    border-radius: 2px;
    width: 0%;
    transition: width 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.calc-sub-text {
    font-size: 13px;
    color: var(--txt-sub);
    font-family: var(--sans);
    letter-spacing: 0.3px;
}

/* ═══════════════════════════════════════════════════════
   PLAIN SUMMARY CARD
═══════════════════════════════════════════════════════ */
.plain-summary-card {
    background: var(--brand-bg-white);
    border: 1px solid var(--bd-gold);
    border-radius: 14px;
    padding: 32px 36px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(163, 130, 90, 0.06);
    position: relative;
    overflow: hidden;
}

/* 卡片右上角的装饰性光晕 */
.plain-summary-card::after {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(163, 130, 90, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.plain-summary-eyebrow {
    font-size: 13px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 3px;
    font-family: var(--sans);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.plain-summary-eyebrow::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 1px;
    background: var(--gold);
}

.plain-summary-text {
    font-size: 17px;
    /* 字号稍微放大，方便阅读 */
    font-family: var(--serif-cn);
    color: var(--txt-main);
    line-height: 2;
    font-weight: 400;
}

/* ═══════════════════════════════════════════════════════
   INSIGHT CARDS (后天运势专属洞察卡片)
═══════════════════════════════════════════════════════ */
.insight-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.insight-card {
    background: var(--sur);
    border: none;
    border-radius: var(--radius);
    padding: 24px 28px;
    border: var(--card-border);
    transition: box-shadow 0.25s ease;
    border-left: 3px solid var(--gold);
}

.insight-card:hover {
    border-color: var(--brand-gold-border);
}

.insight-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 500;
    font-family: var(--serif-cn);
    color: var(--txt);
    margin-bottom: 12px;
    border-bottom: 1px dashed var(--bd);
    padding-bottom: 12px;
}

.insight-icon {
    font-size: 22px;
    background: var(--sur-2);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--bd);
}

.insight-desc {
    font-size: 15px;
    line-height: 1.95;
    color: var(--txt-main);
}

/* ═══════════════════════════════════════════════════════
   POSTER (offscreen)
═══════════════════════════════════════════════════════ */
#poster-canvas-wrap {
    position: fixed;
    left: -9999px;
    top: 0;
    width: 750px;
    background: #F5F0E8;
    z-index: -1;
}

.poster-root {
    width: 750px;
    background: #FAFAF8;
    padding: 48px 44px 52px;
    font-family: var(--serif-cn);
    /* poster: html2canvas needs literal fallback via @font-face */
    color: #1A1A1A;
}

.poster-header {
    text-align: center;
    margin-bottom: 32px;
    border-bottom: 1px solid #E0CEAA;
    padding-bottom: 24px;
}

.poster-eyebrow {
    font-size: 13px;
    letter-spacing: 5px;
    color: #A88965;
    margin-bottom: 6px;
    font-family: var(--sans);
}

.poster-title {
    font-size: 30px;
    font-weight: 600;
    letter-spacing: 8px;
    color: #1A1A1A;
    margin-bottom: 8px;
}

.poster-date {
    font-size: 14px;
    color: #888;
    font-family: var(--sans);
}

.poster-pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: #E0CEAA;
    border: 1px solid #E0CEAA;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 28px;
}

.poster-pillar {
    background: #FDFAF5;
    padding: 18px 6px;
    text-align: center;
}

.poster-pillar.day {
    background: #FDF7E4;
}

.poster-pillar-label {
    font-size: 12px;
    color: #A88965;
    margin-bottom: 8px;
    letter-spacing: 1px;
    font-family: var(--sans);
}

.poster-pillar-gz {
    font-size: 30px;
    font-weight: 600;
    color: #1A1A1A;
    line-height: 1.3;
}

.poster-pillar-wx {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
    font-family: var(--sans);
}

.poster-summary {
    background: #F9F3E6;
    border-left: 4px solid #A88965;
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
    margin-bottom: 24px;
    font-size: 16px;
    line-height: 1.9;
    color: #2A2A2A;
}

.poster-wx-row {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.poster-wx-item {
    flex: 1;
    text-align: center;
    padding: 12px 6px;
    border: 1px solid #E8D9C0;
    border-radius: 8px;
    background: #FDFAF5;
}

.poster-wx-name {
    font-size: 16px;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 3px;
}

.poster-wx-score {
    font-size: 13px;
    color: #888;
    font-family: var(--sans);
}

.poster-wx-badge {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-top: 4px;
    display: inline-block;
    font-family: var(--sans);
}

.poster-footer {
    text-align: center;
    font-size: 13px;
    color: #AAA;
    font-family: var(--sans);
    letter-spacing: 1px;
    border-top: 1px solid #E8D9C0;
    padding-top: 20px;
}

.poster-generating {
    font-size: 14px;
    color: var(--txt-sub);
    font-family: var(--sans);
    padding: 8px 14px;
}

@media (max-width: 768px) {
    .plain-summary-card {
        padding: 16px 18px;
    }

    .plain-summary-text {
        font-size: 15px;
    }

    .share-menu {
        right: 0;
    }
}

/* ═══════════════════════════════════════════════════════
   UTILITY — Five Elements Color system
═══════════════════════════════════════════════════════ */
/* These are used by JS-generated content */
.wx-mu {
    color: var(--brand-wood-text);
}

/* 木 */
.wx-huo {
    color: var(--brand-fire-text);
}

/* 火 */
.wx-tu {
    color: var(--brand-earth-text);
}

/* 土 */
.wx-jin {
    color: var(--brand-metal-text);
}

/* 金 */
.wx-shui {
    color: var(--brand-water-text);
}

/* 水 */

/* ── Misc shared utils ── */
.text-gold {
    color: var(--gold);
}

.text-sub {
    color: var(--txt-sub);
}

.font-serif {
    font-family: var(--serif-cn);
}

.font-cormorant {
    font-family: var(--serif-disp);
}

/* ═══════════════════════════════════════════════════════

/* Enhanced tl-body text area */
.tl-body {
    background: var(--sur);
    border: 1px solid var(--bd);
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 14px;
    color: var(--txt-main);
    line-height: 1.95;
}

/* Year body tiaohou block */
.tl-tiaohou-block {
    margin-top: 10px;
    padding: 10px 14px;
    background: rgba(168, 120, 60, 0.04);
    border: 1px solid rgba(168, 120, 60, 0.14);
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.8;
    color: var(--txt-main);
}

.tl-tiaohou-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--gold-dim);
    text-transform: uppercase;
    font-family: var(--sans);
    margin-bottom: 5px;
    display: block;
}

/* ═══════════════════════════════════════════════════════
   FORM VALIDATION — inline blur feedback
═══════════════════════════════════════════════════════ */
.field-error {
    display: none;
}

.field-error.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Red highlight on invalid form-num inputs — red text + soft red background */
.form-num.field-invalid {
    color: #C0392B !important;
    background: rgba(192, 57, 43, 0.07) !important;
    border-radius: 4px;
}

/* Red border on the datetime-row container when any child is invalid */
.form-datetime-row.row-has-error {
    box-shadow: inset 0 0 0 1.5px rgba(192, 57, 43, 0.55), 0 0 0 3px rgba(192, 57, 43, 0.08);
}

/* ═══════════════════════════════════════════════════════
   TIME-UNKNOWN ROW
═══════════════════════════════════════════════════════ */
.time-unknown-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--bg);
    border: 1px solid var(--bd);
}

.time-unknown-label {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
}

.time-unknown-label input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--gold);
    cursor: pointer;
    flex-shrink: 0;
}

.time-unknown-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--txt-main);
    font-family: var(--sans);
    white-space: nowrap;
}

.time-unknown-hint {
    font-size: 12px;
    color: var(--txt-sub);
    font-family: var(--sans);
    line-height: 1.4;
}

/* Dimmed state for time inputs when unknown */
.form-datetime-item.time-dimmed {
    opacity: 0.32;
    pointer-events: none;
    user-select: none;
}

.form-datetime-item.time-dimmed input {
    color: var(--txt-sub) !important;
}

/* ═══════════════════════════════════════════════════════
   LUNAR CONFIRM BAR (above submit button)
═══════════════════════════════════════════════════════ */
.lunar-confirm-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 11px 16px;
    background: linear-gradient(90deg, rgba(168, 120, 60, 0.07) 0%, rgba(168, 120, 60, 0.03) 100%);
    border: 1px solid rgba(168, 120, 60, 0.22);
    border-left: 3px solid var(--gold);
    border-radius: 0 8px 8px 0;
    animation: fadeUp 0.25s ease both;
}

.lunar-confirm-icon {
    font-size: 17px;
    flex-shrink: 0;
}

.lunar-confirm-text {
    font-size: 14px;
    color: var(--txt-main);
    font-family: var(--sans);
    line-height: 1.5;
    font-weight: 500;
}

.lunar-confirm-text strong {
    color: var(--gold);
    font-weight: 700;
}

/* ═══════════════════════════════════════════════════════
   SEARCHABLE CITY DROPDOWN
═══════════════════════════════════════════════════════ */
.city-search-wrap {
    position: relative;
    width: 100%;
}

.city-search-field {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 14px;
    border: 1px solid var(--bd);
    border-radius: 10px;
    background: var(--sur);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: none;
}

.city-search-field:focus-within {
    border-color: rgba(0,0,0,0.4);
    background: var(--brand-bg-white);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.04);
}

.city-search-icon {
    flex-shrink: 0;
    color: var(--txt-sub);
    margin-right: 8px;
}

.city-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 15px;
    color: var(--txt);
    padding: 13px 0;
    outline: none;
    font-family: inherit;
    min-width: 0;
}

.city-search-input::placeholder {
    color: var(--txt-sub);
    font-size: 14px;
}

.city-clear-btn {
    flex-shrink: 0;
    color: var(--txt-sub);
    cursor: pointer;
    padding: 2px;
    border-radius: 50%;
    transition: color 0.15s;
    margin-left: 4px;
}

.city-clear-btn:hover {
    color: var(--txt);
}

/* Dropdown list */
.city-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--sur);
    border: 1px solid var(--bd-gold);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10), 0 2px 8px rgba(0, 0, 0, 0.04);
    z-index: 100;
    max-height: 260px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--sur-3) transparent;
    display: none;
}

.city-dropdown.open {
    display: block;
}

.city-dropdown::-webkit-scrollbar {
    width: 4px;
}

.city-dropdown::-webkit-scrollbar-thumb {
    background: var(--sur-3);
    border-radius: 2px;
}

/* Group header inside dropdown */
.city-group-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-dim);
    font-family: var(--sans);
    padding: 10px 14px 4px;
    border-top: 1px solid var(--bd);
    margin-top: 2px;
}

.city-group-label:first-child {
    border-top: none;
    margin-top: 0;
}

/* City option row */
.city-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    font-size: 14px;
    color: var(--txt-main);
    cursor: pointer;
    font-family: var(--sans);
    transition: background 0.12s;
    border-radius: 0;
}

.city-option:hover,
.city-option.focused {
    background: var(--sur-hov);
}

.city-option.selected {
    color: var(--gold);
    font-weight: 600;
    background: var(--gold-glow);
}

.city-option-pinyin {
    font-size: 12px;
    color: var(--txt-sub);
    letter-spacing: 0.3px;
    margin-left: auto;
}

/* No results message */
.city-no-results {
    padding: 16px 14px;
    font-size: 14px;
    color: var(--txt-sub);
    font-family: var(--sans);
    text-align: center;
}

/* ════════════════════════════════════════════════════════
   V2 Framework Layout — Zones + 3-Tab + Sub-Tab System
   ════════════════════════════════════════════════════════ */

/* ── Zone areas (above tabs) ── */
.pillar-zone {
    padding: 0;
}

.hook-zone {
    padding: 0;
}

.hook-zone .share-action-btn {
    /* reuse from bottom */
}

#luck-status-zone {
    padding: 0;
}

/* ── Sub-tab navigation row ── */
.sub-tab-row {
    display: flex;
    gap: 4px;
    padding: 8px 0 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.sub-tab-row::-webkit-scrollbar {
    display: none;
}

.sub-tab-btn {
    flex: 1;
    min-width: 0;
    padding: 10px 8px;
    font-size: 12.5px;
    font-family: var(--sans);
    background: var(--sur);
    border: none;
    border-radius: var(--radius);
    color: var(--txt-sub);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-align: center;
    letter-spacing: 0.3px;
    border: var(--card-border);
    font-weight: 500;
}

.sub-tab-btn.active {
    background: var(--txt);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(28, 25, 23, 0.18);
}

.sub-tab-btn:hover:not(.active) {
    background: var(--sur);
    color: var(--txt);
    border-color: var(--brand-gold-border);
}

/* ── Sub-tab panels ── */
.subtab-panel {
    display: none;
}

.subtab-panel.active {
    display: block;
}

/* ── Bottom tools area ── */
/* ── 算法可信度背书 ── */
.credibility-bar {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 20px;
    margin-top: 32px;
    background: var(--sur-2);
    border: 1px solid var(--bd);
    border-radius: var(--radius);
    font-size: 11.5px;
    color: var(--txt-sub);
    line-height: 1.7;
}

.credibility-icon {
    flex-shrink: 0;
    font-size: 15px;
    margin-top: 1px;
}

.credibility-text {
    flex: 1;
}

.bottom-tools {
    padding: 8px 0 36px;
    border-top: 1px solid var(--bd);
    margin-top: 0;
}

.bottom-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

/* ── 新底部行动区（2025重设计） ── */
.bottom-bar-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 4px 0 8px;
}

/* ① 主CTA按钮 */
.bottom-cta-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 15px 20px;
    background: var(--ink);
    color: var(--brand-bg, #fff);
    font-size: 17px;
    font-weight: 700;
    font-family: var(--serif-cn);
    border: none;
    border-radius: 12px;
    text-decoration: none;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.14);
    transition: transform 0.18s, box-shadow 0.18s;
    margin-bottom: 10px;
}
.bottom-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.20);
}

/* ② 信任行 + 分享按钮同行 */
.bottom-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 0;
    padding: 0 2px;
}
.bottom-trust-text {
    font-size: 12px;
    color: var(--txt-sub);
    letter-spacing: 0.3px;
    line-height: 1.4;
    flex: 1;
}
.bottom-share-toggle {
    flex-shrink: 0;
    background: none;
    border: 1px solid var(--bd);
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 13px;
    color: var(--txt-sub);
    cursor: pointer;
    font-family: var(--sans);
    transition: all 0.15s;
    white-space: nowrap;
}
.bottom-share-toggle:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ③ 展开的分享 2×2 网格 */
.bottom-share-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-top: 10px;
}
.bottom-share-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 8px;
    background: var(--sur);
    border: 1px solid var(--bd);
    border-radius: 9px;
    font-size: 12.5px;
    color: var(--txt-sub);
    cursor: pointer;
    font-family: var(--sans);
    transition: all 0.15s;
}
.bottom-share-item:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(168,120,60,0.06);
}
.bottom-share-icon {
    font-size: 16px;
    line-height: 1;
}

/* ── Bottom share buttons ── */
.share-action-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-family: var(--serif-cn);
    background: var(--card);
    border: 1px solid var(--bd);
    border-radius: 8px;
    color: var(--txt-sub);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 8px;
}

.share-action-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* 主操作按钮 — 深色实心 */
.share-action-btn.share-action-primary {
    background: var(--ink);
    color: var(--brand-bg);
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

.share-action-btn.share-action-primary:hover {
    background: var(--brand-text);
    color: var(--brand-bg);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    border: none;
}

/* 社交证明数字微动画 */
@keyframes countPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.04);
    }

    100% {
        transform: scale(1);
    }
}

.social-proof-count.tick {
    animation: countPulse 0.4s ease;
}

.bottom-lang {
    text-align: center;
    margin-top: 16px;
}

.lang-toggle-bottom {
    background: transparent;
    border: 1px solid var(--bd);
    border-radius: var(--brand-radius-sm);
    padding: 6px 16px;
    font-size: 13px;
    color: var(--txt-sub);
    cursor: pointer;
    font-family: var(--sans);
}

/* ═══════════════════════════════════════════════════════
   BENTO DASHBOARD (数据看板风格)
═══════════════════════════════════════════════════════ */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.bento-box {
    background: var(--brand-bg-white);
    border: 1px solid var(--bd);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bento-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

/* 让第一个盒子横跨两列，作为主打亮点 */
.bento-box.hero {
    grid-column: span 2;
    background: var(--brand-bg-white);
    border-color: var(--bd-gold);
}

.bento-label {
    font-size: 12px;
    color: var(--txt-sub);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.bento-value {
    font-size: 26px;
    font-weight: 500;
    color: var(--gold);
    font-family: var(--serif-cn);
    line-height: 1.15;
    margin-bottom: 6px;
}

.bento-desc {
    font-size: 13px;
    color: var(--txt-main);
    line-height: 1.6;
    opacity: 0.85;
}

/* ═══════════════════════════════════════════════════════
   LITE MODE — 娱乐版样式
═══════════════════════════════════════════════════════ */

.mode-toggle {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--txt-sub);
    background: var(--sur);
    border: none;
    border-radius: 20px;
    padding: 6px 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--sans);
    letter-spacing: 0.5px;
    border: var(--card-border);
}

.mode-toggle:hover {
    border-color: var(--brand-gold-border);
    color: var(--txt);
}

/* ════════════════════════════════════════════════════════
   Lite Mode — Quiet Luxury · Floating Panels
   悬浮纸面 · 极简留白 · 克制金线 · 静奢美学
════════════════════════════════════════════════════════ */

.lite-wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: 0;
}

.lite-section {
    margin-bottom: var(--lite-section-gap);
    padding-top: 8px;
}

.lite-section+.lite-section {
    border-top: 1px solid var(--brand-border);
    padding-top: 16px;
}

.lite-section-label {
    font-family: var(--serif-cn);
    font-size: 17px;
    font-weight: 600;
    color: var(--txt);
    letter-spacing: 2px;
    text-align: left;
    margin-bottom: 20px;
    padding: 16px 0 12px;
    border-bottom: 2px solid var(--brand-border);
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lite-section-label::before {
    content: '';
    display: block;
    width: 4px;
    height: 18px;
    background: var(--gold);
    border-radius: 2px;
    flex-shrink: 0;
}

/* ── 人物原型 — 浮层英雄卡 ── */
.lite-archetype-card {
    text-align: center;
    padding: 48px 36px 44px;
    margin-bottom: var(--lite-section-gap);
    background: var(--sur);
    border: none;
    border-radius: var(--radius);
    border: var(--card-border);
}

.lite-archetype-emoji {
    font-size: 36px;
    margin-bottom: 20px;
    line-height: 1;
    opacity: 1;
    filter: none;
}

.lite-archetype-name {
    font-family: var(--serif-disp);
    font-size: 34px;
    font-weight: 400;
    color: var(--txt);
    margin-bottom: 12px;
    letter-spacing: 2px;
    line-height: 1.25;
}

.lite-archetype-desc {
    font-size: 16px;
    color: var(--txt-main);
    line-height: 1.75;
    max-width: 440px;
    margin: 0 auto;
}

.lite-archetype-long {
    font-size: 13.5px;
    color: var(--txt-main);
    line-height: 2;
    max-width: 460px;
    margin: 24px auto 0;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--bd);
}

/* ── 雷达图 ── */
.lite-radar-wrap {
    max-width: 300px;
    margin: 0 auto;
}

/* ── 人生阶段 ── */
.lite-phases-list {
    display: flex;
    flex-direction: column;
    gap: var(--lite-gap);
}

/* ── 通用条目 — 悬浮面板 + 左侧金线 ── */
.lite-phase-card {
    border-radius: var(--radius);
    padding: 22px 26px;
    border: none;
    border-left: 3px solid transparent;
    background: var(--sur);
    border: var(--card-border);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.25s ease;
}

.lite-phase-card:hover {
    border-color: var(--brand-gold-border);
}

.lite-phase-card::before {
    display: none;
}

.lite-phase-card.lite-phase-good {
    border-left-color: var(--jade);
}

.lite-phase-card.lite-phase-caution {
    border-left-color: var(--brand-gold);
}

.lite-phase-card.lite-phase-warning {
    border-left-color: var(--ruby);
}

.lite-phase-card.lite-phase-neutral {
    border-left-color: var(--bd-2);
}

.lite-phase-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.lite-phase-emoji {
    font-size: 16px;
}

.lite-phase-age {
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 700;
    color: var(--txt);
    letter-spacing: 0.3px;
}

.lite-phase-text {
    font-size: 15px;
    color: var(--txt-main);
    line-height: 1.9;
}

/* ── 流年域 chips ── */
.lite-fc-domains {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--bd);
}

.lite-fc-domain-chip {
    font-size: 13px;
    padding: 5px 12px;
    border-radius: 20px;
    background: var(--sur-2);
    color: var(--txt-main);
    font-weight: 600;
    letter-spacing: 0.3px;
    border: none;
}

/* ── 流月 — 悬浮面板 ── */
.lite-months-wrap {
    display: flex;
    flex-direction: column;
    gap: var(--lite-gap);
    margin-top: 16px;
}

.lite-month-card {
    border-radius: var(--radius);
    padding: 20px 24px;
    border: none;
    border-left: 3px solid transparent;
    background: var(--sur);
    border: var(--card-border);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.25s ease;
}

.lite-month-card:hover {
    border-color: var(--brand-gold-border);
}

.lite-month-card::before {
    display: none;
}

.lite-month-card.lite-phase-good {
    border-left-color: var(--jade);
}

.lite-month-card.lite-phase-caution {
    border-left-color: var(--brand-gold);
}

.lite-month-card.lite-month-current {
    border-left-color: var(--gold);
    border-color: var(--brand-gold-border);
}

.lite-month-header {
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 700;
    color: var(--txt);
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}

.lite-month-domains-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.lite-month-domain {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0;
}

.lite-month-domain:last-child {
    border-bottom: none;
}

.lite-month-dom-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--txt-sub);
    letter-spacing: 0.5px;
}

.lite-month-dom-text {
    font-size: 14px;
    color: var(--txt-main);
    line-height: 1.75;
}

/* ── 用神建议 — 金线高亮面板 ── */
.lite-yong-card {
    margin-bottom: 4px;
    border-left-color: var(--gold) !important;
}

.lite-yong-element {
    font-family: var(--serif-disp);
    font-size: 24px;
    font-weight: 500;
    color: var(--gold);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

/* ── 人生地图 — 时间线 ── */
.lite-timeline-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
}

.lite-timeline {
    display: flex;
    gap: 8px;
    min-width: max-content;
    padding: 4px 0;
}

.lite-timeline-item {
    flex-shrink: 0;
    width: 70px;
    padding: 14px 8px;
    border-radius: var(--radius);
    text-align: center;
    transition: box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
    background: var(--sur);
    border: none;
    border: var(--card-border);
}

.lite-timeline-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--tl-color, var(--bd));
}

.lite-timeline-item:hover {
    border-color: var(--brand-gold-border);
}

.lite-timeline-current {
    border-color: var(--brand-gold-border);
    z-index: 1;
}

.lite-timeline-current::after {
    background: var(--gold) !important;
}

.lite-timeline-age {
    font-size: 12px;
    font-weight: 600;
    color: var(--txt-sub);
    margin-bottom: 4px;
}

.lite-timeline-gz {
    font-size: 16px;
    font-weight: 600;
    color: var(--txt);
    font-family: var(--serif-cn);
}

.lite-timeline-badge {
    font-size: 8px;
    font-weight: 700;
    margin-top: 5px;
    padding: 2px 6px;
    color: #fff;
    background: var(--gold);
    border: none;
    border-radius: 10px;
    display: inline-block;
    letter-spacing: 0.5px;
}

/* ── 纵向时间线 (Vertical Timeline) ── */
.vtl {
    position: relative;
    padding-left: 28px;
}

.vtl::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 9px;
    width: 1.5px;
    background: var(--bd-2);
}

/* ── 大运节点 ── */
.vtl-node {
    position: relative;
    padding: 0 0 28px 0;
}

.vtl-node:last-child {
    padding-bottom: 0;
}

.vtl-dot {
    position: absolute;
    left: -28px;
    top: 4px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--bd-2);
    border: 2px solid var(--bg);
    box-shadow: 0 0 0 1.5px var(--bd-2);
    z-index: 1;
    transition: all 0.2s;
}

.vtl-node.vtl-good .vtl-dot {
    background: var(--jade);
    box-shadow: 0 0 0 1.5px var(--jade);
}

.vtl-node.vtl-caution .vtl-dot {
    background: var(--ruby);
    box-shadow: 0 0 0 1.5px var(--ruby);
}

.vtl-node.vtl-current .vtl-dot {
    background: var(--gold);
    box-shadow: 0 0 0 2px var(--gold), 0 0 0 5px rgba(146, 117, 70, 0.15);
    width: 11px;
    height: 11px;
    left: -29px;
    top: 3px;
}

.vtl-node.vtl-past {
    opacity: 0.45;
}

.vtl-node.vtl-past .vtl-dot {
    background: var(--txt-sub);
    box-shadow: 0 0 0 1.5px var(--txt-sub);
}

.vtl-body {
    background: var(--sur);
    border-radius: var(--radius);
    padding: 14px 18px;
    border: var(--card-border);
    transition: box-shadow 0.25s;
}

.vtl-node:hover .vtl-body {
    border-color: var(--brand-gold-border);
}

.vtl-node.vtl-current .vtl-body {
    border-color: var(--brand-gold-border);
    border-left: 3px solid var(--gold);
}

.vtl-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.vtl-gz {
    font-family: var(--serif-cn);
    font-size: 18px;
    font-weight: 600;
    color: var(--txt);
}

.vtl-age {
    font-size: 13px;
    color: var(--txt-sub);
    font-weight: 500;
}

.vtl-weather {
    font-size: 15px;
}

.vtl-now-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 8px;
    color: #fff;
    background: var(--gold);
    border-radius: 10px;
    letter-spacing: 1px;
}

/* ── 四柱阶段分隔标记 ── */
.vtl-phase-marker {
    position: relative;
    padding: 0 0 32px 0;
}

.vtl-phase-dot {
    position: absolute;
    left: -35px;
    top: 2px;
    font-size: 17px;
    z-index: 1;
    line-height: 1;
}

.vtl-phase-body {
    background: var(--sur);
    border-radius: var(--radius);
    padding: 18px 20px;
    border: var(--card-border);
    border-left: 3px solid var(--bd);
}

.vtl-phase-marker.vtl-good .vtl-phase-body {
    border-left-color: var(--jade);
}

.vtl-phase-marker.vtl-caution .vtl-phase-body {
    border-left-color: var(--ruby);
}

.vtl-phase-title {
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 700;
    color: var(--txt);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vtl-phase-range {
    font-size: 12px;
    font-weight: 500;
    color: var(--txt-sub);
}

.vtl-phase-text {
    font-size: 13.5px;
    color: var(--txt-main);
    line-height: 1.9;
}

/* ── 时间线小标题 ── */
.vtl-section-title {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 700;
    color: var(--txt-sub);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 32px 0 16px 28px;
}

.vtl-section-title:first-child {
    margin-top: 0;
}

/* ── 流年域 chips ── */
.vtl-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.vtl-chip {
    font-size: 11.5px;
    padding: 3px 10px;
    border-radius: 20px;
    background: var(--sur-2);
    color: var(--txt-main);
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ── 流月四域 ── */
.vtl-month-doms {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--bd);
}

.vtl-month-dom {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vtl-month-dom-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--txt-sub);
}

.vtl-month-dom-text {
    font-size: 12.5px;
    color: var(--txt-main);
    line-height: 1.65;
}

@media (max-width: 480px) {
    .vtl {
        padding-left: 24px;
    }

    .vtl::before {
        left: 7px;
    }

    .vtl-dot {
        left: -24px;
    }

    .vtl-node.vtl-current .vtl-dot {
        left: -25px;
    }

    .vtl-phase-dot {
        left: -31px;
        font-size: 15px;
    }

    .vtl-body {
        padding: 12px 14px;
    }

    .vtl-phase-body {
        padding: 14px 16px;
    }

    .vtl-gz {
        font-size: 16px;
    }

    .vtl-section-title {
        margin-left: 24px;
    }

    .vtl-month-doms {
        grid-template-columns: 1fr;
    }
}

/* ── 行动建议 ── */
.lite-action-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 18px;
}

.lite-action-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    background: var(--sur-2);
    border: none;
    border-radius: var(--radius);
    transition: background 0.2s;
}

.lite-action-item:hover {
    background: var(--sur-3);
}

.lite-action-num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gold);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.lite-action-text {
    font-size: 13.5px;
    color: var(--txt-main);
    line-height: 1.7;
}

/* ── 五行迷你横条图 ── */
.lite-wx-bars {
    margin: 14px 0 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lite-wx-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lite-wx-row.lite-wx-yong {
    background: rgba(146, 117, 70, 0.06);
    border-radius: var(--brand-radius-sm);
    padding: 4px 8px;
    margin: 0 -8px;
}

.lite-wx-label {
    flex: 0 0 46px;
    font-size: 13px;
    font-weight: 600;
    color: var(--txt);
}

.lite-wx-track {
    flex: 1;
    height: 8px;
    background: var(--sur-3);
    border-radius: 4px;
    overflow: hidden;
}

.lite-wx-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
}

.lite-wx-pct {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 600;
    color: var(--txt-sub);
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 32px;
    text-align: right;
}

.lite-wx-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 8px;
    white-space: nowrap;
}

.lite-wx-badge-yong {
    background: var(--gold);
    color: #fff;
}

.lite-wx-badge-ji {
    background: var(--ruby);
    color: #fff;
}

/* ── 用神高亮区块 ── */
.lite-yong-highlight {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.lite-yong-deficit {
    font-size: 14px;
    font-weight: 700;
    color: var(--ruby);
    white-space: nowrap;
}

/* ── 水晶推荐 CTA ── */
.lite-crystal-cta {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, var(--brand-bg-input) 0%, var(--brand-gold-light) 100%);
    border: 1px solid var(--bd-gold);
    border-radius: var(--radius);
}

.lite-crystal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 12px;
}

.lite-crystal-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.lite-crystal-tag {
    padding: 5px 14px;
    background: #fff;
    border: 1px solid var(--bd-gold);
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--gold);
}

.lite-crystal-proof {
    font-size: 11.5px;
    color: var(--txt-sub);
    margin-bottom: 14px;
    line-height: 1.5;
}

.lite-crystal-btn {
    display: block;
    text-align: center;
    padding: 13px 24px;
    background: var(--gold);
    color: var(--brand-bg-input);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(146, 117, 70, 0.25);
}

.lite-crystal-btn:hover {
    background: var(--gold-bright);
    box-shadow: 0 4px 16px rgba(146, 117, 70, 0.35);
    transform: translateY(-1px);
}

.lite-crystal-urgency {
    margin-top: 10px;
    font-size: 12px;
    color: var(--ruby);
    text-align: center;
    font-weight: 500;
}

/* ── 切换引导 ── */
.lite-switch-bar {
    text-align: center;
    padding: 14px 24px;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--txt-sub);
    cursor: pointer;
    border: none;
    border-radius: var(--radius);
    background: var(--sur);
    border: var(--card-border);
    letter-spacing: 0.3px;
    transition: all 0.25s;
}

.lite-switch-bar:hover {
    border-color: var(--brand-gold-border);
    color: var(--txt);
}

/* ── Lite 响应式 ── */
@media (max-width: 480px) {
    .lite-archetype-card {
        padding: 32px 22px 28px;
    }

    .lite-archetype-emoji {
        font-size: 30px;
    }

    .lite-archetype-name {
        font-size: 28px;
    }

    .lite-archetype-desc {
        font-size: 15px;
    }

    .lite-archetype-long {
        font-size: 12.5px;
    }

    .lite-phase-card {
        padding: 18px 18px;
    }

    .lite-month-card {
        padding: 16px 18px;
    }

    .lite-month-domains-grid {
        grid-template-columns: 1fr;
    }

    .lite-timeline-item {
        width: 62px;
        padding: 10px 6px;
    }

    .lite-timeline-gz {
        font-size: 14px;
    }
}

/* ── Extra small screens ── */
@media (max-width: 380px) {
    .pillar-grid {
        gap: 6px;
    }

    .pillar {
        padding: 14px 4px 12px;
    }
}

/* ═══════════════════════════════════════════════════════
   SCROLL-REVEAL ANIMATION SYSTEM
═══════════════════════════════════════════════════════ */
.reveal-target {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-target.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-target.revealed:nth-child(2) {
    transition-delay: 0.06s;
}

.reveal-target.revealed:nth-child(3) {
    transition-delay: 0.12s;
}

.reveal-target.revealed:nth-child(4) {
    transition-delay: 0.15s;
}

.reveal-target.revealed:nth-child(5) {
    transition-delay: 0.18s;
}

/* ═══════════════════════════════════════════════════════
   GLOBAL POLISH
═══════════════════════════════════════════════════════ */
html {
    scroll-behavior: smooth;
}

::selection {
    background: rgba(163, 130, 90, 0.15);
    color: var(--txt);
}

/* ── Tip hover underline animation ── */
.tip {
    color: var(--gold);
    border-bottom: none;
    background-image: linear-gradient(var(--gold), var(--gold));
    background-size: 0% 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.3s ease;
    cursor: help;
    font-weight: 600;
    padding: 0 2px;
    outline: none;
}

.tip:hover {
    background-size: 100% 1px;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal-target {
        transition: none;
        opacity: 1;
        transform: none;
    }

    .pillar {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .page-title {
        animation: fadeUp 0.9s ease both;
    }
}

/* ── Print styles ── */
@media print {

    .sticky-bar,
    .bottom-tools,
    .mode-toggle,
    .social-proof-bar {
        display: none;
    }

    .pillar-grid {
        box-shadow: none;
    }

    .pillar {
        box-shadow: none;
        border: 1px solid #CCC;
    }

    body {
        background: white;
    }
}

/* ════════════════════════════════════════════════════════
   V2 RESTRUCTURE — Brand Hero + Form V2 + Typography + Spacing
   品牌着陆感 · 意图前置 · 信任前置 · 节奏化间距
════════════════════════════════════════════════════════ */

/* ── A1: BRAND HERO — 品牌着陆感 ──────────────────────── */
.brand-hero {
    text-align: center;
    padding: 20px 24px 8px;
    margin-bottom: 0;
    position: relative;
}
.brand-hero-logo {
    margin-bottom: 0;
}
.brand-hero-wordmark {
    font-family: 'Cormorant Garamond', 'Noto Serif SC', serif;
    font-size: 34px;
    font-weight: 600;
    color: var(--txt);
    letter-spacing: 4px;
    display: inline-block;
    position: relative;
}
.brand-hero-wordmark::after {
    content: '';
    display: block;
    width: 40px;
    height: 1.5px;
    background: var(--gold);
    margin: 8px auto 0;
}
.brand-hero-origin {
    font-size: 11px;
    color: var(--txt-sub);
    letter-spacing: 2px;
    margin-top: 8px;
    opacity: 0.7;
}
.brand-hero-headline {
    font-family: var(--serif-cn);
    font-size: 26px;
    font-weight: 600;
    color: var(--txt);
    line-height: 1.6;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}
.brand-hero-sub {
    font-size: 14px;
    color: var(--txt-sub);
    line-height: 1.7;
    margin-bottom: 20px;
}
/* A2: Product preview orbs — 40px crystal color blocks with sheen */
.brand-hero-preview {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 22px; /* Fix 15: space for absolute-positioned labels */
    flex-wrap: wrap;
}
.brand-preview-orb {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12), inset 0 -4px 8px rgba(0,0,0,0.1), inset 0 4px 8px rgba(255,255,255,0.25);
}
.brand-preview-orb::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 10px;
    width: 16px;
    height: 10px;
    background: rgba(255,255,255,0.35);
    border-radius: 50%;
    transform: rotate(-20deg);
}
.brand-preview-orb span {
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    color: var(--txt-sub);
    white-space: nowrap;
    letter-spacing: 0.3px;
}
/* Trust tags */
.brand-hero-trust {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.brand-trust-tag {
    font-size: 12px;
    color: var(--txt-sub);
    padding: 4px 12px;
    border: 1px solid var(--bd);
    border-radius: 20px;
    background: var(--sur);
    letter-spacing: 0.3px;
}
.brand-hero-arrow {
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.2s;
    animation: brand-arrow-bounce 2s ease-in-out infinite;
}
.brand-hero-arrow:hover { opacity: 0.7; }
@keyframes brand-arrow-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}
/* Fix 1: Brand Hero explicit CTA */
.brand-hero-cta {
    display: inline-block;
    padding: 13px 36px;
    background: var(--ink);
    color: var(--brand-bg, #fff);
    font-size: 15px;
    font-weight: 700;
    font-family: var(--serif-cn);
    border-radius: 10px;
    text-decoration: none;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: all 0.2s;
    margin-bottom: 14px;
}
.brand-hero-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
/* Fix 2: Three-step process bar */
.brand-hero-steps {
    font-size: 12px;
    color: var(--txt-sub);
    letter-spacing: 0.3px;
    margin-bottom: 16px;
    opacity: 0.7;
}
/* Fix 6: Privacy link */
.btn-privacy {
    margin-top: 8px;
    font-size: 11px;
    text-align: center;
}
.btn-privacy a {
    color: var(--txt-sub);
    text-decoration: none;
    border-bottom: 1px dashed var(--bd);
    padding-bottom: 1px;
    transition: color 0.15s;
}
.btn-privacy a:hover {
    color: var(--gold);
}

/* ── A3: FORM HERO V2 — 功能引导（不与 brand hero 抢情感位）── */
.form-hero-v2 {
    text-align: center;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--bd);
}
.form-hero-tagline {
    font-size: 12px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 8px;
}
.form-hero-desc {
    font-size: 14px;
    color: var(--txt-sub);
    line-height: 1.7;
}

/* ── B1: INTENT SELECTOR (form) — 前置可见 ────────────── */
.form-section-intent {
    margin-bottom: 12px;
}
/* Fix 2: Chinese label needs tighter spacing than the default 2px uppercase style */
.form-section-intent .form-section-label {
    letter-spacing: 0.5px;
    text-transform: none;
}
.form-section-intent .intent-btn-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 8px;
}
.form-section-intent .intent-form-btn {
    padding: 10px 10px;
    border: 1.5px solid var(--bd);
    border-radius: 10px;
    background: var(--sur);
    color: var(--txt-sub);
    font-size: 13px;
    font-family: var(--sans);
    cursor: pointer;
    transition: all 0.18s;
    text-align: left;
    line-height: 1.45;
}
.form-section-intent .intent-form-btn.active,
.form-section-intent .intent-form-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(168,120,60,0.08);
    font-weight: 600;
}

/* ── Intent radio list (single-choice) ───────────────── */
.intent-radio-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-top: 6px;
}
.intent-radio-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    user-select: none;
}
.intent-radio-item:hover {
    background: rgba(168,120,60,0.05);
}
.intent-radio-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--bd);
    flex-shrink: 0;
    transition: all 0.15s;
    position: relative;
    background: var(--sur);
}
.intent-radio-dot::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0;
    transition: opacity 0.15s;
}
.intent-radio-item.active .intent-radio-dot {
    border-color: var(--gold);
}
.intent-radio-item.active .intent-radio-dot::after {
    opacity: 1;
}
.intent-radio-icon {
    font-size: 15px;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}
.intent-radio-text {
    font-size: 14px;
    color: var(--txt-sub);
    line-height: 1.4;
    transition: color 0.15s;
}
.intent-radio-item.active .intent-radio-text {
    color: var(--gold);
    font-weight: 600;
}

/* ── B2: Date explanation ─────────────────────────────── */
.form-date-explain {
    font-size: 11.5px;
    color: var(--txt-sub);
    line-height: 1.6;
    margin-bottom: 10px;
    padding: 6px 10px;
    background: rgba(168,120,60,0.04);
    border-radius: 6px;
}

/* ── E1: Bottom CTA trust micro-badge ─────────────────── */
.bottom-cta-trust-micro {
    text-align: center;
    font-size: 12px;
    color: var(--txt-sub);
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

/* ── E2: Gift re-entry card ───────────────────────────── */
.gift-reentry-card {
    margin-bottom: 12px;
    padding: 16px 18px;
    background: var(--sur);
    border: 1.5px dashed var(--bd);
    border-radius: 12px;
    text-align: center;
}
.gift-reentry-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--txt);
    font-family: var(--serif-cn);
    margin-bottom: 4px;
}
.gift-reentry-desc {
    font-size: 13px;
    color: var(--txt-sub);
    margin-bottom: 12px;
}
.gift-reentry-btn {
    display: inline-block;
    padding: 9px 24px;
    background: rgba(168,120,60,0.08);
    border: 1.5px solid var(--gold);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gold);
    text-decoration: none;
    transition: all 0.18s;
}
.gift-reentry-btn:hover {
    background: rgba(168,120,60,0.14);
}

/* ── F2: COLOR CONVERGENCE — CTA 按钮用深色，金色仅用于点缀 ── */
/* calc-btn already uses var(--ink) — correct */
/* bottom-cta-btn already uses var(--ink) — correct */
/* Ensure gold is NOT used for CTAs, only for accents, labels, highlights */

/* ── F3: CARD SHADOW DIFFERENTIATION ──────────────────── */
/* Hero cards and CTA areas get float-up (elevated feel) */
.resonance-hero { box-shadow: var(--float-up) !important; }
/* Info sections and collapsed areas stay flat */
/* Already handled via inline styles; CSS reinforcement: */

/* ── F4: MOBILE SPACING RHYTHM ────────────────────────── */
/* Narrative rhythm: larger gaps between major sections, tighter within */
.lite-wrap > .resonance-hero {
    margin-bottom: 32px; /* gap before product hero */
}
@media (max-width: 600px) {
    .brand-hero {
        padding: 36px 20px 24px;
    }
    .brand-hero-headline {
        font-size: 21px;
    }
    .brand-hero-preview {
        gap: 14px;
    }
    .brand-preview-orb {
        width: 40px;
        height: 40px;
    }
    .form-section-intent .intent-btn-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    /* Increase gap between major narrative sections */
    .lite-wrap > div[style*="margin-bottom:22px"],
    .lite-wrap > div[style*="margin-bottom:28px"] {
        margin-bottom: 32px !important;
    }
}
@media (max-width: 360px) {
    .brand-hero-headline {
        font-size: 19px;
    }
    .form-section-intent .intent-btn-grid {
        grid-template-columns: 1fr;
    }
    .brand-hero-preview {
        gap: 10px;
    }
    .brand-preview-orb {
        width: 36px;
        height: 36px;
    }
    .brand-preview-orb span {
        font-size: 8px;
    }
}

/* ── F1: TYPOGRAPHY HIERARCHY — 收敛到 5 个明确层级 ────── */
/* Display: 24px (brand hero headline) */
/* Heading: 17-22px (section titles, product names) */
/* Body: 13-14px (main content) */
/* Caption: 12px (supporting text) */
/* Micro: 10-11px (tags, labels, trust badges) */
/* These are enforced via the component styles above */
/* ── Inline legacy (moved from <head>) ──────────────────────── */
.crystal-card-inner { transition: box-shadow 0.15s; }
.crystal-card-inner:hover { box-shadow: 0 4px 18px rgba(168,120,60,0.18) !important; }
.cart-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.sz-btn { transition: all 0.15s; }
#gift-btn:hover { border-color: var(--gold); color: var(--gold); background: rgba(168,120,60,0.05); }
.gift-mode-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 12px;
    background: rgba(168,120,60,0.12);
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    margin-left: 8px;
}
/* ── §CRAFT-BRIDGE + §PROD-RECOMMEND ─────────────────────────────────────── */
.craft-bridge { padding: 0 0 4px; }
.craft-point-item { transition: border-color 0.15s; }
.craft-photos > div { transition: opacity 0.2s; }

/* 主推英雄卡 */
.pc-hero-card { transition: box-shadow 0.15s; }
.pc-hero-card:hover { box-shadow: 0 4px 20px rgba(168,120,60,0.18); }

/* 折叠备选 */
.pc-alt-details summary::-webkit-details-marker { display: none; }
.pc-alt-details summary { transition: background 0.15s; }
.pc-alt-details summary:hover { background: var(--sur); }
.pc-alt-details[open] summary span:last-child { transform: rotate(180deg); }

/* 复用：主推 CTA 按钮（继承现有 pc-cta 若存在；否则独立定义） */
.pc-cta {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    border-radius: 20px;
    background: var(--amber, var(--gold));
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.03em;
    white-space: nowrap;
    transition: opacity 0.15s, transform 0.15s;
}
.pc-cta:hover { opacity: 0.88; transform: translateY(-1px); }

/* ══ Result accent color — set via JS from currYong element color ══ */


/* Form neutralization — all brand gold replaced with neutral ink */
.form-section-label { color: var(--txt-sub); }
select:focus, input[type="number"]:focus {
    outline: 2px solid rgba(0,0,0,0.35);
    outline-offset: 0;
}
/* Selects in form: minimal styling */
#cal-select:focus, #gender-select:focus, #intent-select:focus {
    outline: 2px solid rgba(0,0,0,0.35);
    border-color: rgba(0,0,0,0.4);
}

/* ══ Result page: --accent replaces gold for element-specific highlights ══ */
/* --accent is set by JS in renderLite() from currYong element color */

/* 专属推荐卡 border */
.resonance-hero { border-color: var(--accent, rgba(168,120,60,0.28)) !important; }

/* 水晶推荐区 section header bar */
.lite-crystal-header { border-left: 3px solid var(--accent, var(--gold)); }
.lite-crystal-cta .lite-crystal-header span:last-child { color: var(--accent, var(--gold)); }

/* whyNot 诊断区 left border */
.resonance-hero details summary { color: var(--accent, var(--txt-sub)); }

/* 产品推荐卡片 gold border → accent */
.pc-hero-card { border-color: var(--accent, var(--gold)) !important; }

/* pc-cta 按钮背景 → accent */
.pc-cta { background: var(--accent, var(--gold)) !important; }

/* 结果页 tab-meta 名字高亮 */
.tab-meta strong { color: var(--accent, var(--gold)); }

/* 底部价格锚点强调色 */
#bottom-price-anchor strong { color: var(--accent, var(--txt)); }

/* ══ Deep cognac accessibility refinements ══════════════════════════════ */
/* Product recommendation card border */
.pc-hero-card { border-color: var(--brand-gold-border) !important; }
/* Price text — use full-strength brand color for contrast */
.bottom-price-anchor strong { color: var(--brand-gold) !important; }
/* Main CTA buttons: near-black for maximum legibility */
.bottom-cta-btn { background: #1C1410 !important; }  /* warm near-black */
/* Ensure secondary text never falls below AA contrast */
.form-section-label,
.form-datetime-label,
.btn-proof,
.time-unknown-hint,
.btn-privacy a { color: var(--txt-sub) !important; }
/* pc-cta button: full-strength brand color */
.pc-cta { background: var(--brand-gold) !important; }

/* ── Hero product carousel ─────────────────────────────────────────────── */
#hero-track::-webkit-scrollbar { display: none; }
#hero-track { scroll-behavior: smooth; }

.hero-slide { flex-shrink: 0; }

.hero-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.38);
    transition: background 0.2s, width 0.2s;
    display: inline-block;
}
.hero-dot.active {
    background: #fff;
    width: 18px;
    border-radius: 3px;
}

/* ── Desktop carousel: taller by 1/3 (200 → 267px) ── */
@media (min-width: 769px) {
    .hero-slide {
        height: 267px !important;
    }
}