/* ==========================================================================
   日韩影视网 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base · 变量与基础元素
   -------------------------------------------------------------------------- */

:root {
  --paper: #f4f1ea;
  --ink: #16181d;
  --teal: #1f4e46;
  --brick: #d4552f;
  --text: #1b1d21;
  --text-soft: #5d6167;
  --line: #ddd6c9;
  --line-dark: #2c3038;
  --chip-drama: #2f6f8f;
  --chip-variety: #c8871a;
  --chip-doc: #5b7a4a;
  --chip-anime: #8a5a9e;
  --chip-music: #b3455f;
  --chip-life: #3f7d78;
  --radius: 6px;
  --shell: 1160px;
  --pad-x: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--text);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font: inherit;
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background-color: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  transition: top 120ms ease;
}

.skip-link:focus {
  top: 12px;
}

/* --------------------------------------------------------------------------
   layout · 全站骨架
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--ink);
  color: #f2efe8;
  border-bottom: 1px solid var(--line-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: var(--shell);
  min-height: 72px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: #f2efe8;
}

.brand-mark {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: var(--chip-variety);
  border-radius: 2px;
  box-shadow: 8px 0 0 var(--teal);
}

.brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav li {
  display: block;
}

.site-nav a {
  display: block;
  padding: 8px 12px;
  font-size: 15px;
  line-height: 1.4;
  color: #cfcabc;
  border-bottom: 2px solid transparent;
  transition: color 120ms ease, border-color 120ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #fff;
  border-bottom-color: #8d8879;
}

.site-nav a.is-current {
  color: #fff;
  border-bottom-color: var(--chip-variety);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  background-color: transparent;
  color: #f2efe8;
  border: 1px solid #4a4e57;
  border-radius: var(--radius);
  font-size: 15px;
  cursor: pointer;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: #8d8879;
}

.mobile-nav {
  background-color: var(--ink);
  border-top: 1px solid var(--line-dark);
}

.mobile-nav ul {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 8px var(--pad-x) 16px;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 4px;
  font-size: 16px;
  color: #d8d3c6;
  border-bottom: 1px solid var(--line-dark);
}

.mobile-nav a.is-current {
  color: #fff;
  border-bottom-color: var(--chip-variety);
}

.site-main {
  display: block;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.inner-main {
  padding-top: 28px;
  padding-bottom: 64px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--text-soft);
}

.breadcrumb a {
  color: var(--teal);
  border-bottom: 1px solid transparent;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  border-bottom-color: var(--teal);
}

.breadcrumb-sep {
  color: #a9a396;
}

.breadcrumb-current {
  color: var(--text-soft);
}

.page-header {
  margin-bottom: 22px;
}

.page-title {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700;
  color: var(--ink);
}

.page-head {
  margin-bottom: 32px;
}

.page-lead {
  max-width: 760px;
  font-size: 16px;
  color: var(--text-soft);
}

.page-kicker {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brick);
}

.page-figure {
  margin-top: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background-color: #eae5da;
}

.page-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.page-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-soft);
  background-color: #efeade;
  border-top: 1px solid var(--line);
}

.site-footer {
  margin-top: 0;
  background-color: var(--ink);
  color: #b9b4a6;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 32px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 48px var(--pad-x) 36px;
}

.footer-col h2 {
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 700;
  color: #f2efe8;
}

.footer-brand p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: #a8a396;
}

.footer-brand .footer-boundary {
  margin-top: 10px;
  padding-top: 10px;
  font-size: 13px;
  color: #8f8a7e;
  border-top: 1px solid var(--line-dark);
}

.footer-col ul {
  display: grid;
  gap: 10px;
}

.footer-col ul a {
  display: inline-block;
  font-size: 14px;
  color: #c3beb1;
  border-bottom: 1px solid transparent;
  transition: color 120ms ease, border-color 120ms ease;
}

.footer-col ul a:hover,
.footer-col ul a:focus-visible {
  color: #fff;
  border-bottom-color: #6d6a60;
}

.footer-notes {
  display: grid;
  gap: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: #8f8a7e;
}

.footer-bottom {
  border-top: 1px solid var(--line-dark);
}

.footer-bottom p {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 16px var(--pad-x);
  font-size: 13px;
  color: #8f8a7e;
}

/* --------------------------------------------------------------------------
   components · 通用组件
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  border-radius: var(--radius);
  border: 1px solid var(--teal);
  background-color: var(--teal);
  color: #f6f4ee;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: #173c36;
  border-color: #173c36;
}

.btn-ghost {
  background-color: transparent;
  color: #f2efe8;
  border-color: #5a5e66;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: #b9b4a6;
  color: #fff;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--teal);
  border-bottom: 1px solid transparent;
  transition: border-color 120ms ease;
}

.link-more::after {
  content: "→";
  font-size: 14px;
}

.link-more:hover,
.link-more:focus-visible {
  border-bottom-color: var(--teal);
}

.section-lead,
.section-intro,
.section-note {
  max-width: 720px;
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-soft);
}

.fact-list {
  display: grid;
  gap: 0;
  margin: 18px 0 22px;
  border-top: 1px solid var(--line);
}

.fact-row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.fact-row dt {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: 0.02em;
}

.fact-row dd {
  margin: 0;
  font-size: 15px;
  color: var(--text);
}

.related-strip {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.related-strip > h2 {
  margin-bottom: 8px;
  font-size: 24px;
}

.related-strip > p {
  margin-bottom: 20px;
  font-size: 15px;
  color: var(--text-soft);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.related-card,
.related-block {
  display: block;
  padding: 18px 18px 20px;
  background-color: #faf8f3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 120ms ease, background-color 120ms ease;
}

.related-card:hover,
.related-card:focus-visible,
.related-block:hover,
.related-block:focus-visible {
  border-color: var(--teal);
  background-color: #f2efe6;
}

.related-card h3,
.related-block h3 {
  margin-bottom: 6px;
  font-size: 17px;
  color: var(--teal);
}

.related-card p,
.related-block p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-soft);
}

.related-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.related-links-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
}

.related-links-item {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: var(--teal);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 120ms ease;
}

.related-links-item:hover,
.related-links-item:focus-visible {
  border-color: var(--teal);
}

.channel-tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  border-radius: 3px;
  color: #f6f4ee;
}

.channel-tag.channel-drama {
  background-color: var(--chip-drama);
}

.channel-tag.channel-doc {
  background-color: var(--chip-doc);
}

.channel-tag.channel-life {
  background-color: var(--chip-life);
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */

