/* ==========================================================================
   麻花天美星空 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --paper: #f7f5f0;
  --ink: #1c1b19;
  --ink-soft: #5f5b54;
  --cinnabar: #b23a25;
  --deep-teal: #1f4644;
  --line: #ded8cc;
  --card: #fffdf8;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;

  --w-page: 1160px;
  --w-read: 720px;
  --w-side: 320px;
  --header-h: 68px;
  --radius: 4px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  font-variant-numeric: tabular-nums;
}

h1,
h2,
h3,
h4,
p,
figure,
dl,
dd,
ol,
ul {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(178, 58, 37, 0.42);
  transition: border-color 160ms ease, color 160ms ease;
}

a:hover {
  border-bottom-color: var(--cinnabar);
  border-bottom-width: 2px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--cinnabar);
  outline-offset: 3px;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

.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 · 全站外壳
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--w-page);
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 0;
  flex: 0 0 auto;
}

.brand:hover {
  border-bottom: 0;
}

.brand-mark {
  width: 3px;
  height: 22px;
  background: var(--cinnabar);
  display: block;
}

.brand-line {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-item a {
  display: inline-block;
  padding: 6px 0;
  font-size: 15px;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
}

.nav-item a:hover {
  color: var(--ink);
  border-bottom-color: var(--line);
}

.nav-item.is-current a,
.nav-item a.is-current {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--cinnabar);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
}

.mobile-nav {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.mobile-nav-list {
  max-width: var(--w-page);
  margin: 0 auto;
  padding: 8px 24px 16px;
}

.mobile-nav-list li {
  border-bottom: 1px solid var(--line);
}

.mobile-nav-list li:last-child {
  border-bottom: 0;
}

.mobile-nav-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-size: 16px;
  color: var(--ink);
  border-bottom: 0;
}

.site-main {
  display: block;
}

.inner-main {
  max-width: var(--w-page);
  margin: 0 auto;
  padding: 0 24px 72px;
}

/* 面包屑 */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.breadcrumb a {
  color: var(--ink-soft);
  border-bottom-color: transparent;
}

.breadcrumb a:hover {
  color: var(--cinnabar);
  border-bottom-color: var(--cinnabar);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
}

/* 页面标题区 */

.page-header {
  padding: 18px 0 26px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 600;
  line-height: 1.24;
  color: var(--ink);
}

/* 页脚 */

.site-footer {
  background: var(--deep-teal);
  color: #e6e2d8;
  margin-top: 24px;
}

.footer-inner {
  max-width: var(--w-page);
  margin: 0 auto;
  padding: 52px 24px 40px;
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo {
  font-size: 18px;
  font-weight: 600;
  color: #fffdf8;
}

.footer-intro {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(230, 226, 216, 0.78);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.footer-group h2 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(230, 226, 216, 0.62);
  margin-bottom: 12px;
}

.footer-group ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-group a {
  font-size: 14px;
  color: #e6e2d8;
  border-bottom-color: transparent;
}

.footer-group a:hover {
  color: #fffdf8;
  border-bottom-color: rgba(230, 226, 216, 0.6);
}

.footer-bottom {
  border-top: 1px solid rgba(230, 226, 216, 0.18);
}

.footer-bottom p {
  max-width: var(--w-page);
  margin: 0 auto;
  padding: 18px 24px 26px;
  font-size: 13px;
  color: rgba(230, 226, 216, 0.66);
}

/* --------------------------------------------------------------------------
   layout · 通用栅格
   -------------------------------------------------------------------------- */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  padding-top: 32px;
}

/* 主列 + 右侧栏（aside 在 DOM 中排后） */
.layout-main-aside,
.page-faq .page-layout {
  grid-template-columns: minmax(0, 1fr) var(--w-side);
}

/* 侧栏在前的两栏：容器自身带 .sidebar-left */
.page-layout.sidebar-left {
  grid-template-columns: 200px minmax(0, 1fr);
}

.page-layout.sidebar-left.archive-layout {
  grid-template-columns: 200px minmax(0, 1fr);
}

.layout-shell.single-column {
  grid-template-columns: minmax(0, 1fr);
  max-width: 980px;
}

