/* ============================================================
   CGTI 投资人格扫描 — Modern Soft UI
   Cream paper · soft shadow cards · coral accent
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
    /* Surface */
    --bg:        #FAF7F0;
    --bg-soft:   #F4EFE2;
    --bg-tint:   #FFF4EE;       /* warm coral tint */
    --panel:     #FFFFFF;
    --line:      #EFE7D5;
    --line-strong: #E2D8C2;

    /* Ink */
    --ink:       #1A1A2E;
    --ink-soft:  #4A4D6B;
    --ink-faint: #8B8FA8;
    --ink-mute:  #C7CADC;

    /* Accent — persimmon coral */
    --accent:        #F26F4E;
    --accent-deep:   #D8553A;
    --accent-soft:   #FFE4DA;
    --accent-line:   #F8C7B7;

    /* Supporting accent — fresh mint (used sparingly for ✓ etc.) */
    --mint:          #2EC4A2;

    /* Shadows — soft, large blur */
    --shadow-sm: 0 4px 16px rgba(74, 77, 107, 0.06);
    --shadow-md: 0 10px 32px rgba(74, 77, 107, 0.08);
    --shadow-lg: 0 18px 48px rgba(74, 77, 107, 0.10);
    --shadow-hover: 0 22px 56px rgba(74, 77, 107, 0.14);
    --shadow-coral: 0 10px 28px rgba(242, 111, 78, 0.32);

    /* Radius */
    --r-lg:   24px;
    --r-md:   18px;
    --r-sm:   12px;
    --r-xs:   8px;
    --r-pill: 999px;

    /* Type */
    --f-sans: -apple-system, BlinkMacSystemFont, "PingFang SC",
              "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
              "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
    --f-mono: 'JetBrains Mono', 'SF Mono', 'IBM Plex Mono', 'Menlo',
              'Courier New', monospace;

    --gutter: 20px;
}

@media (min-width: 768px) {
    :root { --gutter: 32px; }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { font-size: 16px; scroll-behavior: smooth; }
@media (max-width: 380px) { html { font-size: 15px; } }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--f-sans);
    line-height: 1.65;
    font-feature-settings: 'kern', 'liga';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Atmospheric radial gradient bg */
body {
    background:
        radial-gradient(circle at 12% -10%, #FFEFE3 0, transparent 38%),
        radial-gradient(circle at 90% 8%, #FBF1D6 0, transparent 32%),
        var(--bg);
    background-attachment: fixed;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; padding: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: #fff; }

/* ============================================================
   PAGE CONTAINER
   ============================================================ */

.paper {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
    padding: 20px var(--gutter) 64px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================================
   NAV BAR — tiny brand strip
   ============================================================ */

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 24px;
    background: var(--panel);
    border-radius: var(--r-pill);
    box-shadow: var(--shadow-sm);
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.02em;
    color: var(--ink);
}
.nav-brand-dot {
    width: 28px;
    height: 28px;
    border-radius: var(--r-sm);
    background: var(--accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
}
.nav-logo {
    height: 44px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
    transition: transform 0.3s ease;
}
.nav-brand:hover .nav-logo { transform: rotate(-4deg) scale(1.04); }

.nav-tagline {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 12px;
    border-left: 1px solid var(--line-strong);
    line-height: 1.15;
}
.nav-tagline-en {
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    color: var(--ink-faint);
    text-transform: uppercase;
    font-weight: 600;
}
.nav-tagline-cn {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 0.02em;
}

/* Hero 编辑式印记 —— 一行 mono caps 小字,贴右上角 */
.hero-imprint {
    position: absolute;
    top: 20px;
    right: 22px;
    z-index: 2;
    font-family: var(--f-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--ink-faint);
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
    animation: imprintIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.3s backwards;
}
.hero-imprint .hi-sep {
    color: var(--accent);
    margin: 0 0.5em;
    font-weight: 700;
}
@keyframes imprintIn {
    from { opacity: 0; transform: translateX(8px); }
    to   { opacity: 1; transform: translateX(0); }
}
@media (min-width: 600px) {
    .hero-imprint { top: 24px; right: 26px; font-size: 11px; letter-spacing: 0.22em; }
}
.nav-pill {
    padding: 6px 14px;
    border-radius: var(--r-pill);
    background: var(--accent-soft);
    color: var(--accent-deep);
    font-family: var(--f-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.nav-sticky {
    position: sticky;
    top: 16px;
    z-index: 50;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.88);
}

/* ============================================================
   HERO CARD
   ============================================================ */

.hero-card {
    position: relative;
    background: var(--panel);
    border-radius: var(--r-lg);
    padding: 36px 28px 32px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    text-align: left;
}

@media (min-width: 600px) {
    .hero-card { padding: 56px 48px 48px; }
}

/* Decorative orbs in hero */
.hero-card::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
    z-index: 0;
}
.hero-card::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -60px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, #FBE8C3 0%, transparent 70%);
    z-index: 0;
    opacity: 0.7;
}

.hero-card > * { position: relative; z-index: 1; }

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 24px;
    background: var(--accent-soft);
    color: var(--accent-deep);
    border-radius: var(--r-pill);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.hero-chip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: chipPulse 1.6s ease-in-out infinite;
}
@keyframes chipPulse {
    0%, 100% { opacity: 0.6; transform: scale(0.85); }
    50%      { opacity: 1;   transform: scale(1); }
}

.hero-title {
    margin: 0 0 16px;
    font-size: clamp(34px, 7.6vw, 52px);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.hl {
    position: relative;
    display: inline-block;
    padding: 0 4px;
    background: linear-gradient(180deg, transparent 0%, transparent 58%, var(--accent-soft) 58%, var(--accent-soft) 96%, transparent 96%);
}

.hero-sub {
    margin: 0 0 28px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink-soft);
}

.hero-cta {
    margin-top: 32px;
}

.hero-meta {
    display: flex;
    gap: 18px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px dashed var(--line-strong);
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--ink-faint);
    letter-spacing: 0.04em;
}
.hero-meta strong {
    color: var(--ink);
    font-weight: 700;
    margin-right: 4px;
}

/* ============================================================
   FEATURE CARDS — 3 in a row
   ============================================================ */

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 24px;
}
@media (min-width: 600px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}

