/* =========================================================
   见欲 · 全站样式（结构化层级 + 分类色系 + slim hero）
   ========================================================= */

:root {
  /* ——— 色板 ——— */
  --bg-page: #F0FFFE;
  --bg-surface: #E5F9F8;
  --bg-card: #ffffff;
  --bg-soft: rgba(255, 255, 255, 0.64);
  --bg-deep: #0AADA6;
  --bg-deep-2: #088880;
  --bg-amber: #E89830;
  --bg-amber-soft: #FDEBC8;

  --text-strong: #0D2137;
  --text-body: #1E3448;
  --text-muted: #3A5F72;
  --text-faint: #567888;
  --text-inverse: #F0FFFE;

  --line-soft: rgba(10, 140, 135, 0.08);
  --line-mid: rgba(10, 140, 135, 0.16);
  --line-strong: rgba(10, 140, 135, 0.28);

  /* ——— 维度色 ——— */
  --c-spread: #0AADA6;           /* 传播势能 · 琥珀 */
  --c-spread-soft: #C0F0EE;
  --c-transmission: #D4713A;     /* 传输力 · 暖橙 */
  --c-transmission-soft: #FDEBD8;
  --c-body: #4A7FD4;             /* 本体质量 · 墨绿 */
  --c-body-soft: #D0E4FF;

  --c-hook:     #E0734A;
  --c-psych:    #8A68C0;
  --c-tension:  #4A8EC4;
  --c-share:    #0AADA6;
  --c-friction: #52A87A;

  --c-proposition: #4A7FD4;
  --c-argument:    #4A8EC4;
  --c-evidence:    #D4884A;
  --c-structure:   #52A87A;
  --c-readability: #7A9DB0;
  --c-expression:  #C87AAA;
  --c-depth:       #8A68C0;
  --c-action:      #D4884A;

  /* ——— 字号系统 ——— */
  --fs-display: 28px;    /* Hero h1 */
  --fs-h1: 20px;         /* 页面主标题 */
  --fs-h2: 16px;         /* 段落 section 标题 */
  --fs-h3: 14px;         /* 卡片标题 */
  --fs-body: 14px;
  --fs-small: 13px;
  --fs-caption: 11px;

  /* ——— 圆角 ——— */
  --r-shell: 20px;
  --r-panel: 16px;
  --r-card: 12px;
  --r-chip: 8px;
  --r-pill: 999px;

  /* ——— 阴影 ——— */
  --shadow-card: 0 4px 16px rgba(10, 140, 135, 0.07);
  --shadow-deep: 0 10px 28px rgba(5, 100, 95, 0.22);

  --font-display: "Avenir Next", "SF Pro Display", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  --font-body: "Avenir Next", "PingFang SC", "Microsoft YaHei UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  background: var(--bg-page);
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; }
button:disabled { opacity: 0.6; cursor: wait; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--text-strong); font-family: var(--font-display); }

/* =========================================================
   外壳与顶部导航
   ========================================================= */
.app-shell { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.app-shell-wide { width: min(1240px, calc(100% - 32px)); }

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 12px 0 6px;
  background: linear-gradient(180deg, var(--bg-page) 0%, rgba(224, 252, 252, 0.88) 92%, transparent 100%);
}

.app-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line-soft);
  box-shadow: 0 2px 10px rgba(10, 140, 135, 0.06);
}

.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }

.brand-mark {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #20CEC6 0%, #0AADA6 100%);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 14px; font-weight: 800;
}

.brand-copy { display: grid; gap: 0; }

.brand-copy small {
  color: var(--text-faint);
  font-size: 9px; letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
}

.brand-copy span {
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.top-nav {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px;
  border-radius: var(--r-pill);
  background: rgba(10, 140, 135, 0.06);
}

.top-nav a {
  padding: 7px 14px;
  border-radius: var(--r-pill);
  color: var(--text-muted);
  font-size: 13px; font-weight: 600;
  transition: 0.18s ease;
}

.top-nav a:hover { color: var(--text-strong); }

.top-nav a.is-active {
  color: var(--text-inverse);
  background: var(--bg-deep);
}

.header-tools { display: flex; align-items: center; gap: 8px; }

/* 顶部胶囊：不再像搜索框 */
.search-pill {
  display: inline-flex; align-items: center;
  min-height: 32px;
  max-width: 300px;
  padding: 0 12px;
  border-radius: var(--r-chip);
  background: transparent;
  border: 1px dashed var(--line-mid);
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}

/* =========================================================
   按钮
   ========================================================= */
.solid-pill, .ghost-pill, .link-pill {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: 0.18s ease;
  white-space: nowrap;
}

.solid-pill {
  color: var(--text-strong);
  background: linear-gradient(135deg, #20CEC6 0%, #0AADA6 100%);
  box-shadow: 0 4px 12px rgba(11, 181, 172, 0.30);
}

.solid-pill:hover { transform: translateY(-1px); }

.ghost-pill {
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line-mid);
}

.ghost-pill:hover { background: #fff; }

.link-pill {
  color: var(--text-strong);
  background: transparent;
  border: 1px solid var(--line-mid);
}

/* =========================================================
   页面骨架：slim hero + 内容区
   ========================================================= */
.page-grid {
  padding: 20px 0 48px;
  display: grid;
  gap: 20px;
}

/* slim 页面头：仅用于内页 workspace/optimize/history */
.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 4px 4px;
}

.page-header-text { min-width: 0; display: grid; gap: 4px; }

.page-header .eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-faint);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 700;
}

.page-header h1 {
  color: var(--text-strong);
  font-size: var(--fs-display);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-header .target-chip {
  display: inline-flex; align-items: center; gap: 6px;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: var(--r-chip);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-header .target-chip strong {
  color: var(--text-strong);
  font-weight: 600;
}

.page-header-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* 只在首页保留的"品牌 hero" */
.home-hero {
  padding: 36px 32px 30px;
  border-radius: var(--r-shell);
  background:
    radial-gradient(circle at 80% 15%, rgba(255,255,255,0.08), transparent 45%),
    linear-gradient(135deg, #0AB5AC 0%, #0DC4BA 100%);
  color: var(--text-inverse);
  box-shadow: 0 10px 30px rgba(10, 140, 135, 0.22);
}

.home-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(232, 255, 254, 0.75);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 700;
}

.home-hero h1 {
  margin-top: 8px;
  color: var(--text-inverse);
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.home-hero p {
  margin-top: 12px;
  max-width: 560px;
  color: rgba(232, 255, 254, 0.85);
  font-size: 15px;
  line-height: 1.65;
}

.home-hero .hero-actions { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }

/* =========================================================
   基础卡片
   ========================================================= */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-card);
  padding: 18px 20px;
}

.panel-deep {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-deep-2) 100%);
  color: rgba(232, 255, 254, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--r-panel);
  padding: 18px 20px;
  box-shadow: var(--shadow-deep);
}

.panel-deep h3, .panel-deep h4 { color: var(--text-inverse); }