.home-main {
  padding-bottom: 64px;
}

.hero {
  display: grid;
  gap: 32px;
  margin: 0 calc(var(--pad-x) * -1);
  padding: 48px var(--pad-x) 56px;
  background-color: var(--ink);
  color: #e8e4d9;
}

.hero-copy {
  max-width: 820px;
}

.hero-eyebrow {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--chip-variety);
}

.hero h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.22;
  color: #f7f5ef;
}

.hero-lead {
  max-width: 640px;
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.8;
  color: #b6b1a3;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-body {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.hero-feature {
  border-radius: var(--radius);
  overflow: hidden;
  background-color: #0f1116;
  border: 1px solid var(--line-dark);
}

.hero-feature img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-feature figcaption {
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.65;
  color: #9d9889;
  border-top: 1px solid var(--line-dark);
}

.hero-index {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-dark);
}

.hero-index li {
  border-bottom: 1px solid var(--line-dark);
}

.hero-index a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 4px 12px;
  padding: 12px 4px 12px 10px;
  border-left: 2px solid transparent;
  transition: border-color 120ms ease, background-color 120ms ease;
}

.hero-index a:hover,
.hero-index a:focus-visible {
  border-left-color: var(--chip-variety);
  background-color: #1d2027;
}

.index-num {
  grid-row: span 2;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 15px;
  font-weight: 700;
  color: var(--chip-variety);
}

.index-name {
  font-size: 15px;
  font-weight: 600;
  color: #f0ede4;
}

.index-desc {
  font-size: 13px;
  line-height: 1.55;
  color: #9d9889;
}

.task-groups {
  padding: 56px 0 8px;
}

.task-groups > h2 {
  font-size: 24px;
}

.task {
  padding: 26px 0 24px;
  border-bottom: 1px solid var(--line);
}

.task:last-child {
  border-bottom: 0;
}

.task h3 {
  font-size: 18px;
  color: var(--ink);
}

.task > p {
  max-width: 720px;
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-soft);
}

