/* ============================================================
   天美传媒精品一区 · 全站样式
   base → layout → components → pages → responsive
   ============================================================ */

/* ---------- base ---------- */

:root {
  --paper: #f5f1e8;
  --paper-deep: #ece5d7;
  --ink: #22201d;
  --ink-soft: #4a453e;
  --ink-mute: #6d6659;
  --ochre: #7a4a24;
  --ochre-soft: #a9764a;
  --pine: #2f4b46;
  --rule: #c9bda8;
  --rule-soft: #ddd4c2;
  --surface: #ffffff;
  --shell: 1080px;
  --read: 720px;
  --gap: 32px;
  --radius: 6px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --font-mono: "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-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  font-weight: 400;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

p {
  margin: 0 0 1.1em;
}

p:last-child {
  margin-bottom: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--ochre);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: var(--pine);
  text-decoration: underline;
  text-underline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

figcaption {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 2px;
}

.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;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 60;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
  color: var(--paper);
  text-decoration: none;
}

/* ---------- layout ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-main {
  display: block;
}

.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 72px;
}

.home-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 72px;
}

.section {
  padding: 44px 0;
  border-bottom: 1px solid var(--rule-soft);
}

.section:last-child {
  border-bottom: 0;
}

.section-head {
  margin-bottom: 26px;
  max-width: var(--read);
}

.section-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
}

.section-code {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  font-weight: 500;
  color: var(--ochre);
}

.section-desc,
.section-intro {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: var(--read);
}

.section-more {
  margin-top: 22px;
  font-size: 15px;
}

.text-link {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--rule);
  font-weight: 500;
}

.text-link:hover {
  border-bottom-color: var(--pine);
  text-decoration: none;
}

/* 内页统一骨架 */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 20px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-mute);
}

.breadcrumb-sep {
  color: var(--rule);
}

.breadcrumb-current {
  color: var(--ink-soft);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb-item {
  font-size: 14px;
  color: var(--ink-mute);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  margin-right: 8px;
  color: var(--rule);
}

.breadcrumb-item.is-current {
  color: var(--ink-soft);
}

.page-header {
  padding: 22px 0 4px;
}

.page-title {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  max-width: 22em;
}

.page-head,
.page-title-block {
  padding: 14px 0 30px;
  border-bottom: 1px solid var(--rule-soft);
  margin-bottom: 8px;
}

.page-code {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  font-weight: 500;
  color: var(--ochre);
}

.page-lead {
  margin: 0;
  max-width: var(--read);
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink-soft);
}

/* ---------- components ---------- */

/* 页头品牌与导航 */

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  color: var(--ink);
  line-height: 1.3;
}

.brand:hover {
  color: var(--ink);
  text-decoration: none;
}

.brand-name {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0;
}

.brand-code {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: block;
  padding: 8px 12px;
  font-size: 15px;
  color: var(--ink-soft);
  border-left: 2px solid transparent;
  border-radius: 3px;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--ochre);
  background: var(--paper-deep);
  text-decoration: none;
}

.nav-link.is-current {
  color: var(--ochre);
  font-weight: 600;
  border-left-color: var(--ochre);
  background: transparent;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

/* 移动端抽屉 */

.mobile-drawer {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  width: min(320px, 84vw);
  height: 100%;
  padding: 20px 22px 32px;
  background: var(--surface);
  border-left: 1px solid var(--rule);
  box-shadow: -8px 0 24px rgba(34, 32, 29, 0.12);
  overflow-y: auto;
}

.mobile-drawer.is-open {
  display: block;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule-soft);
}

.drawer-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.drawer-close {
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.drawer-close:hover {
  border-color: var(--ochre);
  color: var(--ochre);
}

.drawer-list {
  padding-top: 12px;
}

.drawer-list li {
  border-bottom: 1px solid var(--rule-soft);
}

.drawer-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 4px;
  font-size: 16px;
  color: var(--ink-soft);
}

.drawer-list a:hover {
  color: var(--ochre);
  text-decoration: none;
}

.drawer-list a.is-current {
  color: var(--ochre);
  font-weight: 600;
}

