/* ==========================================================================
   番茄影视 · lknya.com 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. base
   -------------------------------------------------------------------------- */

:root {
  --ink: #12161A;
  --ink-soft: #2A3238;
  --paper: #FFFCF6;
  --paper-warm: #F2ECE1;
  --tomato: #C03A1E;
  --tomato-deep: #8E2A15;
  --teal: #0F6B5C;
  --rule: #D8D0C2;
  --focus: #1B4FD8;
  --radius: 4px;
  --shell: 1120px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system,
    "Segoe UI", Arial, sans-serif;
  --font-mono: "SFMono-Regular", "Menlo", "Consolas", "Liberation Mono",
    "Courier New", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
  word-break: break-word;
}

h1 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.25;
}

h2 {
  font-size: 24px;
  line-height: 1.35;
}

h3 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5;
}

p {
  margin: 0 0 1em;
  word-break: break-word;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd {
  margin: 0;
}

dt {
  font-weight: 600;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--tomato-deep);
  text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

caption {
  text-align: left;
}

strong {
  font-weight: 700;
}

time {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.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: var(--paper);
  text-decoration: none;
  border-radius: var(--radius);
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
  color: var(--paper);
}

/* --------------------------------------------------------------------------
   2. layout · 全站骨架
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid #000;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 20px;
  min-height: 64px;
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
  color: var(--paper);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-bottom: 2px solid var(--tomato);
}

.brand:hover {
  color: #fff;
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link,
.nav-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  color: #E8E2D6;
  font-size: 16px;
  text-decoration: none;
  border-radius: var(--radius);
}

.nav-link:hover,
.nav-group:hover {
  color: #fff;
  background-color: #232A31;
}

.nav-link.is-current {
  color: #fff;
  background-color: var(--tomato);
  text-decoration: none;
}

.nav-link.is-current:hover {
  background-color: var(--tomato-deep);
}

.nav-group::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.nav-item.has-dropdown.is-open > .nav-group {
  color: #fff;
  background-color: #232A31;
}

.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 176px;
  padding: 6px;
  background-color: #1A2026;
  border: 1px solid #333B43;
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s;
}

.nav-item.has-dropdown.is-open > .dropdown,
.nav-item.has-dropdown:hover > .dropdown,
.nav-item.has-dropdown:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 10px 12px;
  min-height: 44px;
  color: #E8E2D6;
  font-size: 15px;
  text-decoration: none;
  border-radius: var(--radius);
}

.dropdown li a:hover,
.dropdown li a:focus-visible {
  color: #fff;
  background-color: #2A3238;
}

.back-top-link {
  flex: 0 0 auto;
  display: none;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: #E8E2D6;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid #3A434B;
  border-radius: var(--radius);
}

.back-top-link:hover {
  color: #fff;
  border-color: #5B666F;
}

.menu-toggle {
  display: none;
  flex: 0 0 auto;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid #3A434B;
  border-radius: var(--radius);
}

.menu-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #E8E2D6;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  background-color: #1A2026;
  border-top: 1px solid #333B43;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-nav-list {
  padding: 8px 20px 4px;
}

.mobile-nav-list > li {
  border-bottom: 1px solid #2A3238;
}

.mobile-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 4px;
  color: #E8E2D6;
  font-size: 16px;
  text-decoration: none;
}

.mobile-link:hover {
  color: #fff;
}

.mobile-link.is-current {
  color: #fff;
  font-weight: 700;
}

.mobile-group-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  padding: 4px;
  color: #E8E2D6;
  font-size: 16px;
  text-align: left;
}

.mobile-group-btn::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.mobile-group-btn[aria-expanded="true"]::after {
  transform: rotate(-135deg) translateY(-2px);
}

.mobile-sub {
  padding: 0 0 8px 12px;
}

.mobile-sub[hidden] {
  display: none;
}

.mobile-sub .mobile-link {
  min-height: 44px;
  font-size: 15px;
  color: #C9C2B6;
}

.mobile-top-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 8px 20px 16px;
  color: #E8E2D6;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid #3A434B;
  border-radius: var(--radius);
}

.site-main {
  display: block;
  width: 100%;
}

.home-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 20px 64px;
}

.inner-main {
  min-width: 0;
  max-width: 720px;
  padding-bottom: 56px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 20px 0 4px;
  font-size: 14px;
  color: var(--ink-soft);
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover {
  color: var(--tomato-deep);
}

.breadcrumb-sep {
  color: #9A9184;
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 600;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 20px 0 0;
  max-width: var(--shell);
  margin: 0 auto;
  font-size: 14px;
  color: var(--ink-soft);
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: #9A9184;
}

.breadcrumb-item a {
  color: var(--ink-soft);
}

.page-header {
  padding: 4px 0 20px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 28px;
}

.page-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.25;
}

.page-head {
  padding: 0 0 24px;
}

.section-label,
.page-label,
.page-tag {
  margin: 0 0 10px;
  color: var(--tomato-deep);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.page-lead,
.page-lede,
.page-summary {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.75;
}

.page-note {
  margin: 0;
  padding: 10px 14px;
  background-color: var(--paper-warm);
  border-left: 3px solid var(--teal);
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.page-note a {
  color: var(--ink);
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(0, 320px);
  gap: 40px;
  align-items: start;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 20px 64px;
}

.layout-shell {
  grid-template-columns: minmax(0, 720px) minmax(0, 320px);
}

.content-column {
  min-width: 0;
}

.site-footer {
  background-color: var(--ink);
  color: #D6CFC3;
  margin-top: 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 48px 20px 36px;
}

.footer-title {
  margin: 0 0 14px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.footer-list li {
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.6;
}

.footer-list li:last-child {
  margin-bottom: 0;
}

.footer-list a {
  color: #D6CFC3;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-list a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 18px 20px 28px;
  border-top: 1px solid #2A3238;
  font-size: 14px;
  line-height: 1.6;
}

.footer-boundary {
  flex: 1 1 320px;
  margin: 0;
  color: #A9A297;
}

.footer-copy {
  margin: 0;
  color: #8E877C;
}

.footer-top-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: #D6CFC3;
  text-decoration: none;
  border: 1px solid #3A434B;
  border-radius: var(--radius);
}

.footer-top-link:hover {
  color: #fff;
  border-color: #5B666F;
}

/* --------------------------------------------------------------------------
   3. components · 通用模块
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease;
}

.btn-primary {
  background-color: var(--tomato);
  color: #fff;
  border-color: var(--tomato);
}

.btn-primary:hover {
  background-color: var(--tomato-deep);
  border-color: var(--tomato-deep);
  color: #fff;
}

.btn-ghost {
  background-color: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-ghost:hover {
  background-color: var(--ink);
  color: var(--paper);
}

/* 内容区块与区块头 */

.section {
  padding: 44px 0;
  border-bottom: 1px solid var(--rule);
}

.section:last-child {
  border-bottom: 0;
}

.section-head {
  margin-bottom: 24px;
}

.section-head h2 {
  margin-bottom: 8px;
}

.section-lead {
  margin: 0;
  max-width: 34em;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
}

.section-lead a {
  color: var(--ink);
}

.content-section {
  padding: 0 0 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--rule);
}

