/* ==========================================================================
   吃瓜爆料 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* ==========================================================================
   base
   ========================================================================== */

:root {
  --paper: #f5f2ea;
  --panel: #ffffff;
  --ink: #181b1e;
  --muted: #5e625f;
  --line: #d8d4c8;
  --line-soft: #e7e3d8;
  --teal: #0e5a54;
  --teal-dark: #0a4540;
  --teal-tint: #e4eeec;
  --archived: #2f6b4f;
  --verify: #b26a00;
  --correct: #a33b2b;
  --radius: 6px;
  --wrap: 1160px;
  --read: 760px;
  --gap: 24px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

h1 {
  font-size: 28px;
  line-height: 1.25;
}

h2 {
  font-size: 20px;
  line-height: 1.3;
}

h3 {
  font-size: 16px;
  line-height: 1.4;
}

h4 {
  font-size: 14px;
  line-height: 1.45;
}

p {
  margin: 0 0 10px;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.16s ease, border-color 0.16s ease;
}

a:hover {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

figcaption {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 6px;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  line-height: 1.5;
}

caption {
  text-align: left;
}

code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--teal-tint);
  color: var(--teal-dark);
  padding: 1px 5px;
  border-radius: 3px;
  word-break: break-word;
}

button {
  font-family: inherit;
}

.visually-hidden,
.sr-only {
  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-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.site-header.is-solid {
  background: var(--panel);
  box-shadow: 0 1px 0 rgba(24, 27, 30, 0.04);
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
  white-space: nowrap;
  padding: 4px 0;
  border-bottom: 2px solid var(--teal);
  line-height: 1.4;
}

.brand:hover {
  color: var(--teal);
  text-decoration: none;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 11px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 2px solid transparent;
}

.primary-nav a:hover {
  color: var(--teal);
  border-bottom-color: var(--teal);
  text-decoration: none;
}

.primary-nav a.is-current {
  color: var(--teal);
  font-weight: 700;
  border-bottom-color: var(--teal);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.inner-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px 56px;
}

.home-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px 56px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  padding: 16px 0 0;
}

.breadcrumb a {
  color: var(--muted);
  padding: 4px 0;
}

.breadcrumb a:hover {
  color: var(--teal);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 600;
}

.page-header {
  padding: 14px 0 0;
}

.page-title {
  font-size: 28px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--ink);
  max-width: var(--read);
}

.page-title + .page-title {
  padding-top: 10px;
}

.inner-main > .page-title {
  padding: 14px 0 0;
}

.page-title {
  padding-bottom: 0;
}

