/* ============================================================
   客户端问卷页样式
   配色取自品牌 logo：主色 #0d7ec9 / 深色 #123f72 / 淡蓝 #e8f4fd
   ============================================================ */

:root {
  --brand: #0d7ec9;
  --brand-mid: #0b6bb0;
  --brand-dark: #0a5d99;
  --brand-deep: #123f72;
  --brand-soft: #e8f4fd;
  --brand-line: #c3e0f4;

  --ink-900: #101a2b;
  --ink-800: #1d2b3f;
  --ink-700: #33445c;
  --ink-500: #64748b;
  --ink-400: #93a1b3;
  --ink-300: #cbd5e1;

  --line: #e4eaf2;
  --line-soft: #eef2f7;
  --bg: #f5f8fc;
  --white: #ffffff;

  --green: #16a34a;
  --green-bg: #e7f8ed;
  --green-ink: #14713f;
  --amber: #d97706;
  --amber-bg: #fef4e2;
  --amber-ink: #a45b06;
  --red: #d92d20;
  --red-bg: #fef3f2;
  --red-ink: #ab2118;

  --r-card: 18px;
  --r-md: 12px;
  --shadow-card: 0 1px 2px rgba(16, 26, 43, 0.04), 0 20px 44px -30px rgba(16, 26, 43, 0.3);
  --shadow-btn: 0 8px 20px -10px rgba(11, 107, 176, 0.75);
}

* { 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", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-900);
  background:
    radial-gradient(1200px 520px at 50% -260px, #e6f2fc 0%, rgba(230, 242, 252, 0) 72%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 40px;
}

img { max-width: 100%; }

/* ---------------- 顶栏 ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(228, 234, 242, 0.9);
}
.topbar-inner {
  max-width: 720px;
  margin: 0 auto;
  height: 72px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.brand-logo {
  display: block;
  height: 46px;
  width: auto;
}
.brand-side {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-400);
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.brand-side::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-line);
}
.brand-side b {
  font-weight: 600;
  color: var(--ink-700);
}

/* ---------------- 版心 ---------------- */
.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- 首屏标题 ---------------- */
.hero {
  text-align: center;
  padding: 46px 0 32px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--brand);
  text-transform: uppercase;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: "";
  width: 20px;
  height: 1px;
  background: currentColor;
  opacity: 0.38;
}
.hero-title {
  font-size: 33px;
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin: 14px 0 10px;
}
.hero-sub {
  font-size: 15px;
  color: var(--ink-500);
  line-height: 1.7;
}
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-700);
  line-height: 1.5;
  box-shadow: 0 1px 2px rgba(16, 26, 43, 0.03);
}
.chip svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: var(--brand);
  opacity: 0.85;
}
.chip b {
  font-weight: 700;
  color: var(--ink-900);
}

/* 登记 / 结果页：首屏标题收窄，把注意力让给表单与报告 */
body[data-view="register"] .hero { display: none; }
body[data-view="register"] #view { padding-top: 30px; }
body[data-view="result"] .hero { padding: 28px 0 22px; }
body[data-view="register"] .hero-title,
body[data-view="result"] .hero-title { font-size: 24px; margin: 0 0 6px; }
body[data-view="register"] .hero-chips,
body[data-view="result"] .hero-chips { display: none; }
body[data-view="register"] .hero-sub,
body[data-view="result"] .hero-sub { font-size: 13.5px; }

/* ---------------- 卡片 ---------------- */
.card {
  background: var(--white);
  border: 1px solid rgba(228, 234, 242, 0.9);
  border-radius: var(--r-card);
  padding: 34px 36px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-card);
}

/* ---------------- 排版 ---------------- */
.h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink-900); }
.h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 18px;
  letter-spacing: -0.005em;
  display: flex;
  align-items: center;
  gap: 9px;
}
.h2::before {
  content: "";
  width: 3px;
  height: 15px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brand), var(--brand-deep));
}
.muted { font-size: 13px; color: var(--ink-500); }
.hint { font-size: 13px; color: var(--ink-500); }
.card-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  margin: 0 0 8px;
}

/* ---------------- 页脚 ---------------- */
.site-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 26px 0 12px;
  text-align: center;
}
.foot-text {
  font-size: 12px;
  color: var(--ink-400);
  letter-spacing: 0.02em;
}