.task ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.task li a {
  display: block;
  min-height: 44px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--teal);
  background-color: #faf8f3;
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  transition: background-color 120ms ease, border-color 120ms ease;
}

.task li a:hover,
.task li a:focus-visible {
  background-color: #f2efe6;
  border-color: var(--teal);
}

.feature-special {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 32px;
  align-items: start;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.feature-media figure {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background-color: #eae5da;
}

.feature-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.feature-media figcaption {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-soft);
  background-color: #efeade;
  border-top: 1px solid var(--line);
}

.feature-facts h2 {
  font-size: 24px;
}

.feature-facts > p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-soft);
}

.channel-glance {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 32px;
  align-items: start;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.glance-media figure {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background-color: #eae5da;
}

.glance-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.glance-media figcaption {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-soft);
  background-color: #efeade;
  border-top: 1px solid var(--line);
}

.glance-list h2 {
  font-size: 24px;
}

.glance-list > p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-soft);
}

.channel-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.channel-item {
  display: block;
}

.glance-list .channel-item a {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  gap: 2px 10px;
  padding: 14px 14px 16px;
  background-color: #faf8f3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: background-color 120ms ease, border-color 120ms ease;
}

.glance-list .channel-item a:hover,
.glance-list .channel-item a:focus-visible {
  background-color: #f2efe6;
  border-color: #c4bcab;
}

.channel-mark {
  grid-row: span 3;
  width: 10px;
  min-height: 100%;
  border-radius: 2px;
  background-color: var(--text-soft);
}

.channel-drama .channel-mark,
.channel-drama .channel-chip {
  background-color: var(--chip-drama);
}

.channel-variety .channel-mark,
.channel-variety .channel-chip {
  background-color: var(--chip-variety);
}

.channel-doc .channel-mark,
.channel-doc .channel-chip {
  background-color: var(--chip-doc);
}

.channel-anime .channel-mark,
.channel-anime .channel-chip {
  background-color: var(--chip-anime);
}

.channel-music .channel-mark,
.channel-music .channel-chip {
  background-color: var(--chip-music);
}

.channel-life .channel-mark,
.channel-life .channel-chip {
  background-color: var(--chip-life);
}

.channel-num {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-soft);
}

.channel-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.channel-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-soft);
}

.update-strip {
  padding: 44px 0;
  border-top: 1px solid var(--line);
}

.update-strip h2 {
  font-size: 24px;
}

.update-rows {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.update-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.update-date {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
  color: var(--text-soft);
}

.update-target {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.update-scope {
  font-size: 14px;
  color: var(--text-soft);
}

/* 术语提示与反馈说明：两列，标题与正文各自留在所属列容器内 */
.helper-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding: 44px 0 8px;
  border-top: 1px solid var(--line);
}

.helper-pair > h2 {
  grid-column: 1 / -1;
}

.helper-terms,
.helper-feedback {
  display: block;
  min-width: 0;
  padding: 24px;
  background-color: #faf8f3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.helper-terms h3,
.helper-feedback h3 {
  font-size: 18px;
  color: var(--ink);
}

.helper-terms > p,
.helper-feedback > p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-soft);
}

.helper-feedback > p + p {
  margin-top: 10px;
}

.term-tips {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.term-tips li {
  position: relative;
  min-width: 0;
}

.term-trigger {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--teal);
  background-color: #f2efe6;
  border: 1px dashed #b9b2a2;
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 120ms ease, background-color 120ms ease;
}

.term-trigger:hover,
.term-trigger:focus-visible {
  border-color: var(--teal);
  background-color: #eae6da;
}

.term-trigger[aria-expanded="true"] {
  border-style: solid;
  border-color: var(--teal);
}

.term-bubble {
  display: block;
  margin-top: 8px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  background-color: #fffdf8;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brick);
  border-radius: var(--radius);
}

.term-bubble[hidden] {
  display: none;
}

/* --------------------------------------------------------------------------
   pages · 内页共用区块
   -------------------------------------------------------------------------- */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  gap: 40px;
  align-items: start;
}

.content-main,
.channel-list {
  min-width: 0;
}

.channel-rules,
.usage-tip {
  min-width: 0;
  padding: 22px;
  background-color: #faf8f3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.channel-rules h2,
.usage-tip h2 {
  font-size: 20px;
  color: var(--ink);
}

.channel-rules > p,
.usage-tip > p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
}

