/* AutoClaw 心理测评 · 11 Build 奢侈极简设计系统
 * 设计 DNA：70%+ 留白 / 字重 200-600 微妙对比 / 单站点单一强调色 / 发丝线 / 柔和阴影
 * 每站点通过 :root { --accent: ... } 覆盖强调色；结构类名三站共用。
 */

:root {
  --bg: #FAFAF8;
  --surface: #FFFFFF;
  --ink: #17181C;
  --ink-2: #5D6169;
  --ink-3: #9BA0A8;
  --line: #E9E7E1;
  --accent: #6366F1;            /* per-site override */
  --accent-contrast: #FFFFFF;
  --accent-soft: rgba(99, 102, 241, .07);
  --good: #2F7D5C;
  --good-soft: rgba(47, 125, 92, .09);
  --warn: #B26A00;
  --warn-soft: rgba(178, 106, 0, .10);
  --bad: #B3402F;
  --bad-soft: rgba(179, 64, 47, .09);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 14px 40px rgba(23, 24, 28, .07);
  --shadow-soft: 0 6px 18px rgba(23, 24, 28, .05);
  --wrap: 1060px;
  --wrap-narrow: 720px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16.5px;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: .01em;
  min-height: 100vh;
}

::selection { background: var(--accent-soft); }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: var(--wrap-narrow); margin: 0 auto; padding: 0 28px; }

/* ---------- eyebrow / 标签 ---------- */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow .dot { color: var(--accent); margin-right: 8px; }

/* ---------- 标题：轻字重 + 紧字距 ---------- */
.h-display {
  font-size: clamp(2.3rem, 5.2vw, 3.9rem);
  font-weight: 250;
  line-height: 1.18;
  letter-spacing: -0.015em;
}
.h-1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 300; line-height: 1.25; letter-spacing: -0.01em; }
.h-2 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); font-weight: 400; line-height: 1.35; }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--ink-2); font-weight: 300; }
.muted { color: var(--ink-3); }
.small { font-size: 13.5px; color: var(--ink-2); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 34px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: .04em;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  user-select: none;
}
.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px var(--accent-soft); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-sm { padding: 10px 22px; font-size: 14px; }
.btn[disabled] { opacity: .38; cursor: not-allowed; transform: none; box-shadow: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- 卡片 / 面板 ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 36px;
}
.panel-soft { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-soft); border: 1px solid transparent; }
.hairline { border: none; border-top: 1px solid var(--line); }

/* ---------- 徽章 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}
.badge-muted { background: rgba(23,24,28,.05); color: var(--ink-2); }
.badge-good { background: var(--good-soft); color: var(--good); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-bad { background: var(--bad-soft); color: var(--bad); }

/* ---------- 指标 ---------- */
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.metric { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; }
.metric-label { font-size: 12.5px; font-weight: 600; letter-spacing: .1em; color: var(--ink-3); }
.metric-value { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 250; letter-spacing: -.01em; margin-top: 6px; }
.metric-hint { font-size: 12px; color: var(--ink-3); margin-top: 4px; }

/* ---------- 条形图 ---------- */
.bar-row { margin: 20px 0; }
.bar-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.bar-label { font-size: 14.5px; font-weight: 500; }
.bar-note { font-size: 13px; color: var(--ink-2); }
.bar-note .badge { margin-left: 8px; font-size: 11.5px; padding: 3px 10px; }
.bar-track { position: relative; height: 8px; border-radius: 999px; background: rgba(23,24,28,.06); overflow: hidden; }
.bar-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 999px; background: var(--accent); transition: width .7s cubic-bezier(.2,.7,.2,1); }
.bar-poles { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-3); margin-top: 6px; font-weight: 600; letter-spacing: .08em; }

/* ---------- 组列表 ---------- */
.group-title { font-size: 13px; font-weight: 600; letter-spacing: .14em; color: var(--ink-3); margin: 30px 0 12px; text-transform: uppercase; }
.group-list { list-style: none; }
.group-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 18px;
  padding: 12px 2px; border-bottom: 1px solid var(--line); font-size: 14.5px;
}
.group-list li:last-child { border-bottom: none; }
.group-value { font-weight: 600; white-space: nowrap; color: var(--ink); flex-shrink: 0; }

/* ---------- 报告 ---------- */
.report-hero { text-align: center; padding: 26px 0 10px; }
.report-hero .badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 18px 0 6px; }
.report-section { margin-top: 34px; }
.report-section h3 { font-size: 1.15rem; font-weight: 500; margin-bottom: 12px; }
.report-section p { color: var(--ink-2); margin: 8px 0; }
.report-section ul { list-style: none; margin-top: 6px; }
.report-section ul li { padding: 9px 0 9px 26px; position: relative; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.report-section ul li:last-child { border-bottom: none; }
.report-section ul li::before {
  content: ""; position: absolute; left: 4px; top: 18px;
  width: 8px; height: 2px; background: var(--accent); border-radius: 2px;
}
.advice-box { background: var(--accent-soft); border-radius: var(--radius); padding: 26px 30px; margin-top: 34px; }
.advice-box h3 { font-size: 1.05rem; font-weight: 500; margin-bottom: 10px; }
.advice-box li { margin: 8px 0 8px 20px; color: var(--ink-2); }
.footnote { font-size: 12.5px; color: var(--ink-3); line-height: 1.8; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); }

/* ---------- 测试进行页 ---------- */
.stage { max-width: 680px; margin: 0 auto; padding: 0 22px; }
.progress-top { position: sticky; top: 0; z-index: 20; background: linear-gradient(var(--bg) 82%, transparent); padding: 14px 0 10px; }
.progress-meta { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-3); font-weight: 600; letter-spacing: .08em; margin-bottom: 8px; }
.progress-track { height: 3px; background: rgba(23,24,28,.07); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width .35s ease; }