/* 向后兼容：旧类名仍能用 */
.panel-card { background: var(--bg-card); border: 1px solid var(--line-soft); border-radius: var(--r-panel); box-shadow: var(--shadow-card); padding: 18px 20px; }
.panel-amber { background: linear-gradient(180deg, #CCF5F3 0%, #A8E8E5 100%); border: 1px solid rgba(210, 110, 40, 0.25); border-radius: var(--r-panel); padding: 18px 20px; }

/* 卡片内标题 */
.card-title-row,
.session-head,
.history-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-title-row h3,
.session-head h4 {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.card-title-row p,
.session-head p {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: var(--fs-small);
  line-height: 1.55;
}

.section-title { padding: 6px 4px 0; }
.section-title h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.section-title p { margin-top: 2px; color: var(--text-muted); font-size: var(--fs-small); }

/* 细标签 / 标牌 */
.eyebrow, .subtle-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.muted { color: var(--text-muted); }
.tiny { font-size: 12px; }

.status-chip, .token {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: var(--r-chip);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  background: rgba(10, 140, 135, 0.06);
}

.token.soft { background: rgba(10, 140, 135, 0.07); color: var(--text-muted); }
.token.warn { background: rgba(210, 110, 40, 0.12); color: #7A4A14; }
.status-chip { background: rgba(10, 140, 135, 0.07); }

.panel-deep .status-chip,
.panel-deep .token { background: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.82); }

/* =========================================================
   Classification Bar（分类条 —— 顶部重点）
   ========================================================= */
.classification-bar {
  padding: 14px 18px;
  border-radius: var(--r-panel);
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 12px;
}

.classification-bar-head {
  display: flex; align-items: center; gap: 10px;
}

.classification-bar-head .subtle-label {
  color: var(--text-strong);
  letter-spacing: 0.08em;
}

.classification-bar-head .muted { font-size: 12px; letter-spacing: 0; text-transform: none; }

.classification-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.class-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-card);
  background: var(--bg-surface);
  border: 1px solid var(--line-soft);
}

.class-cell-icon {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: rgba(10, 140, 135, 0.07);
  font-size: 15px;
  line-height: 1;
}

.class-cell-body { min-width: 0; display: grid; gap: 2px; }
.class-cell-body .k { color: var(--text-faint); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }
.class-cell-body .v { color: var(--text-strong); font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.classification-reason {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  padding: 10px 12px;
  border-radius: var(--r-card);
  background: rgba(10, 140, 135, 0.06);
  border-left: 3px solid var(--c-body);
}

/* =========================================================
   工作区 Tab · 传播势能 / 本体质量
   ========================================================= */
/* Tab strip — sits flush on top of the panel */
.workspace-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  position: relative;
  z-index: 1;
}

.workspace-tab {
  display: grid;
  gap: 3px;
  padding: 13px 20px 15px;
  border-radius: 14px 14px 0 0;
  border: 1.5px solid var(--line-soft);
  border-bottom: none;
  text-align: left;
  color: var(--text-body);
  background: var(--bg-surface);
  transition: background 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
  min-height: 0;
  position: relative;
}

/* gap between the two tabs */
.workspace-tab + .workspace-tab {
  margin-left: 4px;
}

.workspace-tab:hover:not(.is-active) {
  background: rgba(255,255,255,0.85);
}

/* Active tab: white bg, accent top bar, bottom border hidden so it bleeds into panel */
.workspace-tab.is-active {
  background: #fff;
  border-color: var(--line-soft);
  border-bottom: 2px solid #fff; /* covers the panel's top border */
  margin-bottom: -2px;           /* pulls tab down to overlap panel border */
}

.workspace-tab[data-workspace-tab="spread"].is-active {
  box-shadow: inset 0 3px 0 var(--c-spread);
}

.workspace-tab[data-workspace-tab="body"].is-active {
  box-shadow: inset 0 3px 0 var(--c-body);
}

.workspace-tab-label {
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.workspace-tab.is-active .workspace-tab-label {
  color: var(--text-strong);
}

.workspace-tab-note {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
  opacity: 0.7;
}

.workspace-tab.is-active .workspace-tab-note {
  opacity: 1;
}

.workspace-tab[data-workspace-tab="spread"].is-active .workspace-tab-label {
  color: var(--c-spread);
}

.workspace-tab[data-workspace-tab="body"].is-active .workspace-tab-label {
  color: var(--c-body);
}

/* Panel container — white box with border that the tabs sit on top of */
.workspace-panels {
  display: grid;
  gap: 0;
  align-items: start;
  background: #fff;
  border: 1.5px solid var(--line-soft);
  border-radius: 0 0 var(--r-panel) var(--r-panel);
  position: relative;
  z-index: 0;
}

.workspace-panel[hidden] {
  display: none !important;
}

/* Strip the q-card's own border/shadow when inside workspace-panels so the container handles it */
.workspace-panels > .workspace-panel {
  border: none;
  box-shadow: none;
  border-radius: 0 0 var(--r-panel) var(--r-panel);
  background: transparent;
}

.q-card {
  --accent: var(--c-body);
  --accent-soft: var(--c-body-soft);
  position: relative;
  border-radius: var(--r-panel);
  padding: 18px 20px 20px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 14px;
  align-content: start;
}

.q-card[data-kind="spread"] { --accent: var(--c-spread); --accent-soft: var(--c-spread-soft); }
.q-card[data-kind="body"]   { --accent: var(--c-body);   --accent-soft: var(--c-body-soft); }

.q-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 4px; height: 100%;
  border-top-left-radius: var(--r-panel);
  border-bottom-left-radius: var(--r-panel);
  background: var(--accent);
  opacity: 0.85;
}

.q-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px;
}

.q-card-top {
  display: grid;
  gap: 12px;
  align-content: start;
}

.q-title { display: grid; gap: 4px; min-width: 0; }
.q-title .kicker {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 800;
}
.q-title h2 { font-size: var(--fs-h1); line-height: 1.25; letter-spacing: -0.01em; }
.q-title p { color: var(--text-muted); font-size: 13px; line-height: 1.55; }

/* 评分总览：分数 + 迷你圆环 */
.q-score {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 10px;
  border-radius: var(--r-chip);
  background: var(--accent-soft);
}

.q-score-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1;
}

.q-score-total { color: var(--text-muted); font-size: 11px; line-height: 1.1; }

.q-mini-gauge {
  --value: 74;
  --accent: var(--c-spread);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--value) * 1%), rgba(15, 44, 23, 0.08) 0);
  position: relative;
  flex: 0 0 auto;
}

.q-mini-gauge::before {
  content: "";
  position: absolute; inset: 4px;
  border-radius: 50%;
  background: var(--bg-card);
}

.q-mini-gauge span {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 14px; font-weight: 800;
  color: var(--text-strong);
  letter-spacing: -0.02em;
}

.q-verdict {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-body);
  padding: 10px 12px;
  background: var(--bg-surface);
  border-radius: var(--r-card);
  border-left: 3px solid var(--accent);
}

.q-summary-stack {
  display: grid;
  gap: 10px;
  align-content: start;
}

.q-meta-row {
  display: grid;
  gap: 10px;
}

.q-card-spread .q-verdict {
  font-size: 15px;
  line-height: 1.75;
}

.body-section-head {
  display: grid;
  gap: 4px;
}

.body-section-head p {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.55;
}

.body-overview-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
  align-items: start;
}

.body-radar-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: var(--r-card);
  background: linear-gradient(180deg, rgba(220, 246, 244, 0.86) 0%, rgba(238, 252, 252, 0.94) 100%);
  border: 1px solid var(--line-soft);
  align-content: start;
}

