/* ==========================================================================
   SABC 项目评级智能体 · Obsidian Instrument
   ========================================================================== */

@font-face {
  font-family: 'Unbounded';
  src: url('/fonts/unbounded.woff2') format('woff2');
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('/fonts/instrument-sans.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('/fonts/plex-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('/fonts/plex-mono-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('/fonts/plex-mono-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #05070b;
  --bg-2: #080b12;
  --panel: #0b0f17;
  --panel-2: #111724;
  --panel-3: #172033;
  --line: rgba(148, 170, 210, 0.12);
  --line-2: rgba(148, 170, 210, 0.22);
  --line-3: rgba(148, 170, 210, 0.36);
  --text: #edf1f7;
  --text-2: #a7b1c2;
  --text-3: #6c778a;
  --text-4: #465063;

  --gold: #e9c77b;
  --gold-2: #c9a45a;
  --gold-ink: #1b1508;
  --gold-soft: rgba(233, 199, 123, 0.1);
  --gold-line: rgba(233, 199, 123, 0.34);
  --teal: #5fe3d0;
  --teal-2: #2fbfae;
  --teal-soft: rgba(95, 227, 208, 0.1);
  --teal-line: rgba(95, 227, 208, 0.32);
  --danger: #e5484d;
  --danger-t: #ff8088;
  --danger-soft: rgba(229, 72, 77, 0.12);
  --warn: #e0a33a;
  --warn-t: #f2c46b;
  --warn-soft: rgba(224, 163, 58, 0.12);
  --ok: #12a57a;
  --ok-t: #4be3a4;
  --ok-soft: rgba(18, 165, 122, 0.14);

  /* 等级：mark 色用于图形与色块，tint 色用于大字母与发光 */
  --gS: #b98a1e;
  --gA: #12a57a;
  --gB: #3b82f6;
  --gC: #e5484d;
  --tS: #f3d48a;
  --tA: #4be3a4;
  --tB: #82b4ff;
  --tC: #ff8088;

  /* PK 系列色（已校验） */
  --s1: #3987e5;
  --s2: #d95926;
  --s3: #199e70;

  --f-display: 'Unbounded', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --f-sans: 'Instrument Sans', 'PingFang SC', 'HarmonyOS Sans SC', 'MiSans', 'Microsoft YaHei', 'Noto Sans SC', -apple-system, sans-serif;
  --f-mono: 'Plex Mono', 'SF Mono', ui-monospace, Menlo, 'PingFang SC', 'Microsoft YaHei', monospace;

  --r-xs: 4px;
  --r-sm: 7px;
  --r: 12px;
  --r-lg: 18px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --topbar: 60px;
  --maxw: 1200px;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar) + 20px);
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection {
  background: rgba(233, 199, 123, 0.28);
  color: #fff;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}
img,
svg {
  display: block;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
p {
  text-wrap: pretty; /* 避免段落末行只剩一两个字 */
}
ol,
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}
#app:focus {
  outline: none;
}
.mono {
  font-family: var(--f-mono);
  letter-spacing: 0.02em;
}
.num {
  font-variant-numeric: tabular-nums;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- 背景氛围 ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.bg-glow {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(40% 35% at 18% 12%, rgba(233, 199, 123, 0.075), transparent 70%),
    radial-gradient(38% 40% at 88% 18%, rgba(95, 227, 208, 0.055), transparent 70%),
    radial-gradient(50% 45% at 60% 100%, rgba(59, 130, 246, 0.05), transparent 70%);
  animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift {
  to {
    transform: translate3d(2%, -2%, 0) scale(1.05);
  }
}
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 170, 210, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 170, 210, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(90% 70% at 50% 0%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(90% 70% at 50% 0%, #000 30%, transparent 85%);
}
.bg-grain {
  position: absolute;
  inset: 0;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--topbar);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 max(20px, calc((100vw - var(--maxw)) / 2));
  background: rgba(5, 7, 11, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
}
.brand-mark {
  width: 30px;
  height: 30px;
}
.brand-name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.08em;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.brand-name em {
  font-style: normal;
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  color: var(--text-2);
}
.nav {
  display: flex;
  gap: 4px;
  margin-right: auto;
}
.nav a {
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 14px;
  transition: color 0.2s, background 0.2s;
}
.nav a:hover {
  color: var(--text);
  background: rgba(148, 170, 210, 0.07);
}
.nav a.on {
  color: var(--text);
  background: rgba(148, 170, 210, 0.1);
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.svc-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--danger-t);
}
.svc-status[hidden] {
  display: none;
}
.svc-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--danger);
}

/* ---------- 按钮 ---------- */
.btn {
  --h: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--h);
  padding: 0 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: transform 0.15s var(--ease), background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, opacity 0.2s;
  user-select: none;
}
.btn:active:not(:disabled) {
  transform: translateY(1px) scale(0.99);
}
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.btn-sm {
  --h: 34px;
  padding: 0 13px;
  font-size: 13.5px;
  border-radius: 9px;
}
.btn-lg {
  --h: 50px;
  padding: 0 24px;
  font-size: 15.5px;
  border-radius: 12px;
}
.btn-gold {
  color: var(--gold-ink);
  background: linear-gradient(180deg, #f3d897 0%, var(--gold) 55%, #d9b25f 100%);
  box-shadow: 0 0 0 1px rgba(255, 230, 170, 0.35) inset, 0 8px 24px -10px rgba(233, 199, 123, 0.7);
}
.btn-gold:hover:not(:disabled) {
  box-shadow: 0 0 0 1px rgba(255, 236, 190, 0.6) inset, 0 10px 32px -8px rgba(233, 199, 123, 0.85);
}
.btn-teal {
  color: #04211d;
  background: linear-gradient(180deg, #8ef0e2, var(--teal));
  box-shadow: 0 8px 24px -12px rgba(95, 227, 208, 0.8);
}
.btn-ghost {
  color: var(--text);
  background: rgba(148, 170, 210, 0.06);
  box-shadow: 0 0 0 1px var(--line-2) inset;
}
.btn-ghost:hover:not(:disabled) {
  background: rgba(148, 170, 210, 0.11);
  box-shadow: 0 0 0 1px var(--line-3) inset;
}
.btn-text {
  --h: 32px;
  padding: 0 8px;
  color: var(--text-2);
  font-weight: 500;
}
.btn-text:hover {
  color: var(--text);
}
.btn-danger {
  color: var(--danger-t);
  background: var(--danger-soft);
  box-shadow: 0 0 0 1px rgba(229, 72, 77, 0.35) inset;
}
kbd {
  font-family: var(--f-mono);
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.14);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18) inset;
  font-weight: 500;
}
.btn-ghost kbd {
  background: rgba(148, 170, 210, 0.08);
  box-shadow: 0 0 0 1px var(--line) inset;
  color: var(--text-3);
}