.content-section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.content-section h2 {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}

.content-section > p {
  max-width: 34em;
  color: var(--ink-soft);
}

.section-title {
  margin-bottom: 12px;
}

/* 标签 */

.tag-list,
.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  background-color: var(--paper-warm);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

/* 图片容器统一约束 */

.hero-figure,
.topic-figure,
.figure-block,
.media-figure,
.content-figure {
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background-color: var(--paper-warm);
}

.hero-figure img,
.topic-figure img,
.figure-block img,
.media-figure img,
.content-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-figure figcaption,
.topic-figure figcaption,
.figure-block figcaption,
.media-figure figcaption,
.content-figure figcaption {
  padding: 10px 14px;
  margin: 0;
  background-color: var(--paper-warm);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
  border-top: 1px solid var(--rule);
}

/* 折叠问答 */

.faq-list {
  border-top: 1px solid var(--rule);
}

.faq-item {
  border-bottom: 1px solid var(--rule);
  background-color: transparent;
}

.faq-item summary {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-height: 52px;
  padding: 14px 4px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "+";
  flex: 0 0 auto;
  width: 18px;
  color: var(--tomato);
  font-family: var(--font-mono);
  font-weight: 700;
}

.faq-item[open] summary::before {
  content: "−";
}

.faq-item summary:hover {
  background-color: var(--paper-warm);
}

.faq-item > p,
.faq-item .faq-body {
  padding: 0 4px 18px 32px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
}

.faq-item .faq-body p {
  margin-bottom: 10px;
}

.faq-item .faq-body p:last-child {
  margin-bottom: 0;
}