/* 按钮 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary,
.btn.btn-primary {
  background: var(--ochre);
  border-color: var(--ochre);
  color: #fff;
}

.btn-primary:hover,
.btn.btn-primary:hover {
  background: #633a1b;
  border-color: #633a1b;
  color: #fff;
}

.btn-ghost,
.btn.btn-ghost {
  background: transparent;
  border-color: var(--pine);
  color: var(--pine);
}

.btn-ghost:hover,
.btn.btn-ghost:hover {
  background: var(--pine);
  color: var(--paper);
}

/* 编号标签 */

.code-inline {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ochre);
  padding-right: 2px;
}

.type-tag {
  display: inline-block;
  padding: 2px 10px;
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--pine);
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--surface);
  white-space: nowrap;
}

/* 图片容器 */

.section-media,
.hero-figure,
.type-figure,
.case-figure,
.verify-figure,
.glossary-figure,
.archive-figure,
.archive-group-figure {
  margin: 0;
  background: var(--paper-deep);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.section-media img,
.hero-figure img,
.type-figure img,
.case-figure img,
.verify-figure img,
.glossary-figure img,
.archive-figure img,
.archive-group-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  background: var(--paper-deep);
}

.section-media figcaption,
.hero-figure figcaption,
.type-figure figcaption,
.case-figure figcaption,
.verify-figure figcaption,
.glossary-figure figcaption,
.archive-figure figcaption,
.archive-group-caption {
  padding: 10px 14px;
  border-top: 1px solid var(--rule-soft);
  background: var(--surface);
}

/* 表格通用 */

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
}

.type-table,
.mislead-table,
.glossary-table {
  font-size: 15px;
  line-height: 1.7;
}

.type-table th,
.type-table td,
.mislead-table th,
.mislead-table td,
.glossary-table th,
.glossary-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule-soft);
}

.type-table thead th,
.mislead-table thead th,
.glossary-table thead th {
  background: var(--paper-deep);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--pine);
  border-bottom: 1px solid var(--rule);
}

.type-table tbody tr:last-child th,
.type-table tbody tr:last-child td,
.mislead-table tbody tr:last-child td,
.glossary-table tbody tr:last-child th,
.glossary-table tbody tr:last-child td {
  border-bottom: 0;
}

.type-table tbody th,
.glossary-table tbody th {
  font-weight: 600;
  color: var(--ink);
  background: #fbf8f1;
}

.table-caption {
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  color: var(--ink-mute);
  border-bottom: 1px solid var(--rule-soft);
}

/* 相关链接列表 */

.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.related-item {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  font-size: 15px;
}

.related-item a {
  display: block;
  color: var(--ink);
}

.related-item a:hover {
  color: var(--ochre);
  text-decoration: none;
}

.related-name {
  display: block;
  font-weight: 600;
}

.related-desc {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: var(--ink-mute);
}

.related-link {
  font-weight: 500;
}

/* 分页 */

.pager {
  margin: 40px 0 0;
}

.pager-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.pager-item {
  font-size: 14px;
}

.pager-link,
.pager-current-label {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-soft);
}

.pager-link:hover {
  border-color: var(--ochre);
  color: var(--ochre);
  text-decoration: none;
}

.pager-current .pager-current-label {
  background: var(--ochre);
  border-color: var(--ochre);
  color: #fff;
}

/* 页脚 */

.site-footer {
  background: #efe9dc;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 44px 24px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer-title {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--pine);
  letter-spacing: 0.02em;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.footer-list a {
  color: var(--ink-soft);
}

.footer-list a:hover {
  color: var(--ochre);
}

.footer-about {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.footer-note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-mute);
}

.footer-bottom {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 20px 24px 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  align-items: baseline;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--ink-mute);
}

.footer-brand {
  margin: 0;
  font-weight: 600;
  color: var(--ink-soft);
}

.footer-slogan {
  margin: 0;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.footer-boundary {
  margin: 0;
  flex: 1 1 280px;
}

/* ---------- pages ---------- */

/* 首页 · 档案抬头 */

.hero {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: 48px;
  align-items: start;
  padding: 48px 0 52px;
  border-bottom: 1px solid var(--rule);
}

.hero-text {
  min-width: 0;
}

.hero-code {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  font-weight: 500;
  color: var(--ochre);
}

.hero-title {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.hero-lead {
  margin: 18px 0 0;
  max-width: 34em;
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.hero-figure img {
  aspect-ratio: 4 / 3;
}

.code-card {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--ochre);
  border-radius: var(--radius);
}

.code-card-label {
  margin: 0 0 6px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
}

.code-card-value {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ochre);
}

.code-card-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* 首页 · 栏目索引行 */

.index-rows {
  border-top: 1px solid var(--rule-soft);
}

.index-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 18px 12px 18px 0;
  border-bottom: 1px solid var(--rule-soft);
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.index-row:hover {
  background: var(--surface);
  border-color: var(--rule);
}

.row-code {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ochre);
}