/* ---------- 通用组件 ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}
.eyebrow .pulse,
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
  animation: pulse 1.8s ease-in-out infinite;
  flex: none;
}
@keyframes pulse {
  50% {
    opacity: 0.35;
    transform: scale(0.8);
  }
}
.panel {
  position: relative;
  background: linear-gradient(180deg, rgba(17, 23, 36, 0.86), rgba(11, 15, 23, 0.9));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.035) inset, 0 24px 60px -30px rgba(0, 0, 0, 0.7);
}
/* HUD 角标 */
.hud::before,
.hud::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--gold-line);
  border-style: solid;
  pointer-events: none;
}
.hud::before {
  top: -1px;
  left: -1px;
  border-width: 1px 0 0 1px;
  border-top-left-radius: var(--r-lg);
}
.hud::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 1px 1px 0;
  border-bottom-right-radius: var(--r-lg);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-2);
  background: rgba(148, 170, 210, 0.05);
  box-shadow: 0 0 0 1px var(--line-2) inset;
  transition: all 0.18s var(--ease);
  white-space: nowrap;
}
button.chip:hover {
  color: var(--text);
  box-shadow: 0 0 0 1px var(--line-3) inset;
  background: rgba(148, 170, 210, 0.09);
}
.chip.on {
  color: var(--gold);
  background: var(--gold-soft);
  box-shadow: 0 0 0 1px var(--gold-line) inset;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  background: rgba(148, 170, 210, 0.07);
  box-shadow: 0 0 0 1px var(--line) inset;
  white-space: nowrap;
}
.tag svg {
  width: 13px;
  height: 13px;
}
.tag.teal {
  color: var(--teal);
  background: var(--teal-soft);
  box-shadow: 0 0 0 1px var(--teal-line) inset;
}
.tag.gold {
  color: var(--gold);
  background: var(--gold-soft);
  box-shadow: 0 0 0 1px var(--gold-line) inset;
}
.tag.v {
  color: var(--danger-t);
  background: var(--danger-soft);
  box-shadow: 0 0 0 1px rgba(229, 72, 77, 0.38) inset;
}
.tag.b {
  color: var(--warn-t);
  background: var(--warn-soft);
  box-shadow: 0 0 0 1px rgba(224, 163, 58, 0.38) inset;
}
.tag.ok {
  color: var(--ok-t);
  background: var(--ok-soft);
  box-shadow: 0 0 0 1px rgba(18, 165, 122, 0.4) inset;
}
.gbadge {
  --gc: var(--text-3);
  --gt: var(--text);
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--gt);
  background: color-mix(in srgb, var(--gc) 22%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--gc) 60%, transparent) inset;
  flex: none;
}
.g-S {
  --gc: var(--gS);
  --gt: var(--tS);
}
.g-A {
  --gc: var(--gA);
  --gt: var(--tA);
}
.g-B {
  --gc: var(--gB);
  --gt: var(--tB);
}
.g-C {
  --gc: var(--gC);
  --gt: var(--tC);
}
.caret::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -0.16em;
  background: var(--teal);
  animation: blink 1s steps(2) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.skeleton {
  display: block;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(148, 170, 210, 0.06), rgba(148, 170, 210, 0.14), rgba(148, 170, 210, 0.06));
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
}
.skeleton + .skeleton {
  margin-top: 9px;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
.muted {
  color: var(--text-3);
}
.fade-up {
  animation: fadeUp 0.7s var(--ease-out) both;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- 表单 ---------- */
.field {
  display: grid;
  gap: 7px;
}
.field > span {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.field > span em {
  font-style: normal;
  font-size: 12px;
  color: var(--text-3);
  font-weight: 400;
}
.input,
.field input,
.field textarea,
textarea.answer {
  width: 100%;
  border: 0;
  outline: none;
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(5, 7, 11, 0.55);
  box-shadow: 0 0 0 1px var(--line-2) inset;
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  resize: none;
  transition: box-shadow 0.2s, background 0.2s;
}
.field input {
  height: 48px;
  font-size: 16px;
}
.input:focus,
.field input:focus,
.field textarea:focus,
textarea.answer:focus {
  box-shadow: 0 0 0 1px var(--gold-line) inset, 0 0 0 4px rgba(233, 199, 123, 0.08);
  background: rgba(5, 7, 11, 0.75);
}
::placeholder {
  color: var(--text-4);
}
.shake {
  animation: shake 0.4s;
}
@keyframes shake {
  20%,
  60% {
    transform: translateX(-5px);
  }
  40%,
  80% {
    transform: translateX(5px);
  }
}

/* ==========================================================================
   首页
   ========================================================================== */
.home {
  padding-bottom: 60px;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - var(--topbar) - 40px);
  padding-top: 28px;
  padding-bottom: 28px;
}
.hero-copy > * {
  animation: fadeUp 0.8s var(--ease-out) both;
}
.hero-copy > :nth-child(2) {
  animation-delay: 0.08s;
}
.hero-copy > :nth-child(3) {
  animation-delay: 0.16s;
}
.hero-copy > :nth-child(4) {
  animation-delay: 0.24s;
}
.hero h1 {
  word-break: keep-all; /* 中文标题只在标点处换行，避免「该 / 做。」这种断法 */
  margin: 20px 0 18px;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hero h1 .l2 {
  background: linear-gradient(100deg, var(--gold) 10%, #fff3d6 45%, var(--gold) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: sheen 6s ease-in-out infinite;
}
@keyframes sheen {
  50% {
    background-position: 100% 0;
  }
}
.lede {
  max-width: 34em;
  color: var(--text-2);
  font-size: 16.5px;
  line-height: 1.75;
}
.lede b {
  color: var(--text);
  font-weight: 600;
}
.start-form {
  margin-top: 30px;
  padding: 22px;
  display: grid;
  gap: 16px;
  max-width: 540px;
}
.start-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.fine {
  font-size: 12.5px;
  color: var(--text-3);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.fine span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.fine svg {
  width: 13px;
  height: 13px;
}

.scope {
  position: relative;
  container-type: inline-size;
  width: min(100%, 560px);
  aspect-ratio: 1;
  margin: 0 auto;
  animation: fadeUp 1s 0.2s var(--ease-out) both;
}
/* 玫瑰图铺满方形容器，圆心 = 容器中心，与扫描线、中心读数共用同一个圆心 */
.scope .scope-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.scope-sweep {
  position: absolute;
  inset: 16%; /* 半径到刻度环外沿（R+22，视图半宽 R+78） */
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(95, 227, 208, 0) 0deg, rgba(95, 227, 208, 0) 300deg, rgba(95, 227, 208, 0.16) 356deg, rgba(95, 227, 208, 0.45) 360deg);
  mask-image: radial-gradient(circle, transparent 17%, #000 18%);
  -webkit-mask-image: radial-gradient(circle, transparent 17%, #000 18%);
  animation: spin 6s linear infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.scope-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
/* 中心读数做成仪表的轴心：深色圆盘托住等级字母，不和同色扇区混在一起；尺寸随玫瑰图缩放（cqw） */
.scope-readout {
  width: 25cqw;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.4cqw;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(6, 8, 12, 0.94) 78%, rgba(6, 8, 12, 0.6) 92%, rgba(6, 8, 12, 0));
  box-shadow: 0 0 0 1px rgba(148, 170, 210, 0.16), 0 0 0 5px rgba(6, 8, 12, 0.35);
}
.scope-letter {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 12.5cqw;
  line-height: 1;
  color: var(--gt, var(--text));
  text-shadow: 0 0 34px color-mix(in srgb, var(--gt, #fff) 45%, transparent);
  transition: color 0.6s, text-shadow 0.6s;
}
.scope-score {
  font-family: var(--f-mono);
  font-size: max(10px, 2cqw);
  color: var(--text-2);
  letter-spacing: 0.08em;
}
.scope-tag {
  position: absolute;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--text-3);
  text-transform: uppercase;
}
.scope-tag.tl {
  top: 2%;
  left: 0;
}
.scope-tag.br {
  bottom: 2%;
  right: 0;
  text-align: right;
}
.scope-tag b {
  color: var(--teal);
  font-weight: 500;
}

.resume {
  margin: 0 auto 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 16px 20px;
  border-radius: var(--r);
  background: linear-gradient(90deg, rgba(95, 227, 208, 0.09), rgba(95, 227, 208, 0.02));
  box-shadow: 0 0 0 1px var(--teal-line) inset;
}
.resume .t {
  flex: 1 1 260px; /* 有基准宽度才会在窄屏换行，按钮落到下一行，而不是把文字挤成一列 */
  min-width: 0;
}
.resume .t b {
  display: block;
  font-size: 15px;
}
.resume .t span {
  font-size: 13px;
  color: var(--text-2);
}

.band {
  padding: 64px 0 8px;
}
.band-h {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.band-h h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 650;
  letter-spacing: 0.01em;
  margin-top: 10px;
}
.band-h p {
  color: var(--text-2);
  max-width: 34em;
  font-size: 14.5px;
}

.tiers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.tier {
  --gc: var(--text-3);
  --gt: var(--text);
  position: relative;
  padding: 22px 20px 20px;
  overflow: hidden;
}
.tier::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--gc);
}
.tier::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, color-mix(in srgb, var(--gc) 26%, transparent), transparent 70%);
}
.tier-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.tier-letter {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 56px;
  line-height: 1;
  color: var(--gt);
  text-shadow: 0 0 28px color-mix(in srgb, var(--gt) 35%, transparent);
}
.tier-range {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--text-2);
}
.tier h3 {
  margin-top: 14px;
  font-size: 17px;
  font-weight: 650;
}
.tier p {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--text-2);
}
.tier .act {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text);
  display: flex;
  gap: 8px;
  align-items: center;
}
.tier .act svg {
  width: 14px;
  height: 14px;
  color: var(--gt);
}

.wgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.wcard {
  --wc: rgba(148, 170, 210, 0.55);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 18px 18px 18px;
  border-radius: var(--r);
  background: rgba(17, 23, 36, 0.55);
  box-shadow: 0 0 0 1px var(--line) inset;
  transition: box-shadow 0.25s, background 0.25s;
}
.wcard:hover {
  background: rgba(22, 30, 46, 0.7);
  box-shadow: 0 0 0 1px var(--line-2) inset;
}
.wcard.top {
  --wc: var(--gold);
  background: linear-gradient(160deg, rgba(233, 199, 123, 0.09), rgba(17, 23, 36, 0.55) 60%);
  box-shadow: 0 0 0 1px var(--gold-line) inset;
}
.wcard-h {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wcard-h .no {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-3);
}
.wcard.top .wcard-h .no {
  color: var(--gold);
}
.wtag {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--gold);
  background: var(--gold-soft);
  box-shadow: 0 0 0 1px var(--gold-line) inset;
}
.wv {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-3);
}
.wv b {
  margin-right: 2px;
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}
.wcard.top .wv b {
  color: var(--gold);
  text-shadow: 0 0 22px rgba(233, 199, 123, 0.35);
}
.wcard h3 {
  margin-top: 10px;
  font-size: 15.5px;
  font-weight: 650;
}
.wcard p {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
}
/* 权重条：按最高权重（20分）等比例 */
.wtrack {
  position: relative;
  margin-top: auto;
  padding-top: 16px;
}
.wtrack::before,
.wtrack i {
  display: block;
  height: 4px;
  border-radius: 4px;
}
.wtrack::before {
  content: '';
  background: rgba(148, 170, 210, 0.1);
}
.wtrack i {
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--wc);
}
.wcard.top .wtrack i {
  box-shadow: 0 0 10px rgba(233, 199, 123, 0.45);
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  counter-reset: flow;
}
.flow li {
  position: relative;
  padding: 18px 18px 16px;
  border-radius: var(--r);
  background: rgba(17, 23, 36, 0.55);
  box-shadow: 0 0 0 1px var(--line) inset;
}
.flow li .k {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--gold);
}
.flow li b {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 600;
}
.flow li span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-2);
}