/* ---------------- 答题进度 ---------------- */
.progress-wrap { margin-bottom: 30px; }
.progress-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.progress-step {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-500);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.progress-step b {
  font-size: 18px;
  font-weight: 800;
  color: var(--brand-deep);
  margin-right: 2px;
}
.progress-pct {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.progress-bar {
  height: 6px;
  background: var(--line-soft);
  border-radius: 99px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #1ba0e0, var(--brand), var(--brand-dark));
  transition: width 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------------- 题目 ---------------- */
.q-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.q-type {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  border-radius: 6px;
  padding: 2px 7px;
  line-height: 1.6;
}
.q-chapter {
  font-size: 12px;
  color: var(--ink-400);
  font-variant-numeric: tabular-nums;
}
.q-text {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink-900);
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}
.q-hint {
  font-size: 13px;
  color: var(--ink-500);
  margin: -14px 0 18px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.q-hint.hidden { display: none !important; }

/* ---------------- 选项 ---------------- */
.opt {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 10px;
  cursor: pointer;
  font-size: 15.5px;
  color: var(--ink-700);
  background: var(--white);
  transition: border-color 0.16s, background 0.16s, box-shadow 0.16s, transform 0.16s;
  user-select: none;
}
.opt:hover {
  border-color: var(--brand-line);
  background: #f9fcff;
  box-shadow: 0 4px 14px -10px rgba(13, 126, 201, 0.55);
}
.opt:active { transform: scale(0.995); }
.opt.selected {
  border-color: var(--brand);
  background: linear-gradient(180deg, #f7fcff, #eef7fe);
  color: var(--ink-900);
  font-weight: 600;
  box-shadow: 0 0 0 1px var(--brand) inset;
}
.opt input { display: none; }
.opt-key {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-300);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-500);
  background: var(--white);
  transition: background 0.16s, border-color 0.16s, color 0.16s;
}
.opt.selected .opt-key {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.opt-label { flex: 1; min-width: 0; }

/* 多选方框 */
.opt-multi { align-items: flex-start; }
.opt-box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border: 1.5px solid var(--ink-300);
  border-radius: 6px;
  background: var(--white);
  position: relative;
  transition: background 0.16s, border-color 0.16s;
}
.opt-multi.selected .opt-box {
  background: var(--brand);
  border-color: var(--brand);
}
.opt-multi.selected .opt-box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* 键盘提示 */
.kbd-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: 11.5px;
  color: var(--ink-400);
}
.kbd-hint .spacer { flex: 1; }
kbd {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 5px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  background: #fbfcfe;
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-500);
  line-height: 1;
}
@media (hover: none) {
  .kbd-hint { display: none; }
}

/* ---------------- 按钮 ---------------- */
.btn-row { display: flex; gap: 12px; margin-top: 26px; }
.btn {
  padding: 13px 20px;
  border: none;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.4;
  cursor: pointer;
  transition: background 0.16s, border-color 0.16s, color 0.16s, box-shadow 0.16s, transform 0.1s;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn-primary {
  flex: 2;
  background: linear-gradient(135deg, #1089d4, var(--brand-mid));
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #0e7cc2, var(--brand-dark));
  box-shadow: 0 10px 24px -10px rgba(10, 93, 153, 0.85);
}
.btn-primary:disabled {
  background: var(--line-soft);
  color: #a7b4c5;
  box-shadow: none;
  cursor: not-allowed;
}
.btn-ghost {
  flex: 1;
  background: var(--white);
  color: var(--ink-700);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover:not(:disabled) {
  border-color: var(--brand-line);
  color: var(--brand-dark);
  background: #fafcff;
}
.btn-ghost:disabled {
  color: var(--ink-300);
  border-color: var(--line-soft);
  cursor: not-allowed;
}
.btn-block { width: 100%; max-width: 240px; margin: 0 auto; }

/* ---------------- 表单 ---------------- */
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 12.5px;
  color: var(--ink-500);
  margin-bottom: 7px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.field input {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  font-size: 15px;
  font-family: inherit;
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.5;
  transition: border-color 0.16s, box-shadow 0.16s, background 0.16s;
}
.field input:focus {
  outline: none;
  border-color: var(--brand);
  background: #fbfdff;
  box-shadow: 0 0 0 3px rgba(13, 126, 201, 0.12);
}
.field input::placeholder { color: var(--ink-400); }

.form-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 4px;
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--brand-soft);
  font-size: 12.5px;
  color: var(--brand-deep);
  line-height: 1.65;
}
.form-note svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 3px; opacity: 0.8; }

