/* ==========================================================================
   麻花视频 · dingzh.com 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base · 变量与基础排版
   -------------------------------------------------------------------------- */
:root {
  --paper: #f7f8f6;
  --white: #ffffff;
  --ink: #10202e;
  --ink-soft: #2b3d4b;
  --muted: #5a6b78;
  --line: #d8dde1;
  --line-soft: #e7eaec;
  --green: #1f6f54;
  --amber: #b26a1c;
  --red: #a3352c;
  --link: #14605c;
  --link-hover: #0d4541;
  --footer-bg: #10202e;
  --footer-text: #c8d3da;
  --footer-strong: #f2f5f6;
  --radius: 6px;
  --radius-sm: 3px;
  --shadow-sm: 0 1px 2px rgba(16, 32, 46, 0.06);
  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   layout · 全站骨架：页头、导航、主容器、页脚
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.brand:hover {
  color: var(--ink);
  text-decoration: none;
}

.main-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-block;
  padding: 8px 10px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.4;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--ink);
  text-decoration: none;
  border-bottom-color: var(--line);
}

.nav-link.is-current {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--ink);
}

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

.site-main {
  display: block;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.inner-main {
  padding-top: 24px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--link);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink-soft);
}

.page-header {
  margin-bottom: 8px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  margin: 0;
  color: var(--ink);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.25;
}

.page-head {
  margin: 0 0 32px;
}

.page-lead {
  max-width: 68ch;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.8;
}

.page-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-family: var(--font-mono);
  line-height: 1.7;
}

.page-meta a {
  color: var(--link);
}

.section-title {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
}