.marquee {
  margin-top: 70px;
  border-block: 1px solid var(--line);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.marquee-track span {
  padding: 18px 28px;
  font-size: 15px;
  color: var(--text-2);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 28px;
}
.marquee-track span::after {
  content: '◆';
  font-size: 8px;
  color: var(--gold);
}
.marquee-track b {
  color: var(--text);
  font-weight: 600;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.rcard {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 18px;
  border-radius: var(--r);
  background: rgba(17, 23, 36, 0.6);
  box-shadow: 0 0 0 1px var(--line) inset;
  transition: box-shadow 0.2s, transform 0.2s var(--ease), background 0.2s;
}
.rcard:hover {
  box-shadow: 0 0 0 1px var(--line-3) inset;
  background: rgba(23, 32, 51, 0.7);
  transform: translateY(-2px);
}
.rcard .big {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  font-size: 26px;
}
.rcard .t {
  min-width: 0;
}
.rcard h3 {
  font-size: 15.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rcard .meta {
  margin-top: 3px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--text-3);
}
.rcard p {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.9em;
}
.rcard .ops {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: -4px;
}
.rcard .ops .sp {
  flex: 1;
}
.rcard .pick {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--text-2);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
}
.rcard .pick input {
  accent-color: var(--gold);
  width: 15px;
  height: 15px;
}
.rcard.picked {
  box-shadow: 0 0 0 1px var(--gold-line) inset, 0 0 0 4px rgba(233, 199, 123, 0.06);
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--text-3);
  transition: color 0.2s, background 0.2s;
}
.icon-btn:hover {
  color: var(--text);
  background: rgba(148, 170, 210, 0.09);
}
.icon-btn.danger:hover {
  color: var(--danger-t);
  background: var(--danger-soft);
}
.icon-btn svg {
  width: 16px;
  height: 16px;
}
.empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-2);
  border-radius: var(--r-lg);
  box-shadow: 0 0 0 1px var(--line) inset;
  background: rgba(17, 23, 36, 0.35);
}
.empty b {
  display: block;
  color: var(--text);
  font-size: 17px;
  margin-bottom: 6px;
}
.empty .btn {
  margin-top: 18px;
}

/* ==========================================================================
   访谈
   ========================================================================== */
.iv {
  padding-top: 26px;
  padding-bottom: 120px;
}
.iv-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  margin-bottom: 22px;
}
.iv-head h1 {
  margin-top: 6px;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 650;
  line-height: 1.3;
}
.iv-head p {
  margin-top: 4px;
  color: var(--text-2);
  font-size: 14px;
  max-width: 60em;
}
.iv-head .actions {
  display: flex;
  gap: 8px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 26px;
}
.step {
  position: relative;
  padding-top: 12px;
  font-size: 12px;
  color: var(--text-3);
  min-width: 0;
}
.step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 3px;
  background: rgba(148, 170, 210, 0.12);
  transition: background 0.4s;
}
.step .n {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
}
.step .l {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.step.cur {
  color: var(--text);
}
.step.cur::before {
  background: linear-gradient(90deg, var(--gold), rgba(233, 199, 123, 0.35));
  box-shadow: 0 0 12px rgba(233, 199, 123, 0.45);
}
.step.busy::before {
  background: linear-gradient(90deg, var(--teal), rgba(95, 227, 208, 0.2), var(--teal));
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}
.step.done {
  color: var(--text-2);
}
.step.done::before {
  background: rgba(233, 199, 123, 0.55);
}
.step .sc {
  font-family: var(--f-mono);
  color: var(--text);
  margin-left: 4px;
}

.iv-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}
.feed {
  display: grid;
  gap: 18px;
}
.stage {
  display: grid;
  gap: 12px;
  animation: fadeUp 0.6s var(--ease-out) both;
}

/* 问题卡 */
.qcard {
  padding: 24px 24px 20px;
}
.qcard.answered {
  padding: 18px 22px;
  background: rgba(11, 15, 23, 0.55);
  box-shadow: none;
}
.qmeta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.qno {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--gold);
  letter-spacing: 0.04em;
}
.qno small {
  color: var(--text-4);
  font-size: 12px;
  margin-left: 2px;
}
.qtitle {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
}
.qmeta .tag {
  margin-left: auto;
}
.qtext {
  margin-top: 14px;
  font-size: 20px;
  line-height: 1.55;
  font-weight: 600;
  letter-spacing: 0.005em;
}
.qcard.answered .qtext {
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-2);
  font-weight: 500;
}
.qhint {
  margin-top: 10px;
  display: flex;
  gap: 9px;
  font-size: 13.5px;
  color: var(--text-3);
  line-height: 1.6;
}
.qhint svg {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 3px;
  color: var(--gold-2);
}
.qtip {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--teal-soft);
  box-shadow: 0 0 0 1px var(--teal-line) inset;
  font-size: 13.5px;
  color: #bff5ec;
  animation: fadeUp 0.5s var(--ease-out) both;
}
.qtip b {
  color: var(--teal);
  font-weight: 600;
  white-space: nowrap;
}
.choices {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}
.cg {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 10px;
  align-items: start;
}
.cg-label {
  padding-top: 5px;
  font-size: 12.5px;
  color: var(--text-3);
  font-weight: 500;
}
.cg-label em {
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--text-4);
  margin-left: 4px;
}
.cg .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.composer {
  margin-top: 18px;
}
.tpls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 9px;
}
.tpls .lbl {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--text-4);
  margin-right: 4px;
}
.tpl {
  height: 26px;
  padding: 0 9px;
  border-radius: 6px;
  font-size: 12.5px;
  color: var(--text-3);
  box-shadow: 0 0 0 1px var(--line) inset;
  transition: all 0.15s;
}
.tpl::before {
  content: '+ ';
  color: var(--text-4);
}
.tpl:hover {
  color: var(--text);
  box-shadow: 0 0 0 1px var(--line-3) inset;
}
.tpl.used {
  color: var(--gold-2);
  box-shadow: 0 0 0 1px rgba(233, 199, 123, 0.2) inset;
}
.tpl.used::before {
  content: '✓ ';
  color: var(--gold-2);
}
textarea.answer {
  min-height: 132px;
  display: block;
}
.cbar {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cbar .sp {
  flex: 1;
}
.cbar .count {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-4);
}
.cbar .kbd-hint {
  font-size: 12px;
  color: var(--text-4);
}
.queued {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-2);
  background: rgba(95, 227, 208, 0.06);
  box-shadow: 0 0 0 1px var(--teal-line) inset;
}
.queued .sp {
  flex: 1;
}
.answer-view {
  margin-top: 12px;
  padding-left: 14px;
  border-left: 2px solid var(--gold-line);
  font-size: 14.5px;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}
.answer-view.unknown {
  color: var(--warn-t);
  border-left-color: rgba(224, 163, 58, 0.5);
}
.picks {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.picks .tag {
  height: auto;
  min-height: 24px;
  padding-block: 3px;
  max-width: 100%;
  white-space: normal;
}
.picks .tag b {
  color: var(--text);
  font-weight: 500;
}

/* AI 分析卡 */
.ai {
  position: relative;
  padding: 16px 20px 18px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(95, 227, 208, 0.055), rgba(95, 227, 208, 0.015));
  box-shadow: 0 0 0 1px rgba(95, 227, 208, 0.18) inset;
  margin-left: 26px;
}
.ai::before {
  content: '';
  position: absolute;
  left: -16px;
  top: -12px;
  width: 12px;
  height: 36px;
  border-left: 1px solid rgba(95, 227, 208, 0.3);
  border-bottom: 1px solid rgba(95, 227, 208, 0.3);
  border-bottom-left-radius: 10px;
}
.ai.sub {
  margin-left: 0;
  margin-top: 12px;
  padding: 12px 14px 14px;
  background: rgba(95, 227, 208, 0.035);
}
.ai.sub::before {
  display: none;
}
.ai-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  min-height: 26px;
}
.ai-avatar {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(95, 227, 208, 0.12);
  box-shadow: 0 0 0 1px var(--teal-line) inset;
  color: var(--teal);
}
.ai-avatar svg {
  width: 15px;
  height: 15px;
}
.ai-name {
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}
.ai-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--text-3);
}
.ai-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-4);
}
.ai[data-phase='wait'] > .ai-head .ai-status i,
.ai[data-phase='thinking'] > .ai-head .ai-status i,
.ai[data-phase='text'] > .ai-head .ai-status i {
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
  animation: pulse 1.2s ease-in-out infinite;
}
.ai[data-phase='done'] > .ai-head .ai-status i {
  background: var(--ok-t);
}
.ai[data-phase='error'] > .ai-head .ai-status i {
  background: var(--danger);
}
.ai-note {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
}
.ai-note:empty {
  display: none;
}
.ai-chips {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}
.ai-chips:empty {
  display: none;
}
.ai-chips > * {
  animation: pop 0.45s var(--ease-out) both;
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
}
.scorechip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 26px;
  padding: 0 10px 0 9px;
  border-radius: 7px;
  background: rgba(233, 199, 123, 0.08);
  box-shadow: 0 0 0 1px var(--gold-line) inset;
  font-size: 12.5px;
  color: var(--text-2);
}
.scorechip b {
  font-family: var(--f-mono);
  color: var(--gold);
  font-weight: 600;
  font-size: 13px;
}
.scorechip .from {
  font-family: var(--f-mono);
  color: var(--text-3);
  text-decoration: line-through;
  font-size: 12px;
}
.pips {
  display: inline-flex;
  gap: 2px;
}
.pips i {
  width: 5px;
  height: 10px;
  border-radius: 1.5px;
  background: rgba(148, 170, 210, 0.16);
}
.pips i.on {
  background: var(--gold);
}
.pips i.half {
  background: linear-gradient(90deg, var(--gold) 50%, rgba(148, 170, 210, 0.16) 50%);
}
.ai-err {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--danger-t);
}
.ai-err .sp {
  flex: 1;
}