.container {
  max-width: var(--w-page);
  margin: 0 auto;
  padding: 0 24px;
}

/* 观看须知：布局容器包住标题区与两列 */
.page-viewing-notes .page-layout.layout-shell {
  grid-template-columns: minmax(0, 1fr);
  padding-top: 0;
}

.content-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--w-side);
  gap: 40px;
  align-items: start;
}

.content-main {
  min-width: 0;
}

/* 页面导语区 */

.page-head {
  max-width: var(--w-read);
  padding-bottom: 8px;
}

.page-head .section-kicker,
.page-head .section-no,
.page-head .section-label,
.page-head .page-code {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--cinnabar);
  margin-bottom: 10px;
}

.page-lead {
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
}

.page-meta li {
  display: flex;
  gap: 8px;
}

.meta-key {
  color: var(--ink-soft);
}

.meta-value {
  color: var(--ink);
}

.page-meta .meta-item {
  display: flex;
  gap: 8px;
}

.page-meta dt {
  color: var(--ink-soft);
}

.page-meta dd {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   components · 通用组件
   -------------------------------------------------------------------------- */

.section-head {
  margin-bottom: 24px;
  max-width: 760px;
}

.section-head h2,
.section-label {
  font-size: clamp(21px, 2.2vw, 26px);
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.section-label {
  display: block;
  margin-bottom: 12px;
}

.section-desc,
.section-intro {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  font-size: 15px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color 160ms ease, border-color 160ms ease,
    color 160ms ease;
}

.btn:hover {
  border-bottom-width: 1px;
}

.btn-primary {
  background: var(--cinnabar);
  color: #fffdf8;
  border-color: var(--cinnabar);
}

.btn-primary:hover {
  background: #99301e;
  border-color: #99301e;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--cinnabar);
  color: var(--cinnabar);
}

.text-link {
  display: inline-block;
  font-size: 14px;
  color: var(--cinnabar);
  border-bottom: 1px solid rgba(178, 58, 37, 0.42);
}

.text-link:hover {
  border-bottom-width: 2px;
}

/* 图片容器 */

figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--line);
}

figcaption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* 年份索引 */

.year-rail {
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.rail-title,
.rail-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.year-list,
.year-buttons {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.year-btn {
  display: block;
  width: 100%;
  padding: 9px 14px;
  text-align: left;
  font-size: 15px;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-left: 2px solid var(--line);
  border-radius: 0;
  transition: color 160ms ease, border-color 160ms ease;
}

.year-btn:hover {
  color: var(--ink);
  border-left-color: var(--ink-soft);
}

.year-btn.is-active {
  color: var(--ink);
  font-weight: 600;
  border-left-color: var(--cinnabar);
}

.rail-note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.rail-note-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.rail-note p + p {
  margin-top: 8px;
}

/* FAQ 折叠 */

.faq-list,
.faq-group details {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question,
.faq-item summary {
  position: relative;
  display: block;
  padding: 16px 34px 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker,
.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-question::after,
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--cinnabar);
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 0 18px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.faq-answer p + p {
  margin-top: 10px;
}

.faq-more {
  margin-top: 18px;
}

/* 通用清单 */

.check-list,
.scope-list,
.boundary-list,
.boundary-points,
.plan-rules,
.relation-list,
.aside-summary,
.aside-anchor-list,
.to-sheets-links,
.sheet-items {
  display: flex;
  flex-direction: column;
}

.check-list li,
.scope-list li,
.boundary-list li,
.boundary-points li,
.plan-rules li,
.relation-item {
  padding: 8px 0 8px 18px;
  position: relative;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.check-list li::before,
.scope-list li::before,
.boundary-list li::before,
.boundary-points li::before,
.plan-rules li::before,
.relation-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 7px;
  height: 7px;
  background: var(--cinnabar);
  border-radius: 1px;
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */

.home-main {
  display: block;
}

.home-main section {
  max-width: var(--w-page);
  margin: 0 auto;
  padding: 56px 24px 0;
}

.home-main section:last-of-type {
  padding-bottom: 8px;
}

/* 首屏 */

.hero {
  padding-top: 44px !important;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: start;
}

.hero-copy {
  min-width: 0;
}

.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--cinnabar);
  margin-bottom: 14px;
}

.hero-copy h1 {
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 600;
  line-height: 1.24;
  color: var(--ink);
  margin-bottom: 18px;
}

.hero-lead {
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 34em;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-figure img {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
}

.meta-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 18px;
}

.meta-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.meta-row:last-child {
  border-bottom: 0;
}

.meta-row dt {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--cinnabar);
  padding-top: 3px;
}

.meta-row dd {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
}

/* 栏目索引条 */

.index-bar-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.index-bar-list li {
  border-right: 1px solid var(--line);
}

.index-bar-list li:last-child {
  border-right: 0;
}

.index-bar-list a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px;
  border-bottom: 0;
  transition: background-color 160ms ease;
}