.row-body {
  min-width: 0;
}

.row-title {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
}

.row-desc {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.row-link {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  padding: 8px 12px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--pine);
}

.row-link:hover {
  border-color: var(--ochre);
  color: var(--ochre);
  text-decoration: none;
}

/* 首页 · 内容类型速览 */

.type-brief .section-media {
  margin-bottom: 28px;
  max-width: var(--read);
}

.type-brief .section-media img {
  aspect-ratio: 16 / 9;
}

.type-rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.type-row {
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
}

.type-name {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 600;
}

.type-point {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.type-tag {
  margin: 0;
}

/* 首页 · 专题档案时间轴 */

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-group {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 32px;
  padding: 26px 0;
  border-top: 1px solid var(--rule-soft);
}

.timeline-group:last-child {
  border-bottom: 1px solid var(--rule-soft);
}

.timeline-year {
  min-width: 0;
}

.year-value {
  margin: 0;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.05;
  color: var(--ochre-soft);
}

.year-range {
  margin: 8px 0 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
}

.timeline-items {
  min-width: 0;
}

.timeline-group-title {
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 600;
}

.timeline-item-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timeline-item-list li {
  padding-left: 16px;
  border-left: 2px solid var(--rule);
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.timeline .section-media {
  margin-top: 32px;
  max-width: var(--read);
}

.timeline .section-media img {
  aspect-ratio: 16 / 9;
}

/* 首页 · 观看前核对三步 */

.step-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: var(--read);
}

.check-steps .step-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 4px 18px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
}

.check-steps .step-code {
  grid-row: span 2;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ochre-soft);
}

.check-steps .step-name {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
}

.check-steps .step-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* 首页 · 常见误导说法摘要 */

.mislead-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.mislead-item {
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-top: 3px solid var(--pine);
  border-radius: var(--radius);
}

.mislead-claim {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.mislead-problem {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.mislead-alt {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--pine);
}

/* 首页 · 常见问题折叠 */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: var(--read);
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  padding: 0 20px;
}

.faq-question {
  position: relative;
  padding: 16px 32px 16px 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--ochre);
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  margin: 0;
  padding: 0 0 18px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
  border-top: 1px solid var(--rule-soft);
  padding-top: 14px;
}

/* 首页 · 方法与边界入口 */

.method-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: start;
  padding: 44px 0 0;
}

.method-text {
  min-width: 0;
}

.method-text .section-title {
  margin-bottom: 14px;
}

.method-text p {
  max-width: var(--read);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.method-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.entry-link {
  display: block;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--ochre);
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}

.entry-link:hover {
  border-left-color: var(--pine);
  color: var(--ochre);
  text-decoration: none;
}

.method-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-mute);
}

/* 内页 · 类型索引 */

.type-visual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 30px 0 8px;
}

.type-figure img {
  aspect-ratio: 3 / 2;
}

.type-table-section .table-wrap {
  margin-top: 4px;
}

.type-table {
  min-width: 680px;
}

.type-table tbody th.type-name {
  width: 20%;
  font-size: 16px;
}

.type-cases .case-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: var(--read);
}

.case-item {
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
}

.case-tag {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ochre);
}

.case-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
}

.case-fields {
  margin: 0;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px 16px;
  font-size: 15px;
  line-height: 1.75;
}

.case-fields dt {
  color: var(--ink-mute);
  font-size: 14px;
}

.case-fields dd {
  margin: 0;
  color: var(--ink-soft);
}

.mapping-body {
  max-width: var(--read);
}

.mapping-text {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.mapping-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 18px 0 0;
  font-size: 15px;
}

.mapping-links a {
  padding-bottom: 2px;
  border-bottom: 1px solid var(--rule);
  font-weight: 500;
}

.mapping-links a:hover {
  border-bottom-color: var(--pine);
  text-decoration: none;
}

.related-section {
  padding-top: 40px;
}