.body-radar-visual {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 8px 6px 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(10, 140, 135, 0.08);
}

.body-radar-svg {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
  overflow: visible;
}

.body-radar-ring,
.body-radar-axis {
  fill: none;
  stroke: rgba(10, 140, 135, 0.10);
  stroke-width: 1;
}

.body-radar-axis {
  stroke: rgba(10, 140, 135, 0.14);
}

.body-radar-area {
  fill: rgba(74, 127, 212, 0.18);
  stroke: #4A7FD4;
  stroke-width: 2;
}

.body-radar-dot {
  fill: #fff;
  stroke: #4A7FD4;
  stroke-width: 2;
}

.body-radar-core {
  fill: var(--c-body);
}

.body-radar-label,
.body-radar-level {
  fill: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.body-radar-level {
  font-size: 10px;
  font-weight: 600;
}

.body-radar-legend {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
}

.body-radar-legend li {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(10, 140, 135, 0.08);
}

.body-review-grid {
  margin-top: 0;
  align-content: start;
  gap: 10px;
}

.body-review-grid .analysis-box {
  min-height: 92px;
}

.body-radar-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--c-body);
}

.body-radar-legend-name {
  min-width: 0;
  color: var(--text-strong);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.body-radar-legend-score {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--text-strong);
}

.body-radar-legend li[data-kind="proposition"] .body-radar-legend-dot { background: var(--c-proposition); }
.body-radar-legend li[data-kind="argument"] .body-radar-legend-dot { background: var(--c-argument); }
.body-radar-legend li[data-kind="evidence"] .body-radar-legend-dot { background: var(--c-evidence); }
.body-radar-legend li[data-kind="structure"] .body-radar-legend-dot { background: var(--c-structure); }
.body-radar-legend li[data-kind="readability"] .body-radar-legend-dot { background: var(--c-readability); }
.body-radar-legend li[data-kind="expression"] .body-radar-legend-dot { background: var(--c-expression); }
.body-radar-legend li[data-kind="depth"] .body-radar-legend-dot { background: var(--c-depth); }
.body-radar-legend li[data-kind="action"] .body-radar-legend-dot { background: var(--c-action); }
.body-radar-legend li.is-foundation .body-radar-legend-dot { background: #7A9EC4; opacity: 0.7; }
.body-radar-legend li.is-foundation { opacity: 0.8; }

/* 维度卡（本体质量 + 传播势能通用） */
.dim-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dim-card {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-card);
  background: var(--bg-surface);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--dim-color, var(--accent));
}

.dim-icon {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--dim-color, var(--accent)) 12%, transparent);
  color: var(--dim-color, var(--accent));
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
}

.dim-body { min-width: 0; display: grid; gap: 2px; }

.dim-name {
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.005em;
}

.dim-reason {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dim-score {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--dim-color, var(--accent));
  letter-spacing: -0.02em;
}

/* 维度色 */
.dim-card[data-kind="hook"]        { --dim-color: var(--c-hook); }
.dim-card[data-kind="psychology"]  { --dim-color: var(--c-psych); }
.dim-card[data-kind="tension"]     { --dim-color: var(--c-tension); }
.dim-card[data-kind="share"]       { --dim-color: var(--c-share); }
.dim-card[data-kind="friction"]    { --dim-color: var(--c-friction); }
.dim-card[data-kind="proposition"] { --dim-color: var(--c-proposition); }
.dim-card[data-kind="argument"]    { --dim-color: var(--c-argument); }
.dim-card[data-kind="evidence"]    { --dim-color: var(--c-evidence); }
.dim-card[data-kind="structure"]   { --dim-color: var(--c-structure); }
.dim-card[data-kind="readability"] { --dim-color: var(--c-readability); }
.dim-card[data-kind="expression"]  { --dim-color: var(--c-expression); }
.dim-card[data-kind="depth"]              { --dim-color: var(--c-depth); }
.dim-card[data-kind="action"]             { --dim-color: var(--c-action); }
.dim-card[data-kind="concrete"]           { --dim-color: #D4713A; }
.dim-card[data-kind="example"]            { --dim-color: #C8853A; }
.dim-card[data-kind="analogy"]            { --dim-color: #9B6AC4; }
.dim-card[data-kind="narrative"]          { --dim-color: #4A9E7A; }
.dim-card[data-kind="memory"]             { --dim-color: #C06080; }
.dim-card[data-kind="rhythm"]             { --dim-color: #5A8EC4; }
.dim-card[data-kind="body"]               { --dim-color: var(--c-body); }
.dim-card[data-kind="spread"]             { --dim-color: var(--c-spread, #E07840); }
.dim-card[data-kind="foundation"]         { --dim-color: #7A9EC4; }

.dim-section-label {
  grid-column: 1 / -1;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 0 2px;
  border-top: 1px solid var(--border-subtle, rgba(0,0,0,0.08));
  margin-top: 4px;
}

.q-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  padding-top: 4px;
}

.q-foot .muted { font-size: 12px; }

.q-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--accent);
  font-size: 12px; font-weight: 700;
  padding: 6px 10px;
  border-radius: var(--r-chip);
  background: var(--accent-soft);
}

.q-toggle:hover { filter: brightness(0.96); }

/* 折叠 */
.dim-overflow.is-collapsed { display: none; }

/* pill 集合 */
.pill-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: flex-start;
}

.pill-stack .token {
  flex: 0 0 auto;
}

/* =========================================================
   底部 CTA 行
   ========================================================= */
.action-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.action-bar-inline {
  margin-top: 4px;
}

.q-card .action-tile {
  background: var(--bg-surface);
  box-shadow: none;
}

.action-tile {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r-panel);
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-card);
}

.action-tile-body { display: grid; gap: 3px; min-width: 0; }
.action-tile-body h3 { font-size: 15px; font-weight: 700; }
.action-tile-body p { color: var(--text-muted); font-size: 12px; line-height: 1.5; }

/* =========================================================
   深度评测（折叠）—— 心理链路：钩子→需要→奖赏→代价→收口
   深色底，但内部排版和浅色主页保持同一套节奏和层级
   ========================================================= */
.deep-eval-panel {
  --deep-fg: #FFFFFF;
  --deep-fg-soft: rgba(255, 255, 255, 0.88);
  --deep-fg-faint: rgba(255, 255, 255, 0.68);
  --deep-surface: rgba(255, 255, 255, 0.07);
  --deep-line: rgba(255, 255, 255, 0.16);

  display: grid;
  gap: 20px;
  padding: 24px;
  border-radius: var(--r-panel);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(255, 255, 255, 0.06) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-deep-2) 100%);
  color: var(--deep-fg);
  box-shadow: var(--shadow-deep);
}

.deep-eval-panel .subtle-label { color: var(--deep-fg-faint); }
.deep-eval-panel h2,
.deep-eval-panel h3,
.deep-eval-panel h4 { color: var(--deep-fg); }
.deep-eval-panel .muted { color: var(--deep-fg-faint); }

/* ——— Hero：核心判断 ——— */
.deep-hero {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border-radius: var(--r-card);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--deep-line);
  border-left: 3px solid var(--bg-amber);
}

.deep-eyebrow {
  color: var(--bg-amber);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.deep-hero-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.deep-hero-icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--bg-amber);
  font-size: 22px;
}