.index-bar-list a:hover {
  background: var(--card);
  border-bottom: 0;
}

.index-num {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--cinnabar);
}

.index-name {
  font-size: 15px;
  color: var(--ink);
}

/* 术语表 */

.term-table {
  border-top: 1px solid var(--ink);
  font-size: 15px;
}

.term-table th {
  text-align: left;
  padding: 10px 16px 10px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.term-table td {
  padding: 14px 16px 14px 0;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  line-height: 1.75;
  color: var(--ink-soft);
}

.term-table th:first-child,
.term-table td:first-child {
  width: 22%;
}

.term-table th:last-child,
.term-table td:last-child {
  width: 26%;
  padding-right: 0;
}

.term-name {
  font-weight: 600;
  color: var(--ink);
}

/* 频道样本条 */

.channel-rows {
  border-top: 1px solid var(--line);
}

.channel-row {
  display: grid;
  grid-template-columns: 56px minmax(120px, 1fr) minmax(0, 1.4fr) minmax(0, 1.4fr) auto;
  gap: 20px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  transition: border-color 160ms ease;
}

.channel-row:hover {
  border-bottom-color: var(--cinnabar);
}

.channel-num,
.channel-no {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--cinnabar);
}

.channel-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.channel-genre,
.channel-topic,
.channel-order {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.channel-link {
  font-size: 14px;
  color: var(--cinnabar);
  border-bottom: 1px solid rgba(178, 58, 37, 0.42);
  white-space: nowrap;
}

/* 年度档案预览 */

.archive-layout {
  padding-top: 0;
}

.month-groups {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.month-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: border-color 160ms ease;
}

.month-card:hover {
  border-color: var(--cinnabar);
}

.month-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.month-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.preview-more {
  margin-top: 4px;
}

/* 专题册页样张 */

.sheet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.sheet-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 160ms ease;
}

.sheet-card:hover {
  border-color: var(--cinnabar);
}

.sheet-figure img {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
}

.sheet-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

.sheet-idea {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.sheet-items {
  gap: 0;
  border-top: 1px solid var(--line);
}

.sheet-items li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-soft);
}

.item-tag {
  flex: 0 0 auto;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--deep-teal);
  background: rgba(31, 70, 68, 0.08);
  border-radius: 2px;
  padding: 2px 7px;
}

.sheet-card .text-link {
  align-self: flex-start;
  margin-top: 2px;
}

/* 四步核验时间线 */

.step-line {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  border-top: 1px solid var(--ink);
  padding-top: 24px;
}

.step-item {
  position: relative;
  padding-left: 0;
  min-width: 0;
}

.step-num {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--cinnabar);
  margin-bottom: 8px;
}

.step-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.step-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* 口径与纠错 */

.boundary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.boundary-col {
  min-width: 0;
}

.col-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.boundary-list {
  margin-bottom: 16px;
}

.boundary-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* 首页 FAQ 摘录 */

.faq-excerpt .faq-list {
  max-width: 820px;
}

/* --------------------------------------------------------------------------
   pages · 年度档案
   -------------------------------------------------------------------------- */

.page-annual-archive .page-layout {
  padding-top: 32px;
}

.page-body {
  min-width: 0;
}

.page-head .section-kicker {
  margin-bottom: 10px;
}

.archive-figure {
  margin: 28px 0 8px;
}

.archive-figure img {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
}

