﻿/* 大学生与 AI 对话体验调查 —— 校园清新 · 顺滑动效 */
:root {
  --bg: #f6faf8;
  --ink: #16241d;
  --ink-2: #2c4038;
  --muted: #63776f;
  --line: #e4ede8;
  --line-2: #d7e6de;
  --brand: #2f9e74;
  --brand-2: #43b98b;
  --brand-ink: #1c7a56;
  --brand-soft: #e8f6ef;
  --blue: #5b8def;
  --blue-soft: #eef4ff;
  --warm: #ef9f52;
  --card: #fff;
  --radius: 22px;
  --shadow: 0 18px 40px rgba(19, 55, 41, .07), 0 2px 8px rgba(19, 55, 41, .04);
  --shadow-sm: 0 6px 18px rgba(19, 55, 41, .06);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ts: 1;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 背景 ---------- */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.b1 { width: 46vw; height: 46vw; left: -12vw; top: -16vw;
      background: radial-gradient(circle at 30% 30%, #cdeede, #e9f7f0 70%); animation: drift 26s var(--ease) infinite alternate; }
.b2 { width: 38vw; height: 38vw; right: -10vw; top: -6vw;
      background: radial-gradient(circle at 60% 40%, #dfe9ff, #eef4ff 70%); animation: drift 32s var(--ease) infinite alternate-reverse; }
.b3 { width: 34vw; height: 34vw; right: 6vw; bottom: -18vw;
      background: radial-gradient(circle at 50% 50%, #fdf0df, #fbf7f0 72%); animation: drift 30s var(--ease) infinite alternate; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(3vw, 4vh, 0) scale(1.08); }
}

/* ---------- 顶栏 ---------- */
.top {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 980px; margin: 0 auto; padding: 22px 20px 6px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  box-shadow: 0 0 0 4px rgba(47, 158, 116, .13);
}
.brand-t { font-weight: 650; letter-spacing: .01em; font-size: 15px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--brand-ink);
  background: rgba(232, 246, 239, .85); border: 1px solid #d3ebdf;
  padding: 6px 12px; border-radius: 999px;
}

/* ---------- 布局 ---------- */
#app { position: relative; z-index: 1; max-width: 980px; margin: 0 auto; padding: 10px 20px 80px; }
.view { display: none; }
.view.is-active { display: block; }
@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to   { opacity: 1; transform: none; }
}

.card {
  background: var(--card);
  border: 1px solid rgba(228, 237, 232, .9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero { max-width: 760px; margin: 14px auto 0; padding: 40px 42px 34px; }

/* ---------- 首页 ---------- */
.eyebrow {
  margin: 0 0 10px; font-size: 12.5px; letter-spacing: .12em;
  color: var(--brand-ink); font-weight: 650;
}
h1 {
  margin: 0 0 14px; font-size: clamp(27px, 3.6vw, 38px);
  line-height: 1.25; letter-spacing: -.015em; font-weight: 750;
}
.lead { margin: 0 0 20px; color: var(--ink-2); font-size: calc(16.5px * var(--ts)); line-height: 1.85; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--muted);
  background: #f7fbf9; border: 1px solid var(--line);
  padding: 7px 12px; border-radius: 999px;
}
.chip svg { color: var(--brand); }

.notes { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.notes li {
  padding: 14px 16px 14px 18px; border-radius: 16px;
  background: linear-gradient(180deg, #fbfdfc, #f7fbf9);
  border: 1px solid var(--line);
}
.notes b { display: block; font-size: calc(14.5px * var(--ts)); margin-bottom: 2px; }
.notes span { font-size: calc(13.5px * var(--ts)); color: var(--muted); }

.pick { margin: 0 0 24px; }
.pick-t { margin: 0 0 12px; font-weight: 650; font-size: 14.5px; }
.pick-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.opt {
  appearance: none; cursor: pointer; text-align: center;
  background: #fff; border: 1.5px solid var(--line-2); border-radius: 16px;
  padding: 14px 8px; font-family: inherit; color: var(--ink);
  transition: transform .22s var(--ease), border-color .22s, box-shadow .22s, background .22s;
}
.opt:hover { transform: translateY(-2px); border-color: #bfe0cf; box-shadow: var(--shadow-sm); }
.opt b { display: block; font-size: calc(17px * var(--ts)); font-weight: 700; }
.opt small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.opt[aria-checked="true"] {
  border-color: var(--brand); background: linear-gradient(180deg, #f2fbf6, #e8f6ef);
  box-shadow: 0 10px 22px rgba(47, 158, 116, .14);
}
.opt[aria-checked="true"] b { color: var(--brand-ink); }
.pick-hint { margin: 10px 0 0; font-size: 13px; color: var(--muted); min-height: 20px; }

/* ---------- 按钮 ---------- */
.btn {
  appearance: none; cursor: pointer; font-family: inherit; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 14px; padding: 13px 20px; border: 1px solid transparent;
  transition: transform .2s var(--ease), box-shadow .24s, background .24s, color .2s, border-color .2s;
  text-decoration: none; color: var(--ink);
}
.btn:active { transform: scale(.975); }
.btn[hidden] { display: none; }
.btn.primary {
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: #fff; box-shadow: 0 10px 24px rgba(47, 158, 116, .26);
}
.btn.primary:hover { box-shadow: 0 14px 30px rgba(47, 158, 116, .32); transform: translateY(-1px); }
.btn.primary:disabled {
  background: #d9e7e0; color: #8aa398; box-shadow: none; cursor: not-allowed; transform: none;
}
.btn.ghost { background: #fff; border-color: var(--line-2); color: var(--ink-2); }
.btn.ghost:hover { border-color: #bfe0cf; background: #fafdfb; }
.btn.big { width: 100%; padding: 16px 20px; font-size: 16.5px; font-weight: 650; }

.fine { margin: 14px 0 0; font-size: 12.5px; color: #8aa095; text-align: center; }
.fine-link {
  margin-left: 10px; color: #b6c7c0; text-decoration: none;
  border-bottom: 1px dashed transparent; transition: color .2s, border-color .2s;
}
.fine-link:hover { color: var(--brand-ink); border-bottom-color: #cfe4d9; }
.notice {
  margin: 16px 0 18px; padding: 12px 14px; border-radius: 12px;
  background: #fff6ec; border: 1px solid #f6e2cb; color: #8a5a22; font-size: 13.5px;
}

/* ---------- 作答页 ---------- */
.bar { position: sticky; top: 0; z-index: 5; padding: 8px 0 12px; background: linear-gradient(180deg, var(--bg) 55%, rgba(246,250,248,0)); }
.bar-inner { display: flex; align-items: center; gap: 14px; max-width: 880px; margin: 0 auto; }
.bar-label { font-size: 13.5px; color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.track { flex: 1; height: 5px; border-radius: 999px; background: #e2ece7; overflow: hidden; }
.fill {
  height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-2), var(--brand));
  transition: width .55s var(--ease);
}
.link {
  appearance: none; background: none; border: 0; cursor: pointer;
  font-family: inherit; font-size: 13px; color: var(--muted);
  padding: 6px 4px; border-radius: 8px; white-space: nowrap;
}
.link:hover { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }

.sheet { max-width: 880px; margin: 0 auto; padding: 30px 34px 34px; }
.sheet.swap { animation: swap .42s var(--ease) both; }
@keyframes swap {
  from { opacity: 0; transform: translate3d(0, 10px, 0); }
  to   { opacity: 1; transform: none; }
}
.sheet-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.tag {
  font-size: 12.5px; font-weight: 650; color: var(--brand-ink);
  background: var(--brand-soft); border: 1px solid #d5ecdf;
  padding: 5px 11px; border-radius: 999px;
}
.qid { font-size: 12px; color: #9ab0a6; letter-spacing: .04em; }

.block { padding: 18px 0 2px; }
.block + .block { border-top: 1px solid #f1f6f3; }
.label {
  margin: 0 0 8px; font-size: 11.5px; letter-spacing: .14em;
  color: #94a9a0; font-weight: 650;
}
.situation { margin: 0; white-space: pre-wrap; font-size: calc(18px * var(--ts)); line-height: 1.9; color: var(--ink); }
.ask { border-left: 0; }
.follow {
  margin: 0; font-size: calc(14px * var(--ts)); line-height: 1.85; color: #3f5b51;
  background: var(--blue-soft); border: 1px solid #e2ebfb; border-radius: 14px;
  padding: 13px 16px;
}
.bubble {
  display: flex; gap: 12px; align-items: flex-start;
  background: linear-gradient(180deg, #fcfefd, #f8fcfa);
  border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px;
}
.avatar {
  flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; color: var(--brand-ink);
  background: linear-gradient(135deg, #e9f7f0, #d9f0e5); border: 1px solid #d3ebdf;
}
.bubble p { margin: 0; font-size: calc(16.5px * var(--ts)); line-height: 1.9; color: var(--ink); white-space: pre-wrap; }

/* 评分项 */
.rate { margin-top: 26px; }
.rate-item { padding-top: 26px; border-top: 1px dashed var(--line-2); }
.rate-item + .rate-item { margin-top: 26px; }
.rate-item h3 { margin: 0; font-size: calc(15.5px * var(--ts)); font-weight: 700; display: flex; align-items: baseline; gap: 8px; }
.rate-item h3 small { font-size: 11px; color: #a2b6ad; font-weight: 500; letter-spacing: .06em; }
.desc { margin: 6px 0 0; font-size: calc(13.5px * var(--ts)); color: var(--muted); }

.anchors { display: grid; gap: 6px; margin: 12px 0 16px; }
.anchor { display: flex; gap: 10px; align-items: flex-start; font-size: calc(13.5px * var(--ts)); color: #3d554b; }
.anchor i {
  flex: 0 0 24px; height: 22px; border-radius: 8px; font-style: normal;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
  background: var(--brand-soft); color: var(--brand-ink);
}
.anchor.mid i { background: #eef4f0; color: #5c7a6d; }
.anchor.low i { background: #f4f6f5; color: #7d9189; }

.rule { margin: 0 0 12px; font-size: 12.5px; color: #7d9189; }

.scores { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.score {
  appearance: none; cursor: pointer; font-family: inherit;
  height: 58px; border-radius: 14px; border: 1.5px solid var(--line-2);
  background: #fff; color: #3b534a; font-size: calc(17px * var(--ts)); font-weight: 650;
  display: grid; place-items: center; line-height: 1;
  transition: transform .18s var(--ease), border-color .2s, background .25s, color .2s, box-shadow .25s;
}
.score:hover { transform: translateY(-2px); border-color: #b7ddc9; box-shadow: var(--shadow-sm); }
.score:focus-visible, .btn:focus-visible, .opt:focus-visible, .link:focus-visible {
  outline: 3px solid rgba(47, 158, 116, .28); outline-offset: 2px;
}
.score[aria-pressed="true"] {
  color: #fff; border-color: transparent;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  box-shadow: 0 10px 22px rgba(47, 158, 116, .28);
  animation: pop .34s var(--ease);
}
@keyframes pop {
  0% { transform: scale(.92); }
  60% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

/* 底部导航 */
.nav {
  position: sticky; bottom: 0; z-index: 4;
  display: flex; gap: 12px; justify-content: space-between;
  max-width: 880px; margin: 18px auto 0; padding: 12px 0 16px;
  background: linear-gradient(180deg, rgba(246,250,248,0), var(--bg) 45%);
}
.nav .btn { min-width: 132px; }
.nav .btn.primary { flex: 1; max-width: 260px; margin-left: auto; }

/* ---------- 完成 ---------- */
.done { text-align: center; padding: 46px 40px 38px; }
.ok { color: var(--brand); margin-bottom: 6px; }
.ok-c { stroke-dasharray: 145; stroke-dashoffset: 145; animation: draw .7s var(--ease) .1s forwards; opacity: .35; }
.ok-p { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .45s var(--ease) .55s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done h2 { margin: 6px 0 10px; font-size: 26px; letter-spacing: -.01em; }
.stats { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 18px 0 26px; }
.stat {
  background: #f7fbf9; border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 18px; min-width: 120px;
}
.stat b { display: block; font-size: 20px; }
.stat span { font-size: 12px; color: var(--muted); }
.done-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- 提示条 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px);
  background: #16241d; color: #fff; font-size: 13.5px;
  padding: 11px 18px; border-radius: 999px; opacity: 0; pointer-events: none;
  transition: opacity .28s var(--ease), transform .28s var(--ease);
  z-index: 20; max-width: 88vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 响应式 ---------- */
@media (max-width: 700px) {
  #app { padding: 6px 14px 64px; }
  .hero { padding: 28px 22px 26px; }
  .sheet { padding: 22px 18px 26px; }
  .situation { font-size: calc(16.5px * var(--ts)); }
  .bubble p { font-size: calc(15.5px * var(--ts)); }
  .scores { gap: 8px; }
  .score { height: 52px; font-size: 16px; }
  .pick-row { grid-template-columns: 1fr; }
  .opt { display: flex; align-items: baseline; justify-content: center; gap: 8px; padding: 12px; }
  .opt small { margin: 0; }
  .nav { padding-bottom: 12px; }
  .nav .btn { min-width: 0; }
  .bar-label { font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .view.is-active { animation: none; }
}

/* 字号调节 */
.top-right { display: flex; align-items: center; gap: 10px; }
.fs-ctl {
  display: flex; align-items: center; gap: 2px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px;
}
.fs-ctl button {
  appearance: none; border: 0; background: none; cursor: pointer; font-family: inherit;
  width: 28px; height: 24px; border-radius: 999px; color: #8aa095;
  display: grid; place-items: center; transition: background .2s, color .2s;
}
.fs-ctl button:nth-child(1) { font-size: 11px; }
.fs-ctl button:nth-child(2) { font-size: 13.5px; }
.fs-ctl button:nth-child(3) { font-size: 16px; }
.fs-ctl button[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; }

/* 键盘焦点与提示 */
.rate-item { border-radius: 14px; transition: background .25s var(--ease); }
.rate-item.focused {
  background: linear-gradient(90deg, rgba(232,246,239,.7), rgba(232,246,239,0) 72%);
}
.rate-item.focused h3 { color: var(--brand-ink); }
.kbd-hint { margin: 16px 0 0; text-align: center; font-size: 12.5px; color: #a7bbb2; }

/* ===== 落地页 ===== */
.top { transition: opacity .5s var(--ease); }
.top.is-dim { opacity: 0; pointer-events: none; }

#view-landing.is-active { display: flex; }
.landing {
  position: relative; min-height: calc(100vh - 90px);
  flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 30px 20px 90px;
}
.landing-mark { position: absolute; top: 2px; left: 2px; margin: 0; }
.big-title {
  margin: 0 0 16px; font-size: clamp(38px, 6.2vw, 70px); line-height: 1.14;
  letter-spacing: -.02em; font-weight: 800; color: #14231c;
  transform-origin: center center; will-change: transform, opacity;
}
.landing-sub { margin: 0 0 34px; color: var(--muted); font-size: calc(15.5px * var(--ts)); }
.btn.landing-btn { width: auto; min-width: 210px; padding-left: 30px; padding-right: 30px; }
.landing.leaving .landing-mark,
.landing.leaving .landing-sub,
.landing.leaving .landing-btn { opacity: 0; transition: opacity .4s var(--ease); }
.landing.leaving .deco { opacity: .35; transition: opacity .6s var(--ease); }

.deco { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.halo {
  position: absolute; left: 50%; top: 46%; width: min(680px, 92vw); aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(67,185,139,.15), rgba(67,185,139,0) 62%);
  animation: breathe 9s var(--ease) infinite alternate;
}
.ring { position: absolute; border-radius: 50%; border: 1px solid rgba(47,158,116,.16); }
.r1 { width: min(330px, 42vw); aspect-ratio: 1; left: 7%; top: 16%; animation: float1 13s var(--ease) infinite alternate; }
.r2 { width: min(190px, 26vw); aspect-ratio: 1; right: 9%; bottom: 15%; border-color: rgba(91,141,239,.16); animation: float2 16s var(--ease) infinite alternate; }
.spark { position: absolute; border-radius: 50%; background: #43b98b; opacity: .45; }
.s1 { width: 9px; height: 9px; left: 20%; top: 64%; animation: float1 9s var(--ease) infinite alternate; }
.s2 { width: 6px; height: 6px; right: 22%; top: 26%; background: #5b8def; animation: float2 11s var(--ease) infinite alternate; }
.s3 { width: 12px; height: 12px; right: 30%; bottom: 22%; background: #ef9f52; opacity: .32; animation: float1 14s var(--ease) infinite alternate-reverse; }
@keyframes breathe { from { transform: translate(-50%, -50%) scale(.94); } to { transform: translate(-50%, -50%) scale(1.06); } }
@keyframes float1 { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(14px, -22px, 0); } }
@keyframes float2 { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-18px, 16px, 0); } }

.big-title.ghost {
  pointer-events: none; text-align: center; transform-origin: center center;
  transition: transform .75s cubic-bezier(.22, 1, .36, 1), opacity .75s var(--ease);
}

/* 合并后的问题块 */
.req {
  display: block; margin-bottom: 14px; padding: 12px 15px;
  font-size: calc(14px * var(--ts)); line-height: 1.8; color: #3f5b51;
  background: var(--blue-soft); border: 1px solid #e2ebfb; border-radius: 13px;
}
.scn { display: block; font-size: calc(18px * var(--ts)); line-height: 1.9; color: var(--ink); }


/* ===== 答题页 v2：固定维度标题 / 放大字号 / 备注 ===== */
.sheet-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  position: sticky; top: 54px; z-index: 3;
  background: linear-gradient(180deg, #fff 78%, rgba(255, 255, 255, 0));
  padding: 4px 0 10px; margin-bottom: 6px;
}
.qid { font-size: 12.5px; color: #9ab0a6; padding-top: 6px; }
.dim-block { text-align: right; }
.dim-title {
  margin: 0; font-size: calc(25px * var(--ts)); font-weight: 800; letter-spacing: -.01em;
  color: var(--ink); line-height: 1.2;
}
.dim-en {
  margin: 2px 0 0; font-size: calc(12px * var(--ts)); color: #8aa095;
  letter-spacing: .06em; text-transform: none;
}
.rate-item h3 { font-size: calc(17.5px * var(--ts)); }
.rate-item h3 .item-en {
  font-size: calc(12px * var(--ts)); font-weight: 400; color: #93a8a0;
  letter-spacing: .03em; margin-left: 8px;
}
.anchor i { flex: 0 0 40px; font-size: 11.5px; }
.rule-note {
  margin: 10px 0 0; font-size: 12px; color: #a2b6ad; line-height: 1.7;
}
.session-info {
  margin: 0 0 18px; font-size: 13px; color: var(--muted);
}
@media (max-width: 700px) {
  .sheet-head { top: 46px; }
  .dim-title { font-size: calc(21px * var(--ts)); }
}


/* ===== v4：布局微调 ===== */
.dim-block { text-align: left; }
.qid { margin-left: auto; padding-top: 8px; }
.follow { font-size: calc(15px * var(--ts)); }

/* 题干独立框 */
.stem-box {
  position: relative; border: 1.5px solid var(--line-2); border-radius: 16px;
  padding: 16px 18px 16px; margin-top: 16px; background: var(--card);
}
.stem-badge {
  position: absolute; top: -9px; left: 14px; padding: 0 7px;
  background: var(--card); font-size: 11.5px; color: var(--muted);
  letter-spacing: .08em; border-radius: 6px;
}

/* 主题按钮 */
.theme-btn {
  appearance: none; cursor: pointer; width: 34px; height: 30px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--muted);
  display: grid; place-items: center; transition: color .2s, border-color .2s;
}
.theme-btn:hover { color: var(--brand-ink); border-color: var(--brand); }

/* ===== 黑夜模式（黑 + 蓝） ===== */
html[data-theme="dark"] {
  --bg: #05080f;
  --ink: #e6eeff;
  --ink-2: #c3d1ea;
  --muted: #8ea4c6;
  --line: #182437;
  --line-2: #22334d;
  --brand: #3b82f6;
  --brand-2: #60a5fa;
  --brand-ink: #bfdbfe;
  --brand-soft: #10213a;
  --blue: #3b82f6;
  --blue-soft: #0d1a2c;
  --warm: #f59e0b;
  --card: #0b1424;
  --shadow: 0 18px 40px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .4);
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, .45);
}
html[data-theme="dark"] body { background: var(--bg); }
html[data-theme="dark"] .blob { opacity: .5; filter: blur(80px); }
html[data-theme="dark"] .b1 { background: radial-gradient(circle at 30% 30%, #0d2a4d, #061020 70%); }
html[data-theme="dark"] .b2 { background: radial-gradient(circle at 60% 40%, #132b52, #070f1d 70%); }
html[data-theme="dark"] .b3 { background: radial-gradient(circle at 50% 50%, #102540, #060d18 72%); }
html[data-theme="dark"] .card { border-color: var(--line); background: var(--card); }
html[data-theme="dark"] .opt { background: var(--card); border-color: var(--line-2); }
html[data-theme="dark"] .opt[aria-checked="true"] {
  background: linear-gradient(180deg, #0f2440, #0b1c33);
  border-color: var(--brand); box-shadow: 0 10px 22px rgba(59, 130, 246, .22);
}
html[data-theme="dark"] .opt[aria-checked="true"] b { color: var(--brand-ink); }
html[data-theme="dark"] .score { background: var(--card); }
html[data-theme="dark"] .btn.ghost { background: var(--card); }
html[data-theme="dark"] .bubble { background: linear-gradient(180deg, #0c1626, #0a1322); border-color: var(--line); }
html[data-theme="dark"] .avatar {
  background: linear-gradient(135deg, #10213a, #0d1a2c); border-color: #1c2f4a; color: #93c5fd;
}
html[data-theme="dark"] .follow { background: #0d1a2c; border-color: #1b2e47; color: #c7d7ee; }
html[data-theme="dark"] .badge { background: rgba(16, 33, 58, .9); border-color: #1e3350; color: #bfdbfe; }
html[data-theme="dark"] .track { background: #15233a; }
html[data-theme="dark"] .stem-box { background: #08111d; border-color: #1e3350; }
html[data-theme="dark"] .stem-badge { color: #7f9bc0; }
html[data-theme="dark"] .big-title { color: var(--ink); }
html[data-theme="dark"] .halo { background: radial-gradient(circle, rgba(59, 130, 246, .22), rgba(59, 130, 246, 0) 62%); }
html[data-theme="dark"] .ring { border-color: rgba(96, 165, 250, .18); }
html[data-theme="dark"] .r2 { border-color: rgba(96, 165, 250, .22); }
html[data-theme="dark"] .spark { background: #60a5fa; }
html[data-theme="dark"] .s3 { background: #60a5fa; }
html[data-theme="dark"] .kbd-hint { color: #6d84a6; }
html[data-theme="dark"] .toast { background: #0e1b2e; border: 1px solid #1e3350; }
html[data-theme="dark"] .fine { color: #6d84a6; }
html[data-theme="dark"] .done h2 { color: var(--ink); }


/* ===== v4.1：暗色对比度修正 ===== */
:root { --focus: rgba(232, 246, 239, .75); }
.sheet-head { background: var(--card); }
.rate-item.focused { background: linear-gradient(90deg, var(--focus), transparent 72%); }
.btn.primary:disabled { background: var(--line-2); color: var(--muted); box-shadow: none; }

html[data-theme="dark"] {
  --focus: rgba(59, 130, 246, .14);
  --shadow: 0 18px 40px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .4);
}
html[data-theme="dark"] .anchor i { background: #10213a; color: #bfdbfe; }
html[data-theme="dark"] .anchor.mid i { background: #152539; color: #a9c2e4; }
html[data-theme="dark"] .anchor.low i { background: #111d2e; color: #8ea4c6; }
html[data-theme="dark"] .score:hover { border-color: #2b4a75; }
html[data-theme="dark"] .opt:hover { border-color: #2b4a75; }
html[data-theme="dark"] .link { color: #8ea4c6; }
html[data-theme="dark"] .link:hover { color: #bfdbfe; }
html[data-theme="dark"] .heat,
html[data-theme="dark"] .fs-ctl { background: var(--card); border-color: var(--line); }
html[data-theme="dark"] .fs-ctl button { color: #7f97ba; }
html[data-theme="dark"] .fs-ctl button[aria-pressed="true"] {
  background: #10213a; color: #bfdbfe;
}
html[data-theme="dark"] .bar { background: linear-gradient(180deg, var(--bg) 55%, rgba(5, 8, 15, 0)); }
html[data-theme="dark"] .nav { background: linear-gradient(180deg, rgba(5, 8, 15, 0), var(--bg) 45%); }


/* ===== v5 两栏布局：问题+评分在左，回答+基本要求在右侧悬浮 ===== */
.sheet-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  grid-template-areas: "head side" "ques side" "rate side";
  gap: 16px 22px;
  align-items: start;
}
.sheet-head {
  grid-area: head; position: static; top: auto;
  background: none; padding: 0; margin-bottom: 0;
}
.q-block { grid-area: ques; }
.rate { grid-area: rate; margin-top: 0; }
aside.side {
  grid-area: side; position: sticky; top: 62px;
  max-height: calc(100vh - 92px); overflow: auto;
  display: grid; gap: 12px; padding-right: 2px;
}
.side-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 14px 15px 12px;
}
.side-card .label { margin-bottom: 8px; }
.side-card .bubble { padding: 12px 14px; gap: 10px; }
.side-card .bubble p { font-size: calc(14.5px * var(--ts)); line-height: 1.75; }
.side-card .follow { font-size: calc(13.5px * var(--ts)); line-height: 1.75; padding: 11px 13px; }

.rubric-title {
  margin: 14px 0 8px; font-size: calc(15.5px * var(--ts));
  font-weight: 700; color: var(--ink);
}

html[data-theme="dark"] .anchor { color: #c7d7ee; }
html[data-theme="dark"] .side-card { background: #08111d; border-color: #1e3350; }

@media (max-width: 1000px) {
  .sheet-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "head" "ques" "side" "rate";
    gap: 14px;
  }
  aside.side { position: static; max-height: none; overflow: visible; }
}


/* ===== v6 两栏：左 问题+回答，右 基本要求+评分 ===== */
.sheet-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  grid-template-areas: none;
  gap: 16px 24px;
  align-items: start;
}
.sheet-head, .q-block, .rate { grid-area: auto; }
.col-left, .col-right { display: grid; gap: 14px; align-content: start; }
.col-right .rate { margin-top: 0; }
.col-right .rate-item:first-child { border-top: 0; padding-top: 0; }
.col-right .rate-item { padding-top: 20px; }
.col-right .rate-item + .rate-item { margin-top: 20px; }
.side-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 15px 12px; }
.side-card .label { margin-bottom: 8px; }
.side-card .bubble { padding: 12px 14px; gap: 10px; }
.side-card .bubble p { font-size: calc(14.5px * var(--ts)); line-height: 1.8; }
.side-card .follow { font-size: calc(14px * var(--ts)); line-height: 1.8; padding: 11px 13px; }
.answer-card { margin-top: 2px; }

.device-tip {
  margin: 10px 0 18px; font-size: 13px; color: var(--muted); line-height: 1.8;
  padding: 10px 14px; border-radius: 12px; background: var(--brand-soft); border: 1px solid var(--line);
}

@media (max-width: 1000px) {
  .sheet-grid { grid-template-columns: 1fr; gap: 14px; }
  .col-right .rate-item:first-child { border-top: 1px solid var(--line-2); padding-top: 20px; }
}

@media (min-width: 1001px) {
  #app { max-width: 1260px; }
  .sheet { max-width: 1180px; }
  .bar-inner { max-width: 1180px; }
  .nav { max-width: 1180px; }
}


/* ===== v7 左列三张卡片整体悬浮 ===== */
@media (min-width: 1001px) {
  .col-left {
    position: sticky; top: 62px;
    max-height: calc(100vh - 96px); overflow: auto;
    padding-right: 4px;
  }
  .col-right { min-height: 60vh; }
}
.col-left::-webkit-scrollbar { width: 6px; }
.col-left::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }


/* ===== 首页信息采集 ===== */
.profile-form {
  margin: 4px 0 22px; padding: 16px 18px 6px;
  border: 1px solid var(--line); border-radius: 16px; background: #fbfdfc;
}
html[data-theme="dark"] .profile-form { background: #08111d; border-color: #1e3350; }
.pf-title {
  margin: 0 0 14px; font-size: 13px; font-weight: 650; color: var(--ink-2);
}
.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.pf-item { display: grid; gap: 6px; font-size: 12.5px; color: var(--muted); }
.pf-item input, .pf-item select {
  font-family: inherit; font-size: 14px; padding: 10px 12px; width: 100%;
  border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--card); color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.pf-item input:focus, .pf-item select:focus {
  outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 158, 116, .12);
}
html[data-theme="dark"] .pf-item input:focus,
html[data-theme="dark"] .pf-item select:focus { box-shadow: 0 0 0 3px rgba(59, 130, 246, .2); }
.pf-item input::placeholder { color: #a8bbb3; }
html[data-theme="dark"] .pf-item input::placeholder { color: #5d7392; }

@media (max-width: 700px) {
  .pf-grid { grid-template-columns: 1fr; }
}

.icon-btn {
  appearance: none; cursor: pointer; width: 34px; height: 30px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--muted);
  display: grid; place-items: center; text-decoration: none;
  transition: color .2s, border-color .2s;
}
.icon-btn:hover { color: var(--brand-ink); border-color: var(--brand); }