/* 追问 */
.follow {
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(5, 7, 11, 0.45);
  box-shadow: 0 0 0 1px var(--teal-line) inset;
  animation: fadeUp 0.5s var(--ease-out) both;
}
.follow.attn {
  animation: attn 1.4s var(--ease-out) 2;
}
@keyframes attn {
  30% {
    box-shadow: 0 0 0 1px var(--teal) inset, 0 0 0 6px rgba(95, 227, 208, 0.12);
  }
}
.follow-h {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-3);
}
.follow-q {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--text);
}
.follow textarea.answer {
  margin-top: 12px;
  min-height: 84px;
}
.follow-a {
  margin-top: 8px;
  padding-left: 12px;
  border-left: 2px solid var(--teal-line);
  color: var(--text);
  font-size: 14.5px;
  white-space: pre-wrap;
}
.follow-a.skipped {
  color: var(--warn-t);
}

/* 8问答完后的追问环节 */
.fu[hidden] {
  display: none;
}
.fu-card {
  padding: 22px 24px 24px;
  display: grid;
  gap: 14px;
  animation: fadeUp 0.6s var(--ease-out) both;
}
.fu-h {
  display: flex;
  align-items: center;
  gap: 12px;
}
.fu-h .ai-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex: none;
}
.fu-h .ai-avatar svg {
  width: 18px;
  height: 18px;
}
.fu-t {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.fu-t h3 {
  font-size: 19px;
  font-weight: 650;
  line-height: 1.35;
}
.fu-h .ai-status {
  margin-left: auto;
  white-space: nowrap;
}
.fu-card[data-mode='wait'] .ai-status i,
.fu-card[data-mode='thinking'] .ai-status i,
.fu-card[data-mode='writing'] .ai-status i {
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
  animation: pulse 1.2s ease-in-out infinite;
}
.fu-card[data-mode='list'] .ai-status i,
.fu-card[data-mode='empty'] .ai-status i {
  background: var(--ok-t);
}
.fu-card[data-mode='error'] .ai-status i {
  background: var(--danger);
}
.fu-note {
  display: grid;
  gap: 4px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-2);
}
.fu-note b {
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
}
.fu-note span {
  font-size: 13px;
  color: var(--text-3);
}
.fu-list {
  display: grid;
  gap: 12px;
}
.fu-list:empty {
  display: none;
}
.fu-list .follow {
  margin-top: 0;
}
.fu-list .follow.done {
  background: rgba(5, 7, 11, 0.3);
  box-shadow: 0 0 0 1px rgba(95, 227, 208, 0.12) inset;
}
.fu-list .follow.pending {
  box-shadow: 0 0 0 1px rgba(95, 227, 208, 0.16) inset;
}
.fu-dim {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--text-3);
  white-space: nowrap;
}
button.fu-dim:hover {
  color: var(--teal);
}
.fu-why {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--gold-2);
}
.fu-why:empty {
  display: none;
}
.fu-ref {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--teal);
  background: var(--teal-soft);
  box-shadow: 0 0 0 1px var(--teal-line) inset;
  transition: background 0.2s;
}
.fu-ref:hover {
  background: rgba(95, 227, 208, 0.16);
}
.fu-ref svg {
  width: 13px;
  height: 13px;
}
@media (max-width: 640px) {
  .fu-card {
    padding: 18px 16px 20px;
  }
  .fu-h {
    flex-wrap: wrap;
  }
  .fu-h .ai-status {
    margin-left: 46px;
  }
  .follow-h {
    flex-wrap: wrap;
  }
}

.cta {
  padding: 28px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 10px;
}
.cta h3 {
  font-size: 22px;
  font-weight: 650;
}
.cta p {
  color: var(--text-2);
  max-width: 36em;
  font-size: 14px;
}
.cta .btn {
  margin-top: 10px;
}
.cta .count-down {
  font-size: 12.5px;
  color: var(--text-3);
}
.cta .count-down button {
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 实时研判面板 */
.side {
  position: sticky;
  top: calc(var(--topbar) + 18px);
  display: grid;
  gap: 14px;
}
.live {
  padding: 18px;
}
.live-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.live-h .eyebrow {
  color: var(--text-2);
}
.live-h .mono {
  font-size: 10.5px;
  color: var(--teal);
  letter-spacing: 0.16em;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.live-rose {
  margin: 8px auto 0;
  width: 100%;
  max-width: 290px;
}
.est {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(5, 7, 11, 0.45);
  box-shadow: 0 0 0 1px var(--line) inset;
}
.est .gbadge {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  font-size: 21px;
}
.est .v {
  font-size: 22px;
  font-weight: 650;
  line-height: 1.1;
}
.est .v small {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
  margin-left: 3px;
}
.est .k {
  font-size: 12px;
  color: var(--text-3);
}
.live-sec {
  margin-top: 16px;
}
.live-sec > .k {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 8px;
}
.live-sec > .k b {
  color: var(--text-2);
  font-weight: 500;
}
.evm {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
}
.evm div {
  padding: 7px 4px 6px;
  text-align: center;
  border-radius: 6px;
  background: rgba(148, 170, 210, 0.05);
  box-shadow: 0 0 0 1px var(--line) inset;
  transition: all 0.3s;
}
.evm b {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
}
.evm span {
  display: block;
  font-size: 10.5px;
  color: var(--text-4);
  line-height: 1.3;
}
.evm div.lit {
  background: rgba(95, 227, 208, 0.07);
  box-shadow: 0 0 0 1px rgba(95, 227, 208, 0.25) inset;
}
.evm div.lit b {
  color: var(--teal);
}
.evm div.cur {
  background: rgba(95, 227, 208, 0.16);
  box-shadow: 0 0 0 1px var(--teal) inset, 0 0 16px -4px rgba(95, 227, 208, 0.6);
}
.evm div.cur b,
.evm div.cur span {
  color: var(--text);
}
.rl {
  display: grid;
  gap: 6px;
}
.rl > div {
  display: flex;
  align-items: center;
  gap: 3px;
}
.rl span {
  flex: none;
  width: 60px;
  font-size: 11px;
  color: var(--text-3);
}
.rl i {
  flex: 1;
  max-width: 22px;
  height: 14px;
  border-radius: 4px;
  background: rgba(148, 170, 210, 0.05);
  box-shadow: 0 0 0 1px var(--line) inset;
  cursor: default;
}
.rl .v i.hit {
  background: rgba(229, 72, 77, 0.6);
  box-shadow: 0 0 0 1px var(--danger) inset, 0 0 12px -2px rgba(229, 72, 77, 0.7);
}
.rl .b i.hit {
  background: var(--warn);
  box-shadow: 0 0 12px -2px rgba(224, 163, 58, 0.7);
}
.rl-list {
  margin-top: 8px;
  display: grid;
  gap: 5px;
}
.rl-list li {
  font-size: 12px;
  color: var(--text-2);
  display: flex;
  gap: 7px;
  line-height: 1.5;
}
.rl-list li b {
  font-weight: 600;
  color: var(--warn-t);
  flex: none;
}
.rl-list li:not(.v)::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 7px;
  border-radius: 2px;
  background: var(--warn);
}
.rl-list li.v b {
  color: var(--danger-t);
}
.live-foot {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-3);
}
.live-foot b {
  font-family: var(--f-mono);
  color: var(--text);
  font-weight: 500;
}
.live-note {
  font-size: 11.5px;
  color: var(--text-4);
  line-height: 1.5;
  padding: 0 4px;
}
.live-fab {
  display: none;
}

