/* ==========================================================================
   天美传媒寸止挑战 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --ink: #17171a;
  --paper: #f6f4ef;
  --paper-soft: #efece4;
  --red: #cf3a26;
  --blue: #1f4f9c;
  --yellow: #d99b2b;
  --line: #d8d3c8;
  --line-strong: #2a2a2e;
  --mono: "SFMono-Regular", "Menlo", "Consolas", "Liberation Mono", monospace;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --container: 1120px;
  --gap: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  line-height: 1.35;
  letter-spacing: normal;
}

p {
  margin: 0 0 0.9em;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 120ms linear, text-decoration-thickness 120ms linear;
}

a:hover,
a:focus-visible {
  color: var(--red);
  text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: #55534d;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  text-align: left;
  vertical-align: top;
}

button {
  font-family: inherit;
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   layout
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gap);
  padding-right: var(--gap);
}

.site-header {
  background: var(--paper);
  border-bottom: 4px solid var(--line-strong);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  min-height: 68px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  flex: 0 0 auto;
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.3;
}

.brand:hover,
.brand:focus-visible {
  color: var(--red);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
}

.nav-list li {
  display: block;
}

.nav-list a {
  display: inline-block;
  padding: 6px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.5;
  border-bottom: 2px solid transparent;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--red);
  border-bottom-color: var(--red);
}

.nav-list a.is-current {
  color: var(--red);
  border-bottom-color: var(--red);
}

.nav-cta {
  flex: 0 0 auto;
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--paper);
  background: var(--red);
  border: 2px solid var(--red);
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  color: var(--red);
  background: var(--paper);
  text-decoration: none;
}

.nav-cta.is-current {
  color: var(--paper);
  background: var(--line-strong);
  border-color: var(--line-strong);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 2px solid var(--line-strong);
  border-radius: 4px;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transition: transform 120ms linear, opacity 120ms linear;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-main {
  display: block;
}

.inner-main {
  padding-bottom: 56px;
}

/* 面包屑：全站统一 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px var(--gap) 0;
  font-size: 13px;
  line-height: 1.6;
  color: #55534d;
}

.breadcrumb a {
  color: var(--blue);
  text-decoration: underline;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--red);
}

.breadcrumb-sep {
  font-family: var(--mono);
  color: #8d887d;
}

.breadcrumb-current {
  color: #55534d;
}

/* 页面标题区：全站统一 */
.page-header {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--gap) 18px;
}

.page-title {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink);
  padding-bottom: 16px;
  border-bottom: 4px solid var(--line-strong);
}

/* 页脚 */
.site-footer {
  margin-top: 8px;
  border-top: 4px solid var(--line-strong);
  background: var(--paper-soft);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr 1.2fr;
  gap: 28px 24px;
  padding-top: 36px;
  padding-bottom: 28px;
}

.footer-brand {
  min-width: 0;
}

.footer-logo {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--ink);
}

.footer-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #55534d;
}

.footer-col {
  min-width: 0;
}

.footer-col h2 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  color: var(--ink);
}

.footer-col p {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.7;
  color: #55534d;
}

.footer-col a {
  display: inline-block;
  font-size: 13px;
  line-height: 1.7;
  color: var(--blue);
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--red);
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-bottom {
  padding-top: 16px;
  padding-bottom: 24px;
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: #6b675e;
}

/* --------------------------------------------------------------------------
   components
   -------------------------------------------------------------------------- */

/* 区块标题：编号 + 标题 + 说明 */
.section-head {
  margin-bottom: 20px;
}

.section-head h2,
.section-title,
.sec-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.section-head h2 .num,
.section-title .section-num,
.sec-num {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--blue);
}

.section-head p {
  margin: 8px 0 0;
  max-width: 760px;
  font-size: 15px;
  line-height: 1.75;
  color: #4a4842;
}

.section-desc,
.section-intro,
.sec-intro,
.section-note {
  max-width: 760px;
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: #4a4842;
}

.section-note a {
  color: var(--blue);
}

.section-note a:hover,
.section-note a:focus-visible {
  color: var(--red);
}

/* 表格通用 */
.table-wrap,
.table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfaf6;
}

.data-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.65;
}

.data-table caption,
.table-caption {
  caption-side: top;
  padding: 10px 14px;
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  color: #6b675e;
  text-align: left;
  border-bottom: 1px solid var(--line);
  background: var(--paper-soft);
}