.feature-card {
    background: var(--panel);
    border-radius: var(--r-md);
    padding: 22px 22px 22px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
@media (min-width: 600px) {
    .feature-card {
        flex-direction: column;
        gap: 14px;
    }
}
.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.feature-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent-deep);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
}
.feature-card:nth-child(2) .feature-icon { background: #E3F5EE; color: #1A8E70; }
.feature-card:nth-child(3) .feature-icon { background: #FFF1CE; color: #B47A0F; }

.feature-text {
    flex: 1;
}
.feature-title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.005em;
}
.feature-desc {
    margin: 0;
    font-size: 13px;
    color: var(--ink-faint);
    line-height: 1.55;
}

/* ============================================================
   STEPS / HOW IT WORKS
   ============================================================ */

.steps-card {
    margin-top: 24px;
    background: var(--panel);
    border-radius: var(--r-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
}
.steps-title {
    margin: 0 0 18px;
    font-size: 14px;
    color: var(--ink-faint);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-family: var(--f-mono);
}
.steps-list {
    display: flex;
    gap: 14px;
    justify-content: space-between;
    align-items: flex-start;
}
.step {
    flex: 1;
    text-align: center;
}
.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f-mono);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}
.step:first-child .step-num { background: var(--accent); color: #fff; }
.step-label {
    font-size: 13px;
    color: var(--ink-soft);
    font-weight: 500;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px 24px;
    background: var(--accent);
    color: #fff;
    font-family: var(--f-sans);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.01em;
    border: none;
    border-radius: var(--r-md);
    box-shadow: var(--shadow-coral);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--accent-deep);
    box-shadow: 0 16px 36px rgba(242, 111, 78, 0.42);
}
.btn-primary:active {
    transform: translateY(0);
}
.btn-primary:disabled {
    opacity: 0.36;
    cursor: not-allowed;
    background: var(--ink-mute);
    box-shadow: none;
    transform: none;
}
.btn-arrow {
    font-family: var(--f-mono);
    font-size: 17px;
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: var(--panel);
    color: var(--ink);
    font-family: var(--f-sans);
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-pill);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.btn-secondary:hover {
    transform: translateY(-1px);
    border-color: var(--accent);
    color: var(--accent-deep);
    box-shadow: var(--shadow-sm);
}

/* ============================================================
   INDEX FOOTER
   ============================================================ */

.foot {
    margin-top: 28px;
    text-align: center;
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--ink-faint);
    letter-spacing: 0.05em;
}
.foot-dot {
    color: var(--accent);
    margin: 0 6px;
}

/* ============================================================
   QUIZ
   ============================================================ */