/* 内页 · 专题档案 */

.archive-rule {
  padding: 32px 0;
  border-bottom: 1px solid var(--rule-soft);
}

.rule-body {
  max-width: var(--read);
}

.rule-body p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.rule-example {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  max-width: var(--read);
}

.rule-example-item {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: baseline;
  font-size: 15px;
}

.rule-example-item .code-inline {
  font-size: 14px;
}

.rule-example-note {
  color: var(--ink-soft);
}

.archive-groups {
  padding: 36px 0 8px;
}

.archive-groups > .section-intro {
  margin-bottom: 26px;
}

.archive-group {
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}

.archive-group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 20px;
  margin-bottom: 18px;
}

.archive-year {
  margin: 0;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.05;
  color: var(--ochre-soft);
}

.archive-range {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
}

.archive-group-figure {
  margin-bottom: 20px;
  max-width: var(--read);
}

.archive-group-figure img {
  aspect-ratio: 16 / 9;
}

.archive-entry-list {
  display: flex;
  flex-direction: column;
  max-width: var(--read);
}

.archive-entry {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 14px 12px 14px 0;
  border-bottom: 1px solid var(--rule-soft);
}

.archive-entry:first-child {
  border-top: 1px solid var(--rule-soft);
}

.archive-entry-link {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  min-width: 0;
  flex: 1 1 320px;
  color: var(--ink);
}

.archive-entry-link:hover {
  color: var(--ochre);
  text-decoration: none;
}

.archive-entry-name {
  font-size: 16px;
  font-weight: 600;
}

.archive-entry-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-mute);
}

.topic-compose {
  padding: 36px 0;
  border-top: 1px solid var(--rule);
}

.compose-body {
  max-width: var(--read);
}

.compose-body p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.compose-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.compose-item {
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  font-size: 14px;
}

.compose-label {
  color: var(--ink-soft);
}

.related-links {
  padding: 32px 0 8px;
  border-top: 1px solid var(--rule);
}

.related-links .section-title {
  margin-bottom: 18px;
}

/* 内页 · 风险提示 */

.verify-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--rule-soft);
}

.verify-figure {
  margin: 22px 0 28px;
  max-width: var(--read);
}

.verify-figure img {
  aspect-ratio: 16 / 9;
}

.verify-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: var(--read);
}

.verify-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 4px 18px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
}

.verify-step {
  grid-row: span 3;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ochre-soft);
}

.verify-name {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.verify-basis {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.verify-deviation {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-mute);
  padding-top: 6px;
  border-top: 1px dashed var(--rule-soft);
}

.mislead-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--rule-soft);
}

.mislead-table {
  margin-top: 4px;
}

.mislead-table td:first-child {
  font-weight: 600;
  color: var(--ink);
  width: 26%;
}

.mislead-table td:nth-child(2) {
  color: var(--ink-soft);
}

.mislead-table td:nth-child(3) {
  color: var(--pine);
}

.feedback-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--rule-soft);
}

.feedback-section p {
  max-width: var(--read);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.feedback-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 16px;
  font-size: 15px;
}

.feedback-links a {
  padding-bottom: 2px;
  border-bottom: 1px solid var(--rule);
  font-weight: 500;
}

.feedback-links a:hover {
  border-bottom-color: var(--pine);
  text-decoration: none;
}

/* 内页 · 示例解读 */

.page-container {
  max-width: var(--shell);
}

.case-block {
  padding: 32px 0;
  border-bottom: 1px solid var(--rule-soft);
}

.case-head {
  margin-bottom: 22px;
  max-width: var(--read);
}

.case-code {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ochre);
}

.case-head h2 {
  font-size: 24px;
  font-weight: 600;
}

.case-intro {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.case-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 32px;
  align-items: start;
}

.case-body .step-list {
  gap: 0;
  max-width: none;
}

.case-body .step-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 0 16px;
  padding: 0 0 20px;
  border-bottom: 0;
  background: transparent;
}

.case-body .step-num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ochre);
  padding-top: 3px;
}

.case-body .step-content {
  min-width: 0;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule-soft);
}

.case-body .step-item:last-child .step-content {
  border-bottom: 0;
}

.step-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
}