.rule-list,
.tip-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-left: 0;
}

.rule-list li,
.tip-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

.rule-list li::before,
.tip-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background-color: var(--teal);
  border-radius: 1px;
}

.aside-note {
  margin-top: 14px;
  padding-top: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-soft);
  border-top: 1px solid var(--line);
}

.aside-note a,
.aside-link a {
  color: var(--teal);
  border-bottom: 1px solid transparent;
}

.aside-note a:hover,
.aside-note a:focus-visible,
.aside-link a:hover,
.aside-link a:focus-visible {
  border-bottom-color: var(--teal);
}

.aside-link {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   pages · 频道分区
   -------------------------------------------------------------------------- */

.channel-list {
  display: block;
}

.channel-list .channel-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(0, 220px);
  gap: 20px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.channel-list .channel-item:first-of-type {
  border-top: 1px solid var(--line);
}

.channel-list .channel-mark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  grid-row: auto;
  width: auto;
  min-height: 0;
  background-color: transparent;
}

.channel-chip {
  display: block;
  width: 14px;
  height: 44px;
  border-radius: 2px;
  background-color: var(--text-soft);
}

.channel-no {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-soft);
}

.channel-body h2 {
  font-size: 20px;
  color: var(--ink);
}

.channel-body p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-soft);
}

.channel-fields {
  margin: 0;
  padding: 12px 14px;
  background-color: #faf8f3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.channel-fields dt {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
}

.channel-fields dd {
  margin: 2px 0 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
}

.channel-fields dd:last-child {
  margin-bottom: 0;
}

.channel-path {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.channel-path > h2 {
  font-size: 24px;
}

.channel-path > p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-soft);
}

.path-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.path-steps li {
  min-width: 0;
  padding: 18px;
  background-color: #faf8f3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.path-no {
  display: inline-block;
  margin-bottom: 8px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--brick);
}

.path-steps h3 {
  font-size: 17px;
  color: var(--ink);
}

.path-steps p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-soft);
}

/* --------------------------------------------------------------------------
   pages · 专题片单
   -------------------------------------------------------------------------- */

.special-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.facts-media figure,
.media-figure {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background-color: #eae5da;
}

.facts-media img,
.media-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.facts-media figcaption,
.media-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-soft);
  background-color: #efeade;
  border-top: 1px solid var(--line);
}

.facts-body h2 {
  font-size: 24px;
}

.facts-body > p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-soft);
}

.lineup-order {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.lineup-order > h2 {
  font-size: 24px;
}

.lineup-order > p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-soft);
}

.order-list {
  display: grid;
  gap: 0;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.order-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.order-no {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: #b9b2a2;
}

.order-content h3 {
  font-size: 17px;
  color: var(--ink);
}

.order-content > p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
}

.order-meta {
  margin-top: 8px;
}

.schedule {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.schedule > h2 {
  font-size: 24px;
}

.schedule > p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-soft);
}

.schedule-table {
  margin-top: 20px;
  font-size: 15px;
}

.schedule-table caption {
  padding-bottom: 10px;
  font-size: 13px;
  text-align: left;
  color: var(--text-soft);
}

.schedule-table th,
.schedule-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.schedule-table thead th {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-soft);
  background-color: #efeade;
  border-top: 1px solid var(--line);
}

.schedule-table tbody td {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

.schedule-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-soft);
}

.schedule-note a {
  color: var(--teal);
  border-bottom: 1px solid transparent;
}

.schedule-note a:hover,
.schedule-note a:focus-visible {
  border-bottom-color: var(--teal);
}

.related-lineup {
  padding: 40px 0 0;
}

.related-lineup > h2 {
  font-size: 24px;
}

.related-lineup > p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-soft);
}

.lineup-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.lineup-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 14px;
  background-color: #faf8f3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.lineup-thumb {
  border-radius: 4px;
  overflow: hidden;
  background-color: #eae5da;
}

.lineup-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.lineup-body h3 {
  font-size: 17px;
}

.lineup-body h3 a {
  color: var(--teal);
  border-bottom: 1px solid transparent;
}

.lineup-body h3 a:hover,
.lineup-body h3 a:focus-visible {
  border-bottom-color: var(--teal);
}