.quiz-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.q-counter {
    font-family: var(--f-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    letter-spacing: 0.02em;
    font-feature-settings: 'tnum';
}
.q-counter b {
    color: var(--accent);
    font-weight: 700;
}

.progress {
    height: 6px;
    border-radius: 999px;
    background: var(--bg-soft);
    overflow: hidden;
    margin-bottom: 24px;
}
.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #FF9670);
    border-radius: 999px;
    transition: width 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.quiz {
    flex: 1;
}

.quiz-card {
    display: none;
}
.quiz-card[data-active] {
    display: block;
    animation: cardIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes cardIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.q-card {
    background: var(--panel);
    border-radius: var(--r-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow-md);
    margin-bottom: 14px;
}
@media (min-width: 600px) {
    .q-card { padding: 36px 32px; }
}

.q-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
    padding: 5px 12px;
    background: var(--bg-soft);
    color: var(--ink-soft);
    border-radius: var(--r-pill);
    font-family: var(--f-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
}
.q-tag b { color: var(--accent); font-weight: 700; }

.quiz-question {
    margin: 0 0 24px;
    font-size: clamp(20px, 4.6vw, 24px);
    font-weight: 700;
    line-height: 1.45;
    color: var(--ink);
    letter-spacing: -0.005em;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.quiz-options li { margin: 0; }

.option {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--bg);
    border: 2px solid transparent;
    border-radius: var(--r-md);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}
.option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.option-letter {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--panel);
    color: var(--ink-faint);
    font-family: var(--f-mono);
    font-size: 13px;
    font-weight: 700;
    border: 1px solid var(--line-strong);
    transition: all 0.2s ease;
}
.option-text {
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink);
    font-weight: 500;
}
.option-check {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid var(--line-strong);
    transition: all 0.2s ease;
    position: relative;
}
.option-check::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 7px;
    width: 5px;
    height: 10px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg) scale(0);
    transition: transform 0.18s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.option:hover {
    background: var(--panel);
    border-color: var(--accent-line);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
.option:hover .option-letter {
    border-color: var(--accent);
    color: var(--accent);
}
.option.is-selected, .option:has(input:checked) {
    background: var(--accent-soft);
    border-color: var(--accent);
}
.option.is-selected .option-letter, .option:has(input:checked) .option-letter {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.option.is-selected .option-check, .option:has(input:checked) .option-check {
    background: var(--accent);
    border-color: var(--accent);
}
.option.is-selected .option-check::after, .option:has(input:checked) .option-check::after {
    transform: rotate(45deg) scale(1);
}
.option.is-selected .option-text, .option:has(input:checked) .option-text {
    color: var(--ink);
    font-weight: 600;
}

.btn-submit { margin-top: 24px; }

/* ============================================================
   LOADING
   ============================================================ */

.paper-loading { justify-content: center; }

.loading-card {
    background: var(--panel);
    border-radius: var(--r-lg);
    padding: 48px 28px 40px;
    box-shadow: var(--shadow-md);
    text-align: center;
    margin: 24px 0;
    position: relative;
    overflow: hidden;
}
.loading-card::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
}
.loading-card > * { position: relative; z-index: 1; }

.loading-orb {
    width: 120px;
    height: 120px;
    margin: 0 auto 28px;
    position: relative;
}
.loading-orb svg { width: 100%; height: 100%; display: block; }
.orb-ring  { transform-origin: center; animation: rotate-cw 8s linear infinite; }
.orb-ring-2 { transform-origin: center; animation: rotate-ccw 12s linear infinite; }
.orb-dot {
    transform-origin: center;
    animation: orb-pulse 1.4s ease-in-out infinite;
}
@keyframes rotate-cw  { to { transform: rotate(360deg); } }
@keyframes rotate-ccw { to { transform: rotate(-360deg); } }
@keyframes orb-pulse {
    0%, 100% { transform: scale(0.85); }
    50%      { transform: scale(1.05); }
}

.loading-pct {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f-mono);
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    font-feature-settings: 'tnum';
    letter-spacing: -0.01em;
}

.loading-title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    transition: opacity 0.25s;
}
.loading-sub {
    margin: 0 0 32px;
    font-size: 14px;
    color: var(--ink-faint);
    transition: opacity 0.25s;
}

.trace {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    text-align: left;
}
.trace-line {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: var(--r-sm);
    font-size: 13px;
    color: var(--ink-soft);
    background: var(--bg);
    margin-bottom: 6px;
    transition: all 0.3s ease;
}
.trace-line.is-active {
    background: var(--accent-soft);
    color: var(--accent-deep);
}
.trace-line.is-done {
    background: var(--panel);
    color: var(--ink-soft);
}
.trace-num {
    font-family: var(--f-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--ink-faint);
    letter-spacing: 0.04em;
}
.trace-line.is-active .trace-num { color: var(--accent); }
.trace-text { color: inherit; font-weight: 500; }
.trace-status {
    font-family: var(--f-mono);
    font-size: 14px;
    color: var(--ink-mute);
    width: 16px;
    text-align: right;
}
.trace-line.is-active .trace-status {
    color: var(--accent);
    animation: blink 0.9s steps(2, end) infinite;
}
.trace-line.is-done .trace-status { color: var(--mint); }
@keyframes blink { 50% { opacity: 0.25; } }

