/* =====================================================
   premium-classic.css — 「素问」体系 · 存量页换肤层
   -----------------------------------------------------
   用途：把已有的重内容页（scl90.html / 16personalities.html）
        换到与 premium 版同一套视觉语言上。
   与 premium.css 的关系：premium.css 是新建页的骨架，
        本文件是给「已有 DOM 结构」做映射的换肤层。
   两者的 token 完全一致，刻度尺 / 坐标轴 / 印章组件同源。

   载入顺序要求：本文件必须排在 quiz.css、theme.css 之后。
   ===================================================== */

@import "premium.css";

/* ── 覆盖 quiz.css / theme.css 的基础层 ───────────────── */

/* theme.css 的 body 渐变底与 quiz.css 的 padding 都要让位给宣纸底 */
body {
    background: var(--paper);
    background-image:
        repeating-linear-gradient(45deg, rgba(30, 42, 39, 0.012) 0 1px, transparent 1px 4px),
        radial-gradient(120% 60% at 50% 0%, #f2f4ef 0%, transparent 70%);
    background-attachment: fixed;
    color: var(--ink);
    padding: 0 0 40px;
    font-size: 15px;
    line-height: 1.85;
}

.container {
    max-width: 620px;
    margin: 0 auto;
    padding: 0 20px;
}

/* quiz.css 的 header 是紫色卡片式标题，这里换成文书抬头 */
.header {
    text-align: center;
    padding: 38px 0 22px;
    margin-bottom: 0;
}

.header h1 {
    font-family: var(--serif);
    font-size: 23px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: 0.04em;
    margin-bottom: 8px;
    line-height: 1.5;
}

.header p {
    font-size: 13px;
    color: var(--ink-3);
    letter-spacing: 0.02em;
}

/* ── 卡片基元 ───────────────────────────────────────────── */

.paper-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

/* ── 通用小工具 ────────────────────────────────────────── */

.fade-in { animation: fadeIn 0.28s ease-in; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.share-panel { transition: opacity 0.2s ease; }
.share-panel.hidden { display: none !important; }

/* ── 按钮 ──────────────────────────────────────────────── */

/* quiz.css .btn-primary 的紫渐变 → 青瓷实底，去掉发光阴影 */
.btn-primary {
    display: block;
    width: 100%;
    padding: 15px;
    background: var(--c1);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.08em;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.2s, transform 0.15s;
    margin-top: 14px;
    text-align: center;
}

.btn-primary:active {
    background: var(--c1-deep);
    transform: scale(0.99);
}

/* quiz.css .btn-secondary 的灰底圆角 → 描边式次按钮 */
.btn-secondary {
    display: block;
    width: 100%;
    padding: 13px;
    background: transparent;
    color: var(--ink-2);
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    font-size: 14.5px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    margin-top: 10px;
    text-align: center;
}

.btn-secondary:active { border-color: var(--c1); color: var(--c1); }

/* ── 进度条 ────────────────────────────────────────────── */

.progress-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.progress-label {
    font-family: var(--serif);
    font-size: 12px;
    color: var(--ink-3);
    white-space: nowrap;
    min-width: 46px;
    font-variant-numeric: tabular-nums;
}

.progress-bar-bg {
    flex: 1;
    height: 2px;
    background: var(--line-2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--c1);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.22, 0.68, 0.32, 1);
}

/* scl90.html 自带的 .progress-bar（实心条） */
.progress-bar {
    height: 2px;
    background: var(--line-2);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 24px;
}

.progress-fill {
    height: 100%;
    background: var(--c1);
    width: 0%;
    transition: width 0.4s cubic-bezier(0.22, 0.68, 0.32, 1);
}

/* ── 题目卡 ────────────────────────────────────────────── */

.question-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: none;
    padding: 26px 22px 22px;
    margin-bottom: 16px;
    position: relative;
}

.question-card::before { display: none; }

.question-number {
    display: inline-block;
    background: var(--c-light);
    color: var(--c1);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 2px;
    margin-bottom: 14px;
    letter-spacing: 0.06em;
}

.question-text {
    font-family: var(--serif);
    font-size: 19px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 20px;
    line-height: 1.7;
}

/* scl90.html 的题目大字（原文 30px 太抢） */
.question-content {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 34px 22px;
    margin-bottom: 20px;
    box-shadow: none;
    font-family: var(--serif);
    font-size: 25px;
    font-weight: 600;
    color: var(--ink);
    min-height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.7;
}

/* ── 选项 ──────────────────────────────────────────────── */

.options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
}

