:root {
  /* Editorial Swiss-Paper Craft Palette: Warm Paper + Deep Ink + Single Accent (Studio Vermilion) */
  --paper: #f6f4ef;
  --paper-deep: #ece8df;
  --surface: #ffffff;
  --ink: #161614;
  --ink-2: #4a4742;
  --ink-3: #7c776f;
  --rule: #e0dbd0;
  --rule-strong: #c8c1b4;

  /* Single disciplined accent hue */
  --accent: #c84b31;
  --accent-hover: #a63a24;
  --accent-wash: #fbf0ed;
  --accent-border: #efc9bf;

  --font-serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --max-w: 1320px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ================= 顶部导航（编辑部极简架构） ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 244, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  flex-shrink: 0;
}

.brand-seal {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.02em;
  position: relative;
}

.brand-seal::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--accent);
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--ink);
  white-space: nowrap;
}

.brand-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
}

.nav-link {
  position: relative;
  height: 100%;
  border: none;
  background: transparent;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.16s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--ink);
}

.nav-link.active {
  color: var(--ink);
  font-weight: 600;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
}

.nav-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
}

.nav-link.active .nav-num {
  color: var(--accent);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn.mobile-nav-btn {
  display: none;
}

body.showcase-mode .internal-only {
  display: none !important;
}

/* ================= 通用按钮（克制、高对比） ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--rule-strong);
  background: var(--surface);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  border-color: var(--ink);
  background: var(--paper);
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.btn-accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #ffffff;
}

.btn-ink {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.btn-ink:hover {
  background: #2c2c28;
  border-color: #2c2c28;
  color: #ffffff;
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--ink-2);
  padding: 8px 10px;
}

.btn-ghost:hover {
  background: var(--paper-deep);
  border-color: transparent;
  color: var(--ink);
}

.btn-danger {
  color: var(--accent);
  border-color: var(--accent-border);
  background: var(--surface);
}

.btn-danger:hover {
  background: var(--accent-wash);
  border-color: var(--accent);
}

body.showcase-mode .btn-mode {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

/* ================= 主容器 ================= */
.page-shell {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 36px 28px 96px;
}

.view-section {
  display: none;
}

.view-section.active {
  display: block;
}

/* ================= 非对称编辑部 Hero ================= */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.92fr);
  gap: 44px;
  align-items: start;
  padding: 20px 0 48px;
  border-bottom: 1px solid var(--rule);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: inline-block;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 3.6vw, 3.25rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 18px;
}

.hero-lead {
  font-size: 16px;
  color: var(--ink-2);
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-ledger {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
  padding-top: 22px;
  gap: 20px;
}

.ledger-item {
  border-right: 1px solid var(--rule);
  padding-right: 16px;
}

.ledger-item:last-child {
  border-right: none;
  padding-right: 0;
}

.ledger-val {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.ledger-lbl {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 4px;
}

/* 右侧工坊样本卡片（Studio Dossier） */
.dossier-card {
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(22, 22, 20, 0.05);
}

.dossier-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--ink);
  color: var(--paper);
}

.dossier-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.dossier-code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(246, 244, 239, 0.7);
}

.dossier-body {
  padding: 20px;
}

.specimen-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.specimen-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: background-color 0.14s ease;
}

.specimen-row:first-child {
  padding-top: 2px;
}

.specimen-row:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}

.specimen-row:hover .specimen-name {
  color: var(--accent);
}

.specimen-idx {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

.specimen-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.14s ease;
}

.specimen-sub {
  font-size: 12px;
  color: var(--ink-3);
}

.specimen-type {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-2);
  border: 1px solid var(--rule);
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--paper);
}

.dossier-footer {
  padding: 13px 20px;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--ink-2);
}

/* ================= 章节标题 ================= */
.section-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-top: 48px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.section-bar.top {
  padding-top: 4px;
}

.section-bar h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

.section-bar p {
  font-size: 14px;
  color: var(--ink-2);
  margin-top: 6px;
  max-width: 660px;
}

/* ================= 办学原则：建筑感三列分割线网格 ================= */
.principles-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}

.principle-col {
  padding: 28px 26px 28px 0;
  border-right: 1px solid var(--rule);
}

.principle-col:not(:first-child) {
  padding-left: 26px;
}