.data-table thead th {
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  white-space: nowrap;
  background: var(--paper-soft);
  border-bottom: 2px solid var(--line-strong);
}

.data-table tbody th,
.data-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: #33312d;
}

.data-table tbody th {
  font-weight: 700;
  color: var(--ink);
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: #f2efe7;
}

.data-table a {
  color: var(--blue);
  text-decoration: underline;
}

.data-table a:hover,
.data-table a:focus-visible {
  color: var(--red);
}

.cell-code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--blue);
  white-space: nowrap;
}

/* 图片容器 */
.media-figure,
.topic-visual,
.topic-media,
.check-figure,
.scope-figure,
.order-figure,
.related-media,
.hero-visual {
  min-width: 0;
}

.media-figure img,
.topic-visual img,
.topic-media img,
.check-figure img,
.scope-figure img,
.order-figure img,
.related-media img,
.hero-visual img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--paper-soft);
}

/* 原生折叠问答 */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line-strong);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 14px 36px 14px 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 12px;
  font-family: var(--mono);
  font-size: 18px;
  color: var(--red);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list summary:hover {
  color: var(--red);
}

.faq-list details p {
  margin: 0 0 16px;
  max-width: 760px;
  font-size: 15px;
  line-height: 1.75;
  color: #4a4842;
}

/* 相关入口横条 */
.related-bar,
.related,
.related-links {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 4px solid var(--line-strong);
}

.related-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.related-list li {
  min-width: 0;
}

.related-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  background: #fbfaf6;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 4px;
  text-decoration: none;
}

.related-list a:hover,
.related-list a:focus-visible {
  color: var(--red);
  border-left-color: var(--red);
  background: var(--paper-soft);
}

/* 编号步骤（通用列表） */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line-strong);
}

.step-list .step-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 4px 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.step-list .step-item .step-num {
  grid-row: 1 / span 2;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.5;
}

.step-list .step-item h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
}

.step-list .step-item p {
  margin: 2px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: #4a4842;
}

/* 文字链接与箭头链接 */
.text-link {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--red);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 700;
  color: var(--red);
}

.link-arrow::after {
  content: "→";
  font-family: var(--mono);
}

.link-arrow:hover,
.link-arrow:focus-visible {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */

/* 首屏定位区 */
.hero {
  padding: 36px 0 40px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px;
  align-items: start;
}

.hero-text {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--blue);
}

.hero-text h1 {
  margin: 0 0 16px;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
}

.hero-lead {
  max-width: 620px;
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.8;
  color: #3d3b36;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-bottom: 22px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--paper);
  background: var(--red);
  border: 2px solid var(--red);
  border-radius: 4px;
  text-decoration: none;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  color: var(--red);
  background: var(--paper);
  text-decoration: none;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.hero-meta li {
  position: relative;
  padding-left: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: #4a4842;
}

.hero-meta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--yellow);
}

.hero-visual {
  margin: 0;
}

.hero-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--line-strong);
  border-radius: 4px;
  object-fit: cover;
}

/* 频道标签带 */
.channel-strip {
  padding: 32px 0;
  border-top: 4px solid var(--line-strong);
}

.channel-tags {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.channel-tags li {
  min-width: 0;
}

.channel-tags a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  min-height: 76px;
  padding: 12px 12px 14px;
  background: #fbfaf6;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 4px;
  text-decoration: none;
}

.channel-tags a:hover,
.channel-tags a:focus-visible {
  background: var(--paper-soft);
  border-top-color: var(--red);
}

.tag-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}

.channel-tags a:hover .tag-name,
.channel-tags a:focus-visible .tag-name {
  color: var(--red);
}

.tag-desc {
  font-size: 12px;
  line-height: 1.5;
  color: #6b675e;
}

/* 条目工作区 */
.entry-workbench {
  padding: 32px 0;
  border-top: 4px solid var(--line-strong);
}

.filter-note {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.filter-note .filter-item {
  min-width: 0;
  padding: 12px 14px;
  background: #fbfaf6;
  border: 1px solid var(--line);
  border-left: 4px solid var(--yellow);
  border-radius: 4px;
}

.filter-note .filter-item .field-name {
  display: block;
  margin-bottom: 4px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--blue);
}

.filter-note .filter-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #4a4842;
}