.deep-hero-body { display: grid; gap: 4px; }

.deep-hero-body h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.deep-hero-body p {
  color: var(--deep-fg-soft);
  font-size: 13px;
  line-height: 1.65;
}

/* ——— 心理链路 5 段 ——— */
.deep-journey {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.journey-stage[data-stage="cost"],
.journey-stage[data-stage="closure"] {
  grid-column: span 1;
}

/* 第 5 段（收口）在偶数布局下单独占一行，避免与"代价"挤在最后 */
.journey-stage[data-stage="closure"] { grid-column: 1 / -1; }

.journey-stage {
  --stage-accent: var(--bg-amber);
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: var(--r-card);
  background: var(--deep-surface);
  border: 1px solid var(--deep-line);
  position: relative;
  align-self: start;
}

.journey-stage::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 3px; height: 28px;
  border-radius: 0 3px 3px 0;
  background: var(--stage-accent);
}

.journey-stage[data-stage="hook"]    { --stage-accent: #e08a4a; }
.journey-stage[data-stage="need"]    { --stage-accent: #b694e4; }
.journey-stage[data-stage="reward"]  { --stage-accent: #F0A847; }
.journey-stage[data-stage="cost"]    { --stage-accent: #e8795e; }
.journey-stage[data-stage="closure"] { --stage-accent: #7fd79f; }

.stage-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.stage-icon {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--stage-accent) 22%, transparent);
  color: var(--deep-fg);
  font-size: 18px;
}

.stage-head-copy { display: grid; gap: 1px; }

.stage-kicker {
  color: var(--stage-accent);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stage-head-copy h4 {
  margin: 0;
  color: var(--deep-fg);
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* 每段的 hero fact：一个核心命名 */
.stage-hero {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: var(--r-chip);
  background: color-mix(in srgb, var(--stage-accent) 12%, rgba(255, 255, 255, 0.02));
  border-left: 2px solid var(--stage-accent);
}

.stage-hero[data-tone="warn"] {
  background: color-mix(in srgb, #e8795e 14%, rgba(255, 255, 255, 0.02));
  border-left-color: #e8795e;
}

.stage-hero-label {
  color: var(--deep-fg-faint);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.stage-hero strong {
  color: var(--deep-fg);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.stage-reason {
  color: var(--deep-fg-soft);
  font-size: 13px;
  line-height: 1.7;
}

/* 代价：价值 vs 风险 分栏 */
.stage-split {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stage-split-item {
  padding: 10px 12px;
  border-radius: var(--r-chip);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--deep-line);
  display: grid;
  gap: 4px;
}

.stage-split-item span {
  color: var(--deep-fg-faint);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.stage-split-item p {
  color: var(--deep-fg);
  font-size: 13px;
  line-height: 1.6;
}

.stage-split-item.is-value { border-left: 2px solid #7fd79f; }
.stage-split-item.is-risk  { border-left: 2px solid #e8795e; }

/* 次级线：概念偷换 / 内心独白 等 */
.stage-lines {
  display: grid;
  gap: 6px;
}
.stage-lines.is-empty { display: none; }

.journey-stage[data-stage="cost"] .stage-lines {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.journey-stage[data-stage="cost"] .stage-lines .stage-line:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.stage-line {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border-radius: var(--r-chip);
  background: rgba(255, 255, 255, 0.03);
}

.stage-line-label {
  color: var(--deep-fg-faint);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.stage-line-body {
  color: var(--deep-fg-soft);
  font-size: 13px;
  line-height: 1.6;
}

.stage-line.is-quote .stage-line-body {
  color: var(--deep-fg);
  font-style: italic;
}

/* 收口段的下一步动作条 */
.stage-action {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: var(--r-chip);
  background: rgba(127, 215, 159, 0.1);
  border: 1px solid rgba(127, 215, 159, 0.28);
}

.stage-action p {
  color: var(--deep-fg);
  font-size: 13px;
  line-height: 1.7;
  font-weight: 500;
}

/* ——— 本体深评：对称于传播心理链路的一段 ——— */
.body-deep {
  display: grid;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--r-card);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--deep-line);
  border-left: 3px solid #7fd79f;
}

.body-deep-head {
  display: grid;
  gap: 6px;
}

.body-deep-head .body-eyebrow {
  color: #9fd8a4;
}

.body-deep-head h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--deep-fg);
}

.body-deep-head p {
  color: var(--deep-fg-soft);
  font-size: 13px;
  line-height: 1.6;
}

.body-deep-split {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.body-deep-card {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--r-chip);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--deep-line);
}

.body-deep-card.is-strong { border-top: 2px solid #7fd79f; }
.body-deep-card.is-weak   { border-top: 2px solid #e8795e; }
.body-deep-card.is-fix    { border-top: 2px solid var(--bg-amber); }

.body-deep-card p {
  color: var(--deep-fg-soft);
  font-size: 13px;
  line-height: 1.7;
}

.bd-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.bd-icon {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 16px;
}

.is-strong .bd-icon { background: rgba(127, 215, 159, 0.18); }
.is-weak   .bd-icon { background: rgba(232, 121, 94, 0.18);  color: #ffbca8; }
.is-fix    .bd-icon { background: rgba(255, 255, 255, 0.18);  color: var(--bg-amber); }

.bd-head-copy { display: grid; gap: 1px; min-width: 0; }

.bd-kicker {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--deep-fg-faint);
}

.is-strong .bd-kicker { color: #9fd8a4; }
.is-weak   .bd-kicker { color: #ffbca8; }
.is-fix    .bd-kicker { color: var(--bg-amber); }

.bd-head-copy h4 {
  margin: 0;
  color: var(--deep-fg);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bd-score {
  color: var(--deep-fg);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.is-strong .bd-score { color: #9fd8a4; }
.is-weak   .bd-score { color: #ffbca8; }

/* ——— 结论三栏 ——— */
.deep-conclusion {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.deep-block {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: var(--r-card);
  background: var(--deep-surface);
  border: 1px solid var(--deep-line);
}

.deep-block.is-risk   { border-top: 2px solid #e8795e; }
.deep-block.is-hook   { border-top: 2px solid #b694e4; }
.deep-block.is-action { border-top: 2px solid var(--bg-amber); }

.deep-block-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.deep-block-icon {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 15px;
}

.deep-block.is-risk   .deep-block-icon { background: rgba(232, 121, 94, 0.18); color: #ffb8a6; }
.deep-block.is-hook   .deep-block-icon { background: rgba(182, 148, 228, 0.18); color: #d9c4ff; }
.deep-block.is-action .deep-block-icon { background: rgba(255, 255, 255, 0.18); color: var(--bg-amber); }

.deep-block-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.deep-block-head span.muted {
  display: block;
  color: var(--deep-fg-faint);
  font-size: 11px;
  line-height: 1.4;
}

/* 通用列表（信任风险 / 心理抓手） */
.notes-list {
  margin: 0; padding: 0; list-style: none;
  display: grid; gap: 6px;
}

.notes-list li {
  padding: 8px 12px;
  border-radius: var(--r-chip);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--deep-line);
  color: var(--deep-fg);
  font-size: 13px;
  line-height: 1.6;
}

.panel-card .notes-list li,
.panel .notes-list li {
  background: var(--bg-surface);
  border-color: var(--line-soft);
  color: var(--text-body);
}

.notes-list strong { color: inherit; font-size: 13px; font-weight: 700; }
.notes-list span { display: block; margin-top: 2px; color: inherit; opacity: 0.78; font-size: 12px; line-height: 1.55; }

/* 首先该修什么：带编号的优先级清单 */
.priority-steps {
  counter-reset: step;
  margin: 0; padding: 0; list-style: none;
  display: grid; gap: 6px;
}

.priority-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 8px 12px 8px 8px;
  border-radius: var(--r-chip);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--deep-fg);
  font-size: 13px;
  line-height: 1.55;
}

.priority-steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 22px; height: 22px;
  border-radius: 7px;
  background: var(--bg-amber);
  color: #0A3038;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

/* ——— 下一步修法（瓶颈 + 修法） ——— */
.deep-nextstep {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--r-card);
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.32);
}

.deep-nextstep-item { display: grid; gap: 4px; }
.deep-nextstep-item p {
  color: var(--deep-fg);
  font-size: 13px;
  line-height: 1.65;
}

.is-hidden { display: none !important; }

/* =========================================================
   首页 · 双栏布局
   ========================================================= */

.home-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  height: calc(100vh - 60px);
  overflow: hidden;
}

/* 左侧边栏 */
.home-sidebar {
  height: 100%;
  overflow-y: auto;
  border-right: 1px solid var(--line-soft);
  padding: 36px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  background: var(--bg-page);
}

.hs-tagline {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.45;
  color: var(--text-strong);
}

.hs-desc {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* 维度说明 */
.hs-dims {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hs-dim-group { display: flex; flex-direction: column; gap: 8px; }

.hs-dim-head {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hs-dim-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hs-dim-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: 0.02em;
}

.hs-dim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 8px;
  padding-left: 15px;
}

.hs-dim-grid span {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  padding: 3px 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 文章列表 */
.hs-articles {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.hs-articles-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hs-article-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hs-article-btn {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: flex-start;
  width: 100%;
  padding: 9px 10px;
  border-radius: var(--r-card);
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.12s ease;
}

.hs-article-btn:hover { background: var(--bg-surface); }

.hs-article-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-top: 1px;
  font-variant-numeric: tabular-nums;
}

.hs-article-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-body);
  line-height: 1.5;
}

.hs-article-btn:hover .hs-article-title { color: var(--text-strong); }

/* 右侧主区域 */
.home-main {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 32px 40px 24px;
  gap: 12px;
  overflow: hidden;
}

.home-main-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-strong);
  flex-shrink: 0;
}

.home-textarea {
  flex: 1;
  min-height: 0;
  resize: none;
  font-size: 14px;
  line-height: 1.75;
}

.home-main-foot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.home-url-input { width: 100%; }

/* =========================================================
   文章阅读器（右侧滑入遮罩）
   ========================================================= */

.article-reader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  pointer-events: none;
  visibility: hidden;
}

.article-reader.is-open {
  pointer-events: all;
  visibility: visible;
}

.reader-scrim {
  flex: 0 0 14%;
  background: rgba(10, 10, 16, 0);
  transition: background 0.3s ease;
  cursor: pointer;
}

.article-reader.is-open .reader-scrim {
  background: rgba(10, 10, 16, 0.48);
}

.reader-panel {
  flex: 1;
  display: flex;
  background: #fff;
  box-shadow: -12px 0 48px rgba(0, 0, 0, 0.14);
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-reader.is-open .reader-panel {
  transform: translateX(0);
}

/* 阅读器左侧导航栏 */
.reader-nav {
  width: 216px;
  flex-shrink: 0;
  border-right: 1px solid var(--line-soft);
  background: var(--bg-page);
  display: flex;
  flex-direction: column;
  padding: 20px 0;
  overflow-y: auto;
}

.reader-close-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color 0.12s;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 12px;
}

.reader-close-btn:hover { color: var(--text-strong); }

.reader-nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 8px;
}

.reader-nav-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  padding: 10px;
  border-radius: var(--r-card);
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  line-height: 1.5;
  transition: background 0.12s, color 0.12s;
}

.reader-nav-item:hover { background: var(--bg-surface); color: var(--text-body); }

.reader-nav-item.is-active {
  background: var(--bg-surface);
  color: var(--text-strong);
  font-weight: 700;
}

.reader-nav-num {
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}

/* 阅读器正文区域 */
.reader-content {
  flex: 1;
  overflow-y: auto;
  padding: 48px 56px;
}

.reader-content-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.3;
  color: var(--text-strong);
  margin-bottom: 28px;
}

.reader-content h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-strong);
  margin: 28px 0 10px;
  letter-spacing: -0.01em;
}

.reader-content p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-body);
  margin-bottom: 14px;
}

.reader-content p:last-child { margin-bottom: 0; }

.reader-content blockquote {
  margin: 16px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--line-mid);
  background: var(--bg-surface);
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-body);
}

.reader-content ul {
  padding-left: 20px;
  margin-bottom: 14px;
}

.reader-content ul li {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-body);
  margin-bottom: 6px;
}

.reader-content strong { color: var(--text-strong); font-weight: 700; }

/* =========================================================
   旧首页兼容 (home-entry / home-articles 已废弃，保留 analysis-box)
   ========================================================= */

.home-entry {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  align-items: start;
}

.home-entry-copy { padding: 8px 0; }

.home-entry-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text-strong);
}