.principle-col:last-child {
  border-right: none;
  padding-right: 0;
}

.principle-num {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 14px;
}

.principle-col h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}

.principle-col p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.7;
}

/* ================= 三阶成长体系（阶梯式卡片） ================= */
.stages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stage-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.stage-card.featured {
  border-top-color: var(--accent);
  background: #ffffff;
}

.stage-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(22, 22, 20, 0.06);
  border-color: var(--rule-strong);
}

.stage-card.featured:hover {
  border-top-color: var(--accent);
}

.stage-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.stage-code {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.03em;
}

.stage-card.featured .stage-code {
  color: var(--accent);
}

.stage-grade {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 600;
}

.stage-card h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.stage-pos {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 12px;
}

.stage-summary {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.68;
}

.stage-points {
  list-style: none;
  margin: 16px 0 20px;
  padding-top: 14px;
  border-top: 1px dashed var(--rule);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stage-points li {
  font-size: 13px;
  color: var(--ink-2);
  padding-left: 16px;
  position: relative;
}

.stage-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 1.5px;
  background: var(--accent);
}

.stage-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
}

.stage-foot-action {
  font-weight: 700;
  color: var(--ink);
}

.stage-card:hover .stage-foot-action {
  color: var(--accent);
}

/* ================= 课程库筛选栏与网格 ================= */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0 20px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-btn {
  border: 1px solid var(--rule-strong);
  background: var(--surface);
  color: var(--ink-2);
  padding: 6px 13px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
}

.filter-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filter-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.filter-btn.trial.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.search-wrap {
  position: relative;
  width: 260px;
}

.search-wrap svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  pointer-events: none;
}

.search-input {
  width: 100%;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  padding: 7px 12px 7px 34px;
  font-size: 13px;
  background: var(--surface);
  outline: none;
}

.search-input:focus {
  border-color: var(--ink);
}

.unit-group {
  margin-bottom: 36px;
}

.unit-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 18px;
}

.unit-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.unit-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
}

.lesson-grid {
  display: grid;
  gap: 18px;
}

/* 动态列数彻底避免孤儿卡片 */
.lesson-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.lesson-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.lesson-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(22, 22, 20, 0.05);
}

.lesson-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.lesson-code {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
}

.trial-mark {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-wash);
  border: 1px solid var(--accent-border);
  padding: 2px 8px;
  border-radius: 4px;
}

.lesson-card h4 {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.38;
  margin-bottom: 8px;
  color: var(--ink);
}

.lesson-hook {
  font-size: 13.5px;
  color: var(--ink-2);
  margin-bottom: 14px;
}

.tools-line {
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 14px;
}

.deliverable-row {
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--ink);
}

.deliverable-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 2px;
}

/* ================= SOP 时间轴与教具 ================= */
.panel {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 26px;
}

.rhythm-bar {
  display: flex;
  height: 12px;
  border-radius: 4px;
  overflow: hidden;
  gap: 2px;
  margin-bottom: 22px;
}

