/* ==========================================================================
   MBTI 人格测试系统 - 前台样式
   ========================================================================== */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #eef0ff;
    --accent: #a855f7;
    --accent-2: #22d3ee;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #0ea5e9;
    --text: #1b1f33;
    --text-light: #6b7280;
    --text-muted: #98a0b3;
    --border: #e6e8f0;
    --bg: #f6f7fc;
    --card: #ffffff;
    --ink: #0f1226;
    --radius: 18px;
    --radius-sm: 11px;
    --shadow: 0 6px 26px rgba(20, 24, 60, .06);
    --shadow-lg: 0 18px 50px rgba(20, 24, 60, .13);
    --gradient: linear-gradient(135deg, #6366f1, #8b5cf6 52%, #a855f7);
    --ring: 0 0 0 4px rgba(99, 102, 241, .16);
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.72;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: var(--primary); text-decoration: none; transition: color .16s ease; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.32; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: 31px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }

::selection { background: rgba(99, 102, 241, .2); }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.container-narrow { max-width: 780px; }

/* ---------------- 顶部导航 ---------------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(230, 232, 240, .9);
}
.site-header .inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--text); flex: none; }
.brand:hover { color: var(--text); }
.brand .logo {
    width: 34px; height: 34px; border-radius: 10px;
    background: var(--gradient);
    color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 800;
    box-shadow: 0 6px 16px rgba(99, 102, 241, .35);
}
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a { color: var(--text-light); font-size: 14.5px; padding: 8px 14px; border-radius: 999px; transition: all .16s ease; }
.site-nav a:hover { color: var(--primary); background: var(--primary-light); }
.site-nav a.active { color: var(--primary-dark); background: var(--primary-light); font-weight: 600; }
.site-nav .nav-cta { margin-left: 8px; }

/* ---------------- 通用组件 ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 24px; border-radius: 999px; border: 1px solid transparent;
    font-size: 15px; font-weight: 600; cursor: pointer; transition: all .18s cubic-bezier(.2,.7,.3,1);
    background: var(--gradient); background-size: 160% 160%;
    color: #fff; line-height: 1.2; font-family: inherit;
    box-shadow: 0 8px 20px rgba(99, 102, 241, .26);
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(99, 102, 241, .34); background-position: 100% 50%; }
.btn:active { transform: translateY(0); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 36px; font-size: 16.5px; }
.btn-sm { padding: 8px 16px; font-size: 13.5px; box-shadow: 0 5px 14px rgba(99,102,241,.22); }
.btn-outline { background: #fff; color: var(--primary-dark); border-color: #d7daf8; box-shadow: 0 4px 14px rgba(20,24,60,.05); }
.btn-outline:hover { background: var(--primary-light); color: var(--primary-dark); border-color: var(--primary); box-shadow: 0 8px 20px rgba(99,102,241,.16); }
.btn-ghost { background: #fff; color: var(--text); box-shadow: 0 4px 14px rgba(20,24,60,.07); }
.btn-ghost:hover { background: #fff; color: var(--primary-dark); }
.btn-success { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 8px 20px rgba(16,185,129,.28); }
.btn-success:hover { box-shadow: 0 12px 26px rgba(16,185,129,.36); }
.btn-danger { background: linear-gradient(135deg, #f87171, #ef4444); box-shadow: 0 8px 20px rgba(239,68,68,.26); }
.btn-danger:hover { box-shadow: 0 12px 26px rgba(239,68,68,.34); }
.btn-warning { background: linear-gradient(135deg, #fbbf24, #f59e0b); box-shadow: 0 8px 20px rgba(245,158,11,.26); }
.btn-warning:hover { box-shadow: 0 12px 26px rgba(245,158,11,.34); }
.btn[disabled], .btn.is-disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }

.card {
    background: var(--card); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 26px; border: 1px solid rgba(230, 232, 240, .85);
}
.card + .card { margin-top: 20px; }
.card-title { font-size: 17px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 9px; }
.card-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--border), transparent); }

.badge {
    display: inline-flex; align-items: center; gap: 4px; padding: 3px 11px; border-radius: 999px;
    font-size: 12.5px; font-weight: 600; background: var(--primary-light); color: var(--primary-dark);
}
.badge-success { background: #d1fae5; color: #047857; }
.badge-warning { background: #fef3c7; color: #b45309; }
.badge-danger { background: #fee2e2; color: #b91c1c; }
.badge-gray { background: #f1f2f7; color: #4b5563; }

.alert { padding: 13px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14.5px; border: 1px solid transparent; }
.alert-success { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.alert-error { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.alert-info { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.alert-warning { background: #fffbeb; color: #b45309; border-color: #fde68a; }

.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; color: #374151; }
.form-label .required { color: var(--danger); margin-left: 2px; }
.form-hint { font-size: 12.5px; color: var(--text-muted); margin-top: 6px; line-height: 1.65; }
.form-hint a { text-decoration: underline; text-underline-offset: 2px; }
.form-control {
    width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 15px; font-family: inherit; color: var(--text); background: #fff;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.form-control:hover { border-color: #cfd3e4; }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.form-control.is-invalid { border-color: var(--danger); }
.form-control::placeholder { color: #b7bccb; }
textarea.form-control { min-height: 110px; resize: vertical; line-height: 1.7; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L2 4h8z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-error { color: var(--danger); font-size: 12.5px; margin-top: 6px; }
.form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.form-row > * { flex: 1 1 200px; }
.checkbox { display: flex; align-items: center; gap: 8px; font-size: 14.5px; cursor: pointer; }
.checkbox input { width: 17px; height: 17px; accent-color: var(--primary); }

/* ---------------- 首页 Hero ---------------- */
.hero {
    position: relative; overflow: hidden; text-align: center;
    padding: 74px 0 58px;
    background:
        radial-gradient(760px 380px at 12% -8%, rgba(99, 102, 241, .18), transparent 62%),
        radial-gradient(720px 360px at 88% 4%, rgba(168, 85, 247, .16), transparent 60%),
        linear-gradient(180deg, #fff 0%, var(--bg) 88%);
    border-bottom: 1px solid rgba(230, 232, 240, .7);
}
.hero::before, .hero::after {
    content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; pointer-events: none;
}
.hero::before { width: 260px; height: 260px; left: -80px; bottom: -120px; background: rgba(34, 211, 238, .28); }
.hero::after { width: 300px; height: 300px; right: -100px; top: -140px; background: rgba(168, 85, 247, .22); }
.hero > .container { position: relative; z-index: 1; }
.hero h1 { font-size: 42px; letter-spacing: -.03em; margin-bottom: 16px; }
.hero h1 em { font-style: normal; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 17.5px; color: var(--text-light); max-width: 640px; margin: 0 auto 30px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
    padding: 6px 16px 6px 8px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
    color: var(--primary-dark); background: rgba(255, 255, 255, .8);
    border: 1px solid rgba(99, 102, 241, .22); box-shadow: 0 6px 18px rgba(99, 102, 241, .12);
}
.hero-badge .tag { background: var(--gradient); color: #fff; border-radius: 999px; padding: 2px 10px; font-size: 12px; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.hero .price-line { margin-top: 22px; font-size: 14px; color: var(--text-muted); }
.hero .price-line strong { color: var(--danger); font-size: 20px; font-weight: 800; }
.hero .price-line s { color: #c2c6d4; margin-left: 4px; }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.trust-row span {
    display: inline-flex; align-items: center; gap: 6px;
    background: #fff; border: 1px solid var(--border); border-radius: 999px;
    padding: 7px 15px; font-size: 13.2px; color: var(--text-light); box-shadow: 0 4px 12px rgba(20,24,60,.04);
}

.hero-preview {
    max-width: 620px; margin: 40px auto 0; padding: 22px 24px; text-align: left;
    background: rgba(255, 255, 255, .82); backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .9); border-radius: 22px; box-shadow: var(--shadow-lg);
    position: relative;
}
.hero-preview .preview-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.hero-preview .preview-code { font-size: 26px; font-weight: 900; letter-spacing: 3px; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-preview .preview-tag { font-size: 12px; color: var(--text-muted); background: #f3f4f8; border-radius: 999px; padding: 3px 10px; }
.preview-dim { display: grid; grid-template-columns: 34px 1fr 44px; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 13px; color: var(--text-light); }
.preview-dim .track { height: 8px; border-radius: 999px; background: #eceef6; overflow: hidden; }
.preview-dim .track i { display: block; height: 100%; border-radius: 999px; background: var(--gradient); }
.preview-dim .pct { text-align: right; font-weight: 700; color: var(--primary-dark); font-size: 12.5px; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin: 12px 0 8px; }
.feature {
    position: relative; overflow: hidden;
    background: #fff; border-radius: var(--radius); padding: 24px;
    box-shadow: var(--shadow); border: 1px solid rgba(230,232,240,.8);
    transition: transform .2s ease, box-shadow .2s ease;
}
.feature::after { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--gradient); opacity: 0; transition: opacity .2s ease; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature:hover::after { opacity: 1; }
.feature .icon {
    width: 44px; height: 44px; display: grid; place-items: center; font-size: 21px;
    border-radius: 13px; background: var(--primary-light); margin-bottom: 14px;
}
.feature h3 { font-size: 16px; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--text-light); font-size: 14px; }

.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 14px; }
.type-card {
    position: relative; overflow: hidden;
    background: #fff; border: 1px solid var(--border); border-radius: 15px; padding: 17px 17px 16px;
    transition: all .2s cubic-bezier(.2,.7,.3,1);
}
.type-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: currentColor; opacity: 0; transition: opacity .2s ease; }
.type-card:hover { border-color: rgba(99,102,241,.5); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.type-card:hover::before { opacity: 1; }
.type-card .code { font-weight: 800; font-size: 17.5px; color: var(--primary); letter-spacing: .6px; }
.type-card .name { font-size: 14px; font-weight: 600; margin-top: 2px; }
.type-card .tagline { font-size: 12.5px; color: var(--text-muted); margin-top: 7px; line-height: 1.6; }
.type-card:nth-child(4n+1) { color: #6366f1; } .type-card:nth-child(4n+1) .code { color: #6366f1; }
.type-card:nth-child(4n+2) { color: #a855f7; } .type-card:nth-child(4n+2) .code { color: #a855f7; }
.type-card:nth-child(4n+3) { color: #0ea5e9; } .type-card:nth-child(4n+3) .code { color: #0ea5e9; }
.type-card:nth-child(4n+4) { color: #f59e0b; } .type-card:nth-child(4n+4) .code { color: #f59e0b; }

.section { padding: 52px 0; }
.section-head { text-align: center; margin-bottom: 30px; }
.section-head .eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); margin-bottom: 8px; }
.section-head h2 { margin-bottom: 8px; }
.section-head p { color: var(--text-light); margin: 0; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid rgba(230,232,240,.8); border-radius: var(--radius); padding: 26px 22px 22px; box-shadow: var(--shadow); }
.step .step-num {
    counter-increment: step; position: absolute; top: -16px; left: 22px;
    width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
    background: var(--gradient); color: #fff; font-weight: 800; font-size: 16px; box-shadow: 0 8px 18px rgba(99,102,241,.3);
}
.step h3 { font-size: 16px; margin: 12px 0 6px; }
.step p { margin: 0; color: var(--text-light); font-size: 14px; }

.article-list { display: grid; gap: 14px; }
.article-item {
    position: relative; background: #fff; border-radius: var(--radius); padding: 22px 24px;
    box-shadow: var(--shadow); border: 1px solid rgba(230,232,240,.8); display: block;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.article-item:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: rgba(99,102,241,.4); }
.article-item h3 { font-size: 17px; margin-bottom: 6px; color: var(--text); }
.article-item:hover h3 { color: var(--primary-dark); }
.article-item p { margin: 0; color: var(--text-light); font-size: 14px; }

/* ---------------- 页脚 ---------------- */
.site-footer {
    margin-top: 28px; padding: 46px 0 26px; color: #9aa3bd;
    background: linear-gradient(180deg, #171a33, #12142a); font-size: 13.5px;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.footer-brand .brand { color: #fff; margin-bottom: 12px; }
.footer-brand p { color: #8d96b2; font-size: 13.5px; max-width: 320px; margin: 0; line-height: 1.8; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 12px; letter-spacing: .02em; }
.footer-col a, .footer-col span { display: block; color: #9aa3bd; margin-bottom: 8px; font-size: 13.5px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08);
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    color: #6f7896; font-size: 12.8px;
}
.footer-bottom a { color: #8d96b2; }
.footer-bottom a:hover { color: #fff; }
.site-footer .links { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------------- 测试页 ---------------- */
.test-shell { max-width: 720px; margin: 34px auto 64px; padding: 0 20px; }
.progress-wrap {
    position: sticky; top: 78px; z-index: 10; margin-bottom: 20px; padding: 14px 18px;
    background: rgba(255,255,255,.9); backdrop-filter: blur(10px);
    border: 1px solid rgba(230,232,240,.9); border-radius: 15px; box-shadow: var(--shadow);
}
.progress-meta { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--text-light); margin-bottom: 9px; }
.progress-bar { height: 9px; background: #e9ebf5; border-radius: 999px; overflow: hidden; }
.progress-bar > i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--gradient); transition: width .35s cubic-bezier(.2,.7,.3,1); }

.question-card { background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); padding: 34px; border: 1px solid rgba(230,232,240,.9); }
.question-index { display: inline-block; font-size: 12.5px; color: var(--primary-dark); background: var(--primary-light); font-weight: 700; letter-spacing: .04em; padding: 4px 12px; border-radius: 999px; }
.question-title { font-size: 21px; font-weight: 700; margin: 16px 0 24px; line-height: 1.55; }
.option {
    display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
    padding: 17px 18px; margin-bottom: 12px; border-radius: 14px; cursor: pointer;
    border: 1.5px solid var(--border); background: #fff; font-size: 15.5px; color: var(--text);
    transition: all .16s ease; font-family: inherit; line-height: 1.5;
}
.option:hover { border-color: rgba(99,102,241,.55); background: #fafbff; transform: translateX(2px); }
.option .key {
    flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
    background: #f1f2f8; color: var(--text-light); font-size: 13px; font-weight: 700; transition: all .16s ease;
}
.option.selected { border-color: var(--primary); background: var(--primary-light); box-shadow: 0 6px 18px rgba(99,102,241,.14); }
.option.selected .key { background: var(--gradient); color: #fff; }
.test-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; gap: 12px; }
.test-tip { font-size: 13px; color: var(--text-muted); }
.kbd {
    display: inline-block; padding: 1px 7px; border-radius: 6px; font-size: 12px; font-family: ui-monospace, Menlo, Consolas, monospace;
    background: #f1f2f8; border: 1px solid var(--border); border-bottom-width: 2px; color: var(--text-light);
}

/* ---------------- 结果页 ---------------- */
.result-hero {
    position: relative; overflow: hidden; padding: 52px 0 62px; text-align: center; color: #fff;
    background: var(--gradient);
}
.result-hero::before, .result-hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.result-hero::before { width: 340px; height: 340px; left: -90px; bottom: -160px; background: rgba(34,211,238,.4); }
.result-hero::after { width: 360px; height: 360px; right: -110px; top: -210px; background: rgba(255,255,255,.16); }
.result-hero > .container { position: relative; z-index: 1; }
.result-hero .code { font-size: 58px; font-weight: 900; letter-spacing: 5px; line-height: 1.08; text-shadow: 0 8px 30px rgba(0,0,0,.16); }
.result-hero .name { font-size: 22px; font-weight: 700; margin-top: 8px; }
.result-hero .tagline { opacity: .93; margin-top: 10px; max-width: 560px; margin-left: auto; margin-right: auto; }
.result-body { max-width: 840px; margin: -26px auto 64px; padding: 0 20px; position: relative; z-index: 2; }

.dim-row { margin-bottom: 22px; }
.dim-row:last-child { margin-bottom: 0; }
.dim-head { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; gap: 10px; }
.dim-head .label { font-weight: 600; }
.dim-head .value { color: var(--primary-dark); font-weight: 700; }
.dim-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: #eceef6; }
.dim-bar > i { display: block; height: 100%; transition: width .5s ease; }
.dim-bar .left { background: var(--gradient); }
.dim-bar .right { background: #cbd2e2; }
.dim-desc { font-size: 14px; color: var(--text-light); margin-top: 8px; }
.dim-scale { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-muted); margin-top: 6px; }

.quote-list { list-style: none; padding: 0; margin: 0; }
.quote-list li { position: relative; padding: 9px 0 9px 26px; border-bottom: 1px dashed #eef0f6; font-size: 14.8px; }
.quote-list li:last-child { border-bottom: none; }
.quote-list li::before { content: ""; position: absolute; left: 8px; top: 17px; width: 7px; height: 7px; border-radius: 50%; background: var(--gradient); }

.locked-block { position: relative; overflow: hidden; }
.locked-block .blurred { filter: blur(6px); user-select: none; pointer-events: none; opacity: .7; }
.locked-mask {
    position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
    background: linear-gradient(180deg, rgba(255,255,255,.45), rgba(255,255,255,.95));
    padding: 20px;
}
.locked-mask .lock-card { background: #fff; border-radius: 16px; padding: 22px 26px; box-shadow: var(--shadow-lg); max-width: 380px; border: 1px solid var(--border); }

.pay-cta {
    position: relative; overflow: hidden; color: #fff; border-radius: 20px;
    padding: 30px 26px; text-align: center; box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #4f46e5, #7c3aed 55%, #a855f7);
}
.pay-cta::after {
    content: ""; position: absolute; width: 320px; height: 320px; right: -120px; top: -180px;
    background: radial-gradient(circle, rgba(255,255,255,.35), transparent 65%); pointer-events: none;
}
.pay-cta > * { position: relative; z-index: 1; }
.pay-cta .price { font-size: 36px; font-weight: 800; letter-spacing: -.02em; }
.pay-cta .price small { font-size: 15px; font-weight: 500; opacity: .8; text-decoration: line-through; margin-left: 10px; }
.pay-cta .btn { margin-top: 16px; }

/* ---------------- 收银台 ---------------- */
.pay-shell { max-width: 580px; margin: 38px auto 64px; padding: 0 20px; }
.pay-summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--border); font-size: 14.5px; }
.pay-summary:first-of-type { padding-top: 6px; }
.pay-summary:last-of-type { border-bottom: none; }
.pay-amount { font-size: 30px; font-weight: 800; color: var(--danger); letter-spacing: -.02em; }
.pay-amount small { font-size: 16px; }
.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.pay-method {
    position: relative; display: flex; align-items: center; gap: 11px; padding: 15px 16px;
    border: 1.5px solid var(--border); border-radius: 14px; cursor: pointer; background: #fff;
    transition: all .16s ease; font-size: 15px; font-family: inherit; color: var(--text);
}
.pay-method:hover { border-color: rgba(99,102,241,.5); transform: translateY(-1px); }
.pay-method.selected { border-color: var(--primary); background: var(--primary-light); box-shadow: 0 6px 18px rgba(99,102,241,.14); }
.pay-method .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #d1d5db; flex: none; transition: all .16s ease; }
.pay-method.selected .dot { border-color: var(--primary); background: var(--primary); box-shadow: inset 0 0 0 3px #fff; }
.pay-method .icon { font-size: 19px; }
.pay-method .picon {
    width: 27px; height: 27px; flex: none; border-radius: 8px; display: grid; place-items: center;
    font-size: 13.5px; font-weight: 700; color: #fff; letter-spacing: 0;
}
.picon-alipay { background: linear-gradient(135deg, #1677ff, #0a56c9); }
.picon-wxpay { background: linear-gradient(135deg, #22c55e, #15a34a); }
.picon-qqpay { background: linear-gradient(135deg, #38bdf8, #2563eb); }

.qr-box { text-align: center; padding: 20px 0; }
.qr-canvas { display: inline-block; padding: 14px; background: #fff; border: 1px solid var(--border); border-radius: 16px; min-width: 220px; min-height: 220px; box-shadow: var(--shadow); }
.qr-canvas img, .qr-canvas canvas { display: block; }
.qr-tip { color: var(--text-light); font-size: 14px; margin-top: 14px; }
.qr-raw { font-size: 12px; color: var(--text-muted); word-break: break-all; margin-top: 10px; }

.empty { text-align: center; padding: 54px 20px; color: var(--text-muted); }
.empty .icon { font-size: 40px; margin-bottom: 10px; }

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-light { color: var(--text-light); }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; } .flex-wrap { flex-wrap: wrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }

/* ---------------- 分页 ---------------- */
.pagination { display: flex; gap: 6px; justify-content: center; margin: 24px 0; flex-wrap: wrap; }
.pagination a, .pagination span {
    min-width: 36px; height: 36px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; background: #fff; border: 1px solid var(--border); color: var(--text-light); font-size: 14px;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--gradient); border-color: transparent; color: #fff; font-weight: 600; }
.pagination .disabled { opacity: .45; }

@media (max-width: 560px) {
    .type-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .type-card { padding: 14px; }
    .type-card .tagline { display: none; }
}

@media (max-width: 720px) {
    .hero { padding: 52px 0 42px; }
    .hero h1 { font-size: 30px; }
    .hero .lead { font-size: 15.5px; }
    .hero-preview { padding: 18px; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .result-hero .code { font-size: 44px; letter-spacing: 3px; }
    .question-card { padding: 24px; }
    .question-title { font-size: 18.5px; }
    .pay-methods { grid-template-columns: 1fr; }
    .site-nav .nav-text { display: none; }
    .site-nav { gap: 4px; }
    .container { padding: 0 16px; }
    .section { padding: 40px 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
/* ==========================================================================
   人格图标 / 结果页升级 / AI 分析
   ========================================================================== */
.type-icon { display: block; filter: drop-shadow(0 10px 22px rgba(20, 24, 60, .16)); }
.type-icon.is-flat { filter: none; }

/* ---------------- 首页 16 型卡片 ---------------- */
.type-card { padding: 17px 18px; }
.type-card .type-head { display: flex; align-items: center; gap: 12px; margin-bottom: 11px; }
.type-card .type-head .type-icon { flex: none; }
.type-card .type-head .code { font-size: 16.5px; letter-spacing: .09em; line-height: 1.1; }
.type-card .type-head .name { font-size: 12.5px; color: var(--text-light); font-weight: 600; margin-top: 3px; }
.type-card .tagline { margin-top: 0; }

/* 首页 Hero 图标带 */
.hero-types { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.hero-types .type-icon { filter: drop-shadow(0 6px 14px rgba(20, 24, 60, .12)); }

/* ---------------- 结果页 Hero ---------------- */
.result-hero { text-align: left; padding: 46px 0 86px; }
.result-hero-grid { display: flex; align-items: center; gap: 26px; }
.result-avatar { flex: none; line-height: 0; }
.result-avatar .type-icon { filter: drop-shadow(0 18px 34px rgba(0, 0, 0, .24)); }
.result-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700;
    letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .86);
    background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28);
    padding: 5px 13px; border-radius: 999px;
}
.result-hero .result-name { font-size: 34px; font-weight: 800; margin: 14px 0 0; letter-spacing: -.01em; line-height: 1.25; }
.result-hero .result-tagline { opacity: .95; margin: 10px 0 0; max-width: 540px; font-size: 15.5px; line-height: 1.7; }
.result-hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.result-hero-chips span {
    font-size: 12.5px; color: rgba(255, 255, 255, .94); background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22); padding: 4px 11px; border-radius: 999px;
}
.dim-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.dim-chip { background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .24); border-radius: 16px; padding: 13px 15px; }
.dim-chip .k { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.dim-chip .v { font-size: 19px; font-weight: 800; margin-top: 5px; }
.dim-chip .v small { font-size: 12px; font-weight: 600; opacity: .85; margin-left: 3px; }
.dim-chip .track { height: 5px; border-radius: 999px; background: rgba(255, 255, 255, .26); margin-top: 9px; overflow: hidden; }
.dim-chip .track i { display: block; height: 100%; background: #fff; border-radius: 999px; }

/* ---------------- 雷达图 ---------------- */
.radar-wrap { display: flex; gap: 30px; align-items: center; flex-wrap: wrap; }
.radar-wrap > svg { flex: none; width: 240px; height: 240px; }
.radar-legend { flex: 1 1 280px; min-width: 240px; }
.radar-legend .dim-row:last-child { margin-bottom: 0; }

/* ---------------- 内容模块 ---------------- */
.module { border: 1px solid var(--border); border-radius: 16px; padding: 18px 18px 16px; background: #fff; }
.module + .module { margin-top: 14px; }
.module-head { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 15.5px; margin-bottom: 12px; }
.module-head .ico {
    width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: none;
    color: #fff; font-size: 16px; background: var(--gradient); box-shadow: 0 8px 18px rgba(99, 102, 241, .26);
}
.module.is-warm .ico { background: linear-gradient(135deg, #fbbf24, #f97316); box-shadow: 0 8px 18px rgba(249, 115, 22, .26); }
.module.is-cool .ico { background: linear-gradient(135deg, #0ea5e9, #22d3ee); box-shadow: 0 8px 18px rgba(14, 165, 233, .26); }
.module.is-rose .ico { background: linear-gradient(135deg, #fb7185, #f43f5e); box-shadow: 0 8px 18px rgba(244, 63, 94, .24); }
.module.is-green .ico { background: linear-gradient(135deg, #34d399, #10b981); box-shadow: 0 8px 18px rgba(16, 185, 129, .24); }
.module.is-slate .ico { background: linear-gradient(135deg, #64748b, #334155); box-shadow: 0 8px 18px rgba(51, 65, 85, .22); }
.module p { margin: 0 0 12px; color: #374151; font-size: 14.8px; line-height: 1.85; }
.module p:last-child { margin-bottom: 0; }
.module-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
.module-grid > .module + .module { margin-top: 0; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding: 6px 0 6px 27px; font-size: 14.6px; color: #374151; line-height: 1.65; }
.check-list li::before {
    content: ""; position: absolute; left: 3px; top: 12px; width: 11px; height: 6px;
    border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(-45deg);
}
.check-list.is-warm li::before { border-color: #f59e0b; }
.check-list.is-rose li::before { border-color: #f43f5e; }
.check-list.is-cool li::before { border-color: #0ea5e9; }
.check-list.is-cross li::before {
    width: 10px; height: 10px; top: 13px; left: 5px; border: none; transform: none;
    background:
        linear-gradient(45deg, transparent 44%, #f43f5e 44%, #f43f5e 56%, transparent 56%),
        linear-gradient(-45deg, transparent 44%, #f43f5e 44%, #f43f5e 56%, transparent 56%);
}

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px;
    font-size: 13.5px; background: var(--primary-light); color: var(--primary-dark); font-weight: 600;
}
.chip.is-gray { background: #f1f2f7; color: #4b5563; }
.chip.is-soft { background: #f5f3ff; color: #6d28d9; }

.trait-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 11px; }
.trait {
    border: 1px solid var(--border); border-radius: 13px; padding: 13px 15px; font-size: 14.3px;
    color: #374151; background: linear-gradient(180deg, #fbfbff, #fff); line-height: 1.6;
}
.trait .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gradient); margin-right: 8px; vertical-align: 1px; }

/* ---------------- AI 分析 ---------------- */
.ai-card { border: 1px solid rgba(99, 102, 241, .24); background: linear-gradient(180deg, #fbfbff, #fff 48%); position: relative; overflow: hidden; }
.ai-card::before {
    content: ""; position: absolute; width: 260px; height: 260px; right: -110px; top: -140px; border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, .18), transparent 68%); pointer-events: none;
}
.ai-head { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; position: relative; }
.ai-badge {
    width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; flex: none;
    font-weight: 800; font-size: 16px; letter-spacing: .02em; color: #fff;
    background: linear-gradient(135deg, #6366f1, #a855f7); box-shadow: 0 12px 24px rgba(99, 102, 241, .3);
}
.ai-head h2 { font-size: 18px; margin: 0; }
.ai-head .sub { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; }
.ai-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.ai-output { margin-top: 18px; font-size: 15px; color: #374151; line-height: 1.9; }
.ai-output:empty { margin-top: 0; }
.ai-output h2 { font-size: 16.5px; margin: 22px 0 9px; color: var(--ink); }
.ai-output h2:first-child { margin-top: 0; }
.ai-output ul { padding-left: 21px; margin: 8px 0; }
.ai-output li { margin-bottom: 6px; }
.ai-output p { margin: 0 0 12px; }
.ai-output blockquote {
    margin: 14px 0 0; padding: 12px 18px; border-left: 3px solid var(--primary);
    background: var(--primary-light); border-radius: 0 12px 12px 0; color: var(--primary-dark); font-weight: 600;
}
.ai-loading { display: flex; align-items: center; gap: 12px; padding: 24px 0 6px; color: var(--text-light); font-size: 14.5px; }
.spinner {
    width: 20px; height: 20px; border-radius: 50%; flex: none;
    border: 2.5px solid rgba(99, 102, 241, .22); border-top-color: var(--primary);
    animation: mbti-spin .8s linear infinite;
}
@keyframes mbti-spin { to { transform: rotate(360deg); } }
.ai-note { margin-top: 14px; font-size: 12.5px; color: var(--text-muted); }

/* 结果页模块标题图标（兼容旧卡片） */
.card-title .ct-ico {
    width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 14px;
    color: #fff; background: var(--gradient); flex: none; box-shadow: 0 6px 14px rgba(99, 102, 241, .22);
}

@media (max-width: 720px) {
    .result-hero { text-align: center; padding: 36px 0 74px; }
    .result-hero-grid { flex-direction: column; text-align: center; gap: 18px; }
    .result-hero .result-tagline { margin-left: auto; margin-right: auto; }
    .result-hero-chips { justify-content: center; }
    .result-hero .result-name { font-size: 26px; }
    .dim-strip { grid-template-columns: 1fr 1fr; }
    .radar-wrap > svg { margin: 0 auto; }
    .module { padding: 16px; }
}
/* 结果页头像底座与登录页图标可见度微调 */
.result-avatar {
    border-radius: 30px; padding: 9px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .32);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 18px 40px rgba(0, 0, 0, .16);
    backdrop-filter: blur(4px);
}
.result-avatar .type-icon { filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .18)); }
.login-aside-icons .type-icon { opacity: .45; }
/* AI 加载态与标题层级修正 */
.ai-loading[hidden] { display: none !important; }
.ai-output h2, .ai-output h3 { font-size: 16.5px; margin: 22px 0 9px; color: var(--ink); }
.ai-output h2:first-child, .ai-output h3:first-child { margin-top: 0; }
.ai-output ol { padding-left: 21px; margin: 8px 0; }
.ai-output ol li { margin-bottom: 6px; }
.ai-output strong { color: var(--ink); }

/* ==========================================================================
   答题卡（全部题目作答情况总览）
   ========================================================================== */
.sheet-card { padding: 20px 22px 18px; }
.sheet-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px 16px; flex-wrap: wrap;
}
.sheet-title { font-size: 17px; font-weight: 700; color: var(--ink); display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.sheet-title .sheet-sub { font-size: 12.5px; font-weight: 500; color: var(--text-muted); }
.sheet-stats { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sheet-stat { font-size: 13px; color: var(--text-light); display: inline-flex; align-items: baseline; gap: 5px; }
.sheet-stat b { font-size: 16px; font-variant-numeric: tabular-nums; }
.sheet-stat.done b { color: var(--success); }
.sheet-stat.todo b { color: var(--danger); }
.sheet-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
    gap: 8px; margin-top: 16px;
}
.sheet-cell {
    height: 38px; border-radius: 10px; border: 1.5px solid var(--border); background: #fff;
    font: 700 13px/1 inherit; font-family: inherit; color: var(--text-light);
    cursor: pointer; padding: 0; transition: transform .15s ease, border-color .15s ease, background .15s ease, color .15s ease;
}
.sheet-cell:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.sheet-cell.is-done { background: var(--primary-light); border-color: #c7cbf7; color: var(--primary-dark); }
.sheet-cell.is-current { box-shadow: 0 0 0 3px rgba(99, 102, 241, .22); border-color: var(--primary); }
.sheet-cell.is-current.is-done { background: #e3e7ff; }
.sheet-cell.is-missing {
    background: #fef2f2; border-color: #fca5a5; color: #b91c1c;
    animation: sheet-pulse 1.1s ease infinite;
}
@keyframes sheet-pulse { 50% { box-shadow: 0 0 0 4px rgba(239, 68, 68, .18); } }
.sheet-foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px 16px; flex-wrap: wrap; margin-top: 14px;
}
.sheet-legend { display: flex; gap: 16px; flex-wrap: wrap; }
.sheet-legend .lg { font-size: 12px; color: var(--text-muted); display: inline-flex; align-items: center; gap: 6px; }
.sheet-legend .lg::before {
    content: ""; width: 14px; height: 14px; border-radius: 5px;
    border: 1.5px solid var(--border); background: #fff;
}
.sheet-legend .lg-done::before { background: var(--primary-light); border-color: #c7cbf7; }
.sheet-legend .lg-todo::before { background: #fef2f2; border-color: #fca5a5; }
.sheet-legend .lg-cur::before { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(99, 102, 241, .22); }
.sheet-hint { font-size: 13px; font-weight: 600; color: var(--text-light); }
.sheet-hint.is-ok { color: var(--success); }
.sheet-hint.is-todo { color: var(--danger); }

/* ==========================================================================
   16 型人格 / 配对 / 分享海报 / AI 追问 / 增长组件
   ========================================================================== */
.alert-danger { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }

/* 通用页面头部 */
.page-hero {
    padding: 52px 0 30px;
    text-align: center;
    background:
        radial-gradient(900px 320px at 50% -60%, rgba(99,102,241,.18), transparent 70%),
        linear-gradient(180deg, #fff 0%, var(--bg) 100%);
    border-bottom: 1px solid rgba(230,232,240,.8);
}
.page-hero.is-plain { background: linear-gradient(180deg, #f8f9ff 0%, var(--bg) 100%); }
.page-hero .eyebrow { color: var(--primary-dark); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.page-hero h1 { font-size: 34px; margin-bottom: 12px; }
.page-hero .lead { color: var(--text-light); max-width: 620px; margin: 0 auto; font-size: 16px; }
.page-updated { color: var(--text-muted); font-size: 13px; margin: 8px 0 0; }
.page-body { padding: 30px 22px 60px; max-width: 860px; }
.policy-card { padding: 30px 32px; }
.markdown-body h2 { font-size: 17px; margin: 24px 0 10px; }
.markdown-body h2:first-child { margin-top: 0; }
.markdown-body ul { padding-left: 20px; }
.markdown-body li { margin-bottom: 6px; }
.markdown-body a { text-decoration: underline; }

/* 16 型总览 */
.group-block { margin-bottom: 34px; }
.group-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.group-pill { color: #fff; border-radius: 999px; padding: 5px 16px; font-size: 14px; font-weight: 700; box-shadow: 0 8px 18px rgba(20,24,60,.14); }
.group-desc { color: var(--text-light); font-size: 13.5px; }
.type-card .type-more { display: inline-block; margin-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--primary); opacity: 0; transform: translateY(-3px); transition: all .2s ease; }
.type-card:hover .type-more { opacity: 1; transform: translateY(0); }

/* 类型详情 */
.type-hero { color: #fff; padding: 34px 0 46px; position: relative; overflow: hidden; }
.type-hero::after { content: ""; position: absolute; width: 420px; height: 420px; right: -140px; top: -220px; border-radius: 50%; background: rgba(255,255,255,.14); filter: blur(40px); }
.type-hero > .container { position: relative; z-index: 1; }
.crumb { font-size: 13px; opacity: .88; margin-bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumb a { color: #fff; opacity: .85; }
.crumb a:hover { color: #fff; opacity: 1; }
.type-hero-grid { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.type-hero-icon { flex: none; filter: drop-shadow(0 10px 26px rgba(0,0,0,.22)); }
.type-hero-code { font-size: 15px; font-weight: 700; letter-spacing: .18em; opacity: .92; }
.type-hero-main h1 { font-size: 34px; margin: 8px 0 10px; }
.type-hero-tagline { font-size: 16px; opacity: .94; max-width: 560px; margin-bottom: 18px; }
.type-hero .hero-actions { justify-content: flex-start; }
.type-hero .btn-ghost { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.55); color: #fff; }
.type-body { padding: 26px 22px 70px; max-width: 900px; margin: 0 auto; }
.letter-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 20px; }
.letter-card { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 15px; box-shadow: var(--shadow); }
.letter-badge { flex: none; width: 38px; height: 38px; border-radius: 11px; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 17px; }
.letter-name { font-weight: 700; font-size: 13.5px; }
.letter-note { font-size: 12.5px; color: var(--text-light); line-height: 1.6; margin-top: 3px; }
.type-summary { font-size: 15.5px; color: #374151; line-height: 1.9; }
.match-mini-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.match-mini { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 11px 13px; transition: all .18s ease; }
.match-mini:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.match-mini .mm-body { display: flex; flex-direction: column; }
.match-mini .mm-body b { font-size: 14px; color: var(--text); }
.match-mini .mm-body small { color: var(--text-muted); font-size: 12px; }

/* 底部 CTA */
.cta-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 22px; padding: 28px 30px; border-radius: var(--radius); background: var(--gradient); color: #fff; box-shadow: var(--shadow-lg); }
.cta-banner h2 { color: #fff; font-size: 20px; margin-bottom: 6px; }
.cta-banner p { margin: 0; opacity: .92; font-size: 14.5px; }
.cta-banner .btn-ghost { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.6); color: #fff; }

/* 配对 */
.match-layout { padding: 28px 22px 60px; max-width: 880px; }
.match-picker { padding: 22px; }
.match-selects { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.match-select { flex: 1 1 220px; }
.match-heart { font-size: 26px; padding-bottom: 8px; }
.match-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.match-result-hero { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.match-ring { position: relative; width: 132px; height: 132px; flex: none; }
.match-ring svg { width: 132px; height: 132px; }
.match-ring-value { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; }
.match-ring-value b { font-size: 32px; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.match-ring-value span { font-size: 12px; color: var(--text-muted); }
.match-result-main { flex: 1 1 300px; }
.match-pair { display: flex; align-items: center; gap: 10px; }
.match-pair-item { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 15px; }
.match-x { color: var(--text-muted); font-size: 14px; }
.match-level { font-size: 19px; font-weight: 700; margin: 10px 0 6px; color: var(--primary-dark); }
.match-result-main p { color: var(--text-light); font-size: 14.5px; margin-bottom: 10px; }
.match-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.match-tags span { background: #f1f2f7; color: #4b5563; border-radius: 999px; padding: 4px 12px; font-size: 12.5px; }
.match-dims { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.match-dim { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; }
.match-dim.is-same { background: #f0fdf4; border-color: #bbf7d0; }
.match-dim.is-diff { background: #fffbeb; border-color: #fde68a; }
.match-dim-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.md-name { font-weight: 700; font-size: 14px; }
.md-badge { font-size: 12px; border-radius: 999px; padding: 2px 10px; background: #fff; border: 1px solid rgba(0,0,0,.06); }
.match-dim-letters { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; color: var(--ink); margin-bottom: 8px; }
.match-dim-letters .dash { color: var(--text-muted); font-weight: 400; }
.match-dim p { margin: 0; font-size: 13px; color: #475569; line-height: 1.7; }

/* 分享海报 */
.share-shell { min-height: 100vh; padding: 26px 18px 60px; background: radial-gradient(900px 400px at 50% -10%, rgba(99,102,241,.16), transparent 70%), var(--bg); }
.share-panel { max-width: 620px; margin: 0 auto; text-align: center; }
.share-back { display: inline-block; font-size: 13.5px; color: var(--text-light); margin-bottom: 12px; }
.share-panel h1 { font-size: 24px; margin-bottom: 6px; }
.share-sub { color: var(--text-light); font-size: 14px; }
.share-preview { margin: 20px auto; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; max-width: 420px; }
.share-preview canvas { display: block; width: 100%; height: auto; }
.share-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.share-hint { color: var(--text-muted); font-size: 12.5px; margin-top: 14px; }

/* 结果页工具条 / 复测提醒 / 免费洞察 */
.tool-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 4px; }
.tool-btn { display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 9px 16px; font-size: 13.5px; font-weight: 600; color: #374151; box-shadow: var(--shadow); transition: all .18s ease; }
.tool-btn:hover { border-color: var(--primary); color: var(--primary-dark); transform: translateY(-2px); }
.tool-btn.is-quiet { color: var(--text-muted); box-shadow: none; }
.retest-banner { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, #fffbeb, #fef3c7); border: 1px solid #fde68a; border-radius: var(--radius-sm); padding: 14px 18px; margin: 16px 0 4px; flex-wrap: wrap; }
.retest-banner .rb-icon { font-size: 24px; }
.retest-banner .rb-main { flex: 1 1 240px; display: flex; flex-direction: column; }
.retest-banner .rb-main b { color: #92400e; font-size: 14.5px; }
.retest-banner .rb-main span { color: #a16207; font-size: 13px; line-height: 1.7; }
.free-insight-card { border: 1px solid rgba(99,102,241,.28); background: linear-gradient(180deg, #fbfbff, #fff 60%); }
.free-insight-sub { color: var(--text-light); font-size: 13.5px; margin-bottom: 14px; }
.insight-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.insight-item { display: flex; gap: 9px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 11px 13px; font-size: 14px; color: #374151; line-height: 1.7; }
.free-insight-lock { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border); color: var(--text-light); font-size: 13px; }
.free-insight-lock b { color: var(--primary-dark); }

/* AI 追问 */
.chat-card { border: 1px solid rgba(99,102,241,.24); }
.ai-badge.is-chat { background: linear-gradient(135deg, #0ea5e9, #6366f1); }
.chat-quota { margin-left: auto; font-size: 12.5px; color: var(--text-muted); background: #f1f2f7; border-radius: 999px; padding: 3px 12px; white-space: nowrap; }
.chat-log { margin-top: 18px; display: flex; flex-direction: column; gap: 14px; max-height: 460px; overflow-y: auto; padding-right: 4px; }
.chat-msg { display: flex; gap: 10px; align-items: flex-start; }
.chat-msg.is-me { flex-direction: row-reverse; }
.chat-avatar { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: #eef0ff; color: var(--primary-dark); }
.chat-msg.is-me .chat-avatar { background: var(--gradient); color: #fff; }
.chat-bubble { background: #f6f7fc; border-radius: 14px; padding: 12px 15px; font-size: 14.3px; line-height: 1.85; color: #374151; max-width: 82%; }
.chat-msg.is-me .chat-bubble { background: var(--primary-light); color: #312e81; }
.chat-bubble > :first-child { margin-top: 0; }
.chat-bubble > :last-child { margin-bottom: 0; }
.chat-bubble h2 { font-size: 15px; margin: 12px 0 6px; }
.chat-bubble ul, .chat-bubble ol { padding-left: 20px; margin: 6px 0; }
.chat-bubble.is-pending { color: var(--text-muted); display: flex; align-items: center; gap: 9px; }
.chat-bubble.is-error { background: #fef2f2; color: #b91c1c; }
.chat-empty { margin-top: 16px; color: var(--text-muted); font-size: 13.5px; }
.chat-suggests { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.chat-suggests .chip { cursor: pointer; border: 1px solid transparent; background: #f5f3ff; color: #6d28d9; }
.chat-suggests .chip:hover { border-color: #c4b5fd; }
.chat-form { display: flex; gap: 10px; margin-top: 14px; }
.chat-form .form-control { flex: 1; }

/* 优惠码 */
.coupon-box { margin-bottom: 6px; }
.coupon-row { display: flex; gap: 10px; }
.coupon-row .form-control { flex: 1; }
.coupon-result { font-size: 13px; margin-top: 8px; min-height: 18px; color: var(--text-muted); }
.coupon-result.is-ok { color: #047857; }
.coupon-result.is-error { color: #b91c1c; }
.pay-amount s { font-size: 13px; color: var(--text-muted); margin-left: 8px; }

/* 删除报告 */
.delete-card { text-align: center; padding: 34px 28px; max-width: 560px; margin: 0 auto; }
.delete-icon { font-size: 40px; }
.delete-icon.is-ok { color: var(--success); }
.delete-card h2 { margin: 10px 0 10px; }
.delete-card p { color: var(--text-light); font-size: 14px; }
.delete-form { text-align: left; margin-top: 20px; }
.delete-form .checkbox { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--text-light); margin: 6px 0 18px; }

/* 答题进度激励 */
.progress-milestone { margin-top: 10px; opacity: 0; transform: translateY(-6px); transition: all .3s ease; font-size: 13px; font-weight: 600; color: var(--primary-dark); text-align: center; }
.progress-milestone.show { opacity: 1; transform: translateY(0); }
@media (max-width: 560px) {
    .sheet-card { padding: 16px 15px 14px; }
    .sheet-grid { grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 6px; }
    .sheet-cell { height: 34px; border-radius: 9px; font-size: 12px; }
    .sheet-head, .sheet-foot { justify-content: flex-start; }
}

/* ==========================================================================
   前台细节优化：常见问题 / 滚动渐显 / 交互微调
   ========================================================================== */

/* 常见问题 */
.faq { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq-item {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item:hover { border-color: #d9dcf5; }
.faq-item[open] { border-color: #c9cdf8; box-shadow: 0 12px 32px rgba(99, 102, 241, .12); }
.faq-item summary {
    cursor: pointer; list-style: none; padding: 17px 22px;
    font-weight: 650; font-size: 15.5px; color: var(--ink);
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+"; flex: none; width: 26px; height: 26px; border-radius: 50%;
    display: grid; place-items: center; font-size: 16px; font-weight: 700; line-height: 1;
    color: var(--primary-dark); background: var(--primary-light); transition: transform .22s ease;
}
.faq-item[open] summary::after { content: "–"; transform: rotate(180deg); }
.faq-body { padding: 0 22px 18px; color: var(--text-light); font-size: 14.5px; line-height: 1.85; }

/* 滚动渐显：类名由 JS 添加，无 JS 时内容照常可见 */
.reveal-hidden {
    opacity: 0; transform: translateY(20px);
    transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .3, 1);
}
.reveal-hidden.is-visible { opacity: 1; transform: none; }

/* 交互微调 */
.btn:focus-visible, .option:focus-visible, .sheet-cell:focus-visible,
.site-nav a:focus-visible, .faq-item summary:focus-visible, .article-item:focus-visible {
    outline: 3px solid rgba(99, 102, 241, .45); outline-offset: 2px;
}
.step { transition: transform .22s cubic-bezier(.2, .7, .3, 1), box-shadow .22s ease; }
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.question-card { scroll-margin-top: 150px; }

@media (prefers-reduced-motion: reduce) {
    .reveal-hidden { opacity: 1; transform: none; transition: none; }
    .feature:hover, .type-card:hover, .step:hover, .btn:hover, .option:hover { transform: none; }
    html { scroll-behavior: auto; }
}
@media (max-width: 560px) {
    .faq-item summary { padding: 15px 16px; font-size: 14.5px; }
    .faq-body { padding: 0 16px 16px; font-size: 14px; }
}

/* 结果页：解锁内容清单 */
.unlock-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 20px; }
.unlock-item { display: flex; align-items: flex-start; gap: 10px; font-size: 14.4px; color: #374151; line-height: 1.6; }
.unlock-item span:first-child { flex: none; }
@media (max-width: 560px) { .unlock-grid { grid-template-columns: 1fr; } }