/* ==========================================================================
   报告
   ========================================================================== */
.rp {
  padding-top: 26px;
  padding-bottom: 80px;
}
/* 贴在顶栏下方的二级工具条：通栏背景，静止与吸顶时外观一致 */
.rp-toolbar {
  position: sticky;
  top: var(--topbar);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 8px 0;
  margin: -26px 0 22px;
}
.rp-toolbar::before {
  content: '';
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  background: rgba(5, 7, 11, 0.8);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.rp-toolbar .sp {
  flex: 1;
}
.crumb {
  font-size: 13px;
  color: var(--text-3);
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.crumb a:hover {
  color: var(--text);
}
.gen {
  margin-bottom: 18px;
  padding: 14px 18px;
  display: grid;
  gap: 12px;
}
.gen-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.gen-steps li {
  position: relative;
  padding-top: 10px;
  font-size: 12.5px;
  color: var(--text-4);
  display: flex;
  gap: 6px;
  align-items: center;
}
.gen-steps li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 3px;
  background: rgba(148, 170, 210, 0.1);
}
.gen-steps li.on {
  color: var(--text);
}
.gen-steps li.on::before {
  background: linear-gradient(90deg, var(--teal), rgba(95, 227, 208, 0.2), var(--teal));
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}
.gen-steps li.ok {
  color: var(--text-2);
}
.gen-steps li.ok::before {
  background: rgba(95, 227, 208, 0.55);
}
.gen-steps li svg {
  width: 13px;
  height: 13px;
  color: var(--teal);
}
.gen-tick {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 13px;
  color: var(--text-3);
}
.gen-tick .txt {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gen-tick .tm {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--text-2);
}
.gen-err {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--danger-t);
  font-size: 14px;
}

.rp-head {
  padding: 8px 0 26px;
}
.rp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--text-3);
  text-transform: uppercase;
}
.rp-meta b {
  color: var(--gold);
  font-weight: 500;
}
.rp-title {
  margin-top: 14px;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.005em;
}
.rp-def {
  margin-top: 10px;
  font-size: 16.5px;
  color: var(--text-2);
  max-width: 52em;
}
.rp-goal {
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.rp-goal div {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(17, 23, 36, 0.5);
  box-shadow: 0 0 0 1px var(--line) inset;
}
.rp-goal dt {
  font-size: 12px;
  color: var(--text-3);
}
.rp-goal dd {
  margin: 2px 0 0;
  font-size: 14.5px;
}
.rp-tags {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.rp-tags .tag span {
  color: var(--text-3);
}
.rp-tags .tag b {
  color: var(--text);
  font-weight: 500;
}

.hero-card {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 280px;
  gap: 0;
  overflow: hidden;
}
.gblock {
  --gc: var(--text-4);
  --gt: var(--text-2);
  position: relative;
  padding: 26px 26px 24px;
  display: grid;
  align-content: center;
  justify-items: start;
  border-right: 1px solid var(--line);
  background: radial-gradient(120% 90% at 20% 30%, color-mix(in srgb, var(--gc) 18%, transparent), transparent 70%);
  overflow: hidden;
}
.gblock .k {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--text-3);
}
.slot {
  position: relative;
  height: 150px;
  overflow: hidden;
  /* 左右留出光晕空间（负外边距抵消，不影响布局），否则字母光晕会被裁成方块 */
  padding: 0 48px;
  margin: 4px -48px 2px -52px;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}
.slot-reel {
  display: grid;
}
.slot-reel span {
  height: 150px;
  line-height: 150px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 138px;
  color: var(--gt);
  text-shadow: 0 0 44px color-mix(in srgb, var(--gt) 50%, transparent);
}
.gblock.spinning .slot-reel {
  animation: reel 0.9s linear infinite;
}
.gblock.spinning .slot-reel span {
  color: var(--text-3);
  text-shadow: none;
  filter: blur(1.5px);
}
@keyframes reel {
  to {
    transform: translateY(-600px);
  }
}
.gblock .flash {
  position: absolute;
  left: 60px;
  top: 50%;
  width: 260px;
  height: 260px;
  margin: -130px 0 0 -130px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--gt) 45%, transparent), transparent 65%);
  opacity: 0;
  pointer-events: none;
}
.gblock.revealed .flash {
  animation: flash 1.4s var(--ease-out);
}
@keyframes flash {
  15% {
    opacity: 1;
    transform: scale(1.1);
  }
  to {
    opacity: 0;
    transform: scale(1.6);
  }
}
.gname {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}
.gact {
  margin-top: 4px;
  font-size: 14px;
  color: var(--text-2);
}
.dblock {
  padding: 18px 10px 14px;
  display: grid;
  justify-items: center;
  align-content: center;
  border-right: 1px solid var(--line);
  min-width: 0;
}
.dial {
  width: 100%;
  max-width: 330px;
}
.dial-note {
  margin-top: 4px;
  padding: 0 14px;
  font-size: 12.5px;
  color: var(--text-3);
  text-align: center;
  line-height: 1.55;
}
.dial-note b {
  color: var(--warn-t);
  font-weight: 600;
}
.sblock {
  display: grid;
  align-content: center;
}
.stat {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 2px 10px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
}
.stat:last-child {
  border-bottom: 0;
}
.stat .k {
  font-size: 12.5px;
  color: var(--text-3);
}
.stat .v {
  font-size: 17px;
  font-weight: 650;
  text-align: right;
}
.stat .v small {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
}
.stat .s {
  grid-column: 1 / -1;
  font-size: 11.5px;
  color: var(--text-3);
  text-align: right;
  margin-top: -2px;
}

.oneliner {
  position: relative;
  margin: 22px 0 0;
  padding: 22px 26px 22px 58px;
  border-radius: var(--r-lg);
  background: linear-gradient(90deg, rgba(233, 199, 123, 0.08), rgba(233, 199, 123, 0.015));
  box-shadow: 0 0 0 1px var(--gold-line) inset;
  font-size: 18px;
  line-height: 1.75;
  font-weight: 500;
  color: var(--text);
}
.oneliner::before {
  content: '“';
  position: absolute;
  left: 20px;
  top: 8px;
  font-family: var(--f-display);
  font-size: 44px;
  line-height: 1;
  color: var(--gold);
}
.oneliner .skeleton {
  width: 90%;
  height: 14px;
}

.sec {
  margin-top: 46px;
}
.sec-h {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.sec-h .no {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.sec-h h2 {
  font-size: 21px;
  font-weight: 650;
}
.sec-h .sub {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--text-3);
}

/* 八维评分 */
.dims {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.dims-chart {
  padding: 20px 16px 16px;
  position: sticky;
  top: calc(var(--topbar) + 70px);
}
.dims-chart .cap {
  margin-top: 8px;
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.6;
}
.dims-chart .total {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--text-2);
}
.dims-chart .total b {
  font-family: var(--f-mono);
  color: var(--text);
}
.dlist {
  display: grid;
  gap: 10px;
}
.drow {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(17, 23, 36, 0.5);
  box-shadow: 0 0 0 1px var(--line) inset;
  animation: fadeUp 0.5s var(--ease-out) both;
}
.drow-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
}
.drow .nm {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  min-width: 0;
}
.drow .nm .no {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-4);
}
.drow .nm b {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.drow .nm .w {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-3);
  white-space: nowrap;
}
.meter {
  position: relative;
  display: grid;
  grid-template-columns: repeat(10, 12px);
  gap: 2px;
}
.meter i {
  height: 14px;
  border-radius: 2px;
  background: rgba(148, 170, 210, 0.1);
}
.meter i.on {
  background: var(--mc, var(--gold));
}
.meter .ghost {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  border-radius: 1px;
  background: var(--text-2);
  box-shadow: 0 0 0 2px var(--panel);
}
.drow .val {
  display: flex;
  align-items: baseline;
  gap: 10px;
  justify-content: flex-end;
  min-width: 128px; /* 容得下最宽的「5.0 /5 · 20.0分」，各行评分条对齐 */
}
.drow .val b {
  font-family: var(--f-mono);
  font-size: 16px;
  font-weight: 600;
}
.drow .val span {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--text-3);
}
.drow .txt {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px 22px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-2);
}
.drow .txt p {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
}
.drow .txt p > span:first-child {
  font-size: 11.5px;
  color: var(--text-4);
  padding-top: 1px;
  white-space: nowrap;
}
.drow .adj {
  grid-column: 1 / -1;
  color: var(--warn-t);
}
.drow .adj > span:first-child {
  color: var(--warn) !important;
}