.field-explain {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.explain-item {
  min-width: 0;
  padding: 14px 16px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.explain-item h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.explain-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #4a4842;
}

.workbench-more {
  margin: 18px 0 0;
  font-size: 15px;
}

.workbench-more a {
  font-weight: 700;
  color: var(--blue);
}

.workbench-more a:hover,
.workbench-more a:focus-visible {
  color: var(--red);
}

/* 专题片单预览 */
.topic-preview {
  padding: 32px 0;
  border-top: 4px solid var(--line-strong);
}

.topic-preview-inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px;
  align-items: start;
}

.topic-list-col {
  min-width: 0;
}

.topic-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line-strong);
}

.topic-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 4px 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.topic-num {
  grid-row: 1 / span 2;
  font-size: 20px;
  font-weight: 700;
  color: var(--yellow);
  line-height: 1.4;
}

.topic-item .topic-body {
  min-width: 0;
}

.topic-item .topic-body h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}

.topic-item .topic-body h3 a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.topic-item .topic-body h3 a:hover,
.topic-item .topic-body h3 a:focus-visible {
  color: var(--red);
}

.topic-item .topic-body p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.75;
  color: #4a4842;
}

.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}

.topic-tags li {
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--blue);
  background: #eef2f9;
  border: 1px solid #c9d6ea;
  border-radius: 4px;
}

.topic-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
}

.topic-link:hover,
.topic-link:focus-visible {
  color: var(--ink);
}

.topic-visual {
  margin: 0;
}

.topic-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* 观看准备四步 */
.watch-steps {
  padding: 32px 0;
  border-top: 4px solid var(--line-strong);
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.step-cell {
  min-width: 0;
  padding: 16px;
  background: #fbfaf6;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 4px;
}

.step-cell .step-num {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.3;
}

.step-cell h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.step-cell .step-action {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.7;
  color: #33312d;
}

.step-cell .step-expect {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #6b675e;
}

.steps-more {
  margin: 18px 0 0;
  font-size: 15px;
}

.steps-more a {
  font-weight: 700;
  color: var(--blue);
}

.steps-more a:hover,
.steps-more a:focus-visible {
  color: var(--red);
}

/* 入口核验三列 */
.entry-check {
  padding: 32px 0;
  border-top: 4px solid var(--line-strong);
}

.entry-check .check-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfaf6;
}

.entry-check .check-col {
  min-width: 0;
  padding: 18px 20px;
  border-left: 1px solid var(--line);
}

.entry-check .check-col:first-child {
  border-left: 0;
}

.entry-check .check-col h3 {
  margin: 0 0 10px;
  padding-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  border-bottom: 2px solid var(--line-strong);
}

.entry-check .check-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.entry-check .check-col li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: #4a4842;
}

.entry-check .check-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 2px;
  background: var(--red);
}

.check-more {
  margin: 18px 0 0;
  font-size: 15px;
}

.check-more a {
  font-weight: 700;
  color: var(--blue);
}

.check-more a:hover,
.check-more a:focus-visible {
  color: var(--red);
}

/* 常见问题 */
.faq {
  padding: 32px 0;
  border-top: 4px solid var(--line-strong);
}

/* 编务边界与反馈 */
.boundary {
  padding: 32px 0 40px;
  border-top: 4px solid var(--line-strong);
}

.boundary-inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px;
  align-items: start;
}

.boundary-inner .boundary-col {
  min-width: 0;
}

.boundary-inner .boundary-col h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
}

.boundary-inner .boundary-col h2 .num {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--blue);
}

.boundary-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.boundary-provide,
.boundary-not {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fbfaf6;
}

.boundary-provide {
  border-top: 4px solid var(--blue);
}

.boundary-not {
  border-top: 4px solid var(--red);
}

.boundary-provide h3,
.boundary-not h3 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.boundary-provide ul,
.boundary-not ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.boundary-provide li,
.boundary-not li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: #4a4842;
}

.boundary-provide li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 12px;
  color: var(--blue);
}

.boundary-not li::before {
  content: "✕";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 12px;
  color: var(--red);
}

.boundary-links > p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.75;
  color: #4a4842;
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
  padding: 14px 16px;
  background: #fbfaf6;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 4px;
  text-decoration: none;
}

.link-card:hover,
.link-card:focus-visible {
  background: var(--paper-soft);
  border-left-color: var(--blue);
  text-decoration: none;
}

.link-card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}

.link-card:hover .link-card-title,
.link-card:focus-visible .link-card-title {
  color: var(--red);
}

.link-card-desc {
  font-size: 13px;
  line-height: 1.7;
  color: #55534d;
}