.page-lead,
.page-lede,
.page-task,
.page-title-lead {
  max-width: var(--read);
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.page-status,
.page-meta,
.page-status-table {
  margin: 16px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.page-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.page-status .status-item {
  flex: 1 1 180px;
  min-width: 160px;
  padding: 9px 14px;
  border-right: 1px solid var(--line-soft);
}

.page-status .status-item:last-child {
  border-right: 0;
}

.page-status .status-item dt {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}

.page-status .status-item dd {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.page-meta,
.page-status-table {
  font-size: 13px;
}

.page-meta th,
.page-meta td,
.page-status-table th,
.page-status-table td {
  padding: 8px 14px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}

.page-meta tr:last-child th,
.page-meta tr:last-child td,
.page-status-table tr:last-child th,
.page-status-table tr:last-child td {
  border-bottom: 0;
}

.page-meta th,
.page-status-table th {
  width: 28%;
  font-weight: 600;
  color: var(--muted);
  background: #fbfaf6;
  border-right: 1px solid var(--line-soft);
}

.page-status-table .badge {
  margin-right: 6px;
}

/* 内页通用区块 */

.inner-main section,
.home-main section {
  margin-top: 44px;
}

.inner-main section > h2,
.home-main section > h2 {
  max-width: var(--read);
}

.section-lead,
.section-desc,
.section-intro,
.section-lede {
  max-width: var(--read);
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 13.5px;
}

/* 通用表格 */

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.table-scroll table {
  min-width: 640px;
}

table th,
table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}

table thead th {
  background: #fbfaf6;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

table tbody th {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

table tbody tr:last-child th,
table tbody tr:last-child td {
  border-bottom: 0;
}

table tbody tr:hover {
  background: #fbfaf6;
}

table tbody tr:hover th {
  box-shadow: inset 3px 0 0 var(--teal);
}

/* 徽标 */

.badge,
.status-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  padding: 1px 8px;
  border-radius: 3px;
  border: 1px solid currentColor;
  white-space: nowrap;
  vertical-align: middle;
}

.badge-archived,
.status-archived {
  color: var(--archived);
  background: #eef4f0;
}

.badge-pending,
.badge-verify,
.status-pending {
  color: var(--verify);
  background: #fbf2e2;
}

.badge-correct,
.badge-fix,
.status-fix {
  color: var(--correct);
  background: #f9ece9;
}

/* ==========================================================================
   components · 页脚
   ========================================================================== */

.site-footer {
  flex: 0 0 auto;
  background: var(--panel);
  border-top: 1px solid var(--line);
  margin-top: 48px;
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 36px 20px 24px;
  display: grid;
  grid-template-columns: minmax(200px, 1.4fr) repeat(4, minmax(130px, 1fr));
  gap: 28px 24px;
}

.footer-brand-name {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.footer-brand-desc {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 260px;
}

.footer-col-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-col a {
  display: inline-block;
  padding: 5px 0;
  font-size: 13px;
  color: var(--muted);
  min-height: 30px;
}

.footer-col a:hover {
  color: var(--teal);
}

.footer-bottom {
  border-top: 1px solid var(--line-soft);
}

.footer-bottom p {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 20px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}

/* ==========================================================================
   pages · 首页
   ========================================================================== */

.home-main {
  padding-top: 0;
}

/* 首屏 */

.hero-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 32px;
  padding: 32px 0 0;
  align-items: start;
  margin-top: 0 !important;
}

.hero-index {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
}

.hero-index-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.hero-path {
  display: flex;
  flex-direction: column;
  gap: 2px;
  counter-reset: herostep;
}

.hero-path li {
  counter-increment: herostep;
  border-bottom: 1px dashed var(--line-soft);
}

.hero-path li:last-child {
  border-bottom: 0;
}

.hero-path a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 0;
  font-size: 13px;
  color: var(--ink);
  min-height: 34px;
}

.hero-path a::before {
  content: counter(herostep, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--teal);
  flex: 0 0 auto;
}

.hero-path a:hover {
  color: var(--teal);
  text-decoration: none;
}

.hero-legend-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin: 18px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.status-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.status-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

.hero-focus {
  min-width: 0;
}

.hero-focus h1 {
  font-size: 34px;
  line-height: 1.2;
  font-weight: 700;
  margin: 0;
  max-width: 620px;
}

.hero-lead {
  max-width: 640px;
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: #3b403d;
}

.hero-figure {
  margin: 22px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}

.hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-figure figcaption {
  margin: 0;
  padding: 9px 14px;
  border-top: 1px solid var(--line-soft);
  background: #fbfaf6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  line-height: 1.4;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--teal);
  color: #ffffff;
  border-color: var(--teal);
}

.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: #ffffff;
}

.btn-ghost {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}

.btn-ghost:hover {
  background: var(--teal-tint);
  color: var(--teal-dark);
}

.hero-boundary {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  padding-left: 12px;
  border-left: 3px solid var(--line);
  max-width: 640px;
}

/* 日历与条目 */

.calendar-list > h2 {
  margin-bottom: 0;
}

.calendar-list-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}

.calendar-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.panel-title {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.calendar-dates {
  display: flex;
  flex-direction: column;
}

.calendar-dates li {
  border-bottom: 1px dashed var(--line-soft);
}

.calendar-dates li:last-child {
  border-bottom: 0;
}

.calendar-dates a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  min-height: 40px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink);
}

.calendar-dates a:hover {
  color: var(--teal);
  text-decoration: none;
}

.date-count {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--muted);
  background: #f2efe6;
  border-radius: 3px;
  padding: 0 6px;
  line-height: 1.7;
}

.entry-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.entry-list {
  display: flex;
  flex-direction: column;
}

.entry-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  grid-template-areas:
    "zone title badge"
    "zone tip tip";
  gap: 4px 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}

.entry-list .entry-row:last-child {
  border-bottom: 0;
}

.entry-zone {
  grid-area: zone;
  align-self: start;
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  background: var(--teal-tint);
  border-radius: 3px;
  padding: 2px 8px;
  text-align: center;
  line-height: 1.6;
}