.options.grid2 { grid-template-columns: 1fr 1fr; }

.option {
    background: var(--card);
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    padding: 13px 14px;
    font-size: 15px;
    color: var(--ink-2);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.18s, background 0.18s, color 0.18s;
    line-height: 1.5;
    user-select: none;
    -webkit-user-select: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.option:active { transform: scale(0.995); }

.option.selected,
.option.active {
    background: var(--c-light);
    border-color: var(--c1);
    color: var(--ink);
    font-weight: 600;
    box-shadow: none;
}

/* 5 级量表：左侧刻度序号，是「刻度尺」隐喻在答题阶段的延伸 */
.option .opt-n {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border: 1px solid var(--line-2);
    border-radius: 2px;
    font-family: var(--serif);
    font-size: 12px;
    line-height: 20px;
    text-align: center;
    color: var(--ink-4);
    font-variant-numeric: tabular-nums;
    transition: border-color 0.18s, color 0.18s, background 0.18s;
}

.option.selected .opt-n {
    border-color: var(--c1);
    background: var(--c1);
    color: #fff;
}

.option .opt-t { flex: 1; }

/* 双极选择（MBTI）：左 A 右 B，中间一条轴 */
.opt-poles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    position: relative;
}

.opt-poles::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 14px;
    bottom: 14px;
    width: 1px;
    background: var(--line-2);
    transform: translateX(-50%);
}

.opt-pole {
    background: var(--card);
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    padding: 13px 13px 12px;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s;
    position: relative;
    z-index: 1;
}

.opt-pole.sel {
    background: var(--c-light);
    border-color: var(--c1);
}

.pole-name {
    display: block;
    font-family: var(--serif);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--ink-4);
    margin-bottom: 7px;
}

.opt-pole.sel .pole-name { color: var(--c1); }

.pole-word {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--ink-2);
}

.opt-pole.sel .pole-word { color: var(--ink); font-weight: 600; }

/* ── 导航按钮 ──────────────────────────────────────────── */

.nav-row {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.nav-row button { flex: 1; }

.prev-btn,
.next-btn {
    flex: 1;
    padding: 13px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.18s, transform 0.18s, background 0.18s;
}

.prev-btn {
    flex: 1;
    background: transparent;
    color: var(--ink-3);
    border: 1px solid var(--line-2);
}

.next-btn {
    flex: 1.4;
    background: var(--c1);
    color: #fff;
    border: none;
    box-shadow: none;
}

.prev-btn:active { opacity: 0.8; transform: scale(0.99); }
.next-btn:active { opacity: 0.88; transform: scale(0.99); }
.prev-btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }
.next-btn:disabled { opacity: 0.38; cursor: not-allowed; transform: none; }

/* scl90.html 的答题导航 */
.test-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}

.test-nav-btn {
    flex: 1;
    padding: 13px;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    cursor: pointer;
    font-weight: 500;
    transition: opacity 0.2s, transform 0.15s, background 0.2s;
}

.test-nav-btn.prev {
    background: transparent;
    color: var(--ink-3);
    border: 1px solid var(--line-2);
}

.test-nav-btn.next {
    background: var(--c1);
    color: #fff;
}

.test-nav-btn:active { transform: scale(0.99); }
.test-nav-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* ── 开始卡（MBTI 引导页） ─────────────────────────────── */

.start-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: none;
    padding: 26px 22px;
    margin-bottom: 16px;
    position: relative;
}

.start-card::before { display: none; }

.start-intro {
    font-size: 15px;
    color: var(--ink-2);
    line-height: 1.85;
    margin-bottom: 4px;
}

/* ── 维度四宫格 → 改造成双极说明条 ─────────────────────── */

.dimension-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 16px 0 4px;
}

.dimension-item {
    background: var(--card);
    border: none;
    border-radius: 0;
    padding: 13px 15px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.dimension-item .dim-label {
    font-size: 12px;
    color: var(--ink-3);
    margin-bottom: 0;
    letter-spacing: 0.06em;
    flex: 0 0 auto;
}

.dimension-item .dim-value {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 14.5px;
    color: var(--ink);
    text-align: right;
}

/* ── 分享面板 ──────────────────────────────────────────── */

.share-section {
    background: transparent;
    border: none;
    border-top: 1px dashed var(--line-2);
    border-radius: 0;
    padding: 16px 0 0;
    margin-top: 18px;
}

.share-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
}

.share-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 12px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--line-2);
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card);
    transition: border-color 0.2s;
}

.share-btn:active { border-color: var(--c1); }