/* --------------------------------------------------------------------------
   pages · 内页共用
   -------------------------------------------------------------------------- */

.page-hero,
.page-head {
  padding-top: 4px;
  padding-bottom: 8px;
}

.page-lede,
.page-lead {
  max-width: 760px;
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.8;
  color: #3d3b36;
}

.section {
  padding-top: 32px;
  padding-bottom: 8px;
}

.section:first-of-type {
  padding-top: 24px;
}

.section-title {
  margin: 0 0 8px;
}

.section + .section {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

/* 频道目录 */
.channels-table tbody th {
  font-size: 15px;
  white-space: nowrap;
}

.channels-table td {
  min-width: 120px;
}

.media-figure {
  margin-top: 24px;
}

.media-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.tag-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.tag-card {
  min-width: 0;
  padding: 14px 16px;
  background: #fbfaf6;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 4px;
}

.tag-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.tag-card p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.7;
  color: #4a4842;
}

.tag {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--blue);
  background: #eef2f9;
  border: 1px solid #c9d6ea;
  border-radius: 4px;
}

.plain-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.plain-list li {
  position: relative;
  padding-left: 16px;
  font-size: 15px;
  line-height: 1.75;
  color: #4a4842;
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--yellow);
}

.step-next {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: #6b675e;
}

.step-body {
  min-width: 0;
}

/* 专题片单页：主内容在左，aside 在右 */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
  padding-top: 8px;
  padding-bottom: 8px;
}

.page-primary {
  min-width: 0;
}

.page-aside {
  min-width: 0;
  padding: 18px 20px;
  background: #fbfaf6;
  border: 1px solid var(--line);
  border-top: 4px solid var(--line-strong);
  border-radius: 4px;
}

.page-aside > h2 {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.aside-block {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.aside-block:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.aside-block h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.rule-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  counter-reset: rule;
}

.rule-list li {
  position: relative;
  padding-left: 22px;
  font-size: 13px;
  line-height: 1.7;
  color: #4a4842;
}

.rule-list li::before {
  counter-increment: rule;
  content: counter(rule, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--blue);
}

.topic-detail {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.topic-detail:first-of-type {
  border-top: 1px solid var(--line-strong);
}

.topic-detail .topic-media {
  margin: 0;
}

.topic-detail .topic-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.topic-detail .topic-body {
  min-width: 0;
}

.topic-index {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--yellow);
}

.topic-detail .topic-body h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.topic-detail .topic-body > p {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.8;
  color: #3d3b36;
}

.topic-scope-label,
.topic-order-label {
  margin: 12px 0 6px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--blue);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-list li {
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--blue);
  background: #eef2f9;
  border: 1px solid #c9d6ea;
  border-radius: 4px;
}

.topic-order {
  display: flex;
  flex-direction: column;
  gap: 6px;
  counter-reset: order;
}

.topic-order li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  line-height: 1.7;
  color: #4a4842;
}

.topic-order li::before {
  counter-increment: order;
  content: counter(order, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--red);
}

.topic-extend {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.7;
}

.topic-extend a {
  font-weight: 600;
  color: var(--red);
}

.topic-extend a:hover,
.topic-extend a:focus-visible {
  color: var(--ink);
}

.read-order .step-list .step-item {
  grid-template-columns: 56px minmax(0, 1fr);
}

.topic-channel .data-table {
  min-width: 480px;
}

/* 条目索引页 */
.field-table {
  min-width: 720px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.filter-rules .filter-item {
  min-width: 0;
  padding: 12px 14px;
  background: #fbfaf6;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 4px;
}

.filter-rules .filter-item h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.filter-rules .filter-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #4a4842;
}

.entry-table {
  min-width: 820px;
}

.entry-table tbody td:first-child {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--blue);
  white-space: nowrap;
}

.hint-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 16px;
}

.hint-col {
  min-width: 0;
  padding: 16px 18px;
  background: #fbfaf6;
  border: 1px solid var(--line);
  border-top: 4px solid var(--yellow);
  border-radius: 4px;
}

.hint-col h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.hint-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hint-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.75;
  color: #4a4842;
}

.hint-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 2px;
  background: var(--blue);
}

.hint-term {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--blue);
}

.related-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px;
  align-items: start;
  margin-top: 16px;
}

.related-layout .related-media {
  margin: 0;
}

.related-layout .related-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.related-nav {
  min-width: 0;
}

.related-nav ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.related-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  background: #fbfaf6;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 4px;
  text-decoration: none;
}