.entry-title {
  grid-area: title;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
  min-width: 0;
}

.entry-row > .badge {
  grid-area: badge;
  align-self: start;
}

.entry-tip {
  grid-area: tip;
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.65;
}

.entry-more {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  font-weight: 600;
}

/* 分区台账 */

.zone-ledger > h2 {
  margin-bottom: 0;
}

.zone-table td:last-child a,
.zone-table td:last-child {
  white-space: nowrap;
}

/* 专题精选 */

.topic-shelf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.topic-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.topic-cover {
  margin: 0;
  border-bottom: 1px solid var(--line-soft);
}

.topic-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.topic-cover figcaption {
  margin: 0;
  padding: 8px 14px;
  background: #fbfaf6;
  border-top: 1px solid var(--line-soft);
}

.topic-name {
  font-size: 15px;
  margin: 14px 14px 0;
}

.topic-name a {
  color: var(--ink);
}

.topic-name a:hover {
  color: var(--teal);
}

.topic-summary {
  margin: 8px 14px 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  flex: 1 1 auto;
}

.topic-entry {
  margin: 12px 14px 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  font-weight: 600;
}

.shelf-more {
  margin: 18px 0 0;
  font-size: 13px;
  font-weight: 600;
}

/* 观看前核验三步 */

.precheck-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.step-col {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.step-title {
  font-size: 15px;
  margin: 0 0 8px;
}

.step-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 10px;
}

.step-checks {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 12px;
}

.step-checks li {
  position: relative;
  padding-left: 16px;
  font-size: 12.5px;
  color: #3b403d;
  line-height: 1.65;
}

.step-checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 6px;
  height: 6px;
  border: 1px solid var(--teal);
  border-radius: 1px;
}

.step-link {
  margin: auto 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  font-weight: 600;
}

/* 纠错分流 */

.issue-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}

.issue-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 140px;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
}

.issue-row:last-child {
  border-bottom: 0;
}

.issue-row:hover {
  background: #fbfaf6;
}

.issue-title {
  font-size: 14px;
  margin: 0;
}

.issue-desc {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.issue-link {
  justify-self: end;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  padding: 6px 0;
}

/* 编辑口径摘要 */

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

.rule-summary,
.boundary-summary {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.boundary-summary {
  border-left: 3px solid var(--correct);
}

.rule-title {
  font-size: 14px;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.rule-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: ruleitem;
}

.rule-list li {
  position: relative;
  padding-left: 26px;
  font-size: 13px;
  color: #3b403d;
  line-height: 1.7;
}

.rule-list li::before {
  counter-increment: ruleitem;
  content: counter(ruleitem);
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 16px;
  text-align: center;
  color: var(--muted);
  background: #fbfaf6;
}

.boundary-summary .rule-list li::before {
  border-color: #e4c9c3;
  color: var(--correct);
  background: #f9ece9;
}

.rule-link {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  font-weight: 600;
}

/* ==========================================================================
   pages · 内容分区
   ========================================================================== */

.picker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

.zone-choice,
.zone-pitfall {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.zone-choice > h3,
.zone-pitfall > h3 {
  font-size: 14px;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.choice-list,
.pitfall-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.choice-list li,
.pitfall-list li {
  padding-left: 12px;
  border-left: 2px solid var(--teal);
}

.pitfall-list li {
  border-left-color: var(--verify);
}

.choice-task,
.pitfall-title {
  margin: 0 0 4px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.choice-answer,
.pitfall-body {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.zone-cross .table-scroll table {
  min-width: 600px;
}

.figures-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

.figure-a,
.figure-b {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.figure-a img,
.figure-b img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.figure-a figcaption,
.figure-b figcaption {
  margin: 0;
  padding: 10px 14px;
  border-top: 1px solid var(--line-soft);
  background: #fbfaf6;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.related-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.related-item h3 {
  font-size: 14px;
  margin: 0 0 8px;
}

.related-item h3 a {
  color: var(--ink);
}

.related-item h3 a:hover {
  color: var(--teal);
}

.related-item p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.related-links {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-size: 13px;
}

.related-links-label {
  font-weight: 600;
  color: var(--ink);
}

.related-links-item {
  padding: 4px 0;
}

/* ==========================================================================
   pages · 话题归档
   ========================================================================== */

.filter-state {
  margin-top: 26px !important;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
}

.filter-state h2 {
  font-size: 13px;
  margin: 0 0 4px;
}

.filter-hint {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: var(--muted);
}

.filter-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 4px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fbfaf6;
}

.filter-links a:hover {
  border-color: var(--teal);
  color: var(--teal);
  text-decoration: none;
}

.filter-links a.is-active {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-tint);
}

.page-layout.calendar-list {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
  margin-top: 28px;
}

.page-layout.calendar-list .calendar-panel {
  padding: 16px;
}

.page-layout .calendar-panel > h2 {
  font-size: 13px;
  margin: 0 0 6px;
}

.panel-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 10px;
}

.calendar-list-nav {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.calendar-list-nav li {
  border-bottom: 1px dashed var(--line-soft);
}

.calendar-list-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 40px;
  padding: 6px 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink);
}

.calendar-list-nav a:hover {
  color: var(--teal);
  text-decoration: none;
}

.day-count {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--muted);
  background: #f2efe6;
  padding: 0 6px;
  border-radius: 3px;
  line-height: 1.7;
}

.calendar-figure {
  margin: 0;
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
}

.calendar-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.entry-panel > h2 {
  font-size: 13px;
  margin: 0 0 6px;
}

.entry-group {
  padding: 14px 0 4px;
  border-top: 1px solid var(--line-soft);
}

.entry-group:first-of-type {
  border-top: 0;
  padding-top: 4px;
}

.entry-date {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
  margin: 0 0 8px;
}

.entry-panel .entry-row {
  display: block;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line-soft);
}

.entry-panel .entry-row:last-child {
  border-bottom: 0;
}

.entry-tag {
  display: inline-block;
  margin: 0 8px 6px 0;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--teal);
  background: var(--teal-tint);
  border-radius: 3px;
  padding: 1px 8px;
  line-height: 1.7;
}