.share-btn-wechat { background: var(--c-light); border-color: var(--c-light); }
.share-btn-link { background: var(--card); color: var(--ink-3); }

/* ── 结果卡 ────────────────────────────────────────────── */

.result-card {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 24px 0 0;
    text-align: center;
    margin-bottom: 14px;
}

.result-name {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 14px;
    line-height: 1.4;
    letter-spacing: 0.04em;
}

/* 报告抬头：印章只在这里出现一次 */
.report-head {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 22px;
    text-align: center;
    margin-bottom: 18px;
    position: relative;
}

.stamp {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--seal);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-6deg);
    opacity: 0.8;
    padding: 3px;
}

.stamp-text {
    font-family: var(--serif);
    font-size: 10.5px;
    line-height: 1.15;
    letter-spacing: 0.05em;
    color: var(--seal);
    text-align: center;
    font-weight: 600;
}

.report-eyebrow {
    font-size: 11px;
    letter-spacing: 0.3em;
    color: var(--ink-4);
    text-indent: 0.3em;
    margin-bottom: 12px;
}

/* 类型大字（MBTI） */
.type-code {
    font-family: var(--serif);
    font-size: 54px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    font-variant-numeric: tabular-nums;
}

.type-name {
    font-family: var(--serif);
    font-size: 19px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 5px;
}

.type-en {
    font-size: 11.5px;
    letter-spacing: 0.24em;
    color: var(--ink-4);
    text-indent: 0.24em;
    margin-bottom: 14px;
}

.type-group {
    display: inline-block;
    font-size: 11.5px;
    letter-spacing: 0.12em;
    color: var(--c1);
    background: var(--c-light);
    padding: 4px 13px;
    border-radius: 2px;
    margin-bottom: 14px;
}

.type-motto {
    font-family: var(--serif);
    font-size: 14.5px;
    color: var(--ink-2);
    line-height: 1.8;
}

/* 人格头像位 */
.type-avatar {
    position: relative;
    flex: 0 0 auto;
    width: 76px;
    height: 96px;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--card-2);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.type-avatar::after {
    content: attr(data-fallback);
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 20px;
    letter-spacing: 0.08em;
    color: var(--ink-4);
}

.type-avatar img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.type-head {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    margin-bottom: 16px;
}

/* ── 报告抬头 ──────────────────────────────────────────── */

.report-verdict {
    font-family: var(--serif);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--ink);
    margin-bottom: 10px;
}

.report-meta {
    font-size: 12.5px;
    color: var(--ink-3);
    line-height: 1.9;
}

.report-meta b { color: var(--ink-2); font-weight: 600; }

/* 指标三联 */
.metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 14px;
}

.metric {
    background: var(--card);
    padding: 14px 10px;
    text-align: center;
}

.metric-v {
    font-family: var(--serif);
    font-size: 25px;
    font-weight: 600;
    line-height: 1.1;
    color: var(--c1);
    font-variant-numeric: tabular-nums;
}

.metric-k {
    font-size: 11.5px;
    color: var(--ink-4);
    margin-top: 5px;
    letter-spacing: 0.04em;
}

/* 引文块：用于「什么时候该看医生」这类提示 */
.quote {
    background: var(--card-2);
    border-left: 2px solid var(--c1);
    padding: 11px 13px;
    border-radius: 0 2px 2px 0;
    font-size: 13px;
    line-height: 1.8;
    color: var(--ink-2);
    margin-top: 12px;
}

.quote b { color: var(--ink); font-weight: 600; }

/* ── 结果内容块 ────────────────────────────────────────── */

.result-block {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 18px 16px;
    margin: 12px 0;
    text-align: left;
}

.result-block h3,
.result-block h4 {
    font-family: var(--serif);
    font-size: 15.5px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 7px;
    letter-spacing: 0.03em;
}

.result-block p,
.result-block li {
    font-size: 14px;
    color: var(--ink-2);
    line-height: 1.85;
}

.result-block ul { padding-left: 18px; }

/* ── 报告卡片（详细解读区） ────────────────────────────── */

.rp-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 17px 18px 16px;
    margin: 12px 0;
}

.rp-h {
    font-family: var(--serif);
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: 0.04em;
    margin-bottom: 10px;
    padding-left: 10px;
    border-left: 2px solid var(--c1);
    line-height: 1.5;
}

.rp-h.sec {
    margin: 22px 0 8px;
    border-left: none;
    padding-left: 0;
    font-size: 16px;
}

.rp-sub {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
    margin: 12px 0 5px;
}