.rhythm-0 { background: #161614; }
.rhythm-1 { background: #4a4742; }
.rhythm-2 { background: #c84b31; }
.rhythm-3 { background: #8a847c; }
.rhythm-4 { background: #bfb8ac; }

.sop-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.sop-col {
  border-top: 2px solid var(--rule);
  padding-top: 14px;
}

.sop-col.core {
  border-top-color: var(--accent);
}

.sop-time {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}

.sop-col h4 {
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 6px;
}

.sop-col p {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.6;
}

.ordered-steps {
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ordered-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-2);
  align-items: start;
}

.ordered-steps li::before {
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  padding-top: 2px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

th {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
  border-bottom: 1.5px solid var(--ink);
}

td.budget-cell {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

/* ================= 家长问答 & 话术 ================= */
.faq-stack {
  border-top: 1px solid var(--ink);
}

.faq-row {
  border-bottom: 1px solid var(--rule);
  background: transparent;
}

.faq-trigger {
  width: 100%;
  border: none;
  background: transparent;
  padding: 18px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

.faq-trigger:hover {
  color: var(--accent);
}

.faq-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-right: 10px;
}

.faq-answer {
  display: none;
  padding: 0 4px 20px 36px;
  font-size: 14px;
  color: var(--ink-2);
  max-width: 880px;
  line-height: 1.75;
}

.faq-row.open .faq-answer {
  display: block;
}

.faq-row.open .faq-icon {
  transform: rotate(45deg);
}

.faq-icon {
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 1;
  color: var(--ink-3);
  transition: transform 0.16s ease;
}

.scripts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.script-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.script-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.script-card h3 {
  font-size: 16px;
  margin-top: 4px;
}

.script-text {
  white-space: pre-line;
  font-size: 13px;
  color: var(--ink-2);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 14px;
  line-height: 1.65;
}

/* ================= 回本测算器 ================= */
.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.slider-item {
  margin-bottom: 20px;
}

.slider-item:last-child {
  margin-bottom: 0;
}

.slider-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 7px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.slider-val {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

.kpi-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.kpi-cell {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.kpi-cell.accent {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.kpi-cell.accent .kpi-lbl {
  color: rgba(255, 255, 255, 0.72);
}

.kpi-cell.accent .kpi-val {
  color: #ffffff;
}

.kpi-lbl {
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 6px;
  white-space: nowrap;
}

.kpi-val {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

.kpi-sub {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 4px;
}

.breakdown-track {
  display: flex;
  height: 12px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--paper-deep);
  margin: 10px 0 12px;
  gap: 2px;
}

.legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--ink-2);
}

.legend-swatch {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 6px;
}

.advice-note {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--accent-wash);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  font-size: 13.5px;
  color: var(--ink);
}

/* ================= 教研笔记 ================= */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.note-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.note-body {
  white-space: pre-line;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.7;
}

.note-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
}

/* ================= 弹窗（固定底部操作栏，防溢出遮挡） ================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(22, 22, 20, 0.52);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 120;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-sheet {
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 720px;
  max-height: 88dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 28px 64px rgba(22, 22, 20, 0.24);
}

.modal-head {
  padding: 20px 26px 16px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
}

.modal-head h3 {
  font-family: var(--font-serif);
  font-size: 21px;
  line-height: 1.3;
}

.modal-close {
  border: 1px solid var(--rule);
  background: var(--paper);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-2);
  flex-shrink: 0;
}

.modal-close:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.modal-body {
  padding: 22px 26px;
  overflow-y: auto;
  flex: 1;
}

.modal-foot {
  padding: 14px 26px;
  border-top: 1px solid var(--rule);
  background: var(--paper);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.detail-block {
  margin-bottom: 18px;
}

.detail-block:last-child {
  margin-bottom: 0;
}

.detail-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 7px;
  display: block;
}

.feedback-box {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.form-field input,
.form-field select,
.form-field textarea {
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 14px;
  background: var(--surface);
  outline: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--ink);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* 移动端导航抽屉 */
.mobile-drawer {
  display: none;
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  padding: 12px 20px 16px;
}

.mobile-drawer.open {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ================= 响应式 ================= */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .principles-band, .stages-grid, .scripts-grid { grid-template-columns: 1fr; }
  .principle-col { border-right: none; border-bottom: 1px solid var(--rule); padding: 20px 0 !important; }
  .principle-col:last-child { border-bottom: none; }
  .lesson-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sop-grid { grid-template-columns: repeat(2, 1fr); }
  .calc-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .primary-nav { display: none; }
  .btn.mobile-nav-btn { display: inline-flex; }
  .header-inner { padding: 0 16px; }
  .page-shell { padding: 24px 16px 72px; }
}

@media (max-width: 640px) {
  .lesson-grid.cols-3, .lesson-grid.cols-2, .notes-grid, .sop-grid, .form-grid, .kpi-matrix, .hero-ledger {
    grid-template-columns: 1fr;
  }
  .ledger-item { border-right: none; border-bottom: 1px solid var(--rule); padding: 0 0 14px; }
  .ledger-item:last-child { border-bottom: none; padding-bottom: 0; }
  .search-wrap { width: 100%; }
  .header-controls .hide-sm { display: none; }
}

@media print {
  .site-header, .mobile-drawer, .filter-bar, .btn, .modal-backdrop, .toast { display: none !important; }
  body { background: #ffffff; }
  .view-section { display: block !important; page-break-after: always; }
  .lesson-card, .stage-card, .panel { break-inside: avoid; box-shadow: none; }
}