.home-entry-copy p {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}

.home-entry-panel { margin: 0; }

/* 文章列表 */
.home-articles { display: grid; gap: 14px; }

.home-articles-head { display: grid; gap: 4px; }

.home-articles-head p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.article-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-panel);
  overflow: hidden;
  background: #fff;
}

.article-item { border-bottom: 1px solid var(--line-soft); }
.article-item:last-child { border-bottom: none; }

.article-item-btn {
  width: 100%;
  display: grid;
  grid-template-columns: 40px 1fr 24px;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.12s ease;
}

.article-item-btn:hover { background: var(--bg-surface); }

.article-item.is-open .article-item-btn { background: var(--bg-surface); }

.article-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.article-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-strong);
  line-height: 1.45;
}

.article-arrow {
  font-size: 14px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
  text-align: center;
}

.article-item.is-open .article-arrow { transform: rotate(180deg); }

.article-body {
  padding: 0 20px 20px 70px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-body);
}

.article-body p { margin-bottom: 12px; }
.article-body p:last-child { margin-bottom: 0; }

.article-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-strong);
  margin: 24px 0 10px;
  letter-spacing: -0.01em;
}

.article-body blockquote {
  margin: 14px 0;
  padding: 12px 16px;
  border-left: 3px solid var(--line-mid);
  background: var(--bg-surface);
  border-radius: 0 6px 6px 0;
  color: var(--text-body);
  font-size: 14px;
  line-height: 1.75;
}

.article-body ul {
  margin: 10px 0 14px 0;
  padding-left: 20px;
  display: grid;
  gap: 5px;
}

.article-body ul li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-body);
}

.article-body.is-hidden { display: none; }

/* analysis-box (workspace 页也用到，单独保留) */
.analysis-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.analysis-box {
  padding: 12px 14px;
  border-radius: var(--r-card);
  background: var(--bg-surface);
  border: 1px solid var(--line-soft);
  display: grid; gap: 4px;
}