.lineup-body p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-soft);
}

.related-strip[aria-label] {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.related-strip[aria-label] > h2 {
  grid-column: 1 / -1;
}

.strip-item {
  display: block;
  padding: 18px;
  background-color: #faf8f3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 120ms ease, background-color 120ms ease;
}

.strip-item:hover,
.strip-item:focus-visible {
  border-color: var(--teal);
  background-color: #f2efe6;
}

.strip-title {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--teal);
}

.strip-desc {
  display: block;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-soft);
}

/* --------------------------------------------------------------------------
   pages · 观看指南
   -------------------------------------------------------------------------- */

.steps {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.steps > h2,
.check-fields > h2,
.device > h2,
.not-provided > h2 {
  font-size: 24px;
}

.step-list {
  display: grid;
  gap: 0;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.step {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.step-no {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  color: #b9b2a2;
}

.step-body h3 {
  font-size: 17px;
  color: var(--ink);
}

.step-body > p {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-soft);
}

.step-points {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.step-points li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

.step-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background-color: var(--chip-variety);
  border-radius: 1px;
}

.check-fields {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.table-wrap {
  margin-top: 20px;
  overflow-x: auto;
}

.field-table {
  min-width: 560px;
  font-size: 15px;
}

.field-table thead th {
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  color: var(--text-soft);
  background-color: #efeade;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.field-table tbody th,
.field-table tbody td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.field-table tbody th {
  width: 150px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
}

.field-table tbody td {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

.device {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.device-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-top: 20px;
}

.device-list ul {
  display: grid;
  gap: 14px;
}

.device-list li {
  padding: 16px;
  background-color: #faf8f3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.device-list h3 {
  font-size: 17px;
  color: var(--ink);
}

.device-list p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
}

.device-figure {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background-color: #eae5da;
}

.device-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.device-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-soft);
  background-color: #efeade;
  border-top: 1px solid var(--line);
}

.not-provided {
  margin-top: 40px;
  padding: 22px 24px;
  background-color: #fbf6f1;
  border: 1px solid #e6c3b4;
  border-left: 4px solid var(--brick);
  border-radius: var(--radius);
}

.not-provided > h2 {
  font-size: 20px;
  color: #8f3a1e;
}

.not-provided > p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-soft);
}

.not-provided ul {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.not-provided li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

.not-provided li::before {
  content: "×";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--brick);
}

/* --------------------------------------------------------------------------
   pages · 术语说明
   -------------------------------------------------------------------------- */

.term-table {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.term-table > h2,
.confusable > h2,
.appearance-index > h2 {
  font-size: 24px;
}

.term-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 200px);
  gap: 20px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.term-row:first-of-type {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.term-body {
  min-width: 0;
}

.term-name {
  font-size: 17px;
  color: var(--ink);
}

.term-def {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-soft);
}

.term-where {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-soft);
}

.term-where a {
  display: inline-block;
  margin-right: 6px;
  color: var(--teal);
  border-bottom: 1px solid transparent;
}

.term-where a:hover,
.term-where a:focus-visible {
  border-bottom-color: var(--teal);
}