.related-nav a:hover,
.related-nav a:focus-visible {
  color: var(--red);
  border-left-color: var(--red);
  background: var(--paper-soft);
}

/* 观看准备页 */
.prepare-steps,
.reading-order,
.interrupt-faq {
  padding-top: 28px;
  padding-bottom: 8px;
}

.prepare-steps h2,
.reading-order h2,
.interrupt-faq h2,
.check-methods h2,
.deviation h2,
.check-record h2,
.related-links h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
}

.step-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.prepare-steps .step-band .step-item {
  display: block;
  min-width: 0;
  padding: 16px;
  background: #fbfaf6;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 4px;
}

.prepare-steps .step-index {
  display: block;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.3;
}

.prepare-steps .step-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.prepare-steps .step-action {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.7;
  color: #33312d;
}

.prepare-steps .step-expect {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.7;
  color: #55534d;
}

.prepare-steps .step-fail {
  margin: 0;
  padding-top: 6px;
  font-size: 13px;
  line-height: 1.7;
  color: #6b675e;
  border-top: 1px solid var(--line);
}

.order-figure {
  margin: 18px 0;
}

.order-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.order-table {
  min-width: 560px;
}

/* 入口核验页 */
.check-methods,
.deviation,
.check-record {
  padding-top: 28px;
  padding-bottom: 8px;
}

.check-methods .check-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfaf6;
}

.check-methods .check-col {
  min-width: 0;
  padding: 18px 20px;
  border-left: 1px solid var(--line);
}

.check-methods .check-col:first-child {
  border-left: 0;
}

.check-methods .check-col h3 {
  margin: 0 0 10px;
  padding-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  border-bottom: 2px solid var(--line-strong);
}

.check-def {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.75;
  color: #4a4842;
}

.check-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.check-points li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: #33312d;
}

.check-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 2px;
  background: var(--red);
}

.check-figure {
  margin: 20px 0 0;
}

.check-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.deviation .table-wrap {
  margin-top: 18px;
}

.record-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
  margin-top: 18px;
}

.record-steps {
  min-width: 0;
}

.record-aside {
  min-width: 0;
  padding: 18px 20px;
  background: #fbfaf6;
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: 4px;
}

.record-aside h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.record-aside p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.75;
  color: #4a4842;
}

.related-bar {
  margin-top: 32px;
}

.related-bar h2 {
  margin-bottom: 8px;
}

/* 编务说明页 */
.editorial-scope,
.boundary-compare,
.correction-flow {
  padding-top: 28px;
  padding-bottom: 8px;
}

.scope-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 18px;
}

.scope-item {
  min-width: 0;
  padding: 16px 18px;
  background: #fbfaf6;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 4px;
}

.scope-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.scope-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: #4a4842;
}

.scope-figure {
  margin: 22px 0 0;
}

.scope-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.boundary-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 18px;
}

.boundary-columns .boundary-col {
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fbfaf6;
}

.boundary-yes {
  border-top: 4px solid var(--blue);
}

.boundary-no {
  border-top: 4px solid var(--red);
}

.boundary-columns .boundary-col h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.boundary-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.75;
  color: #4a4842;
}

.boundary-yes .boundary-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 12px;
  color: var(--blue);
}

.boundary-no .boundary-list li::before {
  content: "✕";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 12px;
  color: var(--red);
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.flow-step {
  min-width: 0;
  padding: 16px;
  background: #fbfaf6;
  border: 1px solid var(--line);
  border-top: 4px solid var(--yellow);
  border-radius: 4px;
}

.flow-step .step-num {
  display: block;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--yellow);
  line-height: 1.3;
}

.flow-step h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.flow-step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: #4a4842;
}

.flow-step p a {
  color: var(--red);
  font-weight: 600;
}

.flow-step p a:hover,
.flow-step p a:focus-visible {
  color: var(--ink);
}

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.feedback-cell {
  min-width: 0;
  padding: 14px 16px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 4px;
}

.feedback-cell h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.feedback-cell p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: #4a4842;
}

.feedback-tail {
  margin: 18px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: #4a4842;
}

.feedback-tail a {
  color: var(--red);
  font-weight: 600;
}

.feedback-tail a:hover,
.feedback-tail a:focus-visible {
  color: var(--ink);
}

/* 404 */
.error-main {
  padding-bottom: 64px;
}

.error-inner {
  padding-top: 56px;
}

