:root {
  --bg: #070a17;
  --line: rgba(160,182,255,.14);
  --line-strong: rgba(160,182,255,.28);
  --text: #edf2ff;
  --muted: #a0acce;
  --dim: #67739b;
  --accent: #6fe3e8;
  --blue: #5b86ff;
  --violet: #bb8cff;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Space Grotesk", "Noto Sans SC", sans-serif;
  --serif: "Noto Serif SC", "Songti SC", serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
/* 页面底色 = 两层光晕 + 底色。三层都要能「插值」：
   光晕原先写死成 rgba(91,134,255,.18) / rgba(111,227,232,.08)，
   换主题时底色在动、两团光晕一动不动，整页看起来像蒙了一层固定的雾。
   这里改用 theme.css 已注册为 <color> 的 --tide-1 / --tide-2 上色，
   变量在根元素上逐帧过渡，光晕就跟着一起走。 */
body {
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  /* 兜底：不支持 color-mix() 的浏览器保持原来那三层 */
  background: radial-gradient(circle at 8% -4%, rgba(91,134,255,.18), transparent 28%), radial-gradient(circle at 88% 100%, rgba(111,227,232,.08), transparent 28%), var(--bg);
  background: radial-gradient(circle at 8% -4%, color-mix(in srgb, var(--tide-1) 18%, transparent), transparent 28%),
    radial-gradient(circle at 88% 100%, color-mix(in srgb, var(--tide-2) 8%, transparent), transparent 28%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ---- 主题切换时统一时间线 ----
   theme.css 已经在根元素上给 --bg / --panel-*-rgb / --tide-* 做了
   0.42s 插值；如果元素自己再过渡一次 background-color / background-image，
   两段缓动会叠加（实测 0.78s 才到位），底色和面板就比文字、描边慢半拍。
   所以切换窗口内把这两项从元素级过渡里摘掉，让它们直接跟随变量，
   文字 / 描边 / 阴影继续各自过渡。摘掉只作用于 html.theme-anim 存续的
   约 0.46s，hover 等常规过渡不受影响。 */
html.theme-anim body {
  transition-property: border-color, box-shadow, text-shadow, fill, stroke, outline-color !important;
  transition-duration: .42s !important;
  transition-timing-function: var(--ease) !important;
}
html.theme-anim :is(.app-topbar, .flow-card, .form-card, .quote-card, .constraint-card, .cta-panel) {
  transition-property: color, border-color, box-shadow, text-shadow, fill, stroke, outline-color !important;
  transition-duration: .42s !important;
  transition-timing-function: var(--ease) !important;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.app-shell { min-height: 100dvh; }
.app-topbar { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 28px; border-bottom: 1px solid var(--line); background: rgba(var(--panel-1-rgb), .78); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.app-brand, .topbar-actions, .topbar-center, .query-toolbar, .dataset-item, .history-heading { display: flex; align-items: center; }
.app-brand { gap: 11px; min-width: 220px; }.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; color: var(--accent); border: 1px solid rgba(111,227,232,.25); border-radius: 10px; background: rgba(111,227,232,.08); box-shadow: 0 0 24px -8px rgba(111,227,232,.8); }.brand-mark svg { width: 22px; height: 22px; }.app-brand strong { display: block; font-family: var(--serif); font-size: 18px; line-height: 1.15; }.app-brand small { display: block; margin-top: 3px; color: var(--dim); font: 10px var(--display); letter-spacing: .06em; }
.topbar-center { gap: 8px; color: var(--dim); font: 11px var(--display); }.status-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--state-ok); box-shadow: 0 0 11px rgba(124,242,192,.9); }.topbar-actions { gap: 14px; }.icon-button { width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; color: var(--muted); border: 1px solid var(--line); border-radius: 9px; background: transparent; transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease); }.icon-button:hover { color: var(--accent); border-color: rgba(111,227,232,.42); background: rgba(111,227,232,.08); }.icon-button svg { width: 18px; height: 18px; }.topbar-home { color: var(--muted); font-size: 13px; }.topbar-home:hover { color: var(--accent); }
.data-layout { min-height: calc(100dvh - 72px); display: grid; grid-template-columns: 276px minmax(0,1fr); }.data-sidebar { display: flex; flex-direction: column; min-width: 0; padding: 24px 16px 16px; border-right: 1px solid var(--line); background: rgba(var(--panel-2-rgb), .72); }.data-workspace { min-width: 0; overflow-y: auto; background: rgba(var(--panel-3-rgb), .36); }.sidebar-heading, .workspace-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; }.eyebrow { margin: 0 0 8px; color: var(--accent); font: 10px var(--display); letter-spacing: .18em; }h1, h2, h3, p { margin-top: 0; }h1, h2, h3 { margin-bottom: 0; font-family: var(--serif); font-weight: 600; }.sidebar-heading h1 { font-size: 20px; }.dataset-count { color: var(--dim); font: 12px var(--display); }
.dataset-list { margin-top: 24px; }.dataset-item { width: 100%; gap: 10px; padding: 11px 10px; cursor: pointer; text-align: left; color: var(--muted); border: 1px solid transparent; border-radius: 8px; background: transparent; }.dataset-item + .dataset-item { margin-top: 4px; }.dataset-item:hover, .dataset-item.is-active { color: var(--text); border-color: rgba(111,227,232,.17); background: linear-gradient(90deg, rgba(91,134,255,.16), rgba(111,227,232,.04)); }.dataset-symbol { width: 27px; height: 27px; display: grid; place-items: center; flex: none; color: var(--accent); border: 1px solid rgba(111,227,232,.28); border-radius: 7px; font: 15px var(--display); }.dataset-item span:nth-child(2) { min-width: 0; }.dataset-item b, .dataset-item small { display: block; }.dataset-item b { overflow: hidden; font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }.dataset-item small { margin-top: 3px; color: var(--dim); font-size: 10px; }
.history-heading { justify-content: space-between; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); }.history-heading .eyebrow { margin: 0; }.history-heading button { cursor: pointer; color: var(--dim); background: transparent; font-size: 10px; }.history-heading button:hover { color: var(--state-danger); }.question-history { min-height: 0; overflow-y: auto; margin-top: 8px; }.history-empty { padding: 17px 4px; color: var(--dim); font-size: 11px; line-height: 1.7; }.history-item { width: 100%; padding: 10px 4px; cursor: pointer; text-align: left; color: var(--muted); border-bottom: 1px solid rgba(160,182,255,.08); background: transparent; }.history-item:hover { color: var(--accent); }.history-item b { display: block; overflow: hidden; font-size: 11px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }.history-item small { display: block; margin-top: 4px; color: var(--dim); font: 10px var(--display); }.sidebar-note { display: flex; gap: 8px; margin-top: auto; padding: 15px 2px 0; color: var(--dim); border-top: 1px solid var(--line); font-size: 10px; line-height: 1.7; }.sidebar-note span { color: var(--accent); font-size: 17px; }.sidebar-note p { margin: 0; }
.workspace-heading { align-items: flex-end; min-height: 115px; padding: 25px 34px 21px; border-bottom: 1px solid var(--line); }.workspace-heading h2 { font-size: 27px; }.workspace-heading > div:first-child > p:last-child { margin: 9px 0 0; color: var(--muted); font-size: 12px; }.dataset-select { display: grid; gap: 7px; color: var(--dim); font: 10px var(--display); }.dataset-select select { min-width: 165px; height: 37px; padding: 0 10px; outline: 0; color: var(--text); border: 1px solid var(--line); border-radius: 7px; background: rgba(var(--ovl-rgb), .04); }.dataset-select select:focus { border-color: rgba(111,227,232,.58); box-shadow: 0 0 0 3px rgba(111,227,232,.08); }.dataset-select option { color: var(--text); }
.query-wrap { width: min(980px, 100% - 68px); margin: 34px auto 0; }.query-box { padding: 15px 16px 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(var(--panel-4-rgb), .78); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 18px 42px -28px rgba(91,134,255,.7); }.query-box textarea { display: block; width: 100%; min-height: 52px; resize: vertical; outline: 0; border: 0; color: var(--text); background: transparent; line-height: 1.7; }.query-box textarea::placeholder { color: var(--dim); }.query-toolbar { justify-content: space-between; gap: 12px; margin-top: 10px; color: var(--dim); font: 10px var(--display); }.ask-button { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; cursor: pointer; color: #061018; border-radius: 8px; background: linear-gradient(135deg,var(--blue),var(--accent)); font-size: 12px; font-weight: 700; transition: transform .25s var(--ease), opacity .25s var(--ease); }.ask-button:hover { transform: translateY(-1px); }.ask-button:disabled { cursor: wait; opacity: .5; }.ask-button span { font-size: 15px; }.example-questions { display: flex; gap: 8px; overflow-x: auto; padding: 11px 0 2px; scrollbar-width: none; }.example-questions button { flex: none; padding: 7px 10px; cursor: pointer; color: var(--muted); border: 1px solid var(--line); border-radius: 7px; background: rgba(var(--ovl-rgb), .03); font-size: 11px; }.example-questions button:hover { color: var(--accent); border-color: rgba(111,227,232,.35); background: rgba(111,227,232,.07); }
.result-area { width: min(980px, 100% - 68px); margin: 32px auto 50px; }.result-empty { display: grid; place-content: center; min-height: 330px; padding: 36px; text-align: center; border: 1px dashed rgba(160,182,255,.2); border-radius: 12px; background: rgba(var(--ovl-rgb), .02); }.empty-orbit { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 16px; color: var(--accent); border: 1px solid rgba(111,227,232,.3); border-radius: 50%; background: rgba(111,227,232,.08); font: 20px var(--display); }.result-empty h3 { font-size: 19px; }.result-empty p { margin: 8px 0 0; color: var(--dim); font-size: 12px; }
.result-loading { min-height: 330px; display: grid; place-content: center; gap: 12px; text-align: center; color: var(--dim); border: 1px solid var(--line); border-radius: 12px; background: rgba(var(--ovl-rgb), .02); }.loading-line { width: min(280px, 60vw); height: 8px; border-radius: 4px; background: linear-gradient(90deg, rgba(111,227,232,.05), rgba(111,227,232,.5), rgba(111,227,232,.05)); background-size: 200% 100%; animation: loading 1.2s linear infinite; }.loading-line:nth-child(2) { width: min(220px, 48vw); animation-delay: .1s; }.loading-line:nth-child(3) { width: min(160px, 35vw); animation-delay: .2s; }.loading-label { margin-top: 6px; font: 11px var(--display); }@keyframes loading { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.result-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }.result-heading h3 { font-size: 21px; }.result-heading p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }.result-tag { color: var(--accent); font: 10px var(--display); letter-spacing: .12em; }.metric-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 22px; }.metric-card { padding: 17px; border: 1px solid var(--line); border-radius: 9px; background: rgba(var(--ovl-rgb), .035); }.metric-card small { color: var(--dim); font-size: 11px; }.metric-card strong { display: block; margin-top: 9px; color: var(--text); font: 28px var(--display); font-weight: 500; }.metric-card span { display: block; margin-top: 4px; color: var(--state-ok); font: 10px var(--display); }
.analysis-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(250px,.85fr); gap: 14px; margin-top: 14px; }.result-panel { min-width: 0; padding: 19px; border: 1px solid var(--line); border-radius: 10px; background: rgba(var(--ovl-rgb), .03); }.result-panel h4 { margin: 0; color: var(--muted); font-size: 12px; font-weight: 500; }.bar-chart { display: flex; align-items: flex-end; gap: clamp(11px,3vw,25px); height: 205px; margin-top: 24px; padding: 0 5px 24px; border-bottom: 1px solid var(--line); }.bar-column { display: flex; align-items: center; flex: 1; flex-direction: column; justify-content: flex-end; height: 100%; gap: 8px; }.bar-value { color: var(--dim); font: 10px var(--display); }.bar { width: min(42px, 100%); min-height: 8px; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--accent), rgba(91,134,255,.55)); box-shadow: 0 0 18px -5px rgba(111,227,232,.75); transform-origin: bottom; animation: bar-in .55s var(--ease) both; }.bar-column:nth-child(2) .bar { animation-delay: .06s; }.bar-column:nth-child(3) .bar { animation-delay: .12s; }.bar-column:nth-child(4) .bar { animation-delay: .18s; }.bar-column:nth-child(5) .bar { animation-delay: .24s; }.bar-label { color: var(--dim); font-size: 10px; white-space: nowrap; }@keyframes bar-in { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.insight-copy { min-height: 205px; display: flex; flex-direction: column; justify-content: space-between; }.insight-copy p { margin: 18px 0 0; color: var(--muted); font-size: 12px; line-height: 1.9; }.insight-points { margin: 20px 0 0; padding-top: 15px; border-top: 1px solid var(--line); }.insight-points div { display: flex; gap: 8px; margin-top: 9px; color: var(--muted); font-size: 11px; }.insight-points div:first-child { margin-top: 0; }.insight-points i { width: 6px; height: 6px; flex: none; margin-top: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(111,227,232,.7); }.result-footnote { margin-top: 13px; color: var(--dim); font-size: 10px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 4; max-width: min(90vw,420px); padding: 10px 14px; color: var(--text); border: 1px solid var(--line-strong); border-radius: 7px; background: rgba(var(--panel-5-rgb), .96); box-shadow: 0 14px 40px -20px rgba(0,0,0,.8); opacity: 0; transform: translate(-50%,10px); transition: opacity .25s var(--ease), transform .25s var(--ease); font-size: 12px; }.toast.is-visible { opacity: 1; transform: translate(-50%,0); }
@media (max-width: 800px) { body { overflow: auto; }.app-topbar { height: 62px; padding: 0 15px; }.app-brand { min-width: 0; }.app-brand small, .topbar-center, .topbar-home { display: none; }.data-layout { height: calc(100dvh - 62px); display: block; }.data-sidebar { display: none; }.workspace-heading { min-height: 105px; align-items: flex-start; padding: 20px 16px 17px; }.workspace-heading h2 { font-size: 23px; }.dataset-select { display: none; }.query-wrap, .result-area { width: calc(100% - 26px); }.query-wrap { margin-top: 18px; }.result-area { margin-top: 22px; }.metric-grid { grid-template-columns: 1fr; }.analysis-grid { grid-template-columns: 1fr; }.result-panel { padding: 16px; }.result-empty, .result-loading { min-height: 280px; }.bar-chart { height: 180px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* 修复（2026-09-12）：左侧栏高度不受限，提问历史一长就被 body 的 overflow:hidden 裁掉 */
.data-sidebar { overflow-y: auto; scrollbar-width: thin; }
.data-sidebar > * { flex-shrink: 0; }
.question-history { flex: 1 0 auto; }

/* 主站风格介绍区（2026-09-12）：文案与版式对齐 index.html 的实验卡片区 */
.page-intro { max-width: 980px; margin: 0 auto; padding: 38px 34px 4px; }
.page-intro .eyebrow { margin-bottom: 10px; }
.intro-title { margin: 0; font-family: var(--serif); font-size: clamp(26px, 3.4vw, 38px); font-weight: 600; line-height: 1.25; }
.intro-title .grad { background: linear-gradient(120deg, #5B86FF, #6FE3E8 55%, #BB8CFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro-tag { margin: 10px 0 0; color: var(--accent, #6FE3E8); font-size: 13px; letter-spacing: .05em; }
.intro-desc { margin: 12px 0 0; max-width: 660px; color: var(--muted, #A9B4D4); font-size: 13px; line-height: 1.9; }
.intro-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.intro-chips li { padding: 6px 13px; color: var(--muted, #A9B4D4); border: 1px solid var(--line, rgba(160,182,255,.14)); border-radius: 999px; background: rgba(var(--ovl-rgb), .035); font-size: 11px; }

/* ==========================================================================
   验一遍 YanYiBian · 介绍页专属样式
   继承 datawave.css 的骨架与 token；theme.css 在之后加载负责亮色覆盖。
   本文件只用 var(--*) / rgba(var(--ovl-rgb),…) 表达颜色，不写死深色值。
   ========================================================================== */

/* ---- 顶栏内按钮（仓库入口 / 主题切换） ---- */
.topbar-repo {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(var(--ovl-rgb), .03);
  font-size: 12px; letter-spacing: .01em;
  text-decoration: none;
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.topbar-repo svg { width: 13px; height: 13px; flex: none; }
.topbar-repo:hover { color: var(--text); border-color: var(--line-strong); background: rgba(var(--ovl-rgb), .06); }

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(var(--ovl-rgb), .03);
  cursor: pointer;
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.theme-toggle:hover { color: var(--accent); border-color: var(--line-strong); background: rgba(var(--ovl-rgb), .06); }
.theme-toggle svg { width: 15px; height: 15px; }
.theme-toggle .ti-moon { display: none; }
html[data-theme="light"] .theme-toggle .ti-sun { display: none; }
html[data-theme="light"] .theme-toggle .ti-moon { display: block; }

/* ---- 页首：出口按钮与提示 ---- */
.intro-cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 13px;
  margin-top: 27px;
}
.cta-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 44px; padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 13.5px; font-weight: 500; letter-spacing: .01em;
  text-decoration: none; white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              border-color .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.cta-button svg { flex: none; }
.cta-button.is-primary {
  color: #05101c;
  background: linear-gradient(135deg, #6fe3e8 0%, #5b86ff 100%);
  box-shadow: 0 8px 26px -14px rgba(91, 134, 255, .75);
}
.cta-button.is-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 30px -14px rgba(111, 227, 232, .7); }
.cta-button.is-ghost {
  color: var(--muted);
  border-color: var(--line-strong);
  background: rgba(var(--ovl-rgb), .03);
}
.cta-button.is-ghost:hover { color: var(--text); border-color: var(--accent); }
.cta-button.is-pending,
.cta-button.is-pending:hover {
  color: var(--muted);
  border-style: dashed;
  border-color: var(--line-strong);
  background: transparent;
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}
/* 待上线按钮在亮色下也要读得出来：虚线 + 斜纹底，不靠颜色深浅区分 */
.cta-button.is-pending {
  background-image: repeating-linear-gradient(135deg,
    rgba(var(--ovl-rgb), .05) 0 6px, transparent 6px 12px);
}
.intro-note {
  margin: 14px 0 0;
  color: var(--dim);
  font-size: 12.5px; line-height: 1.7;
}

/* ---- 主体容器与区块节奏 ---- */
.intro-main {
  width: min(1080px, 100% - 68px);
  margin: 0 auto;
  padding: 0 0 clamp(72px, 9vw, 104px);
}
.intro-section {
  margin-top: clamp(72px, 8vw, 100px);
  padding-top: clamp(30px, 3.4vw, 44px);
  border-top: 1px solid var(--line);
  scroll-margin-top: 98px;
}
.intro-section:first-child { margin-top: clamp(40px, 5vw, 64px); }

.section-head { max-width: 780px; }
.section-head .eyebrow { margin-bottom: 10px; }
.section-title {
  font-family: var(--display);
  font-size: clamp(21px, 2.4vw, 28px);
  font-weight: 500;
  line-height: 1.34;
  letter-spacing: -.012em;
  color: var(--text);
  margin: 0;
}
.section-desc {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 14.5px; line-height: 1.85;
  max-width: 720px;
}
.section-note {
  margin: 15px 0 0;
  color: var(--dim);
  font-size: 12.5px; line-height: 1.7;
}

/* ---- 01 它做的事：三步 + 三档结论 ---- */
.flow-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}
.flow-card {
  position: relative;
  padding: 26px 24px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(var(--panel-2-rgb), .55);
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.flow-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: rgba(var(--panel-3-rgb), .7);
}
.flow-step {
  display: block;
  margin-bottom: 15px;
  font-family: var(--display);
  font-size: 12px; font-weight: 500; letter-spacing: .17em;
  color: var(--accent);
}
.flow-card h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 16px; font-weight: 500; line-height: 1.45;
  color: var(--text);
}
.flow-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px; line-height: 1.82;
}

.verdict-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-top: 22px;
}
.verdict {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(var(--ovl-rgb), .03);
  color: var(--muted);
  font-size: 12.5px; letter-spacing: .01em;
}
.verdict::before {
  content: ""; width: 6px; height: 6px; flex: none;
  border-radius: 50%;
  background: currentColor;
}
.verdict.is-ok { color: var(--state-ok); }
.verdict.is-warn { color: var(--state-warn); }
.verdict.is-bad { color: var(--state-danger); }
.verdict-note {
  flex: 1 0 100%;
  margin: 2px 0 0;
  color: var(--dim);
  font-size: 12px; line-height: 1.7;
}

/* ---- 02 六类约束 ---- */
.constraint-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}
.constraint-card {
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(var(--panel-2-rgb), .45);
  transition: border-color .35s var(--ease), background .35s var(--ease);
}
.constraint-card:hover { border-color: var(--line-strong); background: rgba(var(--panel-3-rgb), .6); }
.constraint-kicker {
  margin: 0 0 11px;
  font-family: var(--display);
  font-size: 11px; font-weight: 500; letter-spacing: .18em;
  color: var(--dim);
}
.constraint-card h3 {
  margin: 0 0 7px;
  font-family: var(--display);
  font-size: 15.5px; font-weight: 500;
  color: var(--text);
}
.constraint-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px; line-height: 1.75;
}
.eg {
  display: block;
  margin-top: 13px; padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-family: var(--serif);
  font-size: 12.5px; line-height: 1.75;
  color: var(--muted);
}

/* ---- 03 模板表 ---- */
.spec-wrap {
  margin-top: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(var(--panel-2-rgb), .42);
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.spec-table caption.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.spec-table th,
.spec-table td {
  text-align: left;
  padding: 15px 22px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.spec-table thead th {
  font-family: var(--display);
  font-size: 11px; font-weight: 500; letter-spacing: .16em;
  color: var(--muted);
  background: rgba(var(--ovl-rgb), .025);
}
.spec-table tbody th {
  width: 22%;
  font-family: var(--display);
  font-size: 13.5px; font-weight: 500;
  color: var(--text);
}
.spec-table td { color: var(--muted); line-height: 1.75; }
.spec-table td.num {
  width: 96px;
  font-family: var(--display);
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.spec-table tbody tr:last-child th,
.spec-table tbody tr:last-child td { border-bottom: 0; }
.spec-table tbody tr:hover th,
.spec-table tbody tr:hover td { background: rgba(var(--ovl-rgb), .025); }

/* ---- 04 引文 + 要点 ---- */
.quote-card {
  position: relative;
  margin: 28px 0 26px;
  padding: 28px 30px 28px 34px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(var(--panel-2-rgb), .5);
  overflow: hidden;
}
.quote-card::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--violet));
}
.quote-card blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(15px, 1.6vw, 17px);
  font-weight: 500; line-height: 1.95;
  color: var(--text);
}
.point-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 26px;
  margin: 0; padding: 0;
  list-style: none;
}
.point-list li {
  display: flex; gap: 12px;
  color: var(--muted);
  font-size: 13.5px; line-height: 1.85;
}
.point-list li i {
  flex: none; width: 6px; height: 6px; margin-top: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(111, 227, 232, .12);
}
.point-list li b { color: var(--text); font-weight: 500; }

/* ---- 两种入口：Web / Tauri 桌面客户端 ---- */
.form-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}
.form-card {
  padding: 26px 24px 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(var(--panel-2-rgb), .55);
  transition: border-color .35s var(--ease), background .35s var(--ease), transform .35s var(--ease);
}
.form-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: rgba(var(--panel-3-rgb), .7);
}
.form-kicker {
  margin: 0 0 13px;
  font-family: var(--display);
  font-size: 11px; font-weight: 500; letter-spacing: .18em;
  color: var(--accent);
}
.form-card h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 16px; font-weight: 500; line-height: 1.45;
  color: var(--text);
}
.form-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px; line-height: 1.82;
}