.month-groups h2 {
  font-size: clamp(21px, 2.2vw, 26px);
  font-weight: 600;
  color: var(--ink);
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--ink);
}

.month-groups .section-intro {
  margin-bottom: 16px;
}

.month-group {
  border-bottom: 1px solid var(--line);
}

.group-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
  padding: 16px 34px 16px 0;
  position: relative;
  cursor: pointer;
  list-style: none;
}

.group-summary::-webkit-details-marker {
  display: none;
}

.group-summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 16px;
  font-size: 20px;
  line-height: 1;
  color: var(--cinnabar);
}

.month-group[open] .group-summary::after {
  content: "−";
}

.group-month {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.group-no {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--cinnabar);
}

.group-channels {
  font-size: 13px;
  color: var(--ink-soft);
}

.group-body {
  padding: 0 0 20px;
}

.group-fields {
  border-top: 1px solid var(--line);
}

.group-fields div {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.group-fields dt {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  padding-top: 3px;
}

.group-fields dd {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink);
}

.group-link {
  margin-top: 12px;
  font-size: 14px;
}

.field-notes h2,
.next-plan h2 {
  font-size: clamp(21px, 2.2vw, 26px);
  font-weight: 600;
  color: var(--ink);
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--ink);
}

.field-list {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.field-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.field-row dt {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.field-row dd {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.next-plan p {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.plan-rules {
  margin-top: 12px;
}

/* --------------------------------------------------------------------------
   pages · 频道索引
   -------------------------------------------------------------------------- */

.page-channel-index .page-head {
  max-width: 980px;
  padding: 28px 0 0;
}

.criteria {
  margin-bottom: 40px;
}

.criteria h2,
.channel-list h2,
.boundary-table h2,
.to-sheets h2 {
  font-size: clamp(21px, 2.2vw, 26px);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.criteria-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 20px;
  border-top: 1px solid var(--ink);
  padding-top: 24px;
}

.criteria-item {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.criteria-no {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--cinnabar);
  margin-bottom: 8px;
}

.criteria-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.criteria-item p:last-child {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.channel-figure {
  margin: 0 0 40px;
}

.channel-figure img {
  aspect-ratio: 21 / 9;
  border: 1px solid var(--line);
}

.channel-list .channel-rows {
  margin-top: 20px;
}

.page-channel-index .channel-row {
  grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr) auto;
  align-items: start;
  padding: 20px 0;
}

.page-channel-index .channel-no {
  padding-top: 3px;
}

.page-channel-index .channel-name h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.channel-tag {
  font-size: 13px;
  color: var(--ink-soft);
}

.page-channel-index .channel-topic {
  font-size: 14px;
  line-height: 1.8;
}

.channel-topic a {
  color: var(--ink);
}

.channel-order {
  font-size: 13px;
  line-height: 1.7;
}

.channel-enter {
  font-size: 14px;
  color: var(--cinnabar);
  border-bottom: 1px solid rgba(178, 58, 37, 0.42);
  white-space: nowrap;
}

.boundary-table {
  margin-top: 44px;
}

.boundary-table .boundary-grid {
  display: table;
  border-top: 1px solid var(--ink);
  margin-top: 20px;
  gap: 0;
  padding-top: 0;
}

.boundary-table th,
.boundary-table td {
  text-align: left;
  vertical-align: top;
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.boundary-table thead th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  padding-top: 10px;
  padding-bottom: 10px;
}

.boundary-table tbody th {
  width: 22%;
  font-weight: 600;
  color: var(--ink);
}

.to-sheets {
  margin-top: 44px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.to-sheets p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 720px;
}

.to-sheets-links {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 18px;
}

.to-sheets-links a {
  font-size: 14px;
  color: var(--cinnabar);
  border-bottom: 1px solid rgba(178, 58, 37, 0.42);
}

/* --------------------------------------------------------------------------
   pages · 专题册页
   -------------------------------------------------------------------------- */

.page-topic-sheets .container .page-head {
  padding: 24px 0 0;
}

.main-column {
  min-width: 0;
}

.side-column {
  min-width: 0;
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.sheet-rules {
  margin-bottom: 32px;
}

.sheet-rules h2,
.sheet-block h2,
.sheet-relation h2 {
  font-size: clamp(21px, 2.2vw, 26px);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.sheet-rules > p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.rule-list {
  border-top: 1px solid var(--line);
}

.rule-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.rule-no {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--cinnabar);
  padding-top: 3px;
}

.rule-body {
  min-width: 0;
}

.rule-body h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.rule-body p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.page-topic-sheets .sheet-figure {
  margin: 0 0 36px;
}

.page-topic-sheets .sheet-figure img {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
}

.sheet-block {
  margin-bottom: 40px;
}

.sheet-head {
  margin-bottom: 18px;
}

.sheet-head .section-no {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--cinnabar);
  margin-bottom: 6px;
}

.sheet-desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.stage-block {
  margin-bottom: 24px;
}

.stage-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--deep-teal);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--deep-teal);
  margin-bottom: 10px;
}

.entry-list {
  display: flex;
  flex-direction: column;
}

.entry-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.entry-no {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cinnabar);
  padding-top: 3px;
}