/* 编号步骤 */

.step-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  counter-reset: step;
}

.step-item {
  position: relative;
  padding: 20px 18px 18px;
  background-color: var(--paper-warm);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--tomato);
  border-radius: var(--radius);
  min-width: 0;
}

.step-num {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--tomato-deep);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.step-item h3,
.step-item .step-title {
  margin-bottom: 6px;
  font-size: 17px;
  line-height: 1.5;
}

.step-item p,
.step-item .step-desc {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
}

/* 清单（方框标记） */

.check-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background-color: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  min-width: 0;
}

.check-box {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 5px;
  border: 2px solid var(--teal);
  border-radius: 2px;
}

.check-body {
  min-width: 0;
}

.check-body h3,
.check-body .check-title {
  margin-bottom: 4px;
  font-size: 16px;
  line-height: 1.5;
}

.check-body p,
.check-body .check-desc {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
}

/* 纯文字清单 */

.plain-list {
  padding-left: 0;
}

.plain-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.plain-list li:last-child {
  margin-bottom: 0;
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 2px;
  background-color: var(--tomato);
}

.plain-list li st {
  font-weight: 700;
  color: var(--ink);
}

/* 表格 */

.data-table,
.field-table,
.verify-table {
  width: 100%;
  border: 1px solid var(--rule);
  font-size: 16px;
}

.data-table caption,
.field-table caption,
.verify-table caption {
  padding: 0 0 10px;
  color: var(--ink-soft);
  font-size: 14px;
  text-align: left;
}

.data-table th,
.data-table td,
.field-table th,
.field-table td,
.verify-table th,
.verify-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  line-height: 1.7;
}