.rp-p {
    font-size: 13.5px;
    line-height: 1.85;
    color: var(--ink-2);
}

.rp-note {
    font-size: 12.5px;
    line-height: 1.8;
    color: var(--ink-3);
    background: var(--card-2);
    border-radius: 2px;
    padding: 10px 12px;
    margin-top: 11px;
}

.rp-list {
    margin: 0;
    padding-left: 18px;
    font-size: 13.5px;
    line-height: 1.85;
    color: var(--ink-2);
}

.rp-list li { margin-bottom: 5px; }

/* 统计条 */
.rp-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 12px;
}

.rp-stat {
    background: var(--card-2);
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 5px 10px;
    font-size: 12.5px;
    color: var(--ink-3);
}

.rp-stat b {
    color: var(--ink);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* 提示条：需关注时用朱砂 */
.rp-warn {
    margin-top: 11px;
    padding: 10px 12px;
    background: var(--seal-light);
    border: 1px solid #e2c4bf;
    border-radius: 2px;
    color: #7d4a44;
    font-size: 12.5px;
    line-height: 1.75;
}

.rp-warn b { color: var(--seal); }

/* 因子得分行 */
.rp-factor {
    display: flex;
    align-items: baseline;
    gap: 9px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.rp-factor-name {
    font-family: var(--serif);
    font-size: 15.5px;
    font-weight: 600;
    color: var(--ink);
}

.rp-factor-score {
    font-size: 12.5px;
    color: var(--ink-4);
}

.rp-factor-score b {
    font-size: 15px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* 等级徽标 */
.rp-tag {
    display: inline-block;
    color: #fff;
    padding: 2px 9px;
    border-radius: 2px;
    font-size: 11.5px;
    letter-spacing: 0.04em;
}

/* 关键题目清单 */
.rp-top {
    margin: 0;
    padding-left: 19px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--ink-2);
}

.rp-top li { margin-bottom: 10px; }

.rp-top-no {
    color: var(--c1);
    font-weight: 600;
}

.rp-top-q {
    color: var(--ink);
    display: block;
    margin: 2px 0;
}

.rp-top-note {
    color: var(--ink-4);
    font-size: 12px;
}

/* 分层行动建议 */
.rp-tier {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 15px;
    margin-bottom: 11px;
    background: var(--card);
}

.rp-tier.on {
    border-color: var(--c1);
    background: var(--c-light);
}

.rp-tier-h {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 7px;
}

.rp-tier.on .rp-tier-h { color: var(--c1); }

.rp-tier-mark {
    color: var(--c1);
    font-size: 11px;
    letter-spacing: 0.1em;
    margin-left: 7px;
}

/* ── 刻度尺（SCL-90 因子得分） ──────────────────────────── */

.scale {
    margin: 16px 0;
    padding: 16px 18px 14px;
    background: var(--card-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.scale-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 13px;
}

.scale-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: 0.04em;
}

.scale-val {
    font-family: var(--serif);
    font-size: 25px;
    font-weight: 600;
    color: var(--c1);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.scale-val small {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 400;
    color: var(--ink-4);
    margin-left: 5px;
    letter-spacing: 0.06em;
}

.scale-track {
    position: relative;
    height: 26px;
}

.scale-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 11px;
    height: 1px;
    background: var(--line-2);
}

.scale-fill {
    position: absolute;
    left: 0;
    top: 10px;
    height: 3px;
    background: var(--c1);
    border-radius: 2px;
    transition: width 0.7s cubic-bezier(0.22, 0.68, 0.32, 1);
}

.scale-ticks {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    display: flex;
    justify-content: space-between;
}

.scale-ticks i {
    width: 1px;
    background: var(--line-2);
    height: 8px;
    margin-top: 8px;
    position: relative;
}

.scale-ticks i.major {
    height: 14px;
    margin-top: 5px;
    background: var(--ink-4);
}

.scale-cursor {
    position: absolute;
    top: 2px;
    width: 3px;
    height: 20px;
    background: var(--c1);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: left 0.7s cubic-bezier(0.22, 0.68, 0.32, 1);
}

.scale-cursor::after {
    content: "";
    position: absolute;
    left: 50%;
    top: -4px;
    transform: translateX(-50%);
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--c1);
    border: 2px solid var(--card-2);
}

.scale-scale {
    display: flex;
    justify-content: space-between;
    font-size: 10.5px;
    color: var(--ink-4);
    margin-top: 2px;
    letter-spacing: 0.06em;
}

/* 临床切点：2.5 分 */
.scale-thresh {
    position: absolute;
    top: 6px;
    height: 20px;
    width: 1px;
    background: var(--seal);
    opacity: 0.55;
}

.scale-thresh::after {
    content: "2.5";
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    color: var(--seal);
    opacity: 0.8;
    letter-spacing: 0;
}

.scale-compact {
    margin: 0 0 13px;
    padding: 13px 15px 11px;
}

.scale-compact .scale-top { margin-bottom: 10px; }
.scale-compact .scale-name { font-size: 13.5px; }
.scale-compact .scale-val { font-size: 20px; }
.scale-compact:last-child { margin-bottom: 0; }

.scale-caption {
    font-size: 12.5px;
    color: var(--ink-3);
    line-height: 1.8;
    margin-top: 11px;
    padding-top: 11px;
    border-top: 1px dashed var(--line-2);
}

/* ── 双极坐标轴（MBTI 维度） ──────────────────────────── */

.axis-row { margin-bottom: 16px; }
.axis-row:last-child { margin-bottom: 0; }

.axis-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.axis-name {
    color: var(--ink);
    font-weight: 600;
    font-size: 13.5px;
    letter-spacing: 0.03em;
}

.axis-track {
    position: relative;
    height: 8px;
    background: var(--card-2);
    border: 1px solid var(--line);
    border-radius: 2px;
    overflow: hidden;
}

.axis-left,
.axis-right {
    position: absolute;
    top: 0;
    bottom: 0;
    transition: width 0.7s cubic-bezier(0.22, 0.68, 0.32, 1);
}

.axis-left { left: 0; background: var(--c1); border-radius: 2px 0 0 2px; }
.axis-right { right: 0; background: var(--c1); opacity: 1; border-radius: 0 2px 2px 0; }

.axis-pin {
    position: absolute;
    top: -3px;
    width: 2px;
    height: 14px;
    background: var(--ink);
    transform: translateX(-50%);
    transition: left 0.7s cubic-bezier(0.22, 0.68, 0.32, 1);
}

.axis-foot {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--ink-4);
    margin-top: 6px;
    letter-spacing: 0.02em;
}