.analysis-box strong {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}

.analysis-box p {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.6;
}

.field-grid { margin-top: 12px; display: grid; gap: 14px; }
.field-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: grid; gap: 6px; }

.field label {
  color: var(--text-strong);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.02em;
}

.textarea, .input {
  width: 100%;
  border: 1px solid var(--line-mid);
  border-radius: var(--r-card);
  padding: 10px 12px;
  background: #fff;
  color: var(--text-strong);
  font-size: 14px;
  line-height: 1.55;
  resize: vertical;
  outline: none;
  transition: 0.15s ease;
}

.textarea::placeholder, .input::placeholder { color: var(--text-faint); }

#optimize-content { min-height: 140px; }

.textarea:focus, .input:focus {
  border-color: var(--c-body);
  box-shadow: 0 0 0 3px rgba(10, 140, 135, 0.09);
}

.ghost-box {
  padding: 10px 12px;
  border-radius: var(--r-card);
  background: var(--bg-surface);
  border: 1px solid var(--line-soft);
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.6;
}

.panel-callout {
  padding: 10px 12px;
  border-radius: var(--r-card);
  background: var(--bg-surface);
  border: 1px solid var(--line-soft);
  font-size: 13px;
  line-height: 1.6;
}

.row-actions {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 4px;
}

.feedback-banner {
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: var(--r-card);
  font-size: 13px;
  line-height: 1.55;
}

.feedback-banner.is-info    { background: rgba(42, 122, 67, 0.08); border: 1px solid rgba(42, 122, 67, 0.15); color: var(--text-strong); }
.feedback-banner.is-warning { background: rgba(210, 110, 40, 0.10); border: 1px solid rgba(210, 110, 40, 0.18); color: #7A4A14; }
.feedback-banner.is-error   { background: rgba(184, 60, 60, 0.08); border: 1px solid rgba(184, 60, 60, 0.2); color: #7a2828; }

.feedback-list { margin: 0; padding-left: 16px; }

/* 抓取来源状态条 —— 告诉用户当前结果来自 Gemini 还是本地规则，
   以及抓到的正文长度和 extractor 命中哪条选择器。
   目的：一眼看出"为什么结果像通用模板" vs "为什么分数很低"。 */
.source-meta {
  margin-top: 4px;
  padding: 6px 10px;
  border-radius: var(--r-card);
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
  background: rgba(10, 140, 135, 0.05);
  border: 1px dashed rgba(10, 140, 135, 0.14);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.source-meta-mode {
  font-weight: 600;
  color: var(--text-strong);
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(10, 140, 135, 0.09);
}
.source-meta[data-mode="gemini"] .source-meta-mode {
  background: rgba(10, 140, 135, 0.15);
  color: #0A7070;
}
.source-meta-divider { color: rgba(0, 0, 0, 0.18); }

/* callout 变体：mode != gemini 时的"这不是真正的分析"告警
   —— 用更大的字号、醒目的黄色边框，防止被当成普通状态条忽略。 */
.source-meta.is-callout {
  display: block;
  padding: 12px 16px;
  background: rgba(210, 110, 40, 0.10);
  border: 1px solid rgba(210, 110, 40, 0.30);
  border-left: 4px solid rgba(210, 110, 40, 0.65);
  font-size: 13px;
  color: #8A4A14;
}
.source-meta.is-callout .source-meta-callout-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #7A4014;
  margin-bottom: 6px;
}
.source-meta.is-callout .source-meta-callout-body {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 6px;
  font-size: 12px;
  color: #7A4A14;
}
.source-meta.is-callout .source-meta-callout-body .source-meta-mode {
  background: rgba(210, 110, 40, 0.15);
  color: #7A4014;
}
.source-meta.is-callout .source-meta-callout-hint {
  font-size: 12px;
  line-height: 1.6;
  color: #8A4A14;
  opacity: 0.88;
}
.source-meta.is-callout code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(210, 110, 40, 0.15);
  color: #7A4014;
}

/* =========================================================
   修改优化页
   ========================================================= */
.optimize-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: 16px;
}

.goal-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 4px;
}

.goal-card {
  min-height: 54px;
  padding: 10px 14px;
  border-radius: var(--r-card);
  text-align: left;
  background: var(--bg-surface);
  border: 1px solid var(--line-soft);
  color: var(--text-strong);
  font-size: 13px; font-weight: 700;
  line-height: 1.35;
  transition: 0.15s ease;
}

.goal-card:hover { background: #fff; border-color: var(--line-mid); }

.goal-card.is-active {
  color: var(--text-inverse);
  background: linear-gradient(180deg, #0AADA6 0%, #088880 100%);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(10, 140, 135, 0.22);
}

.step-grid { display: grid; gap: 10px; }
.stack { display: grid; gap: 12px; }

/* =========================================================
   写法方向选择器
   ========================================================= */

.style-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 4px;
}

.style-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 14px;
  border-radius: var(--r-card);
  text-align: left;
  background: var(--bg-surface);
  border: 1.5px solid var(--line-light);
  cursor: pointer;
  transition: 0.15s ease;
}

.style-card:hover { background: #fff; border-color: var(--line-mid); }

.style-card-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-strong);
  line-height: 1.3;
}

.style-card-desc {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.35;
}

.style-card.is-active {
  background: linear-gradient(180deg, #6c4cdb 0%, #4f35b0 100%);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(108, 76, 219, 0.22);
}

.style-card.is-active .style-card-name,
.style-card.is-active .style-card-desc {
  color: #fff;
}

.style-card.is-active .style-card-desc { opacity: 0.82; }

.style-rec-badge {
  margin-left: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--line-light);
  border-radius: 20px;
  padding: 2px 8px;
  vertical-align: middle;
}

.style-conflict-tip {
  margin-top: 6px;
  font-size: 12px;
  color: #c87a00;
  background: #fff8ec;
  border: 1px solid #f5d17a;
  border-radius: 6px;
  padding: 7px 12px;
  line-height: 1.5;
}

.style-conflict-tip.is-hidden { display: none; }

/* =========================================================
   深度改稿页
   ========================================================= */

/* 目标选择 */
.revise-goal-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 4px;
}

.revise-goal-grid .goal-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.revise-goal-grid .goal-card span {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.72;
}

.revise-goal-grid .goal-card.is-active span { opacity: 0.85; }

/* 决策总卡 */
.revise-decision-card {
  padding: 20px 22px;
  border-radius: var(--r-panel);
  background: linear-gradient(160deg, #0AADA6 0%, #088880 100%);
  color: var(--text-inverse);
  display: grid;
  gap: 14px;
}

.rdc-mode {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.12);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  width: fit-content;
}

.rdc-why {
  font-size: 17px;
  font-weight: 700;
  font-family: var(--font-display);
  line-height: 1.45;
  color: #E0F8F7;
}

.rdc-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.rdc-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.10);
  font-size: 12px;
  font-weight: 600;
  color: #A0E0DC;
}

.rdc-badge-pos {
  background: rgba(210, 110, 40, 0.20);
  color: #F0A847;
}

.rdc-strategies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rdc-strategy-tag {
  padding: 2px 8px;
  border-radius: var(--r-chip);
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 11px;
  color: rgba(255,255,255,0.65);
}

.rdc-gain-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.10);
}