.data-table th:last-child,
.data-table td:last-child,
.field-table th:last-child,
.field-table td:last-child,
.verify-table th:last-child,
.verify-table td:last-child {
  border-right: 0;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td,
.field-table tbody tr:last-child td,
.verify-table tbody tr:last-child th,
.verify-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table thead th,
.field-table thead th,
.verify-table thead th {
  background-color: var(--ink-soft);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.data-table tbody th,
.verify-table tbody th {
  background-color: var(--paper-warm);
  font-size: 15px;
  color: var(--ink);
}

.data-table tbody tr:hover td,
.data-table tbody tr:hover th,
.field-table tbody tr:hover td,
.verify-table tbody tr:hover td,
.verify-table tbody tr:hover th {
  background-color: #F7F1E6;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* 内页侧栏通用 */

.content-aside,
.content-sidebar,
.page-aside {
  position: sticky;
  top: 88px;
  align-self: start;
  min-width: 0;
  padding: 18px 18px 20px;
  background-color: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-size: 15px;
}

.aside-title,
.toc-title,
.sidebar-title {
  margin: 0 0 12px;
  padding-bottom: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  border-bottom: 1px solid var(--rule);
}

.aside-toc .toc-list,
.toc .toc-list,
.aside-nav .aside-list,
.content-sidebar .toc-list {
  display: block;
}

.aside-toc .toc-list li,
.toc .toc-list li,
.aside-nav .aside-list li,
.content-sidebar .toc-list li {
  margin-bottom: 2px;
}

.aside-toc .toc-list a,
.toc .toc-list a,
.aside-nav .aside-list a,
.content-sidebar .toc-list a,
.aside-link-list a,
.aside-links a {
  display: block;
  padding: 7px 8px;
  min-height: 36px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
  border-left: 3px solid transparent;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.aside-toc .toc-list a:hover,
.toc .toc-list a:hover,
.aside-nav .aside-list a:hover,
.content-sidebar .toc-list a:hover,
.aside-link-list a:hover,
.aside-links a:hover,
.aside-toc .toc-list a.is-active,
.toc .toc-list a.is-active,
.aside-nav .aside-list a.is-active,
.content-sidebar .toc-list a.is-active {
  background-color: #fff;
  color: var(--ink);
  border-left-color: var(--tomato);
}

.aside-related,
.sidebar-related {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.aside-links li,
.sidebar-list li {
  margin-bottom: 2px;
}

.aside-links a,
.sidebar-list a {
  display: block;
  padding: 7px 8px;
  min-height: 36px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
}

.aside-links a:hover,
.sidebar-list a:hover {
  background-color: #fff;
  color: var(--ink);
}

.aside-note {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.aside-note p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   4. pages · 首页
   -------------------------------------------------------------------------- */

/* 首屏 */

.hero {
  padding: 40px 0 36px;
  border-bottom: 1px solid var(--rule);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: start;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--tomato-deep);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hero-copy h1 {
  margin-bottom: 16px;
}

.hero-lead {
  max-width: 32em;
  margin-bottom: 24px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-figure {
  min-width: 0;
}

.hero-figure img {
  aspect-ratio: 4 / 3;
}

/* 页内目录条 */

.toc-bar {
  position: sticky;
  top: 64px;
  z-index: 20;
  background-color: var(--paper);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 8px;
}

.toc-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px 0;
}

.toc-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: var(--ink-soft);
  font-size: 15px;
  text-decoration: none;
  border-left: 3px solid transparent;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.toc-link:hover {
  color: var(--ink);
  background-color: var(--paper-warm);
}

.toc-link.is-active {
  color: var(--ink);
  font-weight: 600;
  background-color: var(--paper-warm);
  border-left-color: var(--tomato);
}

/* 频道速览 */

.channel-rows {
  border-top: 1px solid var(--rule);
}

.channel-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 0.9fr);
  gap: 20px;
  align-items: center;
  padding: 18px 8px;
  border-bottom: 1px solid var(--rule);
}

.channel-row:hover {
  background-color: var(--paper-warm);
}

.channel-name {
  min-width: 0;
}

.channel-name h3 {
  margin-bottom: 4px;
  font-size: 18px;
}

.channel-name p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
}

.channel-scene {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
}

.channel-link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--tomato-deep);
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  border: 1px solid transparent;
  border-radius: var(--radius);
}

.channel-link:hover {
  color: #fff;
  background-color: var(--tomato);
  text-decoration: none;
}

/* 专题片单 */

.topic-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.topic-item {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 16px;
  background-color: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.topic-item:hover {
  border-color: #BDAC99;
}

.topic-item .topic-figure {
  min-width: 0;
}

.topic-item .topic-figure img {
  aspect-ratio: 16 / 10;
}

.topic-body {
  min-width: 0;
}

.topic-body h3 {
  margin-bottom: 8px;
  font-size: 19px;
}

.topic-body p {
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.topic-body .tag-list {
  margin-top: 0;
}

/* 观看准备 */

.prepare .check-list {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* 入口核验速查 */

.verify-table caption {
  caption-side: top;
}

/* 归档摘要 */

.archive-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.archive-group {
  padding: 18px;
  background-color: var(--paper-warm);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--ink);
  border-radius: var(--radius);
  min-width: 0;
}

.archive-month {
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.archive-summary {
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
}

.archive-index li {
  padding: 8px 0;
  border-top: 1px solid var(--rule);
  font-size: 15px;
  line-height: 1.7;
}

.archive-index a {
  color: var(--ink);
}

/* 反馈事项 */

.feedback-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feedback-col {
  padding: 18px;
  background-color: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  min-width: 0;
}

.feedback-col h3 {
  margin-bottom: 10px;
  padding-bottom: 8px;
  font-size: 17px;
  border-bottom: 1px solid var(--rule);
}

.feedback-col .plain-list li {
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   4. pages · 内页通用区块
   -------------------------------------------------------------------------- */

/* 频道导览 */

.figure-block {
  margin: 20px 0;
}

.figure-block img {
  aspect-ratio: 16 / 9;
}

.channel-entry {
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}

.channel-entry:last-of-type {
  border-bottom: 0;
}

.channel-entry h3 {
  margin-bottom: 8px;
  font-size: 19px;
}

.channel-def {
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
}

.channel-meta {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 6px 16px;
  margin-bottom: 12px;
  padding: 12px 14px;
  background-color: var(--paper-warm);
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.7;
}

.channel-meta dt {
  color: var(--ink);
  font-weight: 600;
}

.channel-meta dd {
  color: var(--ink-soft);
  min-width: 0;
}

.channel-entry .channel-link {
  margin: 0;
}

.channel-entry .channel-link a {
  color: var(--tomato-deep);
  font-weight: 600;
}

/* 移动端目录（频道导览） */

.toc-mobile {
  margin-bottom: 24px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background-color: var(--paper-warm);
}

.toc-mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
}

.toc-mobile-toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.toc-mobile-toggle[aria-expanded="true"]::after {
  transform: rotate(-135deg) translateY(-2px);
}

.toc-mobile-list {
  padding: 0 8px 10px;
}

.toc-mobile-list[hidden] {
  display: none;
}

.toc-mobile-list a {
  display: block;
  padding: 10px 8px;
  min-height: 44px;
  color: var(--ink-soft);
  font-size: 15px;
  text-decoration: none;
  border-top: 1px solid var(--rule);
}

.toc-mobile-list a:hover {
  color: var(--ink);
  background-color: #fff;
}

/* 专题片单 */

.topic-feature {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}

.topic-feature:last-of-type {
  border-bottom: 0;
}

.topic-feature .topic-figure {
  min-width: 0;
}

.topic-feature .topic-figure img {
  aspect-ratio: 16 / 10;
}

.topic-feature .topic-body {
  min-width: 0;
}

.topic-meta {
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--ink-soft);
}

.topic-month {
  display: inline-block;
  padding: 2px 8px;
  background-color: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.topic-name {
  margin-bottom: 10px;
  font-size: 20px;
}

.topic-fields {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 6px 14px;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.7;
}

.topic-fields dt {
  color: var(--ink);
  font-weight: 600;
}

.topic-fields dd {
  color: var(--ink-soft);
  min-width: 0;
}

.topic-tags {
  margin-bottom: 12px;
}

.topic-link {
  margin: 0;
}

.topic-link a {
  color: var(--tomato-deep);
  font-weight: 600;
}

.past-group {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}

.past-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.past-group-title {
  margin-bottom: 12px;
  padding-left: 10px;
  font-size: 17px;
  border-left: 4px solid var(--tomato);
}

.past-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.past-item {
  padding: 14px 16px;
  background-color: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  min-width: 0;
}

.past-meta {
  margin: 0 0 4px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.past-name {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.past-desc {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.tip-list {
  display: grid;
  gap: 12px;
}

.tip-item {
  position: relative;
  padding: 12px 16px 12px 34px;
  background-color: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.tip-item::before {
  content: "!";
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: #fff;
  background-color: var(--teal);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
}

/* 观看指南 */

.content-figure {
  margin: 20px 0;
}

.content-figure img {
  aspect-ratio: 16 / 9;
}

.steps .step-list {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.step-body {
  min-width: 0;
}

.trouble-list {
  display: grid;
  gap: 12px;
}

.trouble-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background-color: var(--paper);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--ink-soft);
  border-radius: var(--radius);
  min-width: 0;
}

.trouble-num {
  flex: 0 0 auto;
  min-width: 28px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.trouble-body {
  min-width: 0;
}

.trouble-title {
  margin-bottom: 4px;
  font-size: 16px;
}

.trouble-desc {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
}

.note-list {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.note-item {
  position: relative;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.note-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 2px;
  background-color: var(--teal);
}

/* 入口核验 */

.media-figure {
  margin: 20px 0;
}

.media-figure img {
  aspect-ratio: 16 / 9;
}

#criteria .faq-item {
  margin-bottom: 10px;
  padding: 0 16px;
  background-color: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

#criteria .faq-item summary {
  padding: 14px 0;
}

#criteria .faq-item .faq-body {
  padding: 0 0 16px 32px;
}

#criteria .faq-item .faq-body strong {
  color: var(--ink);
}

#signals .data-table {
  margin-top: 16px;
}

.link-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.link-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 14px;
  background-color: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 15px;
  text-decoration: none;
}

.link-list a:hover {
  background-color: #fff;
  border-color: var(--tomato);
  color: var(--tomato-deep);
}

/* 更新归档 */

.archive-intro .figure-block {
  margin-top: 20px;
}

.month-group {
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}

.month-group:last-child {
  border-bottom: 0;
}

.month-heading {
  margin-bottom: 8px;
}

.month-label {
  display: inline-block;
  padding: 3px 10px;
  background-color: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
}

.month-summary {
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.month-index {
  border-top: 1px solid var(--rule);
}

.month-index li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
  line-height: 1.7;
}

.index-type {
  flex: 0 0 auto;
  min-width: 64px;
  padding: 1px 6px;
  background-color: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--ink-soft);
  font-size: 12px;
  text-align: center;
}

.month-index a {
  color: var(--ink);
  min-width: 0;
}

.month-count {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.archive-total p {
  max-width: 34em;
  color: var(--ink-soft);
}

.relation-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.relation-list li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.relation-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 2px;
  background-color: var(--tomato);
}

/* 反馈与版务 */

.feedback-list {
  display: grid;
  gap: 14px;
}

.feedback-item {
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  background-color: var(--paper);
  min-width: 0;
}

.feedback-list-unhandled .feedback-item {
  border-left-color: var(--tomato);
  background-color: var(--paper-warm);
}

.feedback-item h3 {
  margin-bottom: 6px;
  font-size: 17px;
}

.feedback-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.material-list {
  display: grid;
  gap: 12px;
}

.material-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background-color: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  min-width: 0;
}

.material-mark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  background-color: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  border-radius: 50%;
}

.material-body {
  min-width: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.boundary-list {
  display: grid;
  gap: 12px;
}

.boundary-item {
  padding: 14px 16px;
  background-color: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  min-width: 0;
}

.boundary-item h3 {
  margin-bottom: 6px;
  font-size: 16px;
}

.boundary-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.related-list {
  display: grid;
  gap: 8px;
}

.related-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
  line-height: 1.7;
}

.related-item a {
  color: var(--ink);
  font-weight: 600;
}

.related-item span {
  color: var(--ink-soft);
  font-size: 14px;
}

/* 404 */

.error-main {
  display: block;
}

.page-shell {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 20px 72px;
}

.page-shell h1 {
  margin-bottom: 14px;
}

.error-lead {
  margin-bottom: 24px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.75;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.error-help {
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.error-help h2 {
  margin-bottom: 12px;
  font-size: 20px;
}

.error-list {
  display: grid;
  gap: 8px;
}

.error-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  background-color: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 15px;
  text-decoration: none;
}

.error-list a:hover {
  background-color: #fff;
  border-color: var(--tomato);
  color: var(--tomato-deep);
}

/* --------------------------------------------------------------------------
   5. responsive
   -------------------------------------------------------------------------- */

@media (min-width: 900px) {
  .back-top-link {
    display: inline-flex;
  }
}

@media (max-width: 1120px) {
  .page-layout,
  .layout-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .inner-main {
    max-width: none;
  }

  .content-aside,
  .content-sidebar,
  .page-aside {
    position: static;
    top: auto;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
}

@media (max-width: 899px) {
  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .back-top-link {
    display: none;
  }

  .header-inner {
    gap: 12px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-figure {
    order: 2;
  }

  .toc-bar {
    top: 64px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .toc-list {
    flex-wrap: nowrap;
    width: max-content;
    min-width: 100%;
  }

  .toc-link {
    white-space: nowrap;
  }

  .channel-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    align-items: start;
  }

  .channel-link {
    justify-self: start;
  }

  .topic-item,
  .topic-feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .topic-item .topic-figure img,
  .topic-feature .topic-figure img {
    aspect-ratio: 16 / 9;
  }

  .channel-meta {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .topic-fields {
    grid-template-columns: 84px minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .header-inner {
    padding: 0 16px;
    min-height: 60px;
  }

  .brand {
    font-size: 18px;
  }

  .home-main,
  .page-layout,
  .layout-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .breadcrumb,
  .breadcrumb-list {
    padding-top: 16px;
  }

  .page-header {
    padding-bottom: 16px;
    margin-bottom: 22px;
  }

  .hero {
    padding: 28px 0 26px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .section {
    padding: 34px 0;
  }

  .content-section {
    padding-bottom: 30px;
    margin-bottom: 30px;
  }

  .check-list,
  .prepare .check-list,
  .step-list,
  .steps .step-list,
  .archive-groups,
  .feedback-columns,
  .past-list,
  .link-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .data-table,
  .field-table,
  .verify-table {
    font-size: 15px;
  }

  .data-table th,
  .data-table td,
  .field-table th,
  .field-table td,
  .verify-table th,
  .verify-table td {
    padding: 10px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 36px 16px 28px;
  }

  .footer-bottom {
    padding: 16px 16px 24px;
  }

  .footer-top-link {
    margin-left: 0;
  }

  .page-shell {
    padding: 44px 16px 56px;
  }

  .content-aside,
  .content-sidebar,
  .page-aside {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0 14px;
  }

  .home-main,
  .page-layout,
  .layout-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .channel-meta {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .channel-meta dt {
    margin-top: 8px;
  }

  .channel-meta dt:first-child {
    margin-top: 0;
  }

  .topic-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .topic-fields dt {
    margin-top: 8px;
  }

  .topic-fields dt:first-child {
    margin-top: 0;
  }

  .month-index li {
    flex-wrap: wrap;
    gap: 6px;
  }

  .faq-item summary {
    font-size: 16px;
  }

  .btn {
    padding: 0 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