.axis-val {
    color: var(--ink-2);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* ── scl90.html 专有 ───────────────────────────────────── */

/* 引导页：轮播图 + 说明
   ────────────────────────────────────────────────
   高度用「确定的 height」而非 min-height —— 因为轮播图里的 img 写的是
   height:100%，父容器高度一旦不确定（min-height 场景），
   图片就会回退到原始像素尺寸（500px 高），把整页撑到近千像素。

   三层高度来源，任何设备都能看到并点到「开始测试」：
     1. --app-vh  由页面 JS 实测可见区高度写入（老内核没有 dvh 时唯一可靠的方式）
     2. 100dvh   现代内核（iOS 15.4+ / Chrome 108+）
     3. 100vh    老内核兜底
   绝不设 overflow:hidden —— 一旦裁掉又锁死滚动，按钮就永远够不着。 */
.guide-page {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    height: var(--app-vh, 100dvh);
    padding: 0 20px;
    box-sizing: border-box;
}

/* 轮播图：吃掉剩余空间，但留一个下限。
   flex-basis:0% 是必需的 —— 基准尺寸必须为 0，
   高度才会由 flex 分配确定值，img 的 height:100% 才有意义。
   小屏 / 横屏时 min-height 保证它不会被压没。 */
.carousel-wrap {
    flex: 1 1 0%;
    min-height: 140px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: none;
    margin: 4px 0;
    background: var(--card);
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.carousel-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 2;
}

.carousel-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s;
}

.carousel-dot.active {
    width: 16px;
    border-radius: 3px;
    background: #fff;
}