.entry-head {
  display: inline;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.55;
  margin: 0;
}

.entry-head a {
  color: var(--ink);
}

.entry-head a:hover {
  color: var(--teal);
}

.entry-state {
  display: inline-block;
  margin: 0 0 0 8px;
  vertical-align: middle;
}

.entry-panel .entry-tip {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.65;
}

.entry-links {
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 12.5px;
  font-weight: 600;
}

.param-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.param-col {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.param-col h3 {
  font-size: 14px;
  margin: 0 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.param-col p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
}

.related-col {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.related-col h3 {
  font-size: 14px;
  margin: 0 0 8px;
}

.related-col h3 a {
  color: var(--ink);
}

.related-col h3 a:hover {
  color: var(--teal);
}

.related-col p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* ==========================================================================
   pages · 专题归档
   ========================================================================== */

.topic-table table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}

.topic-threads-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--gap);
  align-items: start;
  margin-top: 44px;
}

.topic-threads > h2,
.cross-panel > h2 {
  font-size: 18px;
}

.topic-thread {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 16px;
}

.topic-thread:last-child {
  margin-bottom: 0;
}

.thread-media {
  margin: 0;
  align-self: start;
}

.thread-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.thread-media figcaption {
  margin-top: 6px;
}

.thread-body {
  min-width: 0;
}

.thread-body h3 {
  font-size: 15px;
  margin: 0 0 6px;
}

.thread-body > p {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.thread-order {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 10px;
  counter-reset: threadstep;
}

.thread-order li {
  counter-increment: threadstep;
  position: relative;
  padding-left: 22px;
  font-size: 12.5px;
  color: #3b403d;
  line-height: 1.6;
}

.thread-order li::before {
  content: counter(threadstep);
  position: absolute;
  left: 0;
  top: 1px;
  width: 16px;
  height: 16px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 14px;
  text-align: center;
  color: var(--muted);
  background: #fbfaf6;
}

.thread-links {
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 12.5px;
  font-weight: 600;
}

.cross-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.cross-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}

.cross-item:first-of-type {
  padding-top: 0;
}

.cross-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.cross-item h3 {
  font-size: 13.5px;
  margin: 0 0 4px;
}

.cross-item > p {
  margin: 0 0 6px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.65;
}

.cross-order {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 12px;
  font-weight: 600;
}