/* 反方审查 */
.devil-sum {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(229, 72, 77, 0.06);
  box-shadow: 0 0 0 1px rgba(229, 72, 77, 0.25) inset;
  font-size: 15px;
  line-height: 1.7;
}
.devil-sum .tag {
  flex: none;
  margin-top: 2px;
}
.devil-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}
.dq {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(17, 23, 36, 0.5);
  box-shadow: 0 0 0 1px var(--line) inset;
  animation: fadeUp 0.5s var(--ease-out) both;
}
.dq .q {
  font-size: 12px;
  color: var(--text-3);
  display: flex;
  gap: 8px;
}
.dq .q i {
  font-style: normal;
  font-family: var(--f-mono);
  color: var(--danger-t);
}
.dq p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.65;
}
.objs {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.obj {
  position: relative;
  padding: 16px 16px 16px 50px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(229, 72, 77, 0.08), rgba(229, 72, 77, 0.02));
  box-shadow: 0 0 0 1px rgba(229, 72, 77, 0.22) inset;
  font-size: 14px;
  line-height: 1.65;
}
.obj::before {
  content: attr(data-n);
  position: absolute;
  left: 16px;
  top: 12px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--danger-t);
}
.sub-h {
  margin: 22px 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  display: flex;
  gap: 8px;
  align-items: center;
}
.sub-h svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--gold);
}
.adjs {
  display: grid;
  gap: 8px;
}
.adjs li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--text-2);
}
.adjs li b {
  color: var(--text);
  font-weight: 600;
}
.adjs li .mono {
  color: var(--warn-t);
}

/* 正反方 */
.procon {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.pc {
  padding: 20px;
}
.pc h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 650;
}
.pc h3 i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--ok-t);
}
.pc.con h3 i {
  background: var(--danger-t);
}
.pc ol {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  counter-reset: pc;
}
.pc li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  font-size: 14.5px;
  line-height: 1.65;
  counter-increment: pc;
}
.pc li::before {
  content: counter(pc, decimal-leading-zero);
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--text-4);
  padding-top: 3px;
}

/* 关键判断 */
.keys {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.kcell {
  padding: 16px;
  border-radius: 12px;
  background: rgba(17, 23, 36, 0.55);
  box-shadow: 0 0 0 1px var(--line) inset;
}
.kcell .k {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12.5px;
  color: var(--text-3);
}
.kcell .k svg {
  width: 15px;
  height: 15px;
  color: var(--gold-2);
}
.kcell p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.65;
}

/* 行动方案 */
.action {
  padding: 24px;
}
.action-h {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.action-h .gbadge {
  width: 40px;
  height: 40px;
  font-size: 19px;
  border-radius: 10px;
}
.action-h .t {
  flex: 1;
  min-width: 240px;
}
.action-h .t span {
  font-size: 12.5px;
  color: var(--text-3);
}
.action-h .t b {
  display: block;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.5;
}
.plan {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
}
.plan div {
  padding: 13px 15px;
  border-radius: 11px;
  background: rgba(5, 7, 11, 0.45);
  box-shadow: 0 0 0 1px var(--line) inset;
}
.plan dt {
  font-size: 12px;
  color: var(--gold-2);
  font-weight: 500;
}
.plan dd {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.6;
}

/* 验证与退出 */
.valid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 14px;
}
.vcard {
  padding: 20px;
}
.vrow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.vbox {
  padding: 12px 14px;
  border-radius: 11px;
  background: rgba(5, 7, 11, 0.45);
  box-shadow: 0 0 0 1px var(--line) inset;
}
.vbox span {
  font-size: 12px;
  color: var(--text-3);
}
.vbox b {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}
.metrics {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}
.metrics li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
}
.metrics li::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
}
.ladder {
  position: relative;
  display: grid;
  gap: 8px;
}
.rung {
  display: grid;
  grid-template-columns: 30px 110px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
  border-radius: 11px;
  background: rgba(5, 7, 11, 0.4);
  box-shadow: 0 0 0 1px var(--line) inset;
  font-size: 13.5px;
  line-height: 1.55;
}
.rung .ico {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  font-size: 12px;
}
.rung .ico svg {
  width: 14px;
  height: 14px;
}
.rung .k {
  font-size: 12.5px;
  color: var(--text-3);
  font-weight: 500;
}
.rung.up .ico {
  color: var(--ok-t);
  background: var(--ok-soft);
}
.rung.down .ico {
  color: var(--warn-t);
  background: var(--warn-soft);
}
.rung.stop .ico {
  color: var(--danger-t);
  background: var(--danger-soft);
}
.rung.now {
  background: color-mix(in srgb, var(--gc) 14%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--gc) 60%, transparent) inset;
}
.rung.now .k {
  color: var(--text);
}
.rung.reached {
  opacity: 0.5;
}

/* 红线检查 */
.checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.ccard {
  padding: 18px;
}
.ccard h3 {
  font-size: 15px;
  font-weight: 650;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}
.ccard h3 span {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
}
.ccard-d {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-3);
}
.clist {
  margin-top: 12px;
  display: grid;
  gap: 2px;
}
.clist li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  padding: 8px 6px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2);
}
.clist li .st {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  margin-top: 1px;
  color: var(--ok-t);
  background: var(--ok-soft);
}
.clist li .st svg {
  width: 12px;
  height: 12px;
}
.clist li .tx small {
  display: block;
  color: var(--text-3);
  font-size: 12px;
  margin-top: 1px;
}
.clist li.hit {
  background: var(--warn-soft);
  color: var(--text);
}
.clist li.hit .st {
  color: #1d1305;
  background: var(--warn);
}
.clist.v li.hit {
  background: var(--danger-soft);
}
.clist.v li.hit .st {
  color: #fff;
  background: var(--danger);
}
.clist li.no .st {
  color: var(--text-3);
  background: rgba(148, 170, 210, 0.1);
}

/* 访谈记录 */
.trans {
  display: grid;
  gap: 8px;
}
.trans details {
  border-radius: 12px;
  background: rgba(17, 23, 36, 0.45);
  box-shadow: 0 0 0 1px var(--line) inset;
}
.trans summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 13px 16px;
}
.trans summary::-webkit-details-marker {
  display: none;
}
.trans summary .qn {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--gold);
}
.trans summary .qt {
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trans summary .sc {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--text-2);
}
.trans summary svg {
  width: 14px;
  height: 14px;
  color: var(--text-3);
  transition: transform 0.2s;
}
.trans details[open] summary svg {
  transform: rotate(180deg);
}
.trans .tb {
  padding: 0 16px 16px 72px;
  display: grid;
  gap: 10px;
  font-size: 14px;
  line-height: 1.7;
}
.trans .tb .lb {
  font-size: 12px;
  color: var(--text-3);
  display: block;
}
.trans .tb .an {
  white-space: pre-wrap;
  color: var(--text);
}
.trans .tb .nt {
  color: #bff5ec;
}