.error-code {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--red);
}

.error-title {
  margin: 0 0 14px;
  padding-bottom: 16px;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.3;
  border-bottom: 4px solid var(--line-strong);
}

.error-lead {
  max-width: 620px;
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.8;
  color: #3d3b36;
}

.error-actions {
  max-width: 760px;
}

.error-actions h2 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.error-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.error-list li {
  min-width: 0;
}

.error-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  background: #fbfaf6;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 4px;
  text-decoration: none;
}

.error-list a:hover,
.error-list a:focus-visible {
  color: var(--red);
  border-left-color: var(--red);
  background: var(--paper-soft);
}

.error-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  font-size: 16px;
  font-weight: 700;
  color: var(--paper);
  background: var(--red);
  border: 2px solid var(--red);
  border-radius: 4px;
  text-decoration: none;
}

.error-home:hover,
.error-home:focus-visible {
  color: var(--red);
  background: var(--paper);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-text h1 {
    font-size: 34px;
  }

  .channel-tags {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .step-grid,
  .step-band,
  .flow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-note,
  .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 32px;
  }

  .topic-detail {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: relative;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin-left: 0;
    order: 3;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 6px 0;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 4px;
    border-bottom: 1px solid var(--line);
  }

  .nav-list a.is-current {
    border-bottom-color: var(--line);
    background: var(--paper-soft);
    padding-left: 10px;
  }

  .nav-cta {
    display: none;
  }

  .hero-inner,
  .topic-preview-inner,
  .boundary-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-text h1 {
    font-size: 30px;
  }

  .hero-visual img {
    aspect-ratio: 16 / 10;
  }

  .topic-visual img {
    aspect-ratio: 16 / 9;
  }

  .entry-check .check-columns,
  .check-methods .check-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .entry-check .check-col,
  .check-methods .check-col {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .entry-check .check-col:first-child,
  .check-methods .check-col:first-child {
    border-top: 0;
  }

  .field-explain,
  .scope-body,
  .feedback-grid,
  .tag-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .page-aside {
    order: 2;
  }

  .record-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .related-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .related-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-detail {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .topic-detail .topic-media img {
    aspect-ratio: 16 / 9;
  }

  .boundary-pair {
    grid-template-columns: minmax(0, 1fr);
  }

  .boundary-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  :root {
    --gap: 16px;
  }

  body {
    font-size: 15px;
  }

  .brand {
    font-size: 16px;
  }

  .header-inner {
    min-height: 60px;
  }

  .breadcrumb {
    padding-top: 14px;
    font-size: 12px;
  }

  .page-header {
    padding-top: 10px;
    padding-bottom: 14px;
  }

  .page-title {
    font-size: 24px;
    padding-bottom: 12px;
  }

  .hero {
    padding: 24px 0 28px;
  }

  .hero-text h1 {
    font-size: 26px;
    line-height: 1.3;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-actions {
    gap: 10px 18px;
  }

  .btn-primary {
    width: 100%;
  }

  .hero-meta {
    flex-direction: column;
    gap: 6px;
  }

  .channel-strip,
  .entry-workbench,
  .topic-preview,
  .watch-steps,
  .entry-check,
  .faq,
  .boundary {
    padding: 24px 0;
  }

  .channel-tags {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .channel-tags a {
    min-height: 68px;
    padding: 10px;
  }

  .filter-note,
  .filter-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .step-grid,
  .step-band,
  .flow-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .topic-item {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .topic-num {
    font-size: 17px;
  }

  .related-list,
  .related-nav ul {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-head h2,
  .section-title,
  .prepare-steps h2,
  .reading-order h2,
  .interrupt-faq h2,
  .check-methods h2,
  .deviation h2,
  .check-record h2,
  .related-links h2,
  .boundary-inner .boundary-col h2 {
    font-size: 19px;
  }

  .data-table {
    font-size: 13px;
  }

  .data-table thead th,
  .data-table tbody th,
  .data-table tbody td {
    padding: 10px 12px;
  }

  .step-list .step-item {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 2px 12px;
  }

  .step-list .step-item .step-num {
    font-size: 16px;
  }

  .related-bar,
  .related,
  .related-links {
    margin-top: 28px;
    padding-top: 20px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 16px;
    padding-top: 28px;
    padding-bottom: 20px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .error-inner {
    padding-top: 36px;
  }

  .error-title {
    font-size: 26px;
  }

  .error-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .error-home {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .channel-tags {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}