.carousel-arrow {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(30, 42, 39, 0.32);
    color: #fff;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 15px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.carousel-arrow.prev { left: 10px; }
.carousel-arrow.next { right: 10px; }

@media (min-width: 768px) {
    .carousel-arrow { display: flex; }
}

.description {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 13px 16px;
    margin: 6px 0;
    box-shadow: none;
    flex-shrink: 0;
}

.description h2 {
    font-family: var(--serif);
    font-size: 13.5px;
    margin-bottom: 7px;
    color: var(--ink);
    font-weight: 600;
    letter-spacing: 0.06em;
}

.description ul {
    padding-left: 17px;
    margin: 0;
    list-style: none;
}

.description li {
    margin-bottom: 4px;
    font-size: 12.5px;
    color: var(--ink-3);
    line-height: 1.7;
    position: relative;
}

.description li::before {
    content: "";
    position: absolute;
    left: -11px;
    top: 9px;
    width: 4px;
    height: 1px;
    background: var(--line-2);
}

.description li:last-child { margin-bottom: 0; }

/* 「开始测试」按钮
   ────────────────────────────────────────────────
   这是用户反馈「看不到下面的按钮」的那个按钮，必须在任何设备上都够得着。
   做法：sticky 吸底 —— 内容装得下时它就在说明区下方，
   装不下时它吸在视口底部，永远可点（老内核无 sticky 会退化为普通流内元素，
   此时靠 min-height + 可滚动兜底）。 */
.start-btn {
    display: block;
    width: 100%;
    background: var(--c1);
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.1em;
    border-radius: var(--radius);
    text-align: center;
    margin: 8px 0 12px;
    cursor: pointer;
    box-shadow: none;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.15s;

    /* 吸底：内容超出时按钮仍钉在视口底部 */
    position: -webkit-sticky;
    position: sticky;
    bottom: 0;
    z-index: 20;
}

/* 吸底时按钮下方留出安全区，避免被 iPhone 的 Home 指示条压住 */
@supports (padding: max(0px)) {
    .start-btn {
        margin-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    }
}

.start-btn:active { background: var(--c1-deep); transform: scale(0.99); }

/* 答题页 */
.test-page {
    display: none;
    padding: 26px 20px 0;
}

.question-number {
    text-align: center;
    font-family: var(--serif);
    font-size: 13px;
    color: var(--ink-3);
    letter-spacing: 0.1em;
    margin-bottom: 14px;
}

/* 结果页 */
.result-page {
    display: none;
    padding: 0;
    height: 100vh;
    overflow: hidden;
}

/* 顶部固定的咨询师条：改成文书抬头的一条窄横栏 */
.consultant-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    z-index: 100;
    box-shadow: none;
}