/* ---------------- 结果分数 ---------------- */
.score-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 38px 36px 34px;
  background:
    radial-gradient(560px 220px at 50% -80px, #e9f5fe 0%, rgba(255, 255, 255, 0) 70%),
    var(--white);
}
.score-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink-400);
  text-transform: uppercase;
}
.score-block { text-align: center; padding: 10px 0 4px; }
.score-num {
  font-size: 68px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #1089d4, var(--brand-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.score-unit {
  font-size: 15px;
  color: var(--ink-500);
  margin-left: 5px;
  font-weight: 600;
}
.score-level {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 20px;
  border-radius: 99px;
  font-size: 13.5px;
  font-weight: 700;
  background: var(--brand-soft);
  color: var(--brand-deep);
  border: 1px solid var(--brand-line);
  letter-spacing: 0.02em;
}
.score-level.lvl-good { background: var(--green-bg); color: var(--green-ink); border-color: #c4e9d2; }
.score-level.lvl-warn { background: var(--amber-bg); color: var(--amber-ink); border-color: #f3dcb6; }
.score-level.lvl-danger { background: var(--red-bg); color: var(--red-ink); border-color: #f5d0cc; }
.score-note {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--ink-500);
}

/* ---------------- 雷达图 ---------------- */
.radar-wrap { display: flex; justify-content: center; }
.radar-svg { display: block; width: 100%; max-width: 380px; height: auto; }
.radar-data { transform-origin: 160px 160px; animation: radarGrow 0.75s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* ---------------- 分析文本 ---------------- */
.an-lead { font-size: 17px; font-weight: 700; color: var(--ink-900); line-height: 1.65; margin-bottom: 8px; }
.an-desc { font-size: 14.5px; color: var(--ink-700); line-height: 1.8; margin-bottom: 8px; }
.an-highlight {
  background: var(--brand-soft);
  border-left: 3px solid var(--brand);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--brand-deep);
  font-weight: 500;
  line-height: 1.8;
  margin-top: 14px;
}
.an-section {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-900);
  margin: 34px 0 16px;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 9px;
}
.an-section::before {
  content: "";
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brand), var(--brand-deep));
}
.an-section:first-child { margin-top: 0; }

.an-dim-card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px 22px;
  margin-bottom: 12px;
  background: var(--white);
  transition: box-shadow 0.16s, border-color 0.16s;
}
.an-dim-card:hover {
  border-color: var(--brand-line);
  box-shadow: 0 10px 24px -20px rgba(16, 26, 43, 0.5);
}
.an-dim-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; gap: 12px; }
.an-dim-name { font-size: 16px; font-weight: 700; color: var(--ink-900); }
.an-dim-score {
  font-size: 12.5px;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 99px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.score-good { background: var(--green-bg); color: var(--green-ink); }
.score-mid { background: var(--amber-bg); color: var(--amber-ink); }
.score-bad { background: var(--red-bg); color: var(--red-ink); }
.an-dim-quality { font-size: 13.5px; color: var(--ink-500); line-height: 1.75; margin-bottom: 12px; }
.an-dim-list { list-style: none; margin: 0 0 14px; padding: 0; }
.an-dim-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 14.5px;
  color: var(--ink-700);
  line-height: 1.8;
}
.an-dim-list li:last-child { margin-bottom: 0; }
.an-dim-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.75;
}
.an-dim-details-empty { font-size: 14px; color: var(--green-ink); line-height: 1.75; margin-bottom: 14px; }
.an-dim-advice {
  display: flex;
  gap: 9px;
  font-size: 13.5px;
  color: var(--brand-deep);
  background: var(--brand-soft);
  border-radius: 9px;
  padding: 11px 15px;
  line-height: 1.75;
}
.an-dim-advice-label { font-weight: 700; flex-shrink: 0; }

.an-cross-card {
  background: linear-gradient(180deg, #fff8f7, var(--red-bg));
  border: 1px solid #fbdcd8;
  border-radius: var(--r-md);
  padding: 20px 22px;
  margin-bottom: 12px;
}
.an-cross-title { font-size: 15px; font-weight: 700; color: var(--red-ink); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.an-cross-title::before {
  content: "!";
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800; flex-shrink: 0;
}
.an-cross-logic { font-size: 14px; color: var(--ink-700); line-height: 1.85; margin-bottom: 12px; }
.an-cross-advice { display: flex; gap: 9px; font-size: 13.5px; color: var(--red-ink); line-height: 1.75; }
.an-cross-advice-label { font-weight: 700; flex-shrink: 0; }

.an-stage {
  display: flex;
  gap: 18px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line);
}
.an-stage:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.an-stage-label {
  flex-shrink: 0;
  width: 80px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand-deep);
  padding-top: 3px;
  line-height: 1.6;
}
.an-stage-items { flex: 1; padding-left: 18px; font-size: 14px; color: var(--ink-700); line-height: 1.85; }
.an-stage-items li { margin-bottom: 6px; }
.an-stage-items li:last-child { margin-bottom: 0; }