.entry-main {
  min-width: 0;
}

.entry-goal {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 6px;
}

.entry-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 13px;
  color: var(--ink-soft);
}

.entry-fields .field {
  display: inline-flex;
  gap: 6px;
}

.sheet-relation {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.sheet-relation > p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.relation-list {
  gap: 0;
}

.relation-item {
  padding-left: 18px;
}

/* 侧栏 */

.side-toc,
.side-links {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.side-links {
  margin-top: 20px;
}

.side-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.toc-list,
.side-link-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc-list a,
.side-link-list a {
  font-size: 14px;
  color: var(--ink);
  border-bottom-color: transparent;
}

.toc-list a:hover,
.side-link-list a:hover {
  color: var(--cinnabar);
  border-bottom-color: var(--cinnabar);
}

/* --------------------------------------------------------------------------
   pages · 观看须知
   -------------------------------------------------------------------------- */

.page-viewing-notes .page-head {
  max-width: var(--w-read);
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--line);
}

.content-main .breadcrumb {
  padding-top: 24px;
}

.content-main .page-header {
  padding: 16px 0 24px;
}

.check-steps h2,
.device-list h2,
.anomaly-list h2,
.out-of-scope h2 {
  font-size: clamp(21px, 2.2vw, 26px);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.check-steps > p,
.device-list > p,
.anomaly-list > p,
.out-of-scope > p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.step-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ink);
}

.step-list .step-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.step-list .step-num {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--cinnabar);
  margin: 0;
  padding-top: 4px;
}

.step-body {
  min-width: 0;
}

.step-body h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.step-body p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.step-check {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--deep-teal);
  background: rgba(31, 70, 68, 0.08);
  border-radius: 2px;
  padding: 3px 9px;
}

.page-figure {
  margin: 32px 0;
}

.page-figure img {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
}

.device-list,
.anomaly-list,
.out-of-scope {
  margin-top: 36px;
}

.check-list {
  border-top: 1px solid var(--line);
}

.check-list li {
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.anomaly-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.anomaly-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  min-width: 0;
}

.anomaly-item h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.anomaly-item p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.anomaly-order {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cinnabar);
}

.out-of-scope .scope-list {
  border-top: 1px solid var(--line);
}

.out-of-scope .scope-list li {
  border-bottom: 1px solid var(--line);
}

.content-aside {
  min-width: 0;
}