.q-counter { font-size: 13px; font-weight: 600; letter-spacing: .18em; color: var(--ink-3); }
.q-text { font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 350; line-height: 1.5; margin: 26px 0 34px; }
.opt-list { display: grid; gap: 14px; }
.opt-card {
  width: 100%;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  font-size: 16.5px;
  line-height: 1.6;
  transition: border-color .15s ease, background .15s ease, transform .12s ease;
  display: flex; gap: 16px; align-items: baseline;
}
.opt-card .opt-key {
  flex-shrink: 0;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 600; color: var(--ink-3);
}
.opt-card:hover { border-color: var(--accent); }
.opt-card.selected { border-color: var(--accent); background: var(--accent-soft); }
.opt-card.selected .opt-key { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.test-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; gap: 12px; }
.kbd-hint { font-size: 12px; color: var(--ink-3); text-align: center; margin-top: 18px; }

/* ---------- 李克特 ---------- */
.likert-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.likert-item:last-child { border-bottom: none; }
.likert-q { font-size: 15.5px; line-height: 1.65; margin-bottom: 12px; }
.likert-opts { display: flex; gap: 10px; }
.likert-pill {
  flex: 1;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: all .14s ease;
}
.likert-pill:hover { border-color: var(--accent); }
.likert-pill.selected { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.likert-scale-head { display: flex; gap: 10px; margin-bottom: 4px; }
.likert-scale-head span { flex: 1; text-align: center; font-size: 11px; color: var(--ink-3); letter-spacing: .02em; }
.likert-num { display: none; }

/* ---------- 激活门 / 首屏 ---------- */
.center-screen { max-width: 520px; margin: 0 auto; padding: 60px 22px 80px; text-align: center; }
.code-input {
  width: 100%;
  margin: 26px 0 14px;
  padding: 15px 20px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .14em;
  text-align: center;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  outline: none;
  transition: border-color .15s ease;
}
.code-input:focus { border-color: var(--accent); }
.code-input.err { border-color: var(--bad); animation: shake .3s ease; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.form-msg { font-size: 13.5px; min-height: 22px; margin-bottom: 10px; }
.form-msg.err { color: var(--bad); }
.form-msg.ok { color: var(--good); }

/* ---------- 落地页区块 ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 500; letter-spacing: .02em; }
.brand-mark { width: 22px; height: 22px; border-radius: 7px; background: var(--accent); }
.hero { padding: clamp(70px, 12vh, 130px) 0 90px; }
.hero-meta { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 34px; }
.hero-meta .chip { font-size: 13.5px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.chip i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); display: inline-block; }
.price-line { display: flex; align-items: baseline; gap: 10px; margin: 34px 0 8px; }
.price { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 250; letter-spacing: -.01em; }
.price-was { color: var(--ink-3); text-decoration: line-through; font-size: 15px; }
.price-note { font-size: 13px; color: var(--ink-3); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

.section { padding: clamp(60px, 9vh, 110px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 50px; }
.feature h3 { font-weight: 500; font-size: 1.05rem; margin: 14px 0 8px; }
.feature p { font-size: 14.5px; color: var(--ink-2); }
.feature .fnum { font-size: 12px; font-weight: 600; letter-spacing: .2em; color: var(--accent); }
.steps { margin-top: 50px; display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 70px 1fr; gap: 26px; padding: 26px 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: none; }
.step-num { font-size: 1.9rem; font-weight: 250; color: var(--accent); }
.step h3 { font-weight: 500; margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--ink-2); }
.faq-item { border-top: 1px solid var(--line); padding: 24px 0; }
.faq-item:first-child { border-top: none; }
.faq-item h3 { font-weight: 500; font-size: 1.02rem; margin-bottom: 8px; }
.faq-item p { font-size: 14.5px; color: var(--ink-2); }
.audience-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 44px; }
.audience-grid .panel { padding: 24px 26px; }
.audience-grid h3 { font-weight: 500; font-size: 1rem; margin-bottom: 6px; }
.audience-grid p { font-size: 14px; color: var(--ink-2); }

.site-footer { border-top: 1px solid var(--line); padding: 54px 0 70px; margin-top: 40px; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.disclaimer { font-size: 12.5px; color: var(--ink-3); line-height: 1.9; max-width: 640px; margin-top: 26px; }

/* ---------- 动效 ---------- */
.fade-in { animation: fadeIn .45s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .feature-grid { grid-template-columns: 1fr; gap: 30px; }
  .audience-grid { grid-template-columns: 1fr; }
  .wrap, .wrap-narrow { padding: 0 20px; }
  .panel { padding: 26px 22px; }
}
@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .hero { padding: 54px 0 60px; }
  .opt-list { grid-template-columns: 1fr; }
  .likert-scale-head { display: none; }
  .likert-opts { gap: 8px; }
  .likert-pill { height: 40px; font-size: 12.5px; padding: 0; }
  .likert-num { display: block; }
  .likert-lab { display: none; }
  .step { grid-template-columns: 52px 1fr; gap: 16px; }
}

/* ---------- 打印：只打报告 ---------- */
@media print {
  body { background: #fff; font-size: 12.5px; }
  .no-print, .progress-top, .site-header, .site-footer, .hero, .section { display: none !important; }
  .panel, .metric, .advice-box { border-color: #ddd; box-shadow: none; }
  .report-hero { padding-top: 0; }
  .bar-fill { transition: none; }
}

/* ===== site accent: mbti ===== */
:root { --accent:#6366F1; --accent-soft:rgba(99,102,241,.08); }