.rp-foot {
  margin-top: 50px;
  padding: 22px 24px;
  border-radius: var(--r-lg);
  box-shadow: 0 0 0 1px var(--line) inset;
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.7;
}
.rp-foot p {
  flex: 1;
  min-width: 260px;
}
.rp-foot .acts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pending-box {
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 0 0 1px var(--line) inset;
  background: rgba(17, 23, 36, 0.35);
}
.pending-box .lbl {
  font-size: 12.5px;
  color: var(--text-3);
  margin-bottom: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ---------- 图表 ---------- */
.rose {
  width: 100%;
  height: auto;
  overflow: visible;
}
.rose .ring {
  fill: none;
  stroke: rgba(148, 170, 210, 0.11);
  stroke-width: 1;
}
.rose .ring.outer {
  stroke: rgba(148, 170, 210, 0.26);
}
.rose .spoke {
  stroke: rgba(148, 170, 210, 0.1);
  stroke-width: 1;
}
.rose .bgsec {
  fill: rgba(148, 170, 210, 0.035);
}
.rose .sec {
  fill: var(--rc, var(--teal));
  fill-opacity: 0.8;
  stroke: var(--panel);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  transform-origin: 0 0;
  transition: transform 1s var(--ease-out), fill-opacity 0.3s;
}
.rose .sec.new {
  animation: secGlow 1.6s var(--ease-out);
}
@keyframes secGlow {
  0% {
    fill-opacity: 1;
    filter: drop-shadow(0 0 10px var(--rc, var(--teal)));
  }
}
.rose .ghost {
  fill: none;
  stroke: var(--text);
  stroke-width: 1.5;
  stroke-opacity: 0.75;
}
.rose .lbl {
  font-family: var(--f-sans);
  font-size: 11.5px;
  fill: var(--text-2);
}
.rose .lbl.dim {
  fill: var(--text-4);
}
.rose .lbl-v {
  font-family: var(--f-mono);
  font-size: 11px;
  fill: var(--text);
  font-weight: 600;
}
.rose .lbl-w {
  font-family: var(--f-mono);
  font-size: 9.5px;
  fill: var(--text-3);
}
.rose .tick {
  font-family: var(--f-mono);
  font-size: 8.5px;
  fill: var(--text-4);
}
.rose .ctr-v {
  font-family: var(--f-sans);
  font-weight: 650;
  font-size: 26px;
  fill: var(--text);
}
.rose .ctr-k {
  font-family: var(--f-mono);
  font-size: 9px;
  fill: var(--text-3);
  letter-spacing: 0.12em;
}
.rose .hit {
  fill: transparent;
  cursor: default;
}
.rose .hit:hover + .hl {
  opacity: 1;
}
.rose .hl {
  fill: none;
  stroke: var(--text);
  stroke-width: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
.scope .rose .sec {
  fill-opacity: 0.55;
}
.scope .rose .lbl {
  font-size: 12px;
}

.dial .arc-bg {
  fill: none;
  stroke: rgba(148, 170, 210, 0.08);
}
.dial .zone {
  fill: none;
  stroke-linecap: butt;
}
.dial .zone.dim {
  stroke-opacity: 0.28;
}
.dial .hatch {
  fill: none;
  stroke-linecap: butt;
}
.dial .tk {
  stroke: rgba(148, 170, 210, 0.3);
  stroke-width: 1;
}
.dial .tk.maj {
  stroke: rgba(148, 170, 210, 0.6);
  stroke-width: 1.5;
}
.dial .tl {
  font-family: var(--f-mono);
  font-size: 10.5px;
  fill: var(--text-3);
}
.dial .zl {
  font-family: var(--f-display);
  font-size: 11px;
  font-weight: 600;
}
.dial .val {
  font-family: var(--f-sans);
  font-weight: 650;
  font-size: 50px;
  fill: var(--text);
  letter-spacing: -0.01em;
}
.dial .val-s {
  font-family: var(--f-mono);
  font-size: 11px;
  fill: var(--text-3);
  letter-spacing: 0.12em;
}
.dial .needle {
  transform-origin: 0 0;
  transition: transform 1.6s var(--ease-out);
}
.dial .track {
  fill: none;
  stroke: var(--text);
  stroke-opacity: 0.8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.6s var(--ease-out);
}
.dial .lock {
  fill: var(--warn);
}

/* ---------- PK ---------- */
.pk {
  padding-top: 26px;
  padding-bottom: 80px;
}
.pk-cols {
  display: grid;
  gap: 14px;
}
/* 纵向顺排：几张卡等高时各行（标题、评级、玫瑰图）横向对齐，按钮统一贴底 */
.pk-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  border-top: 2px solid var(--sc);
}
.pk-card > .btn {
  margin-top: auto;
}
.pk-card .rose {
  max-width: 230px;
}
.pk-card h3 {
  font-size: 16px;
  font-weight: 650;
  display: flex;
  gap: 8px;
  align-items: center;
}
.pk-card h3 i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--sc);
}
.pk-card .meta {
  display: flex;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-2);
  flex-wrap: wrap;
  justify-content: center;
}
.pk-card .meta b {
  font-family: var(--f-mono);
  color: var(--text);
}
.pk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.pk-table th,
.pk-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.pk-table th {
  font-weight: 500;
  color: var(--text-3);
  font-size: 12px;
}
.pk-table td.v {
  font-family: var(--f-mono);
  white-space: nowrap;
}
.pk-table .bar {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pk-table .bar i {
  height: 8px;
  border-radius: 2px;
  background: var(--sc);
}
.pk-table .win {
  color: var(--gold);
  font-weight: 600;
}
.rank {
  display: grid;
  gap: 10px;
}
.rank li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(17, 23, 36, 0.55);
  box-shadow: 0 0 0 1px var(--line) inset;
  animation: fadeUp 0.5s var(--ease-out) both;
}
.rank li .pos {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--text-3);
  text-align: center;
}
.rank li:first-child {
  box-shadow: 0 0 0 1px var(--gold-line) inset;
  background: linear-gradient(90deg, rgba(233, 199, 123, 0.08), rgba(17, 23, 36, 0.55));
}
.rank li:first-child .pos {
  color: var(--gold);
}
.rank li b {
  font-size: 15.5px;
}
.rank li .tag {
  margin-left: 8px;
}
.rank li p {
  font-size: 13.5px;
  color: var(--text-2);
  margin-top: 3px;
}
.pk-why {
  margin-top: 14px;
  padding: 18px 20px;
  font-size: 15px;
  line-height: 1.8;
}
.pk-why .k {
  font-size: 12.5px;
  color: var(--text-3);
  display: block;
  margin-bottom: 4px;
}
.pk-bar {
  position: sticky;
  bottom: 18px;
  z-index: 20;
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px 12px 18px;
  border-radius: 14px;
  background: rgba(17, 23, 36, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px var(--gold-line) inset, 0 20px 40px -12px rgba(0, 0, 0, 0.7);
  animation: fadeUp 0.4s var(--ease-out) both;
}
.pk-bar .t {
  flex: 1;
  font-size: 14px;
}
.legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-2);
}
.legend span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}
.legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--sc);
}