.rdc-gain-item .subtle-label {
  color: rgba(255,255,255,0.45);
  font-size: 11px;
}

.rdc-gain-item p { color: #A0E0DC; font-size: 13px; margin-top: 4px; }

.rdc-gain-item .notes-list { color: #A0E0DC; font-size: 12px; margin-top: 4px; }
.rdc-gain-item .notes-list li { padding: 2px 0; }
.rdc-gain-item .notes-list li::before { color: rgba(255,255,255,0.3); }

/* 题目 + 开头 诊断并排 */
.revise-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.revise-review-panel .card-title-row { align-items: flex-start; }

.revise-verdict-line {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 2px;
}

.revise-review-avg {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--c-body);
  white-space: nowrap;
  flex-shrink: 0;
}

.revise-dim-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.revise-dim-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--r-chip);
  background: var(--bg-surface);
  border: 1px solid var(--line-soft);
}

.revise-dim-info { min-width: 0; }

.revise-dim-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-strong);
}

.revise-dim-note {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 1px;
}

.revise-dim-score {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--c-body);
  flex-shrink: 0;
}

.revise-dim-score.is-low { color: var(--c-friction); }
.revise-dim-score.is-mid { color: var(--c-spread); }

/* 四段漏斗 */
.revise-funnel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.funnel-stage {
  padding: 14px;
  border-radius: var(--r-card);
  background: var(--bg-surface);
  border: 1px solid var(--line-soft);
  display: grid;
  gap: 8px;
  position: relative;
}

.funnel-stage.is-primary {
  background: #fff;
  border-color: var(--c-spread);
  box-shadow: 0 0 0 1px var(--c-spread);
}

.funnel-stage-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.funnel-stage.is-primary .funnel-stage-badge {
  color: var(--c-spread);
}

.funnel-primary-flag {
  display: inline-flex;
  padding: 1px 6px;
  border-radius: var(--r-pill);
  background: var(--c-spread);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  margin-left: 2px;
}

.funnel-stage-problem {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-strong);
  line-height: 1.4;
}

.funnel-stage-action {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* 修改动作清单 */
.revise-change-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.change-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border-radius: var(--r-card);
  background: var(--bg-surface);
  border: 1px solid var(--line-soft);
}

.change-item.is-p1 { border-left: 3px solid var(--c-friction); }
.change-item.is-p2 { border-left: 3px solid var(--c-spread); }
.change-item.is-p3 { border-left: 3px solid var(--c-body); }
.change-item.is-p4, .change-item.is-p5 { border-left: 3px solid var(--line-mid); }

.change-priority {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--bg-page);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--text-muted);
}

.change-body { display: grid; gap: 4px; }

.change-layer {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.change-problem {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-strong);
}

.change-action {
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.5;
}

.change-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.change-gain {
  font-size: 12px;
  color: var(--c-body);
}

.change-tradeoff {
  font-size: 12px;
  color: var(--text-muted);
}

/* 改写结果 tabs */
.revise-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
  flex-wrap: wrap;
}

.revise-tab {
  padding: 7px 14px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--line-soft);
  transition: 0.15s ease;
}

.revise-tab:hover { color: var(--text-strong); background: #fff; }

.revise-tab.is-active {
  color: var(--text-inverse);
  background: var(--bg-deep);
  border-color: transparent;
}

.revise-tab-panel { display: block; }
.revise-tab-panel[hidden] { display: none; }

/* 题目候选 */
.title-candidates {
  display: grid;
  gap: 10px;
}

.title-candidate {
  padding: 14px 16px;
  border-radius: var(--r-card);
  background: var(--bg-surface);
  border: 1px solid var(--line-soft);
  display: grid;
  gap: 6px;
}

.title-candidate-type {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.title-candidate[data-type="stable"] .title-candidate-type { color: var(--c-body); }
.title-candidate[data-type="tension"] .title-candidate-type { color: var(--c-hook); }
.title-candidate[data-type="spread"] .title-candidate-type { color: var(--c-spread); }

.title-candidate-text {
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--text-strong);
  line-height: 1.4;
}

.title-candidate-why {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.title-candidate-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

/* 改写块 */
.revise-rewrite-block {
  display: grid;
  gap: 12px;
}

.revise-rewrite-meta {
  padding: 8px 12px;
  border-radius: var(--r-chip);
  background: var(--bg-amber-soft);
  border-left: 3px solid var(--bg-amber);
  font-size: 13px;
  color: #7A4014;
  line-height: 1.5;
}

.revise-rewrite-body {
  padding: 14px 16px;
  border-radius: var(--r-card);
  background: var(--bg-surface);
  border: 1px solid var(--line-soft);
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-body);
  white-space: pre-wrap;
  word-break: break-all;
}

/* 复制按钮 */
.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-mid);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-surface);
  transition: 0.15s ease;
  margin-left: auto;
}

.copy-btn:hover { color: var(--text-strong); background: #fff; }
.copy-btn.is-copied { color: var(--c-body); border-color: var(--c-body); }

/* 响应式 */
@media (max-width: 1040px) {
  .revise-goal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .revise-funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rdc-gain-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .revise-goal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .revise-review-grid { grid-template-columns: 1fr; }
  .revise-funnel { grid-template-columns: 1fr; }
  .rdc-gain-row { grid-template-columns: 1fr; }
}

/* =========================================================
   历史页（简化）
   ========================================================= */
.status-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.session-card {
  padding: 12px 14px;
  margin-top: 10px;
  border-radius: var(--r-card);
  background: var(--bg-surface);
  border: 1px solid var(--line-soft);
}

.session-head h4 { font-size: 14px; font-weight: 700; }

.history-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }

.content-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.compare-list, .priority-list, .workflow-steps {
  display: grid; gap: 8px;
  margin: 10px 0 0; padding: 0;
  list-style: none;
}

.compare-list li, .priority-list li, .workflow-steps li {
  padding: 10px 12px;
  border-radius: var(--r-card);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: inherit;
  font-size: 13px;
}

.panel-card .compare-list li,
.panel-card .priority-list li,
.panel-card .workflow-steps li {
  background: var(--bg-surface);
  border-color: var(--line-soft);
  color: var(--text-body);
}

.compare-list strong, .priority-list strong, .workflow-steps strong {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
}

.compare-list span, .priority-list span, .workflow-steps span {
  display: block;
  margin-top: 2px;
  color: inherit;
  opacity: 0.78;
  font-size: 12px;
  line-height: 1.55;
}

/* =========================================================
   深度改稿 · 进度条
   ========================================================= */
.revise-progress-card {
  background: linear-gradient(135deg, #0AADA6 0%, #088880 100%);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 16px;
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.revise-progress-card--paid {
  background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
  border-color: rgba(139, 92, 246, 0.25);
}

.rp-phase {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(52, 211, 153, 0.7);
}

.revise-progress-card--paid .rp-phase {
  color: rgba(139, 92, 246, 0.8);
}

.rp-step-label {
  font-size: 18px;
  font-weight: 600;
  color: #e8f5ee;
  min-height: 28px;
  transition: opacity 0.3s;
}

.rp-bar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.rp-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #22c55e, #34d399);
  border-radius: 3px;
  transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.rp-bar-fill--paid {
  background: linear-gradient(90deg, #7c3aed, #8b5cf6);
}

.rp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.rp-step-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.rp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.3s, transform 0.3s;
}

.rp-dot.is-done {
  background: #22c55e;
}

.rp-dot.is-active {
  background: #34d399;
  transform: scale(1.4);
}

.revise-progress-card--paid .rp-dot.is-done { background: #7c3aed; }
.revise-progress-card--paid .rp-dot.is-active { background: #8b5cf6; }

.rp-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
}

/* =========================================================
   深度改稿 · 解锁门控
   ========================================================= */
.revise-unlock-gate {
  border-radius: 16px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.05) 0%, rgba(139, 92, 246, 0.12) 100%);
  overflow: hidden;
  margin-top: 4px;
}

.unlock-gate-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 32px 36px;
}