.an-disclaimer {
  font-size: 12px;
  color: var(--ink-400);
  line-height: 1.75;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.an-branch {
  background: var(--brand-soft);
  border-left: 3px solid var(--brand);
  border-radius: 0 10px 10px 0;
  padding: 15px 18px;
  font-size: 14.5px;
  color: var(--ink-700);
  line-height: 1.85;
  margin: 14px 0;
}

.an-template {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 2px;
  font-size: 14px;
  color: var(--ink-700);
  line-height: 1.9;
  margin: 18px 0 14px;
}

/* ---------------- 加载 / 异常 ---------------- */
.state { text-align: center; padding: 46px 0 12px; }
.state-text { font-size: 14px; color: var(--ink-500); margin-bottom: 20px; }
.state-title { font-size: 16px; font-weight: 700; color: var(--ink-900); margin-bottom: 8px; }
.spinner {
  width: 24px;
  height: 24px;
  margin: 0 auto 16px;
  border: 2px solid var(--brand-soft);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ---------------- 通用 ---------------- */
.err { font-size: 13px; color: var(--red); margin-top: 10px; }
.hidden { display: none !important; }
.center-block { text-align: center; }

/* 键盘可达性 */
.btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 8px;
}
.field input:focus-visible,
.q-textarea:focus-visible,
.scale-input:focus-visible { outline: none; }

/* ---------------- 量表 / 填空 ---------------- */
.scale-wrap { padding: 20px 4px 8px; }
.scale-value {
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  margin-bottom: 22px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #1089d4, var(--brand-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.scale-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--brand-line), var(--brand-soft));
  outline: none;
}
.scale-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand);
  border: 4px solid #fff;
  box-shadow: 0 2px 10px rgba(13, 126, 201, 0.45);
  cursor: pointer;
}
.scale-input::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand);
  border: 4px solid #fff;
  cursor: pointer;
}
.scale-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-500); margin-top: 14px; }

.q-textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  font-size: 15px;
  font-family: inherit;
  color: var(--ink-900);
  line-height: 1.7;
  resize: vertical;
  background: var(--white);
  transition: border-color 0.16s, box-shadow 0.16s;
}
.q-textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(13, 126, 201, 0.12);
}

/* ---------------- 条形图 ---------------- */
.bar-chart { display: flex; flex-direction: column; gap: 14px; padding: 8px 0; }
.bar-row { display: flex; align-items: center; gap: 12px; }
.bar-name { width: 84px; flex-shrink: 0; font-size: 13px; color: var(--ink-700); }
.bar-track { flex: 1; height: 8px; background: var(--line-soft); border-radius: 99px; overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 99px; transition: width 0.4s ease; }
.bar-score { width: 32px; text-align: right; font-size: 13px; font-weight: 700; color: var(--ink-700); font-variant-numeric: tabular-nums; }

/* ---------------- 动效 ---------------- */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes questionIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes radarGrow {
  from { transform: scale(0.3); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes spin { to { transform: rotate(360deg); } }

.view-enter { animation: fadeSlideIn 0.34s cubic-bezier(0.22, 1, 0.36, 1) both; }
.q-anim { animation: questionIn 0.26s cubic-bezier(0.22, 1, 0.36, 1) both; }

@media (prefers-reduced-motion: reduce) {
  .view-enter, .q-anim, .radar-data, .spinner { animation: none !important; }
  .progress-fill, .bar-fill { transition: none; }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 720px) {
  .topbar-inner { height: 60px; padding: 0 16px; }
  .brand-logo { height: 36px; }
  .brand-side { display: none; }
  .wrap { padding: 0 16px; }
  .hero { padding: 30px 0 24px; }
  .hero-title { font-size: 25px; }
  body[data-view="result"] .hero { padding: 20px 0 16px; }
  body[data-view="result"] .hero-title,
  body[data-view="register"] .hero-title { font-size: 21px; }
  .card-title { font-size: 20px; }
  .hero-sub { font-size: 14px; }
  .hero-chips { margin-top: 16px; gap: 6px; }
  .chip { font-size: 12px; padding: 4px 10px; }
  .card { padding: 24px 20px; border-radius: 16px; }
  .q-text { font-size: 17.5px; margin-bottom: 18px; }
  .opt { padding: 14px 15px; font-size: 15px; gap: 12px; }
  .kbd-hint { display: none; }
  .btn-row { gap: 10px; margin-top: 22px; }
  .btn { padding: 12px 16px; font-size: 14.5px; }
  .score-card { padding: 30px 22px 28px; }
  .score-num { font-size: 58px; }
  .an-dim-card { padding: 16px 18px; }
  .an-cross-card { padding: 16px 18px; }
  .an-stage { flex-direction: column; gap: 6px; }
  .an-stage-label { width: auto; }
}