/* ---------- 弹窗 & 提示 ---------- */
.modal-back {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 4, 7, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn 0.2s both;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
}
.modal {
  width: min(440px, 100%);
  padding: 24px;
  display: grid;
  gap: 14px;
  animation: fadeUp 0.35s var(--ease-out) both;
}
.modal h3 {
  font-size: 18px;
  font-weight: 650;
}
.modal p {
  font-size: 14px;
  color: var(--text-2);
}
.modal .row {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
#toasts {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: grid;
  gap: 8px;
  justify-items: center;
  pointer-events: none;
}
.toast {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 14px;
  background: rgba(23, 32, 51, 0.96);
  box-shadow: 0 0 0 1px var(--line-2) inset, 0 16px 40px -12px rgba(0, 0, 0, 0.8);
  animation: fadeUp 0.35s var(--ease-out) both;
}
.toast svg {
  width: 16px;
  height: 16px;
}
.toast.ok svg {
  color: var(--ok-t);
}
.toast.err svg {
  color: var(--danger-t);
}
.toast.out {
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s;
}
.banner {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  background: var(--danger-soft);
  box-shadow: 0 0 0 1px rgba(229, 72, 77, 0.35) inset;
  color: var(--danger-t);
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1100px) {
  .hero-card {
    grid-template-columns: 250px minmax(0, 1fr);
  }
  .sblock {
    grid-column: 1 / -1;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-top: 1px solid var(--line);
  }
  .stat {
    grid-template-columns: 1fr;
    border-bottom: 0;
    border-right: 1px solid var(--line);
    padding: 12px 14px;
  }
  .stat:last-child {
    border-right: 0;
  }
  .stat .v,
  .stat .s {
    text-align: left;
  }
  .dblock {
    border-right: 0;
  }
  .keys {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .checks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dims {
    grid-template-columns: 320px minmax(0, 1fr);
  }
  .wgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 20px;
  }
  /* 单栏时先给标题和输入框，玫瑰图放到表单之后，打开就能直接开始评级 */
  .hero-visual {
    max-width: 420px;
    width: 100%;
    margin: 12px auto 0;
  }
  .tiers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .iv-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .side {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    top: auto;
    z-index: 60;
    max-height: 78vh;
    overflow: auto;
    transform: translateY(calc(100% + 30px));
    transition: transform 0.4s var(--ease-out);
  }
  .side.open {
    transform: none;
  }
  .live-fab {
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 55;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    padding: 0 16px 0 8px;
    border-radius: 14px;
    background: rgba(17, 23, 36, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 0 0 1px var(--teal-line) inset, 0 16px 34px -10px rgba(0, 0, 0, 0.8);
    font-size: 13px;
  }
  .live-fab .gbadge {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    font-size: 15px;
  }
  .live-fab b {
    font-family: var(--f-mono);
  }
  .dims {
    grid-template-columns: 1fr;
  }
  .dims-chart {
    position: static;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
  }
  .procon,
  .valid {
    grid-template-columns: 1fr;
  }
  .objs {
    grid-template-columns: 1fr;
  }
  .iv-head {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 14.5px;
  }
  .topbar {
    gap: 12px;
    padding: 0 14px;
  }
  .brand-name em {
    display: none;
  }
  .nav {
    gap: 0;
  }
  .nav a {
    padding: 6px 8px;
    font-size: 13px;
  }
  .nav a[data-nav='demo'] {
    display: none;
  }
  /* 只改左右：简写会把 .rp/.iv/.pk/.lib 的上下留白一起清零，报告页还会因此被吸顶工具条压住 */
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
  .hero h1 {
    font-size: 40px;
  }
  .start-form {
    padding: 16px;
  }
  .tiers {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .tier {
    padding: 16px 14px;
  }
  .tier-letter {
    font-size: 42px;
  }
  .wgrid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .wcard {
    padding: 14px 16px;
  }
  .wv b {
    font-size: 22px;
  }
  .wcard h3 {
    margin-top: 6px;
  }
  .wtrack {
    padding-top: 12px;
  }
  .flow {
    grid-template-columns: 1fr;
  }
  .steps {
    gap: 3px;
  }
  .step .l {
    display: none;
  }
  .qcard {
    padding: 18px 16px 16px;
  }
  .qtext {
    font-size: 17.5px;
  }
  .cg {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .cg-label {
    padding-top: 0;
  }
  .ai {
    margin-left: 0;
    padding: 14px 14px 16px;
  }
  .ai::before {
    display: none;
  }
  .cbar .kbd-hint {
    display: none;
  }
  .hero-card {
    grid-template-columns: 1fr;
  }
  .gblock {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 18px;
    padding: 18px 20px;
  }
  .gblock .k {
    grid-column: 1 / -1;
  }
  .slot {
    height: 100px;
    grid-row: span 2;
  }
  .slot-reel span {
    height: 100px;
    line-height: 100px;
    font-size: 92px;
  }
  @keyframes reel {
    to {
      transform: translateY(-400px);
    }
  }
  .sblock {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .stat:nth-child(odd) {
    border-right: 1px solid var(--line);
  }
  .stat:last-child {
    grid-column: 1 / -1;
  }
  .oneliner {
    font-size: 16px;
    padding: 18px 18px 18px 46px;
  }
  .oneliner::before {
    left: 14px;
  }
  .rp-goal {
    grid-template-columns: 1fr;
  }
  .drow-top {
    grid-template-columns: 1fr auto;
  }
  .drow .val {
    min-width: 0; /* 窄屏评分条独占一行，不需要对齐列宽 */
  }
  .devil-sum {
    flex-direction: column;
    gap: 10px;
  }
  .drow .meter {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }
  .drow .txt {
    grid-template-columns: 1fr;
  }
  .keys,
  .checks {
    grid-template-columns: 1fr;
  }
  .vrow {
    grid-template-columns: 1fr;
  }
  .rung {
    grid-template-columns: 28px minmax(0, 1fr);
  }
  .rung .k {
    grid-column: 2;
  }
  .rung .tx {
    grid-column: 2;
  }
  .trans summary {
    grid-template-columns: 34px minmax(0, 1fr) auto;
  }
  .trans summary .sc {
    display: none;
  }
  .trans .tb {
    padding: 0 14px 14px;
  }
  .sec-h .sub {
    margin-left: 0;
    width: 100%;
  }
  .rp-toolbar .btn span {
    display: none;
  }
  .gen-steps li {
    font-size: 0;
  }
  .gen-steps li svg {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   打印 / 导出 PDF
   ========================================================================== */
@media print {
  :root {
    color-scheme: light;
    --panel: #ffffff;
    --panel-2: #ffffff;
    --line: #dde2ea;
    --line-2: #cfd6e0;
    --line-3: #b8c1ce;
    --text: #111827;
    --text-2: #374151;
    --text-3: #6b7280;
    --text-4: #9ca3af;
    --gold: #8a6512;
    --gold-2: #8a6512;
    --gold-line: #d9c28c;
    --gold-soft: #faf5e8;
    --teal: #0f766e;
    --teal-line: #99d5cc;
    --teal-soft: #eefaf8;
    --tS: #8a6512;
    --tA: #0b7a5a;
    --tB: #1d5fd1;
    --tC: #c0282e;
    --danger-t: #c0282e;
    --warn-t: #9a6a0f;
    --ok-t: #0b7a5a;
  }
  @page {
    size: A4;
    margin: 14mm 12mm;
  }
  body {
    background: #fff;
    color: var(--text);
    font-size: 12px;
  }
  .bg,
  .topbar,
  .rp-toolbar,
  .gen,
  .rp-foot .acts,
  #toasts,
  .live-fab {
    display: none !important;
  }
  .wrap {
    max-width: none;
    padding: 0;
  }
  .panel,
  .drow,
  .dq,
  .kcell,
  .plan div,
  .vbox,
  .rung,
  .trans details,
  .rp-goal div {
    background: #fff !important;
    box-shadow: 0 0 0 1px var(--line) inset !important;
  }
  .hud::before,
  .hud::after {
    display: none;
  }
  .sec,
  .hero-card,
  .drow,
  .dq,
  .obj,
  .kcell,
  .rung,
  .ccard,
  .trans details {
    break-inside: avoid;
  }
  .sec {
    margin-top: 26px;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .slot-reel span,
  .scope-letter,
  .tier-letter {
    text-shadow: none !important;
    filter: none !important;
  }
  .gblock .flash {
    display: none;
  }
  .dims-chart {
    position: static;
  }
  .trans details .tb {
    display: grid !important;
  }
  .oneliner {
    background: var(--gold-soft) !important;
  }
  .devil-sum,
  .obj {
    background: #fff5f5 !important;
  }
  .rose .sec {
    fill-opacity: 0.85;
  }
}

/* ==========================================================================
   补充：等级色特异性、访谈状态、生成面板、项目PK
   ========================================================================== */

/* 等级色：组件（.gblock / .tier / .gbadge 等）自带默认 --gc/--gt，这里提高特异性确保等级色生效 */
.g-S.g-S {
  --gc: var(--gS);
  --gt: var(--tS);
}
.g-A.g-A {
  --gc: var(--gA);
  --gt: var(--tA);
}
.g-B.g-B {
  --gc: var(--gB);
  --gt: var(--tB);
}
.g-C.g-C {
  --gc: var(--gC);
  --gt: var(--tC);
}

.lib {
  padding-top: 26px;
  padding-bottom: 80px;
}
.page-h {
  margin: 14px 0 26px;
}

/* 访谈步骤条（按钮） */
.step {
  text-align: left;
}
.step:disabled {
  cursor: default;
}
.step:not(:disabled):not(.cur):hover {
  color: var(--text-2);
}
.step.ask {
  color: var(--text);
}
.step.ask::before {
  background: linear-gradient(90deg, var(--teal), rgba(95, 227, 208, 0.35));
  box-shadow: 0 0 12px rgba(95, 227, 208, 0.4);
}
.step.ask .sc {
  color: var(--teal);
}
.step.err::before {
  background: var(--danger);
}
.step.err .sc {
  color: var(--danger-t);
}

/* 「不知道 / 待验证」二次确认 */
.btn-text.armed {
  color: var(--warn-t);
  background: var(--warn-soft);
  box-shadow: 0 0 0 1px rgba(224, 163, 58, 0.45) inset;
}

/* 报告卡片：整卡可点，操作区浮在链接之上 */
.rcard h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.rcard h3 a:focus-visible {
  outline: none;
}
.rcard:has(h3 a:focus-visible) {
  box-shadow: 0 0 0 2px var(--gold) inset;
}
.rcard .ops {
  position: relative;
  z-index: 1;
}

/* 报告生成面板 */
.gen-tick .eta {
  font-size: 11.5px;
  color: var(--text-4);
  white-space: nowrap;
}
.demo-note {
  margin: 0 0 18px;
}
.demo-note .t b {
  color: var(--teal);
}

/* 项目PK */
.pk .legend {
  margin: -8px 0 16px;
}
.pk-cols[data-n='2'] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.pk-cols[data-n='3'] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.pk-card .rose {
  width: 100%;
}
.pk-grade {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}
.pk-grade .gbadge {
  width: 46px;
  height: 46px;
  font-size: 22px;
  border-radius: 11px;
}
.pk-grade b {
  font-family: var(--f-mono);
  font-size: 22px;
  font-weight: 600;
}
.pk-grade small {
  font-size: 12px;
  color: var(--text-3);
}
.pk-grade em {
  display: block;
  font-style: normal;
  font-size: 12.5px;
  color: var(--text-2);
}
.pk-one {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-2);
  text-align: left;
}
.pk-scroll {
  overflow-x: auto;
  padding: 4px 10px;
}
.pk-table thead th {
  white-space: nowrap;
}
.pk-table tbody th {
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
}
.pk-table th small {
  display: block;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-4);
}
.pk-table .trk {
  display: inline-flex;
  width: 76px;
  height: 8px;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(148, 170, 210, 0.1);
}
.pk-table .trk i {
  display: block;
  height: 100%;
}
.pk-table .n {
  min-width: 2.2em;
}
.pk-table tr.sum th,
.pk-table tr.sum td {
  border-top: 1px solid var(--line-3);
  font-weight: 600;
  color: var(--text);
}
.pk-table tbody tr:last-child th,
.pk-table tbody tr:last-child td {
  border-bottom: 0;
}
.pk-table.cmp td.w {
  white-space: nowrap;
}
.pk-table.cmp td.w b {
  font-weight: 600;
}
.sw {
  display: inline-block;
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 7px;
  border-radius: 3px;
  background: var(--sc);
}
.pk .gen {
  margin-bottom: 14px;
}
.pk .rank + .pk-why,
.pk .pk-why + .sub-h {
  margin-top: 18px;
}
.pk-why {
  display: grid;
  gap: 14px;
}
.pk-why .adv {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.pk-foot {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  font-size: 12.5px;
  color: var(--text-3);
}

@media (max-width: 720px) {
  .pk-cols[data-n] {
    grid-template-columns: 1fr;
  }
  .gen-tick .eta {
    display: none;
  }
  .crumb {
    min-width: 0;
    overflow: hidden;
  }
  .crumb > span:last-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .rp-toolbar .btn > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  /* 对比表横向滚动时维度名固定在左侧；容器去掉左右内边距，避免滑过的内容从固定列左边露出来 */
  .pk-scroll {
    padding: 4px 0;
  }
  .pk-table tr > :first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: #0e131d;
    box-shadow: 1px 0 0 var(--line-2);
  }
}

@media print {
  .demo-note,
  .pk-foot .btn {
    display: none !important;
  }
}