.consultant-section {
    background: var(--card);
    border-radius: 0;
    padding: 11px 20px;
    margin-bottom: 0;
    box-shadow: none;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.consultant-header {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    gap: 11px;
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--card-2);
    margin-right: 0;
    overflow: hidden;
    flex: 0 0 auto;
    border: 1px solid var(--line);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.consultant-info {
    flex: 1;
    min-width: 0;
}

.consultant-name {
    font-family: var(--serif);
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 1px;
}

.consultant-desc {
    font-size: 11.5px;
    color: var(--ink-4);
    line-height: 1.5;
}

.consult-btn {
    background: transparent;
    color: var(--c1);
    border: 1px solid var(--c1);
    padding: 6px 13px;
    border-radius: 2px;
    font-size: 12px;
    cursor: pointer;
    flex-shrink: 0;
    letter-spacing: 0.04em;
}

.consult-btn:active { background: var(--c-light); }

.scrollable-content {
    margin-top: 62px;
    height: calc(100vh - 62px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 18px 20px 24px;
}

/* 结果页自成一屏：锁住外层滚动。
   否则顶部固定条会被外层滚动顶走，压在报告内容上。 */
body.result-mode {
    height: 100vh;
    overflow: hidden;
    padding-bottom: 0;
}

.chart-section {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 18px;
    margin-bottom: 16px;
    box-shadow: none;
}

.chart-section h2 {
    text-align: center;
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 18px;
    color: var(--ink);
    letter-spacing: 0.05em;
}

/* 半圆仪表：饼图容器 */
.pie-chart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 18px 0 0;
}

.pie-chart-wrapper {
    position: relative;
    width: 300px;
    max-width: 100%;
    height: 150px;
    margin-bottom: 26px;
}

.pie-labels {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.pie-label {
    position: absolute;
    font-size: 11.5px;
    font-weight: 600;
    text-align: center;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}

.pie-center {
    position: absolute;
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.pie-center-score {
    font-family: var(--serif);
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 3px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.pie-center-name {
    font-size: 13px;
    color: var(--ink-2);
}

.pie-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    margin-top: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 11.5px;
    color: var(--ink-3);
}

.legend-color {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 6px;
    flex: 0 0 auto;
}

.action-section {
    text-align: center;
    padding: 12px 0;
}

.result-image {
    text-align: center;
    margin: 18px 0;
}

.result-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 22px 0 10px;
    color: var(--ink-4);
    font-size: 11.5px;
    line-height: 1.9;
    border-top: 1px dashed var(--line-2);
    margin-top: 20px;
}

.footer p { margin: 0; }

/* ── 二维码弹窗 ────────────────────────────────────────── */

.modal {
    display: none;
    position: fixed;
    /* inset 简写要 Chrome 87+ 才认；老微信 X5 不认会整条失效，
       弹窗变成没有尺寸的层 → 二维码弹窗彻底打不开。
       所以先写四边定位，inset 只作为现代内核的补充。 */
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    background: rgba(30, 42, 39, 0.62);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 22px 22px;
    text-align: center;
    max-width: 300px;
    width: 84%;
    margin: 0 20px;
    position: relative;
}

.modal-header { margin-bottom: 18px; }

.modal-header h3 {
    font-family: var(--serif);
    font-size: 17px;
    color: var(--ink);
    margin-bottom: 7px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.modal-header p {
    font-size: 13px;
    color: var(--ink-3);
}

.qr-code {
    width: 190px;
    height: 190px;
    margin: 0 auto 16px;
    background: var(--card-2);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 2px;
    border: 1px solid var(--line);
}

.qr-code img {
    max-width: 100%;
    max-height: 100%;
}

.wechat-id {
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 600;
    color: var(--c1);
    margin: 14px 0;
    word-break: break-all;
    letter-spacing: 0.04em;
}

.copy-btn {
    background: var(--c1);
    color: #fff;
    border: none;
    padding: 11px 18px;
    border-radius: var(--radius);
    font-size: 14px;
    cursor: pointer;
    margin-top: 8px;
    width: 100%;
    letter-spacing: 0.04em;
}

.copy-btn:active { background: var(--c1-deep); }

.close-modal {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 20px;
    color: var(--ink-4);
    cursor: pointer;
    line-height: 1;
}

.close-modal:active { color: var(--ink); }

/* ── 16personalities.html 专有 ───────────────────────────── */

/* 引导页：四轴说明（提前预告结果页的坐标轴语言） */
.axis-guide {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 18px 16px;
    margin: 16px 0 4px;
}

.axis-guide-h {
    font-family: var(--serif);
    font-size: 14.5px;
    color: var(--ink);
    letter-spacing: 0.1em;
    margin-bottom: 17px;
}

.ag-row { margin-bottom: 15px; }
.ag-row:last-child { margin-bottom: 0; }

.ag-name {
    font-size: 11px;
    color: var(--ink-4);
    letter-spacing: 0.2em;
    margin-bottom: 7px;
}

.ag-track {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ag-pole {
    font-family: var(--serif);
    font-size: 13.5px;
    color: var(--ink-2);
    white-space: nowrap;
}

.ag-pole b {
    color: var(--ink);
    font-weight: 600;
    margin-right: 5px;
}

/* 中轴上的菱形游标 */
.ag-line {
    flex: 1;
    height: 1px;
    background: var(--line-2);
    position: relative;
}

.ag-line::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -3px;
    width: 7px;
    height: 7px;
    margin-left: -3.5px;
    transform: rotate(45deg);
    background: var(--card);
    border: 1px solid var(--line-2);
}

/* 分享区 */
.share-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* 分享区的按钮是「次要动作」，不该占满整行 */
.share-section-header .btn-secondary {
    display: inline-block;
    width: auto;
    margin-top: 0;
    flex: 0 0 auto;
}

.share-qr-note {
    font-size: 12px;
    color: var(--ink-4);
    margin-top: 7px;
}

/* 选项尾部的极名标签 */
.option .opt-tag {
    flex: 0 0 auto;
    font-family: var(--serif);
    font-size: 11.5px;
    letter-spacing: 0.1em;
    color: var(--ink-4);
}

.option.selected .opt-tag { color: var(--c1); }

/* 坐标轴两侧的胜负 */
.axis-val .win { color: var(--c1); font-weight: 600; }
.axis-val .lose { color: var(--ink-4); }
.axis-val .sep { color: var(--ink-4); margin: 0 5px; }

/* 落败一侧退到背景里，胜方保持实心 */
.axis-left.dim,
.axis-right.dim { opacity: 0.2; }

/* 50% 中线：提示这是一条双极轴，两端都可走 */
.axis-mid {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: rgba(250, 251, 248, 0.55);
}

/* 区块底色变体 */
.rp-quiet { background: var(--card-2); }
.rp-soft  { background: var(--lv2-bg); border-color: #e4d7b6; }

/* 标签药丸 */
.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.pill {
    display: inline-block;
    background: var(--card-2);
    border: 1px solid var(--line);
    color: var(--ink-2);
    padding: 5px 12px;
    border-radius: 2px;
    font-size: 12.5px;
}

.pill.celadon { background: var(--c-light); border-color: #cfded6; color: var(--c1-deep); }
.pill.green   { background: var(--lv1-bg); border-color: #cfe0cf; color: var(--lv1); }
.pill.red     { background: var(--lv4-bg); border-color: #e6cfc9; color: var(--lv4); }
.pill.grey    { background: var(--card-2); border-color: var(--line); color: var(--ink-3); }

/* 区块标题（覆盖 .result-block h4 的 flex 排布） */
.result-block .rp-h {
    display: block;
    font-size: 15px;
    border-left: 2px solid var(--c1);
    padding-left: 10px;
    margin-bottom: 12px;
}

/* 正文 */
.result-block .rp-lead {
    font-family: var(--serif);
    font-size: 14.5px;
    line-height: 1.95;
    color: var(--ink-2);
}

.result-block .rp-body {
    font-size: 13.5px;
    line-height: 1.85;
    color: var(--ink-2);
}

.result-block .rp-cap {
    font-size: 12.5px;
    line-height: 1.75;
    color: var(--ink-3);
    margin-top: 12px;
}

/* 要点条 */
.rp-bullet { margin-bottom: 11px; }
.rp-bullet:last-child { margin-bottom: 0; }

.result-block .rp-bullet-t {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 3px;
}

.result-block .rp-bullet-d {
    font-size: 13.5px;
    line-height: 1.75;
    color: var(--ink-2);
}

/* 小标题 */
.result-block .rp-sub-h {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 7px;
}

/* 认知功能栈 */
.cog-row {
    display: flex;
    gap: 11px;
    padding: 12px 13px;
    margin-bottom: 9px;
    background: var(--card-2);
    border: 1px solid var(--line);
    border-left: 3px solid var(--c1);
    border-radius: 2px;
}

.cog-row.weak { border-left-color: var(--line-2); }

.cog-badge {
    flex: 0 0 36px;
    text-align: center;
}

.cog-f {
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 600;
    color: var(--c1);
    line-height: 1.2;
}

.cog-row.weak .cog-f { color: var(--ink-4); }

.cog-main { flex: 1; min-width: 0; }

/* 功能名与位次并排，位次不再挤在窄徽标里换行 */
.cog-head {
    display: flex;
    align-items: baseline;
    gap: 9px;
    flex-wrap: wrap;
}

.cog-pos {
    font-size: 10.5px;
    color: var(--ink-4);
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.cog-n {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

.cog-d {
    font-size: 13px;
    line-height: 1.7;
    color: var(--ink-2);
    margin-top: 3px;
}

/* 成长建议序号 */
.gr-row {
    display: flex;
    gap: 10px;
    margin-bottom: 11px;
}

.gr-row:last-child { margin-bottom: 0; }

.gr-no {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--c-light);
    color: var(--c1);
    font-family: var(--serif);
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gr-t {
    font-size: 14px;
    line-height: 1.75;
    color: var(--ink-2);
}

/* 结语 */
.rp-closing {
    background: var(--c1);
    border: none;
    color: #f2f6f3;
    text-align: center;
    font-family: var(--serif);
    font-size: 15px;
    line-height: 1.95;
    letter-spacing: 0.02em;
}

.rp-closing .rp-body {
    color: #eaf1ec;
    font-family: var(--serif);
    font-size: 15px;
    line-height: 1.95;
}

/* 免责声明 */
.rp-disclaimer {
    background: var(--card-2);
    border: 1px dashed var(--line-2);
    border-radius: var(--radius);
    padding: 14px 16px;
    font-size: 12.5px;
    line-height: 1.85;
    color: var(--ink-3);
}

.rp-disclaimer b { color: var(--ink-2); }

/* 人格头像位（窄高取景框） */
.type-avatar {
    width: 62px;
    height: 96px;
}

/* 抬头里的头像与类型名整体居中 */
.report-head .type-head { justify-content: center; }

.type-avatar.has-art::after { display: none; }

.type-avatar svg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* ── 响应式 ────────────────────────────────────────────── */

@media (min-width: 768px) {
    .container { max-width: 620px; }

    .guide-page {
        max-width: 620px;
        margin: 0 auto;
    }

    .consultant-name { font-size: 16px; }
    .consultant-desc { font-size: 12px; }
    .consult-btn { padding: 7px 15px; font-size: 12.5px; }

    .question-content { font-size: 27px; }
}

/* 动效克制：只对响应动作（进度、选中）保留过渡 */
@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* 键盘焦点可见 */
:focus-visible {
    outline: 2px solid var(--c1);
    outline-offset: 2px;
}
