/* ============================================================
   SBTI 人格测试 — 全局样式
   ============================================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(108, 141, 113, 0.12), transparent 55%),
    radial-gradient(circle at top left, #f8fff8 0, #f6faf6 38%, #eef5f0 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100dvh;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ---- CSS Variables ---- */
:root {
  /* 原站绿色配色系统 */
  --bg: #f6faf6;
  --panel: #ffffff;
  --text: #1e2a22;
  --muted: #6a786f;
  --line: #dbe8dd;
  --soft: #edf6ef;
  --accent: #6c8d71;
  --accent-strong: #4d6a53;
  --shadow: 0 16px 40px rgba(47, 73, 55, 0.08);
  /* 兼容旧变量名 */
  --primary: #4d6a53;
  --primary-dark: #3d5a45;
  --primary-light: #6c8d71;
  --surface: #ffffff;
  --surface-2: #f6faf6;
  --border: #dbe8dd;
  --text-muted: #6a786f;
  --text-light: #94a3b8;
  --text: #1e2a22;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow-sm: 0 4px 14px rgba(47, 73, 55, 0.05);
  --shadow: 0 16px 40px rgba(47, 73, 55, 0.08);
  --shadow-lg: 0 24px 80px rgba(47, 73, 55, 0.12);
  --nav-h: 64px;
}

/* ============================================================
   导航栏
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(246, 250, 246, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 28px rgba(47, 73, 55, 0.07);
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; gap: 32px;
}
.nav-logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo-text {
  font-size: 1.5rem; font-weight: 900; letter-spacing: -1px;
  background: linear-gradient(135deg, #2d4a34, #4d6a53, #6c8d71);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.logo-badge {
  font-size: .65rem; font-weight: 600; color: var(--text-muted);
  background: var(--surface-2); padding: 2px 8px; border-radius: 20px;
  border: 1px solid var(--border);
}
.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-link {
  padding: 6px 14px; border-radius: 8px; font-size: .9rem;
  color: var(--text-muted); font-weight: 500;
  transition: color .15s, background .15s;
}
.nav-link:hover, .nav-link.active {
  color: var(--accent-strong); background: var(--soft);
}
.nav-start-btn {
  background: var(--primary); color: #fff;
  padding: 8px 20px; border-radius: 10px; font-size: .875rem; font-weight: 600;
  transition: background .15s, transform .1s;
  flex-shrink: 0;
}
.nav-start-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 28px; padding: 4px; margin-left: auto;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--text);
  border-radius: 2px; transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile {
  display: none; flex-direction: column;
  background: var(--surface); border-bottom: 1px solid var(--border);
  max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s;
}
.nav-mobile.open { max-height: 300px; padding: 8px 0 16px; }
.nav-mobile-link {
  display: block; padding: 12px 24px; font-size: .95rem;
  color: var(--text); transition: background .15s;
}
.nav-mobile-link:hover { background: var(--surface-2); }

/* ============================================================
   通用区块
   ============================================================ */
.section-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-tag {
  display: inline-block; font-size: .75rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-strong); background: var(--soft);
  border: 1px solid var(--line);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900; letter-spacing: -1px;
  color: var(--text); margin-bottom: 12px; line-height: 1.2;
}
.section-desc {
  font-size: 1rem; color: var(--text-muted);
  max-width: 600px; line-height: 1.7;
}

/* ============================================================
   按钮
   ============================================================ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-strong); color: #fff;
  padding: 14px 20px; border-radius: 14px;
  font-size: .95rem; font-weight: 700;
  transition: transform .16s ease, box-shadow .16s ease;
  box-shadow: 0 12px 30px rgba(77, 106, 83, 0.18);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary:active { transform: none; }
.btn-primary svg { width: 18px; height: 18px; }
.btn-large { padding: 16px 30px; font-size: 1rem; border-radius: 16px; letter-spacing: 0.02em; }
.btn-white { background: #fff !important; color: var(--accent-strong) !important; }
.btn-white:hover { background: var(--soft) !important; }
.btn-ghost {
  display: inline-flex; align-items: center;
  color: var(--text-muted); padding: 12px 20px;
  font-size: .95rem; font-weight: 500;
  transition: color .15s;
}
.btn-ghost:hover { color: var(--accent-strong); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); color: var(--accent-strong);
  padding: 14px 20px; border-radius: 14px;
  font-size: .95rem; font-weight: 700;
  background: #fff;
  transition: background .15s ease, color .15s ease;
}
.btn-outline:hover { background: var(--soft); color: var(--accent-strong); }
.nav-start-btn {
  background: var(--accent-strong); color: #fff;
  padding: 8px 18px; border-radius: 10px;
  font-size: .85rem; font-weight: 700;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 14px rgba(77, 106, 83, 0.18);
}
.nav-start-btn:hover { transform: translateY(-1px); }

/* ============================================================
   英雄区
   ============================================================ */