/* ============================================================
   RESULT
   ============================================================ */

.result-card {
    background: var(--panel);
    border-radius: var(--r-lg);
    padding: 28px 24px 32px;
    box-shadow: var(--shadow-md);
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.result-card::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
}
.result-card > * { position: relative; z-index: 1; }

.result-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    margin-bottom: 18px;
    background: var(--accent-soft);
    color: var(--accent-deep);
    border-radius: var(--r-pill);
    font-family: var(--f-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
}
.result-eyebrow::before {
    content: '✓';
    font-size: 13px;
    color: var(--accent);
    font-weight: 800;
}

.result-pre {
    margin: 0 0 4px;
    font-size: 14px;
    color: var(--ink-faint);
    font-weight: 500;
}
.result-name {
    margin: 0;
    font-size: clamp(36px, 9vw, 56px);
    font-weight: 900;
    line-height: 1.1;
    color: var(--accent);
    letter-spacing: -0.025em;
}
.result-en {
    margin: 6px 0 0;
    font-family: var(--f-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    letter-spacing: 0.08em;
}

.poster-card {
    background: var(--panel);
    border-radius: var(--r-lg);
    padding: 14px;
    box-shadow: var(--shadow-md);
    margin-bottom: 16px;
}
.poster {
    width: 100%;
    display: block;
    border-radius: var(--r-md);
    user-select: none;
    -webkit-user-select: none;
}

.result-hint {
    margin: 0 0 14px;
    font-size: 12px;
    color: var(--ink-faint);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.result-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 8px;
}

/* ============================================================
   REVEAL
   ============================================================ */

[data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    animation: reveal 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: var(--d, 0s);
}
@keyframes reveal {
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    [data-reveal] { opacity: 1; transform: none; }
}

/* ============================================================
   答题页底部导航 (上一题)
   ============================================================ */

.q-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed var(--line-strong);
}
.btn-prev {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: transparent;
    color: var(--ink-faint);
    font-family: var(--f-sans);
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--r-pill);
    cursor: pointer;
    transition: color 0.2s, background 0.2s, transform 0.15s;
}
.btn-prev:hover {
    color: var(--accent-deep);
    background: var(--accent-soft);
    transform: translateX(-2px);
}
.btn-prev:active { transform: translateX(0); }
.btn-prev[hidden] { display: none; }
.prev-arrow {
    font-family: var(--f-mono);
    font-size: 14px;
}
.q-tip {
    font-size: 11px;
    color: var(--ink-mute);
    font-family: var(--f-mono);
    letter-spacing: 0.04em;
}
@media (max-width: 380px) {
    .q-tip { display: none; }
}

/* ============================================================
   首页历史记录卡片
   ============================================================ */

.history-section {
    margin-top: 24px;
}
.history-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 12px;
    padding: 0 6px;
}
.history-title-l {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-soft);
    letter-spacing: 0.02em;
}
.history-clear {
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--ink-faint);
    background: transparent;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    transition: color 0.2s, background 0.2s;
    letter-spacing: 0.04em;
}
.history-clear:hover {
    color: var(--accent-deep);
    background: var(--accent-soft);
}
.history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.history-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--panel);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform 0.18s, box-shadow 0.18s;
}
.history-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.hc-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(242, 111, 78, 0.15);
}
.history-card[data-code="COLD-BRAIN"]      .hc-dot { background: #5B86E5; box-shadow: 0 0 0 3px rgba(91, 134, 229, 0.15); }
.history-card[data-code="HOT-RADAR"]       .hc-dot { background: #FF6B35; box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15); }
.history-card[data-code="LEFT-DIP"]        .hc-dot { background: #6B8E4E; box-shadow: 0 0 0 3px rgba(107, 142, 78, 0.15); }
.history-card[data-code="ALL-IN-JACK"]     .hc-dot { background: #1A1A1A; box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.15); }
.history-card[data-code="SIGNAL-WATCHER"]  .hc-dot { background: #A67B5B; box-shadow: 0 0 0 3px rgba(166, 123, 91, 0.15); }
.history-card[data-code="MARKET-OCTOPUS"]  .hc-dot { background: #8B5CF6; box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15); }
.hc-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.hc-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
}
.hc-ts {
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--ink-faint);
    letter-spacing: 0.02em;
}
.hc-arrow {
    color: var(--ink-mute);
    font-family: var(--f-mono);
    font-size: 16px;
    flex-shrink: 0;
    transition: transform 0.2s, color 0.2s;
}
.history-card:hover .hc-arrow {
    color: var(--accent-deep);
    transform: translateX(4px);
}