.confusable {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.confusable-group {
  margin-top: 18px;
  padding: 18px;
  background-color: #faf8f3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.confusable-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}

.confusable-item {
  min-width: 0;
  padding: 12px 14px;
  background-color: #fffdf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.confusable-item h3 {
  font-size: 16px;
  color: var(--teal);
}

.confusable-item p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
}

.confusable-note {
  margin-top: 14px;
  padding-top: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  border-top: 1px dashed var(--line);
}

.appearance-index {
  padding: 40px 0 0;
}

.index-list {
  display: grid;
  gap: 0;
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.index-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.index-page {
  font-size: 15px;
  font-weight: 600;
  color: var(--teal);
}

.index-terms {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
}

/* --------------------------------------------------------------------------
   pages · 更新记录
   -------------------------------------------------------------------------- */

.month-group {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.month-group + .month-group {
  padding-top: 32px;
}

.month-head {
  margin-bottom: 16px;
}

.month-head h2 {
  font-size: 22px;
  color: var(--ink);
}

.month-head p {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-soft);
}

.log-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.log-row {
  display: grid;
  grid-template-columns: 110px 160px minmax(0, 1fr) minmax(0, 200px);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.log-date {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
  color: var(--text-soft);
}

.log-target {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.log-detail {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

.log-scope {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-soft);
}

.rule-change {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.rule-change > h2 {
  font-size: 24px;
}

.rule-table {
  margin-top: 20px;
  font-size: 15px;
}

.rule-table caption {
  padding-bottom: 10px;
  font-size: 13px;
  text-align: left;
  color: var(--text-soft);
}

.rule-table thead th {
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  color: var(--text-soft);
  background-color: #efeade;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.rule-table tbody th,
.rule-table tbody td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.7;
  border-bottom: 1px solid var(--line);
}

.rule-table tbody th {
  width: 220px;
  font-weight: 700;
  color: var(--ink);
}

.rule-table tbody td {
  color: var(--text-soft);
}

.read-way {
  padding: 40px 0 0;
}

.read-way > h2 {
  font-size: 24px;
}

.read-way-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-top: 20px;
}

.read-way-figure {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background-color: #eae5da;
}

.read-way-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.read-way-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-soft);
  background-color: #efeade;
  border-top: 1px solid var(--line);
}

.read-way-list > p {
  font-size: 15px;
  color: var(--text-soft);
}

.read-way-list ul {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.read-way-list li {
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
  background-color: #faf8f3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.read-way-list strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   pages · 反馈指引
   -------------------------------------------------------------------------- */

.scope {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.scope > h2,
.info-items > h2,
.submit-path > h2,
.faq > h2 {
  font-size: 24px;
}

.scope-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.scope-col {
  min-width: 0;
  padding: 20px;
  border-radius: var(--radius);
}

.scope-accept {
  background-color: #f2f7f4;
  border: 1px solid #c4d8cd;
  border-left: 4px solid var(--teal);
}

.scope-reject {
  background-color: #fbf6f1;
  border: 1px solid #e6c3b4;
  border-left: 4px solid var(--brick);
}

.scope-col h3 {
  font-size: 18px;
  color: var(--ink);
}

.scope-col ul {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.scope-col li {
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}

.scope-col li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.scope-col strong {
  display: block;
  font-size: 15px;
  color: var(--ink);
}

.scope-col li p {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
}

.info-items {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.info-list {
  display: grid;
  gap: 0;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.info-list li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.info-num {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: #b9b2a2;
}

.info-body h3 {
  font-size: 17px;
  color: var(--ink);
}

.info-body p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
}

.submit-path {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.submit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-top: 20px;
}

.submit-copy p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-soft);
}

.submit-copy p + p {
  margin-top: 10px;
}

.submit-figure {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background-color: #eae5da;
}

.submit-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.submit-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-soft);
  background-color: #efeade;
  border-top: 1px solid var(--line);
}

.submit-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.submit-steps li {
  min-width: 0;
  padding: 16px;
  background-color: #faf8f3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.submit-steps h3 {
  font-size: 16px;
  color: var(--ink);
}

.submit-steps p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-soft);
}

.faq {
  padding: 40px 0 0;
}

.faq-item {
  margin-top: 12px;
  background-color: #faf8f3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  color: var(--teal);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover,
.faq-item summary:focus-visible {
  color: var(--teal);
}

.faq-answer {
  padding: 0 18px 16px;
  border-top: 1px solid var(--line);
}

.faq-answer p {
  padding-top: 12px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-soft);
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */

.error-main {
  padding-bottom: 64px;
}

.error-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--line);
}

.error-inner {
  max-width: 720px;
}

.error-code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 15px;
  font-weight: 700;
  color: var(--brick);
}

.error-inner h1 {
  margin-top: 10px;
  font-size: clamp(28px, 3.6vw, 40px);
  color: var(--ink);
}

.error-lead {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-soft);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.error-actions .btn-ghost {
  color: var(--teal);
  border-color: #b9b2a2;
}

.error-actions .btn-ghost:hover,
.error-actions .btn-ghost:focus-visible {
  border-color: var(--teal);
  color: var(--ink);
}

.error-routes {
  padding: 40px 0 0;
}

.error-routes h2 {
  font-size: 24px;
}

.error-routes > p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-soft);
}

.error-route-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.error-route-list li {
  min-width: 0;
  padding: 16px 18px;
  background-color: #faf8f3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-route-list a {
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  color: var(--teal);
  border-bottom: 1px solid transparent;
}