.order-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.order-col {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.order-col h3 {
  font-size: 14px;
  margin: 0 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.order-col p {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.order-col p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   pages · 观看前核验
   ========================================================================== */

.precheck-hero-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.precheck-col {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  border-radius: var(--radius);
  padding: 14px;
}

.precheck-col h3 {
  font-size: 13.5px;
  margin: 0 0 6px;
}

.precheck-col p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
}

.checklist-table {
  min-width: 720px;
}

.checklist-table td {
  font-size: 12.5px;
}

.source-judge-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}

.source-table-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  min-width: 0;
}

.source-table-wrap h3 {
  font-size: 14px;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.source-table {
  font-size: 12.5px;
}

.source-table th,
.source-table td {
  padding: 8px 10px;
}

.source-note {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.source-note img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.source-note figcaption {
  margin: 0;
  padding: 8px 14px;
  background: #fbfaf6;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.source-note-text {
  margin: 0;
  padding: 12px 14px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
}

.missing-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  counter-reset: missingstep;
}

.missing-step {
  counter-increment: missingstep;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  position: relative;
}

.missing-step h3 {
  font-size: 14px;
  margin: 0 0 8px;
  padding-left: 30px;
}

.missing-step h3::before {
  content: counter(missingstep, decimal-leading-zero);
  position: absolute;
  left: 16px;
  top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--teal);
}

.missing-step p {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.missing-step a {
  font-size: 12.5px;
  font-weight: 600;
}

/* ==========================================================================
   pages · 纠错与建议
   ========================================================================== */

.issue-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.issue-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  border-radius: var(--radius);
  padding: 16px;
}

.issue-card h3 {
  font-size: 15px;
  margin: 0 0 8px;
}

.issue-card > p {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.issue-card ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}

.issue-card li {
  position: relative;
  padding-left: 14px;
  font-size: 12.5px;
  color: #3b403d;
  line-height: 1.65;
}

.issue-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  background: var(--teal);
  border-radius: 1px;
}

.figure-block {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: var(--read);
}

.figure-block img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.figure-block figcaption {
  margin: 0;
  padding: 10px 16px;
  border-top: 1px solid var(--line-soft);
  background: #fbfaf6;
}

.prepare-scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  align-items: start;
}

.prepare-list,
.reject-list {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.reject-list {
  border-left: 3px solid var(--correct);
}

.prepare-list > h3,
.reject-list > h3 {
  font-size: 14px;
  margin: 0 0 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.prepare-list > p,
.reject-list > p {
  margin: 0 0 12px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
}

.prepare-list ol {
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: prepareitem;
}

.prepare-list li {
  counter-increment: prepareitem;
  position: relative;
  padding-left: 30px;
}

.prepare-list li::before {
  content: counter(prepareitem);
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  color: var(--muted);
  background: #fbfaf6;
}

.prepare-list h4,
.reject-list h4 {
  font-size: 13px;
  margin: 0 0 3px;
}

.prepare-list li p,
.reject-list li p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
}

.reject-list ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reject-list li {
  position: relative;
  padding-left: 16px;
}

.reject-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 2px;
  background: var(--correct);
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  counter-reset: flowstep;
}

.flow-step {
  counter-increment: flowstep;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.flow-step h3 {
  position: relative;
  font-size: 14px;
  margin: 0 0 8px;
  padding-left: 28px;
}

.flow-step h3::before {
  content: counter(flowstep, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--teal);
}

.flow-step > p {
  margin: 0 0 8px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
}

.flow-state {
  margin: 0 0 8px;
}

.flow-link {
  margin: auto 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  font-weight: 600;
}

/* ==========================================================================
   pages · 编辑口径
   ========================================================================== */

.layout-shell {
  margin-top: 0;
}

.rule-pair {
  margin-top: 26px !important;
}

.rule-pair-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  align-items: start;
}