.step-content p {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.case-figure {
  align-self: start;
}

.case-figure img {
  aspect-ratio: 4 / 3;
}

.case-note {
  margin-top: 24px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-left: 3px solid var(--pine);
  border-radius: var(--radius);
  max-width: var(--read);
}

.note-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--pine);
}

.case-note p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.counter-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--rule-soft);
}

.counter-section .section-head {
  margin-bottom: 22px;
}

.counter-section .section-head h2 {
  font-size: 24px;
  font-weight: 600;
}

.counter-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.counter-item {
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
}

.counter-title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 600;
}

.counter-scene {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.counter-break {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-mute);
  padding-top: 10px;
  border-top: 1px dashed var(--rule-soft);
}

.related-nav {
  padding: 32px 0 8px;
}

.related-title {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 600;
}

/* 内页 · 术语索引 */

.glossary-figure {
  margin: 26px 0 8px;
  max-width: var(--read);
}

.glossary-figure img {
  aspect-ratio: 16 / 9;
}

.glossary-section {
  padding: 30px 0;
  border-bottom: 1px solid var(--rule-soft);
}

.glossary-section:last-of-type {
  border-bottom: 0;
}

.glossary-table {
  margin-top: 4px;
}

.glossary-table tbody th.term-name {
  width: 20%;
  font-size: 15px;
  color: var(--ochre);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.glossary-table tbody td:nth-child(3) {
  color: var(--ink-mute);
  font-size: 14px;
}

.confusable-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: var(--read);
}

.confusable-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4px 20px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
}

.confusable-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
  font-weight: 600;
  color: var(--ink);
}

.confusable-heading {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ochre);
}

.confusable-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.section-text {
  max-width: var(--read);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.inline-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 14px;
  font-size: 15px;
}

.inline-link-list a {
  padding-bottom: 2px;
  border-bottom: 1px solid var(--rule);
  font-weight: 500;
}

.inline-link-list a:hover {
  border-bottom-color: var(--pine);
  text-decoration: none;
}

/* 内页 · 档案说明 */

.archive-method {
  padding: 32px 0;
  border-bottom: 1px solid var(--rule-soft);
}

.archive-method > h2,
.content-boundary > h2,
.correction > h2 {
  font-size: 24px;
  font-weight: 600;
}

.method-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.method-item {
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-top: 3px solid var(--ochre-soft);
  border-radius: var(--radius);
}

.method-code {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ochre);
}

.method-item h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
}

.method-item p {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.method-item p:last-child {
  margin-bottom: 0;
}

.archive-figure {
  margin-top: 26px;
  max-width: var(--read);
}

.archive-figure img {
  aspect-ratio: 16 / 9;
}

.content-boundary {
  padding: 32px 0;
  border-bottom: 1px solid var(--rule-soft);
}

.boundary-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.boundary-col {
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
}

.boundary-col h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
}

.boundary-provide {
  border-top: 3px solid var(--pine);
}

.boundary-exclude {
  border-top: 3px solid var(--ochre-soft);
}

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.boundary-list li {
  padding-left: 16px;
  position: relative;
}

.boundary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 1px;
  background: var(--rule);
}

.boundary-note {
  margin: 20px 0 0;
  max-width: var(--read);
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.correction {
  padding: 32px 0;
  border-bottom: 1px solid var(--rule-soft);
}

.correction p {
  max-width: var(--read);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.correction-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.link-card {
  display: block;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--ochre);
  border-radius: var(--radius);
  color: var(--ink);
}

.link-card:hover {
  border-left-color: var(--pine);
  color: var(--ochre);
  text-decoration: none;
}

.link-card-title {
  display: block;
  font-size: 16px;
  font-weight: 600;
}

.link-card-desc {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-mute);
}

/* 404 */

.error-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 72px;
}

.error-block {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--rule-soft);
}

.error-code {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--ochre);
}

.error-block h1 {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.35;
  max-width: 20em;
}

.error-desc {
  margin: 16px 0 0;
  max-width: var(--read);
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 0;
}

.error-guide {
  padding: 36px 0 0;
}

.error-guide h2 {
  margin: 0 0 18px;
  font-size: 24px;
  font-weight: 600;
}

.guide-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: var(--read);
}