.aside-inner {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.aside-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.aside-summary {
  gap: 0;
  border-top: 1px solid var(--line);
  counter-reset: aside-step;
}

.aside-summary li {
  position: relative;
  padding: 10px 0 10px 26px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  counter-increment: aside-step;
}

.aside-summary li::before {
  content: counter(aside-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--cinnabar);
}

.aside-links {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.aside-subtitle {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.aside-links ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aside-links a {
  font-size: 14px;
  color: var(--ink);
  border-bottom-color: transparent;
}

.aside-links a:hover {
  color: var(--cinnabar);
  border-bottom-color: var(--cinnabar);
}

/* --------------------------------------------------------------------------
   pages · 站务说明
   -------------------------------------------------------------------------- */

.page-colophon .container {
  max-width: 760px;
}

.page-colophon .page-head {
  max-width: none;
  padding: 24px 0 0;
}

.doc-figure {
  margin: 28px 0 8px;
}

.doc-figure img {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
}

.doc-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.doc-section:last-of-type {
  border-bottom: 0;
}

.doc-section .section-head {
  margin-bottom: 18px;
}

.section-code {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--cinnabar);
  margin-bottom: 6px;
}

.doc-section .section-head h2 {
  font-size: clamp(21px, 2.2vw, 26px);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.section-note {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.page-colophon .rule-list {
  border-top: 1px solid var(--line);
}

.naming-block {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.naming-rule h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.naming-rule p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.naming-examples {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.example-item {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 14px;
  line-height: 1.7;
}

.example-label {
  color: var(--ink-soft);
  flex: 0 0 auto;
}

.example-value {
  color: var(--ink);
  font-weight: 600;
}

.boundary-text p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.boundary-points {
  border-top: 1px solid var(--line);
}

.boundary-points li {
  border-bottom: 1px solid var(--line);
}

.correction-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.correction-col {
  min-width: 0;
}

.correction-col h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.correction-list {
  border-top: 1px solid var(--line);
}

.correction-list li {
  position: relative;
  padding: 8px 0 8px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.correction-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 7px;
  height: 7px;
  background: var(--cinnabar);
  border-radius: 1px;
}

.correction-key {
  color: var(--ink);
  font-weight: 600;
}

.correction-list--weak li::before {
  background: var(--line);
}

.correction-note {
  margin-top: 22px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-soft);
}

.correction-note a {
  color: var(--cinnabar);
}

.scope-list .scope-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.scope-list .scope-item::before {
  display: none;
}

.scope-item h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.scope-item p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.scope-note {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-soft);
}

.scope-note a {
  color: var(--cinnabar);
}

/* --------------------------------------------------------------------------
   pages · 常见问题
   -------------------------------------------------------------------------- */

.page-faq .page-head {
  max-width: 820px;
  padding: 24px 0 0;
}

.page-primary {
  min-width: 0;
}

.page-faq .page-figure {
  margin: 28px 0 32px;
}

.faq-group {
  margin-bottom: 36px;
}

.group-head {
  margin-bottom: 14px;
}

.group-head h2 {
  font-size: clamp(21px, 2.2vw, 26px);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.group-note {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.faq-group .faq-item summary {
  font-size: 15px;
}

.page-aside {
  min-width: 0;
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.aside-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.aside-block + .aside-block {
  margin-top: 18px;
}

.aside-anchor-list {
  gap: 8px;
}

.aside-anchor-list a {
  font-size: 14px;
  color: var(--ink);
  border-bottom-color: transparent;
}

.aside-anchor-list a:hover {
  color: var(--cinnabar);
  border-bottom-color: var(--cinnabar);
}

.aside-link-list a {
  font-size: 14px;
  color: var(--ink);
  border-bottom-color: transparent;
}

.aside-link-list a:hover {
  color: var(--cinnabar);
  border-bottom-color: var(--cinnabar);
}

.aside-note p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */

.site-error .error-main {
  max-width: var(--w-page);
  margin: 0 auto;
  padding: 72px 24px 88px;
}

.error-panel {
  max-width: 640px;
}

.error-code {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--cinnabar);
  margin-bottom: 12px;
}

.error-panel h1 {
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 600;
  line-height: 1.24;
  color: var(--ink);
  margin-bottom: 16px;
}

.error-lead {
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.error-hints {
  border-top: 1px solid var(--line);
  margin-bottom: 28px;
}

.error-hints li {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.error-path {
  color: var(--ink);
  font-weight: 600;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: transparent;
  transition: border-color 160ms ease, color 160ms ease;
}

.error-button:hover {
  border-color: var(--cinnabar);
  color: var(--cinnabar);
  border-bottom-width: 1px;
}

.error-button-primary {
  background: var(--cinnabar);
  border-color: var(--cinnabar);
  color: #fffdf8;
}

.error-button-primary:hover {
  background: #99301e;
  border-color: #99301e;
  color: #fffdf8;
}

/* 锚点跳转避开固定页头 */

[id] {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1200px) {
  .header-inner,
  .footer-inner,
  .footer-bottom p,
  .container,
  .inner-main,
  .home-main section {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 960px) {
  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .index-bar-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .index-bar-list li:nth-child(2n) {
    border-right: 0;
  }

  .index-bar-list li {
    border-bottom: 1px solid var(--line);
  }

  .index-bar-list li:last-child {
    border-bottom: 0;
  }

  .channel-row,
  .page-channel-index .channel-row {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 4px 16px;
  }

  .channel-genre,
  .channel-topic,
  .channel-order,
  .channel-link,
  .channel-enter {
    grid-column: 2;
  }

  .step-line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .sheet-grid,
  .boundary-grid,
  .criteria-grid,
  .anomaly-grid,
  .correction-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-layout.sidebar-left,
  .page-layout.sidebar-left.archive-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .year-rail {
    position: static;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
  }

  .year-list,
  .year-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .year-btn {
    width: auto;
    border-left: 0;
    border-bottom: 2px solid var(--line);
    padding: 8px 14px;
  }

  .year-btn.is-active {
    border-left: 0;
    border-bottom-color: var(--cinnabar);
  }

  .layout-main-aside,
  .page-faq .page-layout,
  .content-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .side-column,
  .page-aside,
  .content-aside {
    position: static;
  }

  .aside-inner {
    position: static;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .boundary-table .boundary-grid {
    display: block;
  }

  .boundary-table thead {
    display: none;
  }

  .boundary-table tbody,
  .boundary-table tr,
  .boundary-table th,
  .boundary-table td {
    display: block;
    width: auto;
  }

  .boundary-table tr {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .boundary-table tbody th {
    width: auto;
    padding: 0 0 6px;
    border-bottom: 0;
    font-size: 15px;
  }

  .boundary-table tbody td {
    padding: 4px 0;
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .header-inner {
    padding: 0 16px;
  }

  .inner-main,
  .container,
  .home-main section,
  .footer-inner,
  .footer-bottom p,
  .site-error .error-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .home-main section {
    padding-top: 44px;
  }

  .hero {
    padding-top: 32px !important;
  }

  .hero-copy h1,
  .page-title,
  .error-panel h1 {
    font-size: clamp(26px, 7.4vw, 32px);
  }

  .hero-lead,
  .page-lead {
    font-size: 16px;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .meta-row {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 10px;
  }

  .index-bar-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .index-bar-list li {
    border-right: 0;
  }

  .index-bar-list a {
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
    padding: 14px 4px;
  }

  .term-table,
  .term-table thead,
  .term-table tbody,
  .term-table tr,
  .term-table th,
  .term-table td {
    display: block;
    width: auto;
  }

  .term-table thead {
    display: none;
  }

  .term-table tr {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .term-table td {
    padding: 0;
    border-bottom: 0;
  }

  .term-table td:first-child,
  .term-table td:last-child {
    width: auto;
  }

  .term-table .term-name {
    font-size: 16px;
    margin-bottom: 4px;
  }

  .term-table td:nth-child(3) {
    margin-top: 6px;
    font-size: 13px;
    color: var(--cinnabar);
  }

  .channel-row,
  .page-channel-index .channel-row {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 4px 12px;
    padding: 14px 0;
  }

  .channel-name {
    font-size: 15px;
  }

  .channel-genre,
  .channel-topic,
  .channel-order,
  .channel-link,
  .channel-enter {
    grid-column: 2;
    font-size: 13px;
  }

  .page-channel-index .channel-name h3 {
    font-size: 16px;
  }

  .step-line {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .step-item {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
  }

  .step-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .sheet-card {
    padding: 16px;
  }

  .month-card {
    padding: 16px;
  }

  .footer-nav {
    grid-template-columns: minmax(0, 1fr);
  }

  .group-summary {
    gap: 4px 12px;
  }

  .group-fields div,
  .field-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .rule-item {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
  }

  .entry-row {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
  }

  .step-list .step-item {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
  }

  .anomaly-item,
  .criteria-item {
    padding: 16px;
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .error-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