.error-route-list a:hover,
.error-route-list a:focus-visible {
  border-bottom-color: var(--teal);
}

.error-route-list p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-soft);
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .hero-body {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 22px;
  }

  .channel-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 280px);
    gap: 28px;
  }

  .channel-list .channel-item {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .channel-fields {
    grid-column: 2 / -1;
  }

  .log-row {
    grid-template-columns: 100px 140px minmax(0, 1fr);
  }

  .log-scope {
    grid-column: 2 / -1;
  }
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header-inner {
    min-height: 64px;
  }

  .hero {
    padding-top: 36px;
    padding-bottom: 40px;
  }

  .hero-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-index a {
    padding-left: 12px;
  }

  .task ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-special,
  .channel-glance,
  .special-facts,
  .device-layout,
  .submit-layout,
  .read-way-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .glance-media img {
    aspect-ratio: 16 / 9;
  }

  .helper-pair {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .channel-rules,
  .usage-tip {
    max-width: 100%;
  }

  .related-grid,
  .related-strip[aria-label],
  .path-steps,
  .submit-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lineup-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    padding-top: 40px;
  }
}

@media (max-width: 640px) {
  :root {
    --pad-x: 16px;
  }

  body {
    font-size: 16px;
  }

  .site-main {
    padding-top: 0;
  }

  .inner-main {
    padding-top: 20px;
    padding-bottom: 48px;
  }

  .page-title {
    font-size: 26px;
  }

  .page-head {
    margin-bottom: 24px;
  }

  .hero {
    padding-top: 28px;
    padding-bottom: 32px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-actions .btn,
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    flex: 1 1 100%;
  }

  .index-num {
    font-size: 14px;
  }

  .task-groups {
    padding-top: 40px;
  }

  .task-groups > h2,
  .feature-facts h2,
  .glance-list h2,
  .update-strip h2,
  .channel-path > h2,
  .facts-body h2,
  .lineup-order > h2,
  .schedule > h2,
  .related-lineup > h2,
  .steps > h2,
  .check-fields > h2,
  .device > h2,
  .term-table > h2,
  .confusable > h2,
  .appearance-index > h2,
  .rule-change > h2,
  .read-way > h2,
  .scope > h2,
  .info-items > h2,
  .submit-path > h2,
  .faq > h2,
  .related-strip > h2,
  .error-routes h2 {
    font-size: 20px;
  }

  .task ul,
  .channel-items,
  .related-grid,
  .related-strip[aria-label],
  .path-steps,
  .submit-steps,
  .error-route-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-special,
  .channel-glance,
  .update-strip,
  .helper-pair,
  .channel-path,
  .lineup-order,
  .schedule,
  .related-lineup,
  .steps,
  .check-fields,
  .device,
  .term-table,
  .confusable,
  .appearance-index,
  .month-group,
  .rule-change,
  .read-way,
  .scope,
  .info-items,
  .submit-path,
  .faq {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .helper-terms,
  .helper-feedback {
    padding: 18px;
  }

  .fact-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .update-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .channel-list .channel-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .channel-list .channel-mark {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .channel-chip {
    width: 10px;
    height: 22px;
  }

  .channel-fields {
    grid-column: auto;
  }

  .step {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .order-item {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
  }

  .info-list li {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
  }

  .term-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .confusable-pair {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .index-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .log-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 16px 0;
  }

  .log-scope {
    grid-column: auto;
  }

  .scope-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .lineup-item {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
  }

  .schedule-table,
  .rule-table,
  .field-table {
    min-width: 0;
  }

  .table-wrap {
    overflow-x: visible;
  }

  .field-table thead,
  .schedule-table thead,
  .rule-table thead {
    display: none;
  }

  .field-table tbody tr,
  .schedule-table tbody tr,
  .rule-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .field-table tbody th,
  .field-table tbody td,
  .schedule-table tbody td,
  .rule-table tbody th,
  .rule-table tbody td {
    width: auto;
    padding: 4px 0;
    border-bottom: 0;
  }

  .field-table tbody th,
  .rule-table tbody th {
    font-size: 14px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 32px var(--pad-x) 24px;
  }

  .footer-bottom p {
    padding: 14px var(--pad-x);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