.guide-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: baseline;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.guide-list strong {
  font-weight: 600;
  color: var(--ink);
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  body {
    font-size: 16px;
  }

  .header-inner {
    padding: 12px 20px;
    gap: 16px;
  }

  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .home-main,
  .inner-main,
  .error-main {
    padding: 0 20px 56px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 36px 0 40px;
  }

  .hero-title,
  .page-title,
  .error-block h1 {
    font-size: 28px;
  }

  .hero-visual {
    gap: 16px;
  }

  .index-row {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 6px 16px;
    padding: 16px 0;
  }

  .row-link {
    grid-column: 2;
    justify-self: start;
    margin-top: 6px;
  }

  .type-rows {
    grid-template-columns: minmax(0, 1fr);
  }

  .timeline-group {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 22px 0;
  }

  .year-value {
    font-size: 40px;
  }

  .method-entry {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .type-visual {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .case-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .method-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .boundary-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .confusable-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    padding: 36px 20px 26px;
  }

  .footer-bottom {
    padding: 18px 20px 28px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
    line-height: 1.8;
  }

  .brand-name {
    font-size: 17px;
  }

  .brand-code {
    font-size: 11px;
  }

  .home-main,
  .inner-main,
  .error-main {
    padding: 0 16px 48px;
  }

  .header-inner {
    padding: 10px 16px;
  }

  .section {
    padding: 32px 0;
  }

  .section-title {
    font-size: 20px;
  }

  .section-desc,
  .section-intro {
    font-size: 15px;
  }

  .hero {
    padding: 28px 0 32px;
  }

  .hero-title,
  .page-title,
  .error-block h1 {
    font-size: 26px;
    line-height: 1.4;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .index-row {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 4px 12px;
  }

  .row-title {
    font-size: 17px;
  }

  .row-link {
    grid-column: 1 / -1;
    margin-top: 8px;
    text-align: center;
  }

  .type-row,
  .mislead-item,
  .counter-item,
  .case-item,
  .method-item,
  .boundary-col {
    padding: 16px 18px;
  }

  .year-value,
  .archive-year {
    font-size: 36px;
  }

  .check-steps .step-item {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 2px 12px;
    padding: 16px;
  }

  .check-steps .step-code {
    font-size: 18px;
  }

  .verify-item {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 2px 12px;
    padding: 16px;
  }

  .verify-step {
    font-size: 17px;
  }

  .faq-item {
    padding: 0 16px;
  }

  .faq-question {
    font-size: 16px;
    padding: 14px 28px 14px 0;
  }

  .case-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .case-fields dt {
    margin-top: 8px;
  }

  .archive-entry {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 0;
  }

  .archive-entry-link {
    flex-basis: auto;
    flex-direction: column;
    gap: 2px;
  }

  .archive-entry-list {
    max-width: none;
  }

  .mislead-table,
  .glossary-table,
  .type-table {
    min-width: 0;
    font-size: 14px;
  }

  .mislead-table thead,
  .glossary-table thead {
    display: none;
  }

  .mislead-table tr,
  .glossary-table tr {
    display: block;
    padding: 14px 16px;
    border-bottom: 1px solid var(--rule-soft);
  }

  .mislead-table tr:last-child,
  .glossary-table tr:last-child {
    border-bottom: 0;
  }

  .mislead-table td,
  .glossary-table td,
  .glossary-table tbody th.term-name {
    display: block;
    width: auto;
    padding: 0 0 8px;
    border-bottom: 0;
  }

  .glossary-table tbody th.term-name {
    padding-bottom: 4px;
    font-size: 15px;
  }

  .mislead-table td:first-child {
    width: auto;
    font-size: 16px;
    padding-bottom: 6px;
  }

  .mislead-table td:last-child,
  .glossary-table td:last-child {
    padding-bottom: 0;
  }

  .table-wrap {
    border: 0;
    background: transparent;
    overflow-x: visible;
  }

  .type-table-section .table-wrap {
    border: 1px solid var(--rule);
  }

  .type-table th,
  .type-table td {
    padding: 10px 12px;
  }

  .type-table tbody th.type-name {
    width: auto;
    font-size: 15px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 32px 16px 22px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
    padding: 16px 16px 26px;
  }

  .footer-boundary {
    flex: 1 1 auto;
  }

  .pager-list {
    gap: 8px;
  }

  .pager-link,
  .pager-current-label {
    padding: 8px 12px;
    font-size: 13px;
  }

  .error-block {
    padding: 40px 0 32px;
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