.unlock-gate-blur-preview {
  width: 100%;
  padding: 24px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  filter: blur(5px);
  pointer-events: none;
  user-select: none;
  opacity: 0.5;
}

.unlock-blur-row {
  height: 14px;
  border-radius: 7px;
  background: rgba(139, 92, 246, 0.25);
}

.unlock-blur-row--short { width: 55%; }
.unlock-blur-row--mid { width: 75%; }

.unlock-gate-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.unlock-gate-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(139, 92, 246, 0.9);
}

.unlock-gate-desc {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 380px;
  line-height: 1.6;
  margin: 0;
}

.unlock-gate-btn {
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 11px 28px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
  transition: opacity 0.2s, transform 0.15s;
}

.unlock-gate-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.unlock-gate-btn:active { transform: translateY(0); }
.unlock-gate-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1040px) {
  .home-shell { grid-template-columns: 1fr; height: auto; }
  .home-sidebar {
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--line-soft);
  }
  .home-main { height: auto; min-height: 60vh; }
  .reader-nav { display: none; }
  .reader-scrim { flex: 0 0 0; }

  .sample-grid,
  .body-overview-grid,
  .optimize-grid,
  .content-grid-2,
  .status-columns,
  .action-bar {
    grid-template-columns: 1fr;
  }

  .workspace-tabs {
    grid-template-columns: 1fr;
  }
  .workspace-tab {
    border-radius: 10px 10px 0 0;
  }
  .workspace-tab + .workspace-tab {
    margin-left: 3px;
  }

  .classification-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .body-radar-panel {
    grid-template-columns: 1fr;
  }

  .dim-grid,
  .goal-grid,
  .style-grid,
  .analysis-grid,
  .deep-conclusion,
  .deep-journey,
  .body-deep-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-tools { display: none; }
}

@media (max-width: 680px) {
  .app-header { position: static; }
  .app-header-inner { flex-wrap: wrap; gap: 10px; }
  .top-nav { width: 100%; justify-content: space-between; }
  .top-nav a { flex: 1 1 0; text-align: center; padding: 7px 8px; }

  .page-grid { gap: 14px; padding: 14px 0 32px; }
  .panel, .panel-deep, .panel-amber, .panel-card,
  .classification-bar, .q-card, .deep-eval-panel {
    padding: 14px 14px;
  }

  .classification-grid,
  .workspace-tabs,
  .dim-grid,
  .body-radar-legend,
  .goal-grid,
  .style-grid,
  .analysis-grid,
  .field-grid.two,
  .deep-conclusion,
  .deep-journey,
  .deep-nextstep,
  .stage-split,
  .body-deep-split {
    grid-template-columns: 1fr;
  }

  .journey-stage[data-stage="cost"] .stage-lines {
    grid-template-columns: 1fr;
  }

  .journey-stage[data-stage="closure"] { grid-column: auto; }

  .home-hero { padding: 24px 20px; }
  .home-hero h1 { font-size: clamp(22px, 6vw, 28px); }

  .q-card { padding: 16px; }
  .q-title h2 { font-size: 18px; }
  .q-head { gap: 10px; }
  .q-meta-row { gap: 8px; }

  .deep-hero { padding: 16px; }
  .deep-hero-body h2 { font-size: 19px; }
}

/* ——— 传达力子模块（嵌入本体质量面板内）——— */
.transmission-subsection {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1.5px solid var(--line);
}

.transmission-sub-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.transmission-sub-title .kicker {
  color: var(--c-transmission);
}

.transmission-sub-title p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 4px 0 0;
}

.transmission-sub-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.transmission-sub-gauge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: conic-gradient(
    var(--c-transmission) calc(var(--value, 0) * 1%),
    var(--c-transmission-soft) 0%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--c-transmission);
  position: relative;
}

.transmission-sub-gauge::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--bg-card);
}

.transmission-sub-gauge span {
  position: relative;
  z-index: 1;
}

.transmission-sub-band {
  font-size: 11px;
  font-weight: 700;
  color: var(--c-transmission);
  letter-spacing: 0.02em;
}

.transmission-sub-verdict {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-strong);
  line-height: 1.55;
  margin: 0 0 16px;
}

.transmission-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.transmission-summary-box,
.transmission-bottleneck-box {
  background: var(--c-transmission-soft);
  border-radius: var(--r-card);
  padding: 12px 14px;
}

.transmission-summary-box .subtle-label,
.transmission-bottleneck-box .subtle-label {
  display: block;
  color: var(--c-transmission);
  margin-bottom: 6px;
}

.transmission-summary-box p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-strong);
  margin: 0;
}

.transmission-bottleneck-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.transmission-bottleneck-list li {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-strong);
  padding-left: 14px;
  position: relative;
}

.transmission-bottleneck-list li::before {
  content: "▶";
  position: absolute;
  left: 0;
  color: var(--c-transmission);
  font-size: 8px;
  top: 4px;
}

.transmission-action-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.transmission-action-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 12px;
  align-items: start;
  padding: 12px 14px;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: var(--bg-card);
}

.transmission-action-item.is-p0 { border-left: 3px solid var(--c-transmission); }
.transmission-action-item.is-p1 { border-left: 3px solid var(--c-spread); }
.transmission-action-item.is-p2 { border-left: 3px solid var(--c-body); }

.transmission-action-priority {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 3px 7px;
  border-radius: var(--r-chip);
  background: var(--c-transmission-soft);
  color: var(--c-transmission);
  white-space: nowrap;
  grid-row: 1 / 3;
  align-self: center;
}

.transmission-action-item.is-p1 .transmission-action-priority {
  background: var(--c-spread-soft);
  color: var(--c-spread);
}

.transmission-action-item.is-p2 .transmission-action-priority {
  background: var(--c-body-soft);
  color: var(--c-body);
}

.transmission-action-issue {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-strong);
  line-height: 1.45;
}

.transmission-action-body {
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-muted);
}

.transmission-action-body strong {
  color: var(--text-strong);
}

@media (max-width: 900px) {
  .transmission-overview { grid-template-columns: 1fr; }
}

/* ── v2.0 specific ───────────────────────────────────────────── */

.v2-core-problems {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.v2-problem {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  padding: 6px 10px;
  background: var(--surface-2, rgba(255,255,255,0.04));
  border-left: 2px solid var(--c-spread, #f59e0b);
  border-radius: 0 4px 4px 0;
  margin: 0;
}

.rewrite-output {
  font-family: inherit;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--surface-2, rgba(255,255,255,0.04));
  padding: 16px;
  border-radius: 8px;
  margin: 8px 0 16px;
}

.rewrite-tab-panel h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin: 12px 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