.include-rule,
.exclude-rule {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.include-rule {
  border-top: 3px solid var(--teal);
}

.exclude-rule {
  border-top: 3px solid var(--correct);
}

.include-rule h3,
.exclude-rule h3 {
  font-size: 14px;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.rule-pair .rule-list {
  gap: 12px;
}

.exclude-rule .rule-list li::before {
  border-color: #e4c9c3;
  color: var(--correct);
  background: #f9ece9;
}

.status-dictionary-table {
  min-width: 720px;
}

.status-dictionary-table .status-badge {
  margin-right: 4px;
}

.status-figure-block {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: var(--read);
}

.status-figure-block img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.status-figure-block figcaption {
  margin: 0;
  padding: 10px 16px;
  border-top: 1px solid var(--line-soft);
  background: #fbfaf6;
}

.status-figure > p {
  margin: 10px 0 0;
  max-width: var(--read);
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
}

.reorg-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.reorg-col {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.reorg-col h3 {
  font-size: 14px;
  margin: 0 0 8px;
}

.reorg-col > p {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.reorg-link {
  margin: auto 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  font-weight: 600;
}

.check-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.check-step {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.check-step-no {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 3px;
  padding: 0 6px;
  line-height: 1.7;
  margin-bottom: 8px;
}

.check-step h3 {
  font-size: 14px;
  margin: 0 0 6px;
}

.check-step p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
}

.related-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

/* ==========================================================================
   pages · 404
   ========================================================================== */

.error-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 56px 20px 64px;
  width: 100%;
}

.error-panel {
  max-width: 640px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.error-code {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0;
}

.error-panel h1 {
  font-size: 26px;
  line-height: 1.3;
  margin: 0 0 10px;
}

.error-lead {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

.error-tips {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 20px;
  padding: 14px 0 0;
  border-top: 1px solid var(--line-soft);
}

.error-tips li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  color: #3b403d;
  line-height: 1.7;
}

.error-tips li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 6px;
  height: 6px;
  border: 1px solid var(--teal);
  border-radius: 1px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: var(--teal);
  border: 1px solid var(--teal);
  border-radius: var(--radius);
}

.btn-home:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: #ffffff;
  text-decoration: none;
}

/* ==========================================================================
   responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 24px;
  }

  .hero-focus h1 {
    font-size: 30px;
  }

  .calendar-list-grid {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .page-layout.calendar-list {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .topic-threads-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .precheck-hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-steps,
  .check-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 14px;
  }

  .header-inner {
    height: 60px;
    padding: 0 16px;
    gap: 12px;
  }

  .brand {
    font-size: 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 20px rgba(24, 27, 30, 0.08);
    display: none;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
  }

  .primary-nav li {
    border-bottom: 1px solid var(--line-soft);
  }

  .primary-nav li:last-child {
    border-bottom: 0;
  }

  .primary-nav a {
    min-height: 48px;
    padding: 0 4px;
    border-bottom: 0;
    font-size: 14px;
  }

  .primary-nav a.is-current {
    border-bottom: 0;
    padding-left: 12px;
    border-left: 3px solid var(--teal);
  }

  .home-main,
  .inner-main {
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 40px;
  }

  .breadcrumb {
    padding-top: 12px;
  }

  .page-header {
    padding-top: 10px;
  }

  .page-title,
  h1.page-title {
    font-size: 24px;
    line-height: 1.3;
  }

  .page-lead,
  .page-lede,
  .page-task,
  .page-title-lead {
    font-size: 13.5px;
  }

  .page-status {
    display: block;
    border-right: 1px solid var(--line);
  }

  .page-status .status-item {
    min-width: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
    padding: 8px 12px;
  }

  .page-status .status-item:last-child {
    border-bottom: 0;
  }

  .page-meta,
  .page-status-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .page-meta tbody,
  .page-status-table tbody {
    display: block;
    min-width: 100%;
  }

  .page-meta tr,
  .page-status-table tr {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    border-bottom: 1px solid var(--line-soft);
  }

  .page-meta tr:last-child,
  .page-status-table tr:last-child {
    border-bottom: 0;
  }

  .page-meta th,
  .page-meta td,
  .page-status-table th,
  .page-status-table td {
    display: block;
    border-bottom: 0;
    padding: 8px 12px;
    width: auto;
  }

  .page-meta th,
  .page-status-table th {
    border-right: 1px solid var(--line-soft);
    font-size: 12px;
  }

  .inner-main section,
  .home-main section {
    margin-top: 34px;
  }

  .section-lead,
  .section-desc,
  .section-intro,
  .section-lede {
    font-size: 13px;
    margin-bottom: 14px;
  }

  /* 表格滚动容器在窄屏内收边，避免被内容撑破 */

  .table-scroll {
    max-width: 100%;
  }

  .table-scroll table {
    min-width: 560px;
  }

  .checklist-table,
  .status-dictionary-table {
    min-width: 600px;
  }

  /* 首屏 */

  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 18px;
  }

  .hero-focus {
    order: 1;
    width: 100%;
  }

  .hero-index {
    order: 2;
    width: 100%;
  }

  .hero-focus h1 {
    font-size: 24px;
    line-height: 1.3;
  }

  .hero-lead {
    font-size: 14px;
    margin-top: 10px;
  }

  .hero-figure {
    margin-top: 16px;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 16px;
  }

  .btn {
    flex: 1 1 auto;
    padding: 0 14px;
    font-size: 13.5px;
  }

  .hero-boundary {
    font-size: 12px;
  }

  .hero-path {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 12px;
  }

  .hero-path li {
    border-bottom: 1px dashed var(--line-soft);
  }

  .status-legend {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .status-legend li {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 11.5px;
  }

  /* 首页日历与条目 */

  .calendar-list-grid {
    display: block;
  }

  .calendar-panel {
    margin-bottom: 16px;
    padding: 14px;
  }

  .calendar-dates {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 12px;
  }

  .calendar-dates a {
    min-height: 44px;
  }

  .entry-panel {
    padding: 14px;
  }

  .entry-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "zone badge"
      "title title"
      "tip tip";
    gap: 6px 10px;
    padding: 12px 0;
  }

  .entry-zone {
    justify-self: start;
  }

  .entry-title {
    font-size: 14px;
  }

  /* 专题、核验、纠错、编辑口径：全部单列 */

  .topic-shelf-grid,
  .precheck-grid,
  .editorial-grid,
  .picker-grid,
  .figures-grid,
  .related-grid,
  .param-grid,
  .order-steps,
  .issue-grid,
  .prepare-scope-grid,
  .reorg-cols,
  .related-cols,
  .rule-pair-cols,
  .source-judge-grid,
  .missing-steps,
  .flow-steps,
  .check-steps,
  .precheck-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .issue-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    align-items: start;
    padding: 14px;
  }

  .issue-link {
    justify-self: start;
  }

  /* 话题归档 */

  .page-layout.calendar-list {
    display: block;
    margin-top: 22px;
  }

  .page-layout.calendar-list .calendar-panel {
    margin-bottom: 16px;
  }

  .calendar-list-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 12px;
    margin-bottom: 12px;
  }

  .calendar-list-nav a {
    min-height: 44px;
  }

  .calendar-figure img {
    aspect-ratio: 16 / 9;
  }

  .filter-state {
    padding: 12px 14px;
  }

  .filter-links {
    gap: 6px;
  }

  .filter-links a {
    min-height: 40px;
    padding: 4px 10px;
    font-size: 12px;
  }

  .entry-panel .entry-row {
    padding: 12px 0;
  }

  .entry-state {
    display: block;
    margin: 4px 0 0;
  }

  /* 专题归档 */

  .topic-threads-layout {
    display: block;
    margin-top: 34px;
  }

  .cross-panel {
    margin-top: 16px;
  }

  .topic-thread {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .thread-media img {
    aspect-ratio: 16 / 9;
  }

  /* 观看前核验 */

  .source-table-wrap {
    padding: 14px;
    margin-bottom: 16px;
  }

  .source-table {
    font-size: 12px;
  }

  /* 404 */

  .error-main {
    padding: 32px 16px 48px;
  }

  .error-panel {
    padding: 22px 18px;
  }

  .error-panel h1 {
    font-size: 22px;
  }

  .error-actions {
    gap: 10px;
  }

  .btn-home,
  .error-actions .btn-ghost {
    flex: 1 1 auto;
    padding: 0 14px;
    font-size: 13.5px;
  }

  /* 页脚 */

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
    padding: 28px 16px 20px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand-desc {
    max-width: none;
  }

  .footer-col a {
    min-height: 34px;
    padding: 6px 0;
  }

  .footer-bottom p {
    padding: 12px 16px;
    font-size: 11.5px;
  }
}

@media (max-width: 380px) {
  .hero-path,
  .calendar-dates,
  .calendar-list-nav,
  .status-legend {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .btn,
  .btn-home,
  .btn-ghost {
    flex-basis: 100%;
  }
}

/* 程序验收反馈：移动端防溢出 */
@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;
  }
}
