:root {
  --bg: #f6f5f0;
  --surface: #ffffff;
  --surface2: #edeae1;
  --surface-tint: #faf9f5;
  --ink: #141c1a;
  --ink2: #3b4642;
  --muted: #68736f;
  --line: #e2ddd1;
  --line-strong: #c8c1b0;
  --accent: #0d5c59;
  --accent-hover: #094341;
  --accent-soft: #e3f1f0;
  --blue: #1d4ed8;
  --blue-soft: #edf4ff;
  --amber: #b45309;
  --amber-soft: #fef3c7;
  --purple: #6d28d9;
  --purple-soft: #f3e8ff;
  --green: #15803d;
  --green-soft: #dcfce7;
  --rose: #be123c;
  --rose-soft: #ffe4e6;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(18, 28, 24, 0.04), 0 4px 14px rgba(18, 28, 24, 0.03);
  --shadow-lg: 0 18px 48px rgba(18, 28, 24, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.65 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

.wrap {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 28px;
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
}

/* ==================== 顶部期刊级导航栏 ==================== */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 245, 240, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-strong);
}
.top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}
@media (max-width: 980px) {
  .top-in { flex-wrap: wrap; padding: 10px 20px; }
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-decoration: none !important;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.22;
}
.brand-text small {
  color: var(--muted);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0;
}
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
}
.nav-btn {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink2);
  padding: 8px 15px;
  border-radius: 7px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.nav-btn:hover {
  background: var(--surface2);
  color: var(--ink);
}
.nav-btn.active {
  background: var(--ink);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(20, 28, 26, 0.15);
}
.nav-ext {
  margin-left: 6px;
  padding: 7px 12px;
  border-radius: 7px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink2);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none !important;
}
.nav-ext:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* ==================== 期刊式刊头 Masthead（告别盒子套盒子） ==================== */
.masthead {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink);
  border-radius: 0 0 var(--radius) var(--radius);
  margin: 22px 0 32px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.masthead-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
}
@media (max-width: 920px) {
  .masthead-grid { grid-template-columns: 1fr; }
}
.masthead-main {
  padding: 28px 32px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
@media (max-width: 920px) {
  .masthead-main { border-right: none; border-bottom: 1px solid var(--line); padding: 22px; }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.masthead-main h1 {
  margin: 0 0 12px;
  font-size: clamp(23px, 2.6vw, 31px);
  line-height: 1.24;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.masthead-lead {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--ink2);
}
.masthead-lead b {
  color: var(--accent);
  background: var(--accent-soft);
  padding: 1px 5px;
  border-radius: 4px;
}
.masthead-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
@media (max-width: 600px) {
  .masthead-metrics { grid-template-columns: repeat(2, 1fr); }
}
.m-stat-num {
  font-size: 21px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.m-stat-lbl {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

/* 右侧目录式快速导览 */
.masthead-index {
  background: var(--surface-tint);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.index-head {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.index-item {
  display: grid;
  grid-template-columns: 32px 1fr 20px;
  align-items: baseline;
  gap: 10px;
  padding: 13px 8px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.14s ease, padding-left 0.14s ease;
}
.index-item:last-child { border-bottom: none; }
.index-item:hover {
  background: var(--accent-soft);
  padding-left: 12px;
}
.index-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
}
.index-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 2px;
}
.index-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.index-arrow {
  color: var(--accent);
  font-weight: 700;
  text-align: right;
}

/* ==================== 章节头部版式 ==================== */
.view-panel { padding-bottom: 64px; }
.sec { margin-bottom: 42px; }
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--ink);
}
.sec-head-left {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.sec-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--ink);
  color: #ffffff;
}
.sec-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.sec-desc {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}

/* ==================== 第一部分：两条技术路线并排对比矩阵 ==================== */
.route-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
@media (max-width: 900px) {
  .route-matrix { grid-template-columns: 1fr; }
}
.route-col {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.route-col:first-child {
  border-right: 1px solid var(--line);
  border-top: 4px solid var(--accent);
}
.route-col:last-child {
  border-top: 4px solid var(--blue);
}
@media (max-width: 900px) {
  .route-col:first-child { border-right: none; border-bottom: 1px solid var(--line); }
}
.route-head {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.route-head h3 {
  margin: 8px 0 4px;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.dl-rows {
  margin: 0;
}
.dl-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.2px;
  line-height: 1.62;
  align-items: baseline;
}
.dl-row:last-child { border-bottom: none; }
.dl-dt {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.dl-dd {
  color: var(--ink2);
}
.dl-dd b { color: var(--ink); }
.route-foot {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.route-convergence {
  margin-top: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 13px 18px;
  font-size: 14px;
  color: var(--ink2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==================== 第二部分：双列编年史网格（2012–2026） ==================== */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
@media (max-width: 1024px) {
  .timeline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .timeline-grid { grid-template-columns: 1fr; }
}
.tl-row {
  padding: 18px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.tl-row:nth-child(4n) { border-right: none; }
.tl-row:nth-child(n+5) { border-bottom: none; }
@media (max-width: 1024px) {
  .tl-row:nth-child(n) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .tl-row:nth-child(2n) { border-right: none; }
}
.tl-yr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 800;
  font-size: 18px;
  color: var(--accent);
}
.tl-yr small {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent);
}
.tl-title {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.38;
}
.tl-body {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

/* ==================== 通用卡片与网格 ==================== */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.card-hover:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(13, 92, 89, 0.08);
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* 模型规格卡片内部结构 */
.spec-list {
  margin: 10px 0 0;
  border-top: 1px solid var(--line);
}
.spec-item {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13.2px;
  line-height: 1.5;
}
.spec-item:last-child { border-bottom: none; }
.spec-k {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
}
.spec-v { color: var(--ink2); }

/* 行业争议：三栏横向对比条（告别千篇一律卡片） */
.controversy-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.controversy-row {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.05fr 1.3fr 1.15fr;
  overflow: hidden;
}
@media (max-width: 960px) {
  .controversy-row { grid-template-columns: 1fr; }
}
.c-col {
  padding: 18px 20px;
  border-right: 1px solid var(--line);
}
.c-col:last-child {
  border-right: none;
  background: var(--surface-tint);
}
@media (max-width: 960px) {
  .c-col { border-right: none; border-bottom: 1px solid var(--line); }
}
.c-col-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  display: inline-block;
}

/* ==================== 公众号排期顶部策略条与紧凑成稿架 ==================== */
.formula-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
@media (max-width: 820px) {
  .formula-strip { grid-template-columns: repeat(2, 1fr); }
}
.formula-box {
  background: var(--surface-tint);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 10px 13px;
}
.formula-box b {
  display: block;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 2px;
}
.formula-box span {
  font-size: 12.5px;
  color: var(--muted);
}

/* 已生成成稿紧凑票据式卡片 */
.ready-ticket {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  cursor: pointer;
}
.ticket-idx {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==================== AI 研讨会左右分栏工作台 ==================== */
.seminar-layout {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 960px) {
  .seminar-layout { grid-template-columns: 1fr; }
}
.dialogue-turn {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.dialogue-turn:last-child { border-bottom: none; }
@media (max-width: 640px) {
  .dialogue-turn { grid-template-columns: 1fr; gap: 6px; }
}
.speaker-badge {
  font-weight: 700;
  font-size: 13px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 10px;
  border-radius: 6px;
  line-height: 1.35;
}

/* ==================== 胶囊、按钮、筛选工具栏 ==================== */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 5px;
  background: var(--surface2);
  color: var(--ink2);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.chip-teal { background: var(--accent-soft); color: var(--accent); }
.chip-blue { background: var(--blue-soft); color: var(--blue); }
.chip-amber { background: var(--amber-soft); color: var(--amber); }
.chip-purple { background: var(--purple-soft); color: var(--purple); }
.chip-green { background: var(--green-soft); color: var(--green); }
.chip-rose { background: var(--rose-soft); color: var(--rose); }

.btn {
  appearance: none;
  border: 1px solid transparent;
  background: var(--accent);
  color: #ffffff;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.btn:hover { background: var(--accent-hover); color: #ffffff; }
.btn-ghost {
  background: var(--surface);
  color: var(--ink2);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  background: var(--surface2);
  color: var(--ink);
  border-color: var(--ink);
}
.btn-sm {
  padding: 4px 10px;
  font-size: 12.5px;
  border-radius: 6px;
}

.subnav-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
  background: var(--surface2);
  padding: 5px;
  border-radius: 9px;
}
.subnav-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--ink2);
  padding: 8px 15px;
  border-radius: 6px;
  font: inherit;
  font-size: 13.8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
}
.subnav-btn:hover { color: var(--ink); }
.subnav-btn.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.toolbar-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.pill-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.pill {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface-tint);
  color: var(--ink2);
  border-radius: 6px;
  padding: 5px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.12s ease;
}
.pill:hover { border-color: var(--ink); color: var(--ink); }
.pill.active {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
  font-weight: 600;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.input, .select {
  font: inherit;
  font-size: 13.8px;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
}
.input:focus, .select:focus {
  outline: 2px solid var(--accent);
  border-color: transparent;
}
.input { flex: 1; min-width: 220px; }

/* ==================== 表格版式 ==================== */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
  box-shadow: var(--shadow);
}
.clean-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.8px;
  text-align: left;
}
.clean-table th {
  background: var(--surface2);
  color: var(--ink);
  font-weight: 700;
  font-size: 12.5px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
.clean-table td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.clean-table tr:last-child td { border-bottom: none; }
.clean-table tbody tr:hover { background: var(--surface-tint); }

/* ==================== 右侧抽屉 ==================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(18, 26, 24, 0.48);
  backdrop-filter: blur(2px);
  display: flex;
  justify-content: flex-end;
}
.drawer {
  width: min(780px, 94vw);
  height: 100vh;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.drawer-head {
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface-tint);
}
.drawer-head h3 { margin: 0; font-size: 17px; line-height: 1.35; }
.drawer-body { padding: 24px; overflow-y: auto; flex: 1; }

.guide-step {
  background: var(--surface-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 15px;
  margin-bottom: 10px;
}
.guide-step-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.guide-step-body { font-size: 13.8px; color: var(--ink2); line-height: 1.65; }

.foot {
  border-top: 1px solid var(--line-strong);
  padding: 24px 0 36px;
  font-size: 13px;
  color: var(--muted);
}
.foot-in {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