.hero {
  position: relative; padding: calc(var(--nav-h) + 80px) 0 100px;
  overflow: hidden; min-height: 100dvh;
  display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .35;
}
.hero-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(108, 141, 113, 0.35), transparent);
  top: -200px; right: -100px;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(77, 106, 83, 0.2), transparent);
  bottom: -100px; left: -100px;
}
.hero-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(108, 141, 113, 0.2), transparent);
  top: 40%; left: 40%;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(108, 141, 113, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 141, 113, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero-container {
  max-width: 800px; margin: 0 auto; padding: 0 24px;
  position: relative; text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--soft); border: 1px solid var(--line);
  color: var(--accent-strong); padding: 6px 16px; border-radius: 20px;
  font-size: .8rem; font-weight: 600; letter-spacing: .03em;
  margin-bottom: 24px;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-strong);
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:.5; transform:scale(1.3); }
}
.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900; letter-spacing: -2px;
  line-height: 1.1; margin-bottom: 24px; color: var(--text);
}
.hero-title-accent {
  background: linear-gradient(108deg, #2d4a34 0%, #4d6a53 32%, #6c8d71 58%, #3d5c44 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: clamp(.95rem, 2.5vw, 1.2rem);
  color: var(--text-muted); margin-bottom: 40px;
  line-height: 1.8;
}
.hero-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap; margin-bottom: 60px;
}
.hero-stats {
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 32px; flex-wrap: wrap; margin-top: 24px;
}
.hero-actions {
  display: flex; gap: 10px; align-items: center; justify-content: center;
}
.stat-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 0 20px;
}
.stat-num {
  font-size: 1.5rem; font-weight: 900; color: var(--primary);
  letter-spacing: -1px; line-height: 1;
}
.stat-label { font-size: .7rem; color: var(--text-muted); margin-top: 4px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ============================================================
   VS 区
   ============================================================ */
.vs-section {
  padding: 100px 0; background: var(--surface);
}
.vs-grid {
  display: flex; align-items: center; gap: 24px;
  margin-top: 48px; flex-wrap: wrap; justify-content: center;
}
.vs-card {
  flex: 1; min-width: 260px; max-width: 380px;
  background: var(--surface-2); border-radius: var(--radius);
  padding: 32px; border: 2px solid var(--border);
}
.vs-new {
  background: var(--soft);
  border-color: var(--accent-strong);
  transform: scale(1.02);
}
.vs-card-label {
  font-size: 1.5rem; font-weight: 900; color: var(--text-muted);
  margin-bottom: 20px; letter-spacing: -1px;
}
.vs-card-label-new { color: var(--accent-strong); }
.vs-list { display: flex; flex-direction: column; gap: 12px; }
.vs-item { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.vs-icon { font-size: .9rem; font-weight: 700; width: 20px; text-align: center; }
.vs-con .vs-icon { color: #94a3b8; }
.vs-pro .vs-icon { color: #22c55e; }
.vs-vs {
  font-size: 1.5rem; font-weight: 900; color: var(--text-light);
  padding: 0 12px; flex-shrink: 0;
}

/* ============================================================
   维度展示区
   ============================================================ */
.dims-section {
  padding: 100px 0; background: var(--surface-2);
}
.dims-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px; margin-top: 48px;
}
.dim-card {
  background: #fff; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line);
  transition: transform .2s, border-color .2s;
}
.dim-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.dim-card-header {
  padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.dim-model-label { color: rgba(255,255,255,.9); font-size: .8rem; font-weight: 700; }
.dim-code { color: #fff; font-size: 2rem; font-weight: 900; opacity: .5; }
.dim-card-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; }
.dim-item { display: flex; align-items: flex-start; gap: 12px; }
.dim-tag {
  background: var(--soft); color: var(--accent-strong);
  font-size: .7rem; font-weight: 800; letter-spacing: .05em;
  padding: 3px 8px; border-radius: 6px; flex-shrink: 0; margin-top: 2px;
}
.dim-info strong { font-size: .9rem; color: var(--text); display: block; margin-bottom: 2px; }
.dim-info p { font-size: .8rem; color: var(--text-muted); line-height: 1.5; }

/* ============================================================
   人格预览卡片
   ============================================================ */
.types-preview-section {
  padding: 100px 0; background: var(--surface);
}
.types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px; margin-top: 48px;
}
/* 首页人格预览网格 */
.types-preview-section {
  padding: 80px 0;
}
.types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 40px;
}
.type-card { 
  display: block; 
  max-width: 100%;
  overflow: hidden;
}
.type-card-inner {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 5px;
  overflow: hidden;
  text-align: center;
  transition: border-color .15s ease, transform .15s ease;
  cursor: pointer;
  max-width: 100%;
}
.type-card-inner:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.type-card-img-wrap {
  width: 100%; max-width: 100%; height: 130px; overflow: hidden;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
}
.type-card-img {
  width: 100%; max-width: 100%; height: 100%; object-fit: contain; display: block;
  transition: transform .25s ease;
}
.type-card-inner:hover .type-card-img { transform: scale(1.04); }
  .type-card-emoji {
  width: 100%; max-width: 100%; height: 130px; display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  background: #fff;
  border-radius: 14px;
}
.type-card-meta {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 12px 4px; flex-wrap: wrap;
}
.type-card-code {
  font-size: .75rem; font-weight: 800; color: var(--accent-strong);
  letter-spacing: .05em;
}
.type-card-name {
  font-size: .9rem; font-weight: 800; color: var(--text);
  padding: 4px 12px 2px;
}
.type-card-slogan {
  font-size: .7rem; color: var(--muted); line-height: 1.4;
  padding: 0 12px 12px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.type-rarity-tag {
  position: absolute; top: 8px; right: 8px;
  font-size: .6rem; font-weight: 700; padding: 2px 8px; border-radius: 20px;
}
.type-rarity-tag.rare { background: #fef3c7; color: #d97706; }
.type-rarity-tag.hidden { background: #fce7f3; color: #db2777; }
.types-more { text-align: center; margin-top: 40px; }

/* ============================================================
   测试流程
   ============================================================ */
.how-section {
  padding: 100px 0; background: var(--surface-2);
}
.how-steps {
  display: flex; align-items: flex-start; gap: 0;
  margin-top: 48px; flex-wrap: wrap;
}
.how-step {
  flex: 1; min-width: 200px; padding: 32px;
  background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--border);
}
.how-arrow {
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--text-light);
  padding: 0 8px; padding-top: 60px; flex-shrink: 0;
}
.step-num {
  font-size: 3rem; font-weight: 900; line-height: 1;
  color: var(--border); margin-bottom: 12px;
  letter-spacing: -2px;
}
.step-content h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.step-content p { font-size: .85rem; color: var(--text-muted); line-height: 1.6; }
.how-cta { text-align: center; margin-top: 48px; }

/* ============================================================
   隐私栏
   ============================================================ */
.privacy-banner {
  padding: 32px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.privacy-content {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.privacy-icon { font-size: 2rem; flex-shrink: 0; }
.privacy-text strong { font-size: 1rem; color: var(--accent-strong); display: block; margin-bottom: 4px; }
.privacy-text p { font-size: .875rem; color: var(--muted); }

/* ============================================================
   CTA 区
   ============================================================ */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--accent-strong), #6c8d71);
}
.cta-box {
  text-align: center; color: #fff;
}
.cta-box h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900; margin-bottom: 12px; letter-spacing: -1px;
}
.cta-box p { font-size: 1.1rem; opacity: .85; margin-bottom: 32px; }
.cta-note { margin-top: 16px; font-size: .8rem; opacity: .6; }

/* ============================================================
   页脚
   ============================================================ */
.footer { background: var(--text); color: var(--muted); padding: 48px 0 32px; }
.footer-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; flex-direction: column; gap: 24px; align-items: center;
}
.footer-logo { display: flex; align-items: center; gap: 8px; }
.footer .logo-text { font-size: 1.25rem; -webkit-text-fill-color: #fff; }
.footer-tagline { font-size: .7rem; color: var(--muted); }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-nav a { font-size: .875rem; color: var(--muted); transition: color .15s; }
.footer-nav a:hover { color: #fff; }
.footer-links { display: flex; gap: 32px; justify-content: center; margin-top: 16px; }
.footer-links a { font-size: .875rem; color: var(--muted); transition: color .15s; }
.footer-links a:hover { color: #fff; }
.footer-disclaimer { max-width: 600px; text-align: center; }
.footer-disclaimer p { font-size: .75rem; line-height: 1.6; color: var(--muted); }
.footer-copy { font-size: .75rem; color: #4a5850; }

/* ============================================================
   测试页
   ============================================================ */
.test-page { background: var(--bg); }
.test-nav { background: rgba(246,250,246,.9); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.test-nav-right { margin-left: auto; }
.test-nav-progress {
  font-size: .85rem; font-weight: 700; color: var(--accent-strong);
  background: var(--soft); padding: 4px 12px; border-radius: 999px;
}
.test-main { padding-top: var(--nav-h); min-height: 100dvh; }

/* 封面 */
.test-cover {
  min-height: calc(100dvh - var(--nav-h));
  display: flex; align-items: center; justify-content: center;
  padding: 48px 24px;
}
.cover-container {
  max-width: 560px; width: 100%;
  background: var(--surface); border-radius: 22px;
  border: 1px solid var(--line);
  padding: 48px 40px; text-align: center;
}
.cover-badge {
  display: inline-block; font-size: .75rem; font-weight: 700;
  color: var(--primary); background: rgba(79,70,229,.08);
  padding: 4px 14px; border-radius: 20px; margin-bottom: 24px;
}
.cover-title {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 900; letter-spacing: -1.5px;
  color: var(--text); margin-bottom: 16px; line-height: 1.15;
}
.cover-desc { font-size: .95rem; color: var(--text-muted); margin-bottom: 32px; line-height: 1.7; }
.cover-rules {
  display: flex; flex-direction: column; gap: 10px;
  text-align: left; margin-bottom: 36px;
  background: var(--surface-2); border-radius: 12px; padding: 20px;
}
.rule-item { display: flex; align-items: center; gap: 12px; font-size: .875rem; color: var(--text-muted); }
.rule-icon { font-size: 1.1rem; flex-shrink: 0; }
.cover-start { width: 100%; justify-content: center; font-size: 1.1rem; }

/* 答题区 */
.test-questions {
  min-height: calc(100dvh - var(--nav-h));
  padding: 32px 24px 80px;
}
.questions-container {
  max-width: 640px; margin: 0 auto;
}

/* 进度条 */
.progress-wrap { margin-bottom: 24px; }
.progress-bar {
  height: 6px; background: #edf3ee; border-radius: 999px; overflow: hidden;
  margin-bottom: 8px;
}
.progress-fill {
  height: 100%; background: linear-gradient(90deg, #97b59c, #5b7a62);
  border-radius: 3px; transition: width .4s cubic-bezier(.16,1,.3,1);
}
.progress-label {
  display: flex; justify-content: space-between;
  font-size: .8rem; color: var(--text-muted);
}

/* 维度提示 */
.dim-hint {
  display: inline-block; margin-bottom: 16px;
  border-left: 3px solid var(--accent-strong);
  padding: 4px 12px;
  transition: border-color .3s;
}
.dim-hint-label { font-size: .8rem; font-weight: 700; color: var(--text-muted); }

/* 题目卡片 */
.question-card {
  background: var(--surface); border-radius: 18px;
  border: 1px solid var(--line);
  padding: 32px; margin-bottom: 20px;
  animation: cardIn .35s cubic-bezier(.16,1,.3,1);
}
@keyframes cardIn {
  from { opacity:0; transform: translateY(16px); }
  to { opacity:1; transform: translateY(0); }
}
.card-in { animation: cardIn .35s cubic-bezier(.16,1,.3,1); }
.q-number {
  font-size: .75rem; font-weight: 800; color: var(--accent-strong);
  letter-spacing: .1em; margin-bottom: 12px;
}
.q-text {
  font-size: 1.1rem; font-weight: 700; color: var(--text);
  line-height: 1.6; margin-bottom: 24px;
}
.q-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.q-option {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 18px; border-radius: 12px; text-align: left; width: 100%;
  border: 2px solid var(--border); background: var(--surface-2);
  transition: all .15s; font-size: .9rem; color: var(--text);
}
.q-option:hover { border-color: var(--accent); background: var(--soft); }
.q-option.selected {
  border-color: var(--accent-strong); background: var(--soft);
  color: var(--accent-strong);
}
.q-option.selected .opt-letter { background: var(--accent-strong); color: #fff; }
.opt-letter {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--border); color: var(--text-muted);
  font-size: .75rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background .15s, color .15s;
}
.opt-text { line-height: 1.5; }
.q-nav { display: flex; justify-content: space-between; gap: 12px; }
.q-nav-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 10px; font-size: .875rem; font-weight: 700;
  transition: all .15s;
}
.q-prev {
  border: 2px solid var(--border); color: var(--text-muted);
}
.q-prev:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.q-next {
  background: var(--accent-strong); color: #fff; margin-left: auto;
}
.q-next:hover:not(:disabled) { background: var(--accent-strong); opacity: 0.9; transform: translateX(2px); }
.q-nav-btn:disabled { opacity: .4; cursor: not-allowed; transform: none !important; }
.q-nav-btn svg { width: 16px; height: 16px; }

/* 答题历史 */
.q-history {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.history-dot {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--border); transition: all .15s;
  font-size: 0;
}
.history-dot.answered { background: rgba(79,70,229,.2); }
.history-dot.current { background: var(--primary); }
.history-dot:hover { transform: scale(1.15); }

/* ============================================================
   结果页
   ============================================================ */
.test-result { padding: 40px 24px 80px; }
.result-container { max-width: 640px; margin: 0 auto; }

.result-header {
  text-align: center; background: linear-gradient(180deg, #fff, #fbfdfb);
  border-radius: 18px; border: 1px solid var(--line);
  padding: 40px 32px; margin-bottom: 20px;
}
/* 结果页人格图片 */
.result-type-image {
  margin: 0 auto 20px;
  width: 160px; height: 160px;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
}
.result-type-image img {
  width: 100%; height: 100%; object-fit: contain; display: block;
}
.result-rarity-badge {
  display: inline-block; color: #fff;
  padding: 4px 14px; border-radius: 20px;
  font-size: .7rem; font-weight: 800; margin-bottom: 16px;
}
.result-type-badge {
  display: inline-block; color: #fff;
  padding: 8px 20px; border-radius: 12px;
  font-size: 1.1rem; font-weight: 900; letter-spacing: .05em;
  margin-bottom: 12px; background: var(--accent-strong);
}
.result-type-name {
  font-size: 2.5rem; font-weight: 900; letter-spacing: -1px;
  color: var(--text); margin-bottom: 8px;
}
.result-match { font-size: .95rem; color: var(--text-muted); margin-bottom: 12px; }
.result-match strong { color: var(--accent-strong); font-size: 1.25rem; }
.result-slogan {
  font-size: 1rem; color: var(--text-muted);
  font-style: italic; line-height: 1.6;
}

.result-desc-card, .result-dims-card, .result-compat-card {
  background: var(--surface); border-radius: 18px;
  border: 1px solid var(--line); padding: 28px 28px;
  margin-bottom: 16px;
}
.result-desc-card h3, .result-dims-card h3, .result-compat-card h3 {
  font-size: 1rem; font-weight: 800; margin-bottom: 16px;
  color: var(--text); letter-spacing: -.02em;
}
.result-desc-card p { font-size: .9rem; color: var(--text-muted); line-height: 1.8; }

.result-grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px;
}
.result-trait-card {
  background: var(--surface); border-radius: 16px;
  border: 1px solid var(--line); padding: 24px;
}
.result-trait-card h3 {
  font-size: .9rem; font-weight: 800; margin-bottom: 14px;
}
.result-strength h3 { color: #16a34a; }
.result-weakness h3 { color: #dc2626; }
.result-trait-card ul { display: flex; flex-direction: column; gap: 8px; }
.result-trait-card li {
  font-size: .8rem; color: var(--text-muted);
  padding-left: 14px; position: relative; line-height: 1.5;
}
.result-strength li::before { content: '✓'; position: absolute; left: 0; color: #16a34a; font-weight: 700; }
.result-weakness li::before { content: '!'; position: absolute; left: 0; color: #dc2626; font-weight: 700; }

/* 维度可视化 */
.dims-visual { display: flex; flex-direction: column; gap: 10px; }
.dim-row {
  display: grid; grid-template-columns: 140px 1fr 36px;
  align-items: center; gap: 12px;
}
.dim-row-label { display: flex; align-items: center; gap: 8px; }
.dim-row-code { font-size: .7rem; font-weight: 800; min-width: 32px; }
.dim-row-name { font-size: .75rem; color: var(--text-muted); }
.dim-row-bar {
  height: 8px; background: var(--surface-2);
  border-radius: 4px; overflow: hidden;
}
.dim-row-fill { height: 100%; border-radius: 4px; transition: width .6s cubic-bezier(.16,1,.3,1); }
.dim-row-level {
  font-size: .7rem; font-weight: 800; text-align: center;
  padding: 2px 6px; border-radius: 6px;
}
.level-l { background: #fee2e2; color: #dc2626; }
.level-m { background: #fef9c3; color: #ca8a04; }
.level-h { background: #dcfce7; color: #16a34a; }

/* 兼容性 */
.compat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.compat-item {
  display: flex; flex-direction: column; align-items: center;
  background: var(--surface-2); border-radius: 12px; padding: 14px 10px;
}
.compat-label { font-size: .7rem; color: var(--text-muted); margin-bottom: 6px; }
.compat-type { font-size: 1rem; font-weight: 900; color: var(--accent-strong); }

/* 结果操作按钮 */
.result-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin: 24px 0 16px;
}
.result-actions .btn-primary, .result-actions .btn-outline, .result-actions .btn-ghost {
  flex: 1; justify-content: center; min-width: 120px;
}
.result-actions svg { width: 16px; height: 16px; }
.result-disclaimer {
  text-align: center; font-size: .75rem; color: var(--text-light);
  padding: 16px; background: var(--surface-2);
  border-radius: 10px; line-height: 1.6;
}

/* Shared Banner */
.shared-banner {
  position: fixed; top: 80px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fff; padding: 10px 20px; border-radius: 50px;
  font-size: .85rem; font-weight: 500; z-index: 998;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow);
  animation: slideDown .4s cubic-bezier(.16,1,.3,1);
}
.shared-banner a {
  color: #fff; font-weight: 700; text-decoration: underline;
  transition: opacity .2s;
}
.shared-banner a:hover { opacity: .8; }
@keyframes slideDown {
  from { transform: translateX(-50%) translateY(-20px); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* Share Toast */
.share-toast {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--accent-strong); color: #fff; padding: 12px 24px; border-radius: 12px;
  font-size: .875rem; font-weight: 600; z-index: 999;
  transition: transform .3s cubic-bezier(.16,1,.3,1), opacity .3s;
  opacity: 0; pointer-events: none;
}
.share-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ============================================================
   人格图鉴页
   ============================================================ */
.page-hero {
  background:
    radial-gradient(ellipse 90% 70% at 100% 0%, rgba(108, 141, 113, 0.16), transparent 52%),
    radial-gradient(ellipse 70% 60% at 0% 100%, rgba(77, 106, 83, 0.09), transparent 48%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.92) 0%, rgba(247, 251, 248, 0.65) 100%);
  border-bottom: 1px solid var(--line);
  padding: calc(var(--nav-h) + 60px) 0 60px;
  text-align: center;
}
.page-hero-container { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900; letter-spacing: -1.5px; margin-bottom: 12px; color: var(--text);
}
.page-hero p { font-size: 1.05rem; color: var(--muted); margin-bottom: 32px; }
.types-filter { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.filter-btn {
  padding: 8px 18px; border-radius: 20px; font-size: .85rem; font-weight: 600;
  background: #fff; color: var(--text-muted);
  border: 1px solid var(--line);
  transition: all .15s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--accent-strong); color: #fff; border-color: var(--accent-strong);
}

.types-index-section { padding: 60px 0 80px; }
.types-index-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.type-index-card {
  background: #fff; border-radius: var(--radius);
  border: 1px solid var(--border); padding: 5px;
  overflow: hidden;
  transition: transform .2s, border-color .2s;
  cursor: pointer;
}
.type-index-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
/* 卡片图片区 */
.tic-img-wrap {
  width: 100%; height: 190px; overflow: hidden;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  border-radius: calc(var(--radius) - 6px);
}
.tic-img {
  width: 100%; height: 100%; object-fit: contain;
  display: block;
}
.type-index-card:hover .tic-img { transform: scale(1.04); }
.tic-emoji-large { 
  width: 100%; height: 190px; display: flex; align-items: center; 
  justify-content: center; font-size: 4rem;
  background: #fff;
  border-radius: calc(var(--radius) - 6px);
}
/* 卡片内容区 */
.tic-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; padding: 11px 11px 0; }
.tic-emoji { font-size: 1.75rem; }
.tic-meta { display: flex; flex-direction: column; gap: 4px; padding: 0; }
.tic-code { font-size: .8rem; font-weight: 800; color: var(--accent, var(--primary)); }
.tic-rarity {
  font-size: .6rem; font-weight: 800; padding: 2px 8px; border-radius: 20px;
}
.tic-rarity.rare { background: #fef3c7; color: #d97706; }
.tic-rarity.hidden { background: #fce7f3; color: #db2777; }
.tic-name { font-size: 1.1rem; font-weight: 800; color: var(--text); margin-bottom: 6px; padding: 0 11px; }
.tic-slogan { font-size: .78rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 16px; font-style: italic; padding: 0 11px; }
.tic-detail-btn {
  display: block; width: calc(100% - 22px); margin: 0 11px 11px; padding: 8px; border-radius: 8px;
  border: 1.5px solid var(--border); color: var(--text-muted);
  font-size: .8rem; font-weight: 700;
  transition: all .15s;
}
.tic-detail-btn:hover { border-color: var(--accent, var(--primary)); color: var(--accent, var(--primary)); }

/* 类型模态框 */
.type-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 200; opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.type-modal-overlay.open { opacity: 1; pointer-events: all; }
.type-modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(.95);
  width: min(560px, calc(100vw - 32px));
  max-height: 88dvh; overflow-y: auto;
  background: var(--surface); border-radius: 22px;
  border: 1px solid var(--line);
  z-index: 201; opacity: 0; pointer-events: none;
  transition: all .3s cubic-bezier(.16,1,.3,1);
}
.type-modal.open {
  opacity: 1; pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}
.type-modal-close {
  position: sticky; top: 12px; float: right; margin: 12px 12px 0 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,.1); color: var(--text);
  font-size: .875rem; display: flex; align-items: center; justify-content: center;
  z-index: 1; transition: background .15s;
}
.type-modal-close:hover { background: rgba(0,0,0,.2); }
.tmd-hero {
  padding: 40px 32px; text-align: center; color: #fff;
  border-radius: 24px 24px 0 0;
}
.tmd-portrait {
  width: 160px; height: 160px; object-fit: contain;
  border-radius: 50%; border: 4px solid rgba(255,255,255,0.4);
  margin-bottom: 12px; display: inline-block;
  background: #fff;
}
.tmd-emoji { font-size: 3rem; margin-bottom: 12px; }
.tmd-code { font-size: .9rem; font-weight: 800; opacity: .8; margin-bottom: 4px; }
.tmd-name { font-size: 1.75rem; font-weight: 900; letter-spacing: -1px; }
.tmd-rarity {
  display: inline-block; margin-top: 10px;
  background: rgba(255,255,255,.2); padding: 4px 12px;
  border-radius: 20px; font-size: .7rem; font-weight: 700;
}
.tmd-body { padding: 24px 28px 32px; }
.tmd-slogan {
  font-size: 1rem; color: var(--text-muted); font-style: italic;
  text-align: center; margin-bottom: 24px; padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.tmd-section { margin-bottom: 20px; }
.tmd-section h4 { font-size: .875rem; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.tmd-section p { font-size: .875rem; color: var(--text-muted); line-height: 1.7; }
.tmd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.tmd-col h4 { font-size: .8rem; font-weight: 800; margin-bottom: 10px; color: var(--text); }
.tmd-col ul { display: flex; flex-direction: column; gap: 6px; }
.tmd-col li { font-size: .78rem; color: var(--text-muted); padding-left: 12px; position: relative; line-height: 1.5; }
.tmd-col li::before { content: '•'; position: absolute; left: 0; color: var(--accent-strong); }
.tmd-compat-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 12px;
}
.tmd-compat-item {
  background: var(--surface-2); border-radius: 10px; padding: 10px;
  text-align: center;
}
.tmd-compat-item span { display: block; font-size: .65rem; color: var(--text-muted); margin-bottom: 4px; }
.tmd-compat-item strong { font-size: .9rem; font-weight: 900; color: var(--accent-strong); }
.tmd-cta { text-align: center; margin-top: 24px; }

/* ============================================================
   关于页
   ============================================================ */
.about-main { padding: 60px 0 80px; }
.about-container { max-width: 780px; margin: 0 auto; padding: 0 24px; }
.about-section {
  display: flex; gap: 32px;
  padding: 48px 0; border-bottom: 1px solid var(--border);
}
.about-section:last-child { border-bottom: none; }
.about-section-num {
  font-size: 3rem; font-weight: 900; color: var(--border);
  letter-spacing: -2px; flex-shrink: 0; min-width: 48px; line-height: 1;
  padding-top: 4px;
}
.about-section-content h2 {
  font-size: 1.5rem; font-weight: 900; color: var(--text);
  margin-bottom: 16px; letter-spacing: -.5px;
}
.about-section-content p {
  font-size: .9rem; color: var(--text-muted); line-height: 1.8;
  margin-bottom: 14px;
}
.about-section-content p:last-child { margin-bottom: 0; }
.about-quote {
  border-left: 3px solid var(--accent-strong);
  padding: 12px 16px; margin-top: 20px;
  background: var(--soft); border-radius: 0 8px 8px 0;
  font-size: .875rem; color: var(--text-muted); font-style: italic;
}
.about-quote span { display: block; margin-top: 6px; font-style: normal; font-size: .8rem; color: var(--text-light); }
.about-models { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.about-model {
  border-radius: 12px; border-left: 4px solid;
  padding: 16px 20px; background: var(--surface-2);
}
.about-model-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 8px;
}
.about-model-code {
  font-size: .8rem; font-weight: 900;
  background: var(--surface); padding: 2px 8px; border-radius: 6px;
}
.about-model-header strong { font-size: .9rem; }
.about-model p { font-size: .85rem; color: var(--text-muted); line-height: 1.7; }
.about-algo { display: flex; flex-direction: column; gap: 0; margin-top: 20px; }
.algo-step {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 0; border-bottom: 1px dashed var(--border);
}
.algo-step:last-child { border-bottom: none; }
.algo-step-num {
  font-size: .7rem; font-weight: 800; color: var(--accent-strong);
  background: var(--soft); padding: 4px 10px; border-radius: 20px;
  white-space: nowrap; flex-shrink: 0; margin-top: 2px;
}
.algo-step strong { font-size: .9rem; display: block; margin-bottom: 4px; }
.algo-step p { font-size: .85rem; color: var(--text-muted); line-height: 1.6; }
.about-note {
  background: #fef9c3; border: 1px solid #fde047;
  border-radius: 10px; padding: 14px 16px; margin-top: 16px;
  font-size: .85rem; color: #713f12; line-height: 1.6;
}
.about-compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px;
}
.compare-col {
  background: var(--surface-2); border-radius: 12px; padding: 20px;
  border: 2px solid var(--border);
}
.compare-col-new {
  background: var(--soft); border-color: var(--accent-strong);
}
.compare-col h4 { font-size: 1rem; font-weight: 800; margin-bottom: 14px; color: var(--text); }
.compare-col ul { display: flex; flex-direction: column; gap: 8px; }
.compare-col li { font-size: .8rem; color: var(--text-muted); padding-left: 14px; position: relative; }
.compare-col li::before { content: '·'; position: absolute; left: 0; color: var(--accent-strong); font-weight: 700; font-size: 1.2em; }
.about-disclaimer { background: #fff7ed; border-radius: 16px; padding: 40px; border: 2px solid #fed7aa; }
.about-disclaimer .about-section-num { color: #f97316; }

/* ============================================================
   移动端适配
   ============================================================ */
@media (max-width: 768px) {
  :root { --nav-h: 56px; }

  .nav-links, .nav-start-btn { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile { display: flex; }

  .hero { padding: calc(var(--nav-h) + 32px) 0 40px; }
  .hero-stats { padding: 12px 16px; flex-wrap: wrap; }
  .stat-item { padding: 6px 12px; }
  .stat-num { font-size: 1.2rem; }
  .stat-label { font-size: .65rem; }
  .stat-divider { height: 32px; }
  .hero-actions { flex-direction: column; margin-top: 20px; }
  .hero-actions .btn-ghost { display: none; }

  .vs-grid { flex-direction: column; }
  .vs-vs { text-align: center; }
  .vs-new { transform: none; order: -1; }

  .dims-grid { grid-template-columns: 1fr; }

  .types-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  .how-steps { flex-direction: column; }
  .how-arrow { padding-top: 0; transform: rotate(90deg); align-self: center; }

  .result-grid-2 { grid-template-columns: 1fr; }
  .dim-row { grid-template-columns: 110px 1fr 32px; gap: 8px; }
  .dim-row-name { font-size: .7rem; }

  .tmd-grid { grid-template-columns: 1fr; }
  .compat-grid { grid-template-columns: repeat(3,1fr); gap: 8px; }

  .about-section { flex-direction: column; gap: 16px; }
  .about-section-num { font-size: 2rem; min-width: auto; }
  .about-compare { grid-template-columns: 1fr; }

  .result-actions { flex-direction: column; }
  .result-actions .btn-primary, .result-actions .btn-outline, .result-actions .btn-ghost { flex: none; }

  .cover-container { padding: 32px 24px; }

  .types-index-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-nav { flex-direction: column; gap: 12px; align-items: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.25rem; }
  .section-title { font-size: 1.5rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-stats { flex-direction: row; flex-wrap: wrap; }
  .stat-item { flex: 0 0 50%; padding: 8px; }
  .stat-divider { display: none; }

  .types-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .types-index-grid { grid-template-columns: 1fr; }

  .type-card-img-wrap { height: 100px; }
  .type-card-emoji { height: 100px; font-size: 2.5rem; }
  .type-card-meta { padding: 8px 10px 2px; }
  .type-card-name { font-size: .85rem; padding: 4px 10px 2px; }
  .type-card-slogan { font-size: .65rem; padding: 0 10px 10px; }

  .q-text { font-size: 1rem; }
  .q-option { padding: 12px 14px; font-size: .85rem; }

  .dim-row { grid-template-columns: 90px 1fr 30px; gap: 6px; }
  .dim-row-name { display: none; }
}

/* ============================================================
   辅助 & 动画
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