.section-desc,
.section-intro,
.section-note {
  max-width: 68ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.section-note {
  margin-bottom: 18px;
}

.sub-title {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

/* 页脚 */
.site-footer {
  margin-top: 48px;
  background: var(--footer-bg);
  color: var(--footer-text);
}

.footer-inner {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 48px 24px 28px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-title {
  margin: 0 0 14px;
  color: var(--footer-strong);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  display: inline-block;
  padding: 2px 0;
  color: var(--footer-text);
  font-size: 14px;
  line-height: 1.6;
}

.footer-links a:hover {
  color: var(--footer-strong);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 24px;
  padding-top: 24px;
}

.footer-brand {
  margin: 0;
  color: var(--footer-strong);
  font-size: 15px;
  font-weight: 600;
}

.footer-note {
  flex: 1 1 320px;
  min-width: 0;
  margin: 0;
  color: #9fb0ba;
  font-size: 13px;
  line-height: 1.8;
}

.footer-copy {
  margin: 0;
  color: #8294a0;
  font-size: 12px;
  font-family: var(--font-mono);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   components · 通用按钮、表格、标签、列表、折叠
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
}

.btn-primary:hover {
  background: #1b3346;
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  background: #eef1f0;
  color: var(--ink);
}

.table-wrap,
.table-scroll {
  width: 100%;
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  min-width: 560px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.data-table caption.table-caption {
  padding: 12px 16px;
  color: var(--muted);
  font-size: 13px;
  font-family: var(--font-mono);
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
}

.data-table thead th {
  padding: 11px 16px;
  background: #eef1f0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}

.data-table tbody th {
  padding: 11px 16px;
  color: var(--ink);
  font-weight: 600;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}

.data-table tbody td {
  padding: 11px 16px;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: #f2f5f4;
}

.data-table tbody th a {
  color: var(--ink);
}

.data-table tbody td a {
  color: var(--link);
}

.table-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.text-link {
  color: var(--link);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}

.text-link::after {
  content: " →";
  font-family: var(--font-mono);
}

.status-tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}

.status-done,
.status-green {
  background: #e3efe9;
  color: var(--green);
}

.status-review,
.status-revising,
.status-amber {
  background: #f7ecdd;
  color: var(--amber);
}

.status-pending,
.status-red {
  background: #f6e2e0;
  color: var(--red);
}

.tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}

.tag-green {
  background: #e3efe9;
  color: var(--green);
}

.tag-amber {
  background: #f7ecdd;
  color: var(--amber);
}

.tag-red {
  background: #f6e2e0;
  color: var(--red);
}

/* 编号步骤列表（内页共用） */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.step-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #eef1f0;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.step-body {
  min-width: 0;
}

.step-title {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
}

.step-body p,
.step-text {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

/* 勾选清单（内页共用） */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.check-mark {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  border: 2px solid var(--green);
  border-radius: 2px;
}

.check-num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: #eef1f0;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.check-body {
  min-width: 0;
}

.check-text {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.check-note {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

/* 折叠问答（内页共用） */
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq-item + .faq-item {
  margin-top: 10px;
}

.faq-item summary {
  position: relative;
  display: block;
  padding: 15px 44px 15px 18px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "＋";
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "－";
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--line-soft);
}

.faq-item > p,
.faq-answer {
  padding: 14px 18px 16px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.faq-item > p {
  margin: 0;
}

.faq-answer p {
  margin: 0;
}

.faq-answer p + p {
  margin-top: 8px;
}

/* 相关入口带 */
.related-band,
.related-block {
  margin-top: 40px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.related-title {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.related-item {
  min-width: 0;
}

.related-item a {
  display: block;
  padding: 10px 14px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  color: var(--link);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}

.related-item a:hover {
  background: #eef1f0;
  text-decoration: none;
}

.related-desc {
  margin-top: 6px;
  padding: 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

/* 图片容器 */
.media-figure,
.media-frame,
.figure-block,
.log-figure {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.media-figure img,
.media-frame img,
.figure-block img,
.log-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.media-caption,
.figure-caption {
  padding: 10px 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  border-top: 1px solid var(--line-soft);
}

.media-figure,
.media-frame {
  margin-top: 20px;
}

.figure-block {
  margin: 16px 0 20px;
}

.log-figure {
  margin-top: 32px;
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */
.hero {
  padding-bottom: 24px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: 40px;
  align-items: center;
}

.hero-text {
  min-width: 0;
}

.hero-kicker {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 0;
  line-height: 1.6;
}

.hero-text h1 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.25;
}

.hero-lead {
  max-width: 60ch;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-media {
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-media figcaption {
  padding: 10px 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  border-top: 1px solid var(--line-soft);
}

.status-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 32px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.status-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 14px 18px;
  background: var(--white);
  min-width: 0;
}

.status-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-green {
  background: var(--green);
}

.dot-amber {
  background: var(--amber);
}

.dot-red {
  background: var(--red);
}

.status-name {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.status-note {
  flex: 1 1 100%;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.section-head {
  margin-bottom: 20px;
}

.section-head h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
}

.section-head p {
  max-width: 68ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.task-groups,
.ledger-glance,
.weekly,
.issue-preview,
.edit-summary,
.faq {
  margin-top: 48px;
}

.task-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.task-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}

.task-card h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
}

.task-card > p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

.task-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.task-links a {
  display: inline-block;
  color: var(--link);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}

.task-links a::before {
  content: "› ";
  color: var(--muted);
  font-family: var(--font-mono);
}

.section-foot {
  margin-top: 14px;
}

.ledger-glance .data-table,
.edit-summary .data-table {
  min-width: 620px;
}

.weekly-inner {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.weekly-media {
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.weekly-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.weekly-media figcaption {
  padding: 10px 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  border-top: 1px solid var(--line-soft);
}

.weekly-text {
  min-width: 0;
}

.weekly-text h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
}

.weekly-text > p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.weekly-text > p + p {
  margin-top: 10px;
}

.weekly-text h3 {
  margin: 20px 0 10px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

.archive-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.archive-list li {
  background: var(--white);
}

.archive-list a {
  display: block;
  padding: 11px 14px;
  color: var(--link);
  font-size: 14px;
  line-height: 1.6;
}

.archive-list a:hover {
  background: #f2f5f4;
  text-decoration: none;
}

.issue-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.issue-col {
  min-width: 0;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.issue-col h3 {
  margin: 0 0 12px;
  padding-bottom: 10px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  border-bottom: 1px solid var(--line-soft);
}

.issue-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.issue-list li {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.issue-list strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

.action-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* --------------------------------------------------------------------------
   pages · 频道台账
   -------------------------------------------------------------------------- */
.page-title-block {
  margin: 0 0 28px;
}

.ledger-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  gap: 32px;
  align-items: start;
  margin-bottom: 40px;
}

.ledger-intro-text {
  min-width: 0;
}

.ledger-intro-text p {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.ledger-figure {
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.ledger-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.ledger-figure figcaption {
  padding: 10px 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  border-top: 1px solid var(--line-soft);
}

.channel-group {
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.channel-group:first-of-type {
  border-top: 0;
}

.group-note {
  max-width: 68ch;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.reading-order {
  margin-top: 40px;
}

.channel-focus-map {
  margin-top: 40px;
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.map-card {
  min-width: 0;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
}

.map-title {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
}

.map-card p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   pages · 本周专题
   -------------------------------------------------------------------------- */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

.page-content {
  min-width: 0;
}

.page-aside {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.aside-block {
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.aside-title {
  margin: 0 0 12px;
  padding-bottom: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  border-bottom: 1px solid var(--line-soft);
}

.tag-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tag-item {
  min-width: 0;
}

.tag-name {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 2px;
  background: #eef1f0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
}

.tag-desc {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.aside-note {
  margin-top: 12px;
  padding-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  border-top: 1px dashed var(--line);
}

.tip-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tip-item {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.75;
}

.focus-current,
.focus-items,
.focus-archive {
  margin-top: 32px;
}

.focus-current .section-intro,
.focus-items .section-intro,
.focus-archive .section-intro {
  margin-bottom: 16px;
}

.focus-current-cols {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.focus-figure {
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.focus-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.focus-figure figcaption {
  padding: 10px 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  border-top: 1px solid var(--line-soft);
}

.focus-reasons {
  min-width: 0;
}

.reason-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: reason;
}

.reason-item {
  position: relative;
  padding-left: 40px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
  counter-increment: reason;
}

.reason-item::before {
  content: counter(reason, decimal-leading-zero);
  position: absolute;
  top: 2px;
  left: 0;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}

.reason-num {
  display: none;
}

.reason-text {
  display: block;
}

/* --------------------------------------------------------------------------
   pages · 播放准备
   -------------------------------------------------------------------------- */
.page-hero {
  margin: 0 0 32px;
}

.checklist-block,
.setup-steps,
.recovery-block,
.verify-block {
  margin-top: 36px;
}

.setup-steps .step-list {
  margin-bottom: 0;
}

.setup-steps .step-item {
  display: block;
  padding: 20px 22px;
  padding-left: 76px;
  position: relative;
}

.setup-steps .step-num {
  position: absolute;
  top: 20px;
  left: 22px;
}

.step-verify {
  margin-top: 10px;
  padding: 8px 12px;
  background: #f2f5f4;
  border-left: 2px solid var(--green);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.step-link {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
}

.step-link a {
  color: var(--link);
  font-weight: 600;
}

.step-link a + a {
  margin-left: 14px;
}

.recovery-block .table-wrap,
.recovery-block table.data-table {
  margin-top: 16px;
}

.verify-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.verify-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.verify-index {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  background: #e3efe9;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  border-radius: 50%;
}

/* --------------------------------------------------------------------------
   pages · 问题处理台
   -------------------------------------------------------------------------- */
.page-container {
  display: block;
}

.section-block {
  margin-top: 36px;
}

.section-block .section-intro {
  margin-bottom: 16px;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.action-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.action-title {
  margin: 0 0 12px;
  padding-bottom: 10px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  border-bottom: 1px solid var(--line-soft);
}

.action-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  counter-reset: actionstep;
}

.action-steps li {
  position: relative;
  padding-left: 24px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
  counter-increment: actionstep;
}

.action-steps li::before {
  content: counter(actionstep);
  position: absolute;
  top: 3px;
  left: 0;
  width: 16px;
  height: 16px;
  background: #eef1f0;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
  border-radius: 2px;
}

.action-done {
  margin-top: auto;
  padding-top: 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
}

.entry-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.entry-item {
  min-width: 0;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.entry-link {
  display: inline-block;
  color: var(--link);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}

.entry-desc {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   pages · 字段说明
   -------------------------------------------------------------------------- */
.field-overview,
.field-group {
  margin-top: 36px;
}

.field-group .table-wrap {
  margin-top: 16px;
}

.field-note {
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--white);
  border-left: 3px solid var(--amber);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

.status-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 16px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.status-item {
  min-width: 0;
}

.status-list .status-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 14px 18px;
  background: var(--white);
}

.status-list .status-name {
  font-size: 14px;
}

.status-meaning {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.status-limit {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.read-order .check-list {
  margin-top: 16px;
}

/* --------------------------------------------------------------------------
   pages · 编排记录
   -------------------------------------------------------------------------- */
.container {
  display: block;
}

.log-overview,
.log-table-section,
.change-types,
.traceback {
  margin-top: 36px;
}

.log-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.log-card {
  min-width: 0;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.log-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
}

.log-card-batch {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}

.log-card-title {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

.log-card-text {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

.log-table-section .table-scroll {
  margin-top: 16px;
}

.change-types .change-item {
  margin-top: 16px;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.change-title {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

.change-text {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */
.error-main {
  padding-top: 48px;
  padding-bottom: 72px;
}

.error-panel {
  max-width: 640px;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-code {
  margin: 0 0 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}

.error-title {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
}

.error-desc {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.error-routes {
  margin-top: 32px;
}

.error-routes .section-title {
  margin-bottom: 14px;
}

.route-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.route-list a {
  display: block;
  padding: 11px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--link);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}

.route-list a:hover {
  background: #eef1f0;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   responsive · 960px
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 0 18px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    flex: 1 1 100%;
    order: 3;
    justify-content: flex-start;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 8px 0 12px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    display: block;
    padding: 12px 4px;
    min-height: 44px;
    font-size: 15px;
    border-bottom: 1px solid var(--line-soft);
    white-space: normal;
  }

  .nav-link.is-current {
    border-bottom-color: var(--line-soft);
    box-shadow: inset 3px 0 0 var(--ink);
    padding-left: 12px;
  }

  .site-main {
    padding: 24px 18px 48px;
  }

  .page-title {
    font-size: 32px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .hero-text h1 {
    font-size: 32px;
  }

  .weekly-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .ledger-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .focus-current-cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .log-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

/* --------------------------------------------------------------------------
   responsive · 640px
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .header-inner {
    padding: 0 14px;
    min-height: 58px;
  }

  .brand {
    font-size: 18px;
  }

  .site-main {
    padding: 20px 14px 40px;
  }

  .page-title {
    font-size: 28px;
  }

  .page-header {
    padding-bottom: 16px;
    margin-bottom: 6px;
  }

  .section-title {
    font-size: 20px;
  }

  .hero-text h1 {
    font-size: 28px;
  }

  .hero-actions .btn,
  .error-actions .btn {
    flex: 1 1 auto;
  }

  .status-bar {
    grid-template-columns: minmax(0, 1fr);
  }

  .task-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .issue-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .map-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .action-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .log-overview-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .data-table {
    min-width: 520px;
    font-size: 13px;
  }

  .data-table thead th,
  .data-table tbody th,
  .data-table tbody td {
    padding: 10px 12px;
  }

  .ledger-glance .data-table,
  .edit-summary .data-table {
    min-width: 520px;
  }

  .step-item {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .step-num {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .setup-steps .step-item {
    padding: 16px 16px 16px 16px;
  }

  .setup-steps .step-num {
    position: static;
    margin-bottom: 10px;
  }

  .recovery-block .data-table {
    min-width: 0;
  }

  .recovery-block .data-table thead {
    display: none;
  }

  .recovery-block .data-table tbody tr {
    display: block;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line-soft);
  }

  .recovery-block .data-table tbody tr:last-child {
    border-bottom: 0;
  }

  .recovery-block .data-table tbody td {
    display: block;
    padding: 2px 0;
    border-bottom: 0;
  }

  .recovery-block .data-table tbody td:nth-child(1) {
    color: var(--ink);
    font-weight: 600;
  }

  .recovery-block .data-table tbody td:nth-child(2)::before {
    content: "可能原因：";
    color: var(--muted);
  }

  .recovery-block .data-table tbody td:nth-child(3)::before {
    content: "恢复动作：";
    color: var(--muted);
  }

  .status-list .status-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .related-band,
  .related-block {
    padding: 18px;
  }

  .related-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .entry-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .route-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .error-panel {
    padding: 22px;
  }

  .error-title {
    font-size: 26px;
  }

  .footer-inner {
    padding: 32px 14px 22px;
  }

  .footer-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding-bottom: 22px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer-note {
    flex: 1 1 auto;
  }
}
/* --------------------------------------------------------------------------
   pages · 首页首屏与任务分组在窄屏的顺序
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .hero-media {
    order: 2;
  }

  .hero-text {
    order: 1;
  }

  .weekly-media {
    order: 1;
  }

  .weekly-text {
    order: 2;
  }
}

/* 程序验收反馈：移动端防溢出 */
@media (max-width: 768px) {
  .site-main,
  .site-main * {
    min-width: 0;
    max-width: 100%;
  }

  .site-main :is(h1, h2, h3, h4, p, a, span) {
    overflow-wrap: anywhere;
  }
}