/* ---- 05 不做的事 ---- */
.scope-list {
  margin: 26px 0 0; padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.scope-list li {
  position: relative;
  padding: 15px 0 15px 26px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px; line-height: 1.8;
}
.scope-list li::before {
  content: "—";
  position: absolute; left: 0; top: 15px;
  color: var(--dim);
}

/* ---- 06 出口面板 ---- */
.cta-panel {
  padding: clamp(28px, 3.6vw, 44px) clamp(24px, 3.4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(140deg, rgba(111, 227, 232, .07) 0%, rgba(91, 134, 255, .055) 42%, transparent 74%),
    rgba(var(--panel-2-rgb), .5);
}
.cta-panel .eyebrow { margin-bottom: 12px; }
.btn-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 13px;
  margin-top: 25px;
}
.cta-note {
  margin: 16px 0 0;
  color: var(--dim);
  font-size: 12px; line-height: 1.7;
}

/* ---- 页脚 ---- */
.intro-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px;
  margin-top: clamp(64px, 7vw, 88px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 12.5px;
}
.intro-foot a {
  color: var(--muted);
  text-decoration: none;
  transition: color .25s var(--ease);
}
.intro-foot a:hover { color: var(--accent); }

/* ---- 键盘可达性 ---- */
.cta-button:focus-visible,
.topbar-repo:focus-visible,
.theme-toggle:focus-visible,
.intro-foot a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---- 窄屏：单栏 ---- */
@media (max-width: 900px) {
  .intro-main { width: min(100% - 40px, 720px); }
  .intro-cta { gap: 11px; }
  .flow-grid,
  .constraint-grid,
  .point-list,
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .flow-card:hover,
  .form-card:hover { transform: none; }
  .spec-table th,
  .spec-table td { padding: 13px 15px; }
  .spec-table tbody th { width: 30%; }
  .quote-card { padding: 24px 20px 24px 24px; }
  .intro-foot { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 560px) {
  .cta-button { width: 100%; }
  .verdict-row { gap: 8px; }
  .verdict { font-size: 12px; padding: 6px 12px; }
  .spec-table { font-size: 12.5px; }
  .spec-table tbody th { width: 34%; }
}

@media (prefers-reduced-motion: reduce) {
  .flow-card, .flow-card:hover, .form-card, .form-card:hover,
  .cta-button, .cta-button.is-primary:hover { transform: none; transition: none; }
}
