/* ==========================================================================
   麻豆影视 grhm.net — 全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base — 变量、重置、基础排版
   -------------------------------------------------------------------------- */
:root {
  --c-ink: #1f2933;
  --c-body: #3e4c59;
  --c-page: #f7f8f7;
  --c-panel: #ffffff;
  --c-accent: #0f766e;
  --c-accent-soft: #e6f2f0;
  --c-link: #0e7490;
  --c-line: #d9e2e0;
  --c-muted: #64748b;
  --c-dark-bg: #111827;
  --c-dark-text: #e5e7eb;
  --c-dark-panel: #1a2331;
  --c-dark-line: #2c3746;
  --c-dark-muted: #9aa7b5;
  --radius: 6px;
  --radius-sm: 4px;
  --shell: 1160px;
  --narrow: 860px;
  --mid: 1040px;
  --gap: 32px;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", "Roboto Mono", Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-body);
  background: var(--c-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 12px;
  color: var(--c-ink);
  font-weight: 700;
  line-height: 1.35;
}

h1 { font-size: 40px; }
h2 { font-size: 26px; }
h3 { font-size: 18px; }

p {
  margin: 0 0 14px;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--c-link);
  text-decoration: none;
  transition: color .18s ease;
}

a:hover {
  color: var(--c-accent);
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  text-align: left;
  vertical-align: top;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* 暗色主题 */
html[data-theme="dark"] body.site-body {
  background: var(--c-dark-bg);
  color: var(--c-dark-text);
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4 {
  color: #f3f4f6;
}

html[data-theme="dark"] a {
  color: #5eead4;
}

html[data-theme="dark"] a:hover {
  color: #99f6e4;
}

/* --------------------------------------------------------------------------
   layout — 站点外壳、容器、页头、导航、面包屑、页脚
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  background: var(--c-panel);
  border-bottom: 1px solid var(--c-line);
  position: relative;
  z-index: 30;
}

html[data-theme="dark"] .site-header {
  background: var(--c-dark-panel);
  border-bottom-color: var(--c-dark-line);
}

.header-top {
  border-bottom: 1px solid var(--c-line);
}

html[data-theme="dark"] .header-top {
  border-bottom-color: var(--c-dark-line);
}

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  min-width: 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  color: var(--c-ink);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
}

.brand-link:hover {
  color: var(--c-accent);
  text-decoration: none;
}

.brand-name {
  white-space: nowrap;
}

.brand-tagline {
  margin: 0;
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.5;
}

.theme-toggle {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--c-body);
  background: transparent;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  transition: border-color .18s ease, color .18s ease;
}

.theme-toggle:hover {
  color: var(--c-accent);
  border-color: var(--c-accent);
}

html[data-theme="dark"] .theme-toggle {
  color: var(--c-dark-text);
  border-color: var(--c-dark-line);
}

.theme-toggle-label {
  white-space: nowrap;
}

.header-nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 54px;
}

.menu-toggle {
  display: none;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.menu-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--c-ink);
  border-radius: 1px;
}

html[data-theme="dark"] .menu-toggle {
  border-color: var(--c-dark-line);
}

html[data-theme="dark"] .menu-toggle-bar {
  background: var(--c-dark-text);
}

.primary-nav.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.nav-item a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 15px;
  color: var(--c-body);
  border-radius: var(--radius-sm);
  line-height: 1.5;
}

.nav-item a:hover {
  color: var(--c-accent);
  background: var(--c-accent-soft);
  text-decoration: none;
}

.nav-item.is-current a {
  color: var(--c-accent);
  font-weight: 700;
  background: var(--c-accent-soft);
}

html[data-theme="dark"] .nav-item a {
  color: var(--c-dark-text);
}

html[data-theme="dark"] .nav-item a:hover,
html[data-theme="dark"] .nav-item.is-current a {
  color: #5eead4;
  background: rgba(94, 234, 212, .12);
}

.nav-quick {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 12px;
  font-size: 13px;
  color: var(--c-accent);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.quick-link:hover {
  border-color: var(--c-accent);
  text-decoration: none;
}

.quick-link-alt {
  color: var(--c-link);
}

html[data-theme="dark"] .quick-link {
  border-color: var(--c-dark-line);
  color: #5eead4;
}

/* 面包屑 */
.breadcrumb {
  background: var(--c-page);
  border-bottom: 1px solid var(--c-line);
}

html[data-theme="dark"] .breadcrumb {
  background: var(--c-dark-bg);
  border-bottom-color: var(--c-dark-line);
}

.breadcrumb-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 13px;
  color: var(--c-muted);
}

.breadcrumb-sep {
  color: var(--c-line);
}

.breadcrumb-current {
  color: var(--c-body);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--c-muted);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: var(--c-line);
}

.breadcrumb-item.is-current,
.breadcrumb-item.breadcrumb-current {
  color: var(--c-body);
}

/* 页面骨架 */
.site-main {
  display: block;
}

.inner-main {
  background: var(--c-page);
}

html[data-theme="dark"] .inner-main {
  background: var(--c-dark-bg);
}

.page-title {
  background: #eef2f1;
  border-bottom: 1px solid var(--c-line);
  padding: 30px 0 26px;
  margin: 0;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--c-ink);
}

html[data-theme="dark"] .page-title {
  background: var(--c-dark-panel);
  border-bottom-color: var(--c-dark-line);
  color: #f3f4f6;
}

.page-title-desc {
  margin: 0;
  font-size: 15px;
  color: var(--c-muted);
  max-width: 760px;
  line-height: 1.7;
}

.page-title-inner {
  display: block;
}

.page-header {
  margin: 0 0 24px;
}

.page-header .page-title {
  background: transparent;
  border-bottom: 0;
  padding: 0;
  margin: 0;
}

html[data-theme="dark"] .page-header .page-title {
  background: transparent;
}

/* 页脚 */
.site-footer {
  margin-top: 56px;
  background: var(--c-panel);
  border-top: 1px solid var(--c-line);
  color: var(--c-body);
}

html[data-theme="dark"] .site-footer {
  background: var(--c-dark-panel);
  border-top-color: var(--c-dark-line);
  color: var(--c-dark-text);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 32px;
}

.footer-col {
  min-width: 0;
}

.footer-col-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-ink);
  margin: 0 0 14px;
  line-height: 1.4;
}

html[data-theme="dark"] .footer-col-title {
  color: #f3f4f6;
}

.footer-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.footer-nav-list li a {
  font-size: 14px;
  color: var(--c-body);
  line-height: 1.8;
}

.footer-nav-list li a:hover {
  color: var(--c-accent);
}

html[data-theme="dark"] .footer-nav-list li a {
  color: var(--c-dark-text);
}

.footer-about p,
.footer-usage p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--c-muted);
  margin: 0;
}

html[data-theme="dark"] .footer-about p,
html[data-theme="dark"] .footer-usage p {
  color: var(--c-dark-muted);
}

.footer-bottom {
  border-top: 1px solid var(--c-line);
  padding: 16px 0;
}

html[data-theme="dark"] .footer-bottom {
  border-top-color: var(--c-dark-line);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  margin: 0;
  font-size: 13px;
  color: var(--c-muted);
}

html[data-theme="dark"] .footer-copy {
  color: var(--c-dark-muted);
}

.footer-year {
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   components — 通用按钮、标签、链接、表格、FAQ、区块标题
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
  line-height: 1.4;
}

.btn-primary {
  background: var(--c-accent);
  color: #ffffff;
  border-color: var(--c-accent);
}

.btn-primary:hover {
  background: #0b5f59;
  border-color: #0b5f59;
  color: #ffffff;
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--c-accent);
  border-color: var(--c-line);
}

.btn-ghost:hover {
  border-color: var(--c-accent);
  text-decoration: none;
}

html[data-theme="dark"] .btn-ghost {
  color: #5eead4;
  border-color: var(--c-dark-line);
}

.channel-tag {
  display: inline-block;
  padding: 2px 10px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--c-accent);
  background: var(--c-accent-soft);
  border: 1px solid rgba(15, 118, 110, .2);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

html[data-theme="dark"] .channel-tag {
  color: #5eead4;
  background: rgba(94, 234, 212, .1);
  border-color: rgba(94, 234, 212, .25);
}

.channel-tag-link {
  color: var(--c-accent);
}

.channel-tag-link:hover {
  text-decoration: none;
  background: #d3eae6;
}

.text-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-link);
}

.text-link::after {
  content: " →";
  font-weight: 400;
}

.text-link:hover {
  color: var(--c-accent);
}

.section-head {
  margin-bottom: 22px;
}

.section-title {
  font-size: 26px;
  margin: 0 0 8px;
  color: var(--c-ink);
}

html[data-theme="dark"] .section-title {
  color: #f3f4f6;
}

.section-desc {
  margin: 0;
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.7;
  max-width: 760px;
}

.section-lead,
.section-lede,
.section-intro {
  margin: 0 0 18px;
  font-size: 15px;
  color: var(--c-body);
  line-height: 1.75;
  max-width: 760px;
}

html[data-theme="dark"] .section-lead,
html[data-theme="dark"] .section-lede,
html[data-theme="dark"] .section-intro {
  color: var(--c-dark-text);
}

.section-heading {
  font-size: 24px;
  margin: 0 0 10px;
}

.section-foot {
  margin: 18px 0 0;
  font-size: 14px;
}

/* 表格 */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-panel);
}

html[data-theme="dark"] .table-wrap {
  border-color: var(--c-dark-line);
  background: var(--c-dark-panel);
}

.compare-table,
.data-table,
.field-table {
  width: 100%;
  font-size: 14px;
  line-height: 1.65;
}

.table-caption {
  caption-side: top;
  text-align: left;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--c-muted);
  border-bottom: 1px solid var(--c-line);
}

.compare-table thead th,
.data-table thead th,
.field-table thead th {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-ink);
  background: #f1f4f3;
  border-bottom: 1px solid var(--c-line);
  white-space: nowrap;
}

html[data-theme="dark"] .compare-table thead th,
html[data-theme="dark"] .data-table thead th,
html[data-theme="dark"] .field-table thead th {
  color: #f3f4f6;
  background: #232e3d;
  border-bottom-color: var(--c-dark-line);
}

.compare-table tbody th,
.compare-table tbody td,
.data-table tbody th,
.data-table tbody td,
.field-table tbody th,
.field-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-body);
}

html[data-theme="dark"] .compare-table tbody th,
html[data-theme="dark"] .compare-table tbody td,
html[data-theme="dark"] .data-table tbody th,
html[data-theme="dark"] .data-table tbody td,
html[data-theme="dark"] .field-table tbody th,
html[data-theme="dark"] .field-table tbody td {
  border-bottom-color: var(--c-dark-line);
  color: var(--c-dark-text);
}

.compare-table tbody th,
.field-table tbody th {
  font-weight: 600;
  color: var(--c-ink);
  white-space: nowrap;
}

html[data-theme="dark"] .compare-table tbody th,
html[data-theme="dark"] .field-table tbody th {
  color: #f3f4f6;
}

.compare-table tbody tr:hover td,
.data-table tbody tr:hover td,
.field-table tbody tr:hover td {
  background: #f4f8f7;
}

html[data-theme="dark"] .compare-table tbody tr:hover td,
html[data-theme="dark"] .data-table tbody tr:hover td,
html[data-theme="dark"] .field-table tbody tr:hover td {
  background: #202a38;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td,
.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td,
.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

/* FAQ 折叠 */
.faq-item {
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-panel);
  margin-bottom: 12px;
  overflow: hidden;
}

html[data-theme="dark"] .faq-item {
  border-color: var(--c-dark-line);
  background: var(--c-dark-panel);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--c-ink);
  cursor: pointer;
  list-style: none;
  line-height: 1.5;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  flex: none;
  font-size: 20px;
  font-weight: 400;
  color: var(--c-accent);
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

html[data-theme="dark"] .faq-question {
  color: #f3f4f6;
}

.faq-answer {
  padding: 0 18px 16px;
  border-top: 1px solid var(--c-line);
  padding-top: 14px;
}

html[data-theme="dark"] .faq-answer {
  border-top-color: var(--c-dark-line);
}

.faq-answer p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-body);
}

html[data-theme="dark"] .faq-answer p {
  color: var(--c-dark-text);
}

/* 相关链接 */
.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--c-line);
}

html[data-theme="dark"] .related-links {
  border-top-color: var(--c-dark-line);
}

.related-links-label,
.related-links-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-ink);
  margin: 0;
  flex: 1 0 100%;
}

html[data-theme="dark"] .related-links-label,
html[data-theme="dark"] .related-links-title {
  color: #f3f4f6;
}

.related-links-item {
  font-size: 14px;
  padding: 6px 12px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
}

.related-links-item:hover {
  border-color: var(--c-accent);
  text-decoration: none;
}

.related-links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.related-links-list li a {
  display: inline-block;
  font-size: 14px;
  padding: 6px 12px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
}

.related-links-list li a:hover {
  border-color: var(--c-accent);
  text-decoration: none;
}

html[data-theme="dark"] .related-links-item,
html[data-theme="dark"] .related-links-list li a {
  border-color: var(--c-dark-line);
}

/* 图片容器 */
.content-media,
.guide-media,
.library-media,
.topic-media,
.channel-figure,
.issue-figure,
.record-figure {
  margin: 0 0 24px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-panel);
}

html[data-theme="dark"] .content-media,
html[data-theme="dark"] .guide-media,
html[data-theme="dark"] .library-media,
html[data-theme="dark"] .topic-media,
html[data-theme="dark"] .channel-figure,
html[data-theme="dark"] .issue-figure,
html[data-theme="dark"] .record-figure {
  border-color: var(--c-dark-line);
  background: var(--c-dark-panel);
}

.content-media img,
.guide-media img,
.library-media img,
.topic-media img,
.channel-figure img,
.issue-figure img,
.record-figure img,
.lead-story-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.content-media figcaption,
.guide-media figcaption,
.library-media-caption,
.topic-media-caption,
.channel-figure figcaption,
.issue-figure figcaption,
.record-figure figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--c-muted);
  border-top: 1px solid var(--c-line);
  line-height: 1.6;
}

html[data-theme="dark"] .content-media figcaption,
html[data-theme="dark"] .guide-media figcaption,
html[data-theme="dark"] .library-media-caption,
html[data-theme="dark"] .topic-media-caption,
html[data-theme="dark"] .channel-figure figcaption,
html[data-theme="dark"] .issue-figure figcaption,
html[data-theme="dark"] .record-figure figcaption {
  border-top-color: var(--c-dark-line);
  color: var(--c-dark-muted);
}

/* --------------------------------------------------------------------------
   pages — 首页
   -------------------------------------------------------------------------- */
.home-main section {
  padding: 48px 0;
  border-bottom: 1px solid var(--c-line);
}

.home-main section:last-of-type {
  border-bottom: 0;
}

html[data-theme="dark"] .home-main section {
  border-bottom-color: var(--c-dark-line);
}

/* 焦点区 */
.hero-focus {
  padding: 36px 0 0;
  border-bottom: 0;
}

.hero-focus-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.lead-story {
  display: flex;
  flex-direction: column;
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
}

html[data-theme="dark"] .lead-story {
  background: var(--c-dark-panel);
  border-color: var(--c-dark-line);
}

.lead-story-media {
  margin: 0;
  aspect-ratio: 16 / 9;
  background: #e3e8e7;
  overflow: hidden;
}

.lead-story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lead-story-body {
  padding: 22px 24px 24px;
}

.lead-story-title {
  font-size: 28px;
  margin: 10px 0 12px;
  line-height: 1.35;
}

.lead-story-text {
  font-size: 15px;
  color: var(--c-body);
  line-height: 1.75;
  margin: 0 0 18px;
}

html[data-theme="dark"] .lead-story-text {
  color: var(--c-dark-text);
}

.lead-story-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.news-flash {
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 20px 22px;
}

html[data-theme="dark"] .news-flash {
  background: var(--c-dark-panel);
  border-color: var(--c-dark-line);
}

.news-flash-title {
  font-size: 16px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--c-line);
}

html[data-theme="dark"] .news-flash-title {
  border-bottom-color: var(--c-dark-line);
}

.news-flash-list {
  display: flex;
  flex-direction: column;
}

.news-flash-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--c-line);
}

.news-flash-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

html[data-theme="dark"] .news-flash-item {
  border-bottom-color: var(--c-dark-line);
}

.news-flash-link {
  flex: 1 1 100%;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--c-ink);
}

.news-flash-link:hover {
  color: var(--c-accent);
}

html[data-theme="dark"] .news-flash-link {
  color: #f3f4f6;
}

.news-flash-time {
  font-size: 12px;
  color: var(--c-muted);
  font-variant-numeric: tabular-nums;
}

/* 首屏下方内容图 */
.content-media-primary {
  margin: 28px 0 0;
}

/* 频道标签横向入口 */
.channel-filter {
  background: #eef2f1;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  padding: 14px 0;
}

html[data-theme="dark"] .channel-filter {
  background: var(--c-dark-panel);
  border-color: var(--c-dark-line);
}

.channel-filter-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.channel-filter-label {
  flex: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-muted);
}

.channel-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.channel-filter-list li {
  display: inline-flex;
}

/* 频道比较表 */
.channel-index {
  padding: 48px 0;
}

/* 观看路径时间线 */
.path-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 4px 0;
}

.path-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--c-line);
  transform: translateX(-.5px);
}

html[data-theme="dark"] .path-timeline::before {
  background: var(--c-dark-line);
}

.path-step {
  position: relative;
  display: flex;
  width: 50%;
  padding: 0 40px 32px 0;
  align-self: flex-start;
}

.path-step:nth-child(even) {
  align-self: flex-end;
  padding: 0 0 32px 40px;
}

.path-step::before {
  content: "";
  position: absolute;
  top: 8px;
  right: -5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c-accent);
  border: 2px solid var(--c-page);
  box-sizing: content-box;
}

.path-step:nth-child(even)::before {
  right: auto;
  left: -5px;
}

.path-step:last-child {
  padding-bottom: 0;
}

.path-step-body {
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 18px 20px;
  width: 100%;
}

html[data-theme="dark"] .path-step-body {
  background: var(--c-dark-panel);
  border-color: var(--c-dark-line);
}

.path-step-index {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--c-accent);
  margin-bottom: 6px;
  letter-spacing: .02em;
}

.path-step-title {
  font-size: 17px;
  margin: 0 0 8px;
}

.path-step-text {
  font-size: 14px;
  color: var(--c-body);
  line-height: 1.7;
  margin: 0 0 10px;
}

html[data-theme="dark"] .path-step-text {
  color: var(--c-dark-text);
}

/* 专题编辑列表 */
.topic-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--c-line);
}

html[data-theme="dark"] .topic-list {
  border-top-color: var(--c-dark-line);
}

.topic-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--c-line);
  align-items: start;
}

html[data-theme="dark"] .topic-item {
  border-bottom-color: var(--c-dark-line);
}

.topic-index {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--c-accent);
  line-height: 1.2;
  padding-top: 2px;
}

.topic-item-body,
.topic-body {
  min-width: 0;
}

.topic-item-title {
  font-size: 18px;
  margin: 0 0 8px;
}

.topic-item-text {
  font-size: 14px;
  color: var(--c-body);
  line-height: 1.7;
  margin: 0 0 8px;
}

html[data-theme="dark"] .topic-item-text {
  color: var(--c-dark-text);
}

.topic-item-meta {
  font-size: 13px;
  color: var(--c-muted);
  margin: 0;
}

/* 观看条件对照 */
.viewing-compare-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.device-check,
.network-check {
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 22px 24px;
}

html[data-theme="dark"] .device-check,
html[data-theme="dark"] .network-check {
  background: var(--c-dark-panel);
  border-color: var(--c-dark-line);
}

.check-title {
  font-size: 17px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--c-line);
}

html[data-theme="dark"] .check-title {
  border-bottom-color: var(--c-dark-line);
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.check-item {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-body);
}

html[data-theme="dark"] .check-item {
  color: var(--c-dark-text);
}

.check-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--c-accent);
}

.check-foot {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--c-line);
}

html[data-theme="dark"] .check-foot {
  border-top-color: var(--c-dark-line);
}

/* 资料与版本条 */
.library-strip-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.file-list-wrap,
.version-fields-wrap {
  min-width: 0;
}

.file-list-wrap h3,
.version-fields-wrap h3 {
  font-size: 16px;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-line);
}

html[data-theme="dark"] .file-list-wrap h3,
html[data-theme="dark"] .version-fields-wrap h3 {
  border-bottom-color: var(--c-dark-line);
}

.file-list,
.version-fields {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.file-item,
.version-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--c-line);
}

html[data-theme="dark"] .file-item,
html[data-theme="dark"] .version-item {
  border-bottom-color: var(--c-dark-line);
}

.file-item dt,
.version-item dt {
  flex: 0 0 100%;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-ink);
}

.file-item dd,
.version-item dd {
  margin: 0;
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.6;
}

html[data-theme="dark"] .file-item dt,
html[data-theme="dark"] .version-item dt {
  color: #f3f4f6;
}

html[data-theme="dark"] .file-item dd,
html[data-theme="dark"] .version-item dd {
  color: var(--c-dark-muted);
}

.strip-subtitle {
  font-size: 13px;
  color: var(--c-muted);
  margin: 0 0 12px;
}

/* 问题反馈入口 */
.support-path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.support-path-block {
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

html[data-theme="dark"] .support-path-block {
  background: var(--c-dark-panel);
  border-color: var(--c-dark-line);
}

.support-path-title {
  font-size: 16px;
  margin: 0;
}

.support-path-text {
  font-size: 14px;
  color: var(--c-body);
  line-height: 1.7;
  margin: 0;
  flex: 1 1 auto;
}

html[data-theme="dark"] .support-path-text {
  color: var(--c-dark-text);
}

/* --------------------------------------------------------------------------
   pages — 内页公共容器
   -------------------------------------------------------------------------- */
.guide-shell,
.library-shell,
.updates-shell {
  padding-top: 32px;
  padding-bottom: 8px;
}

.guide-shell {
  max-width: var(--narrow);
}

.library-shell {
  max-width: var(--mid);
}

.updates-shell {
  max-width: 1080px;
}

.page-layout {
  display: grid;
  gap: 40px;
  padding-top: 32px;
  padding-bottom: 8px;
  align-items: start;
}

.channel-layout,
.topic-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.support-layout {
  grid-template-columns: minmax(0, 1fr) 280px;
}

.channel-main,
.topic-main,
.support-content {
  min-width: 0;
}

.channel-aside,
.topic-aside,
.issue-nav {
  min-width: 0;
}

/* --------------------------------------------------------------------------
   pages — 频道索引
   -------------------------------------------------------------------------- */
.channel-main > section {
  padding: 28px 0;
  border-bottom: 1px solid var(--c-line);
}

.channel-main > section:last-of-type {
  border-bottom: 0;
}

html[data-theme="dark"] .channel-main > section {
  border-bottom-color: var(--c-dark-line);
}

.dimension-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.dimension-item {
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

html[data-theme="dark"] .dimension-item {
  background: var(--c-dark-panel);
  border-color: var(--c-dark-line);
}

.dimension-item h3 {
  font-size: 16px;
  margin: 0 0 8px;
}

.dimension-item p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-body);
  margin: 0 0 12px;
}

html[data-theme="dark"] .dimension-item p {
  color: var(--c-dark-text);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-block;
  padding: 2px 9px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--c-muted);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

html[data-theme="dark"] .tag {
  border-color: var(--c-dark-line);
  color: var(--c-dark-muted);
}

.channel-figure {
  margin-top: 20px;
}

.channel-table {
  overflow-x: auto;
}

.channel-table table {
  font-size: 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 640px;
}

.channel-table caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 10px;
  font-size: 13px;
  color: var(--c-muted);
}

.channel-table thead th {
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-ink);
  background: #f1f4f3;
  border-bottom: 1px solid var(--c-line);
  white-space: nowrap;
}

html[data-theme="dark"] .channel-table thead th {
  color: #f3f4f6;
  background: #232e3d;
  border-bottom-color: var(--c-dark-line);
}

.channel-table tbody th,
.channel-table tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-body);
  line-height: 1.65;
}

html[data-theme="dark"] .channel-table tbody th,
html[data-theme="dark"] .channel-table tbody td {
  border-bottom-color: var(--c-dark-line);
  color: var(--c-dark-text);
}

.channel-table tbody th {
  font-weight: 600;
  color: var(--c-ink);
  white-space: nowrap;
}

html[data-theme="dark"] .channel-table tbody th {
  color: #f3f4f6;
}

.channel-table tbody tr:last-child th,
.channel-table tbody tr:last-child td {
  border-bottom: 0;
}

.rule-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  counter-reset: rule;
}

.rule-list > li {
  position: relative;
  padding: 16px 18px 16px 52px;
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  counter-increment: rule;
}

html[data-theme="dark"] .rule-list > li {
  background: var(--c-dark-panel);
  border-color: var(--c-dark-line);
}

.rule-list > li::before {
  content: counter(rule, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 16px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--c-accent);
}

.rule-list h3 {
  font-size: 16px;
  margin: 0 0 6px;
}

.rule-list p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-body);
  margin: 0;
}

html[data-theme="dark"] .rule-list p {
  color: var(--c-dark-text);
}

/* 侧栏 */
.channel-aside > section,
.topic-aside > nav,
.topic-aside > section {
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.channel-aside > section:last-child,
.topic-aside > section:last-child {
  margin-bottom: 0;
}

html[data-theme="dark"] .channel-aside > section,
html[data-theme="dark"] .topic-aside > nav,
html[data-theme="dark"] .topic-aside > section {
  background: var(--c-dark-panel);
  border-color: var(--c-dark-line);
}

.channel-aside h2,
.topic-aside h2 {
  font-size: 16px;
  margin: 0 0 8px;
}

.aside-lead {
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.65;
  margin: 0 0 14px;
}

.quick-list,
.related-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quick-item,
.related-item {
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--c-line);
}

.quick-item:last-child,
.related-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

html[data-theme="dark"] .quick-item,
html[data-theme="dark"] .related-item {
  border-bottom-color: var(--c-dark-line);
}

.quick-item h3,
.related-item h3 {
  font-size: 14px;
  margin: 0 0 4px;
  line-height: 1.5;
}

.quick-item p,
.related-item p {
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.65;
  margin: 0 0 6px;
}

/* --------------------------------------------------------------------------
   pages — 观看指南
   -------------------------------------------------------------------------- */
.guide-shell > section {
  padding: 28px 0;
  border-bottom: 1px solid var(--c-line);
}

.guide-shell > section:last-of-type {
  border-bottom: 0;
}

html[data-theme="dark"] .guide-shell > section {
  border-bottom-color: var(--c-dark-line);
}

.guide-shell h2 {
  font-size: 22px;
  margin: 0 0 8px;
}

.checklist-section > p,
.device-network-compare > p,
.field-table-section > p,
.guide-faq > p {
  font-size: 14px;
  color: var(--c-body);
  line-height: 1.75;
  margin: 0 0 18px;
}

html[data-theme="dark"] .checklist-section > p,
html[data-theme="dark"] .device-network-compare > p,
html[data-theme="dark"] .field-table-section > p,
html[data-theme="dark"] .guide-faq > p {
  color: var(--c-dark-text);
}

.checklist {
  counter-reset: check;
  display: flex;
  flex-direction: column;
}

.checklist-item {
  position: relative;
  padding: 18px 0 18px 52px;
  border-bottom: 1px solid var(--c-line);
  counter-increment: check;
}

.checklist-item:last-child {
  border-bottom: 0;
}

html[data-theme="dark"] .checklist-item {
  border-bottom-color: var(--c-dark-line);
}

.checklist-item::before {
  content: counter(check);
  position: absolute;
  left: 0;
  top: 18px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--c-accent);
  border: 1px solid var(--c-accent);
  border-radius: 50%;
}

.checklist-title {
  font-size: 16px;
  margin: 0 0 6px;
}

.checklist-desc {
  font-size: 14px;
  color: var(--c-body);
  line-height: 1.7;
  margin: 0;
}

html[data-theme="dark"] .checklist-desc {
  color: var(--c-dark-text);
}

.compare-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.compare-col {
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 20px 22px;
}

html[data-theme="dark"] .compare-col {
  background: var(--c-dark-panel);
  border-color: var(--c-dark-line);
}

.compare-col-title {
  font-size: 16px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--c-line);
}

html[data-theme="dark"] .compare-col-title {
  border-bottom-color: var(--c-dark-line);
}

.compare-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.compare-list dt {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-ink);
  padding-top: 10px;
}

.compare-list dt:first-child {
  padding-top: 0;
}

.compare-list dd {
  margin: 2px 0 10px;
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.65;
}

html[data-theme="dark"] .compare-list dt {
  color: #f3f4f6;
}

html[data-theme="dark"] .compare-list dd {
  color: var(--c-dark-muted);
}

.field-table-section .table-wrap {
  border: 0;
  background: transparent;
}

.field-table {
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
}

.field-table caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 10px;
  font-size: 13px;
  color: var(--c-muted);
}

html[data-theme="dark"] .field-table {
  border-color: var(--c-dark-line);
}

/* --------------------------------------------------------------------------
   pages — 专题片单
   -------------------------------------------------------------------------- */
.topic-main > section {
  padding: 28px 0;
  border-bottom: 1px solid var(--c-line);
}

.topic-main > section:last-of-type {
  border-bottom: 0;
}

html[data-theme="dark"] .topic-main > section {
  border-bottom-color: var(--c-dark-line);
}

.curation-rules .rule-item {
  position: relative;
  padding: 16px 0 16px 0;
  border-bottom: 1px solid var(--c-line);
}

.curation-rules .rule-item:last-child {
  border-bottom: 0;
}

html[data-theme="dark"] .curation-rules .rule-item {
  border-bottom-color: var(--c-dark-line);
}

.rule-name {
  font-size: 16px;
  margin: 0 0 6px;
}

.rule-desc {
  font-size: 14px;
  color: var(--c-body);
  line-height: 1.7;
  margin: 0 0 6px;
}

html[data-theme="dark"] .rule-desc {
  color: var(--c-dark-text);
}

.rule-judge {
  font-size: 13px;
  color: var(--c-muted);
  margin: 0;
  padding-left: 14px;
  border-left: 2px solid var(--c-accent);
  line-height: 1.65;
}

.topic-feature .topic-media {
  margin-bottom: 20px;
}

.topic-feature .topic-item {
  grid-template-columns: 52px minmax(0, 1fr);
}

.topic-name {
  font-size: 17px;
  margin: 0 0 6px;
}

.topic-clue {
  font-size: 14px;
  color: var(--c-body);
  line-height: 1.7;
  margin: 0 0 8px;
}

html[data-theme="dark"] .topic-clue {
  color: var(--c-dark-text);
}

.topic-order {
  font-size: 13px;
  color: var(--c-muted);
  margin: 0 0 8px;
}

.topic-link {
  font-size: 14px;
  font-weight: 600;
}

.topic-channel .compare-table {
  min-width: 560px;
}

.topic-channel {
  overflow-x: auto;
}

.order-steps {
  counter-reset: order;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-step {
  position: relative;
  padding: 14px 18px 14px 52px;
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  counter-increment: order;
}

html[data-theme="dark"] .order-step {
  background: var(--c-dark-panel);
  border-color: var(--c-dark-line);
}

.order-step::before {
  content: counter(order, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 14px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--c-accent);
}

.order-step-name {
  font-size: 15px;
  margin: 0 0 4px;
}

.order-step-desc {
  font-size: 14px;
  color: var(--c-body);
  line-height: 1.7;
  margin: 0;
}

html[data-theme="dark"] .order-step-desc {
  color: var(--c-dark-text);
}

/* 专题侧栏 */
.aside-title {
  font-size: 16px;
  margin: 0 0 12px;
}

.scene-tag-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scene-tag-item {
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--c-line);
}

.scene-tag-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

html[data-theme="dark"] .scene-tag-item {
  border-bottom-color: var(--c-dark-line);
}

.scene-tag-link {
  font-size: 14px;
  font-weight: 600;
}

.scene-tag-desc {
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.65;
  margin: 4px 0 0;
}

.recent-note-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.recent-note-item {
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--c-line);
}

.recent-note-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

html[data-theme="dark"] .recent-note-item {
  border-bottom-color: var(--c-dark-line);
}

.recent-note-name {
  font-size: 14px;
  margin: 0 0 4px;
  line-height: 1.5;
}

.recent-note-scope {
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.65;
  margin: 0 0 6px;
}

.recent-note-link {
  font-size: 13px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   pages — 资料库
   -------------------------------------------------------------------------- */
.library-shell > section,
.library-shell > nav {
  padding: 28px 0;
  border-bottom: 1px solid var(--c-line);
}

.library-shell > section:last-of-type,
.library-shell > nav:last-of-type {
  border-bottom: 0;
}

html[data-theme="dark"] .library-shell > section,
html[data-theme="dark"] .library-shell > nav {
  border-bottom-color: var(--c-dark-line);
}

.library-shell h2 {
  font-size: 22px;
  margin: 0 0 8px;
}

.term-index-title {
  font-size: 16px;
  margin: 0 0 6px;
}

.term-index-desc {
  font-size: 13px;
  color: var(--c-muted);
  margin: 0 0 14px;
  line-height: 1.65;
}

.term-index-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.term-index-list li a {
  display: inline-block;
  padding: 4px 12px;
  font-size: 13px;
  color: var(--c-body);
  border: 1px solid var(--c-line);
  border-radius: 999px;
  line-height: 1.7;
}

.term-index-list li a:hover {
  color: var(--c-accent);
  border-color: var(--c-accent);
  text-decoration: none;
}

html[data-theme="dark"] .term-index-list li a {
  color: var(--c-dark-text);
  border-color: var(--c-dark-line);
}

.definition-groups {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.definition-group {
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 20px 24px;
}

html[data-theme="dark"] .definition-group {
  background: var(--c-dark-panel);
  border-color: var(--c-dark-line);
}

.definition-group-title {
  font-size: 17px;
  margin: 0 0 6px;
}

.definition-group-desc {
  font-size: 13px;
  color: var(--c-muted);
  margin: 0 0 14px;
  line-height: 1.65;
}

.definition-list {
  margin: 0;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 0;
  border-top: 1px solid var(--c-line);
}

html[data-theme="dark"] .definition-list {
  border-top-color: var(--c-dark-line);
}

.definition-list dt {
  padding: 12px 12px 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-ink);
  border-bottom: 1px solid var(--c-line);
}

.definition-list dd {
  margin: 0;
  padding: 12px 0;
  font-size: 14px;
  color: var(--c-body);
  line-height: 1.7;
  border-bottom: 1px solid var(--c-line);
}

html[data-theme="dark"] .definition-list dt {
  color: #f3f4f6;
  border-bottom-color: var(--c-dark-line);
}

html[data-theme="dark"] .definition-list dd {
  color: var(--c-dark-text);
  border-bottom-color: var(--c-dark-line);
}

.definition-list dt:last-of-type,
.definition-list dd:last-of-type {
  border-bottom: 0;
}

.version-list {
  margin: 0;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 0;
  border-top: 1px solid var(--c-line);
}

html[data-theme="dark"] .version-list {
  border-top-color: var(--c-dark-line);
}

.version-list dt {
  padding: 12px 12px 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-ink);
  border-bottom: 1px solid var(--c-line);
}

.version-list dd {
  margin: 0;
  padding: 12px 0;
  font-size: 14px;
  color: var(--c-body);
  line-height: 1.7;
  border-bottom: 1px solid var(--c-line);
}

html[data-theme="dark"] .version-list dt {
  color: #f3f4f6;
  border-bottom-color: var(--c-dark-line);
}

html[data-theme="dark"] .version-list dd {
  color: var(--c-dark-text);
  border-bottom-color: var(--c-dark-line);
}

.version-note-footer {
  margin: 16px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   pages — 帮助与反馈
   -------------------------------------------------------------------------- */
.issue-nav {
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: 20px;
}

html[data-theme="dark"] .issue-nav {
  background: var(--c-dark-panel);
  border-color: var(--c-dark-line);
}

.issue-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.issue-nav-link {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--c-body);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  line-height: 1.5;
}

.issue-nav-link:hover {
  background: var(--c-accent-soft);
  color: var(--c-accent);
  text-decoration: none;
}

.issue-nav-link.is-active {
  color: var(--c-accent);
  font-weight: 700;
  background: var(--c-accent-soft);
  border-color: rgba(15, 118, 110, .25);
}

html[data-theme="dark"] .issue-nav-link {
  color: var(--c-dark-text);
}

html[data-theme="dark"] .issue-nav-link.is-active {
  color: #5eead4;
  background: rgba(94, 234, 212, .1);
}

.issue-nav-note {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--c-line);
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.65;
}

html[data-theme="dark"] .issue-nav-note {
  border-top-color: var(--c-dark-line);
}

.support-content > section {
  padding: 28px 0;
  border-bottom: 1px solid var(--c-line);
}

.support-content > section:last-of-type {
  border-bottom: 0;
}

html[data-theme="dark"] .support-content > section {
  border-bottom-color: var(--c-dark-line);
}

.support-content h2 {
  font-size: 22px;
  margin: 0 0 8px;
}

.issue-path {
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 16px;
  scroll-margin-top: 20px;
}

.issue-path:last-child {
  margin-bottom: 0;
}

html[data-theme="dark"] .issue-path {
  background: var(--c-dark-panel);
  border-color: var(--c-dark-line);
}

.issue-path h3 {
  font-size: 16px;
  margin: 0 0 6px;
}

.issue-path > p {
  font-size: 14px;
  color: var(--c-body);
  line-height: 1.7;
  margin: 0 0 12px;
}

html[data-theme="dark"] .issue-path > p {
  color: var(--c-dark-text);
}

.issue-path-detail {
  margin: 0;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 0;
  border-top: 1px solid var(--c-line);
}

html[data-theme="dark"] .issue-path-detail {
  border-top-color: var(--c-dark-line);
}

.issue-path-detail dt {
  padding: 8px 10px 8px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-muted);
  border-bottom: 1px dashed var(--c-line);
}

.issue-path-detail dd {
  margin: 0;
  padding: 8px 0;
  font-size: 13px;
  color: var(--c-body);
  line-height: 1.65;
  border-bottom: 1px dashed var(--c-line);
}

html[data-theme="dark"] .issue-path-detail dt {
  border-bottom-color: var(--c-dark-line);
}

html[data-theme="dark"] .issue-path-detail dd {
  color: var(--c-dark-text);
  border-bottom-color: var(--c-dark-line);
}

.issue-path-detail dt:last-of-type,
.issue-path-detail dd:last-of-type {
  border-bottom: 0;
}

.prepare-items {
  counter-reset: prep;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prepare-item {
  position: relative;
  padding: 14px 18px 14px 52px;
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  counter-increment: prep;
}

html[data-theme="dark"] .prepare-item {
  background: var(--c-dark-panel);
  border-color: var(--c-dark-line);
}

.prepare-item::before {
  content: counter(prep);
  position: absolute;
  left: 18px;
  top: 14px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--c-accent);
}

.prepare-item h3 {
  font-size: 15px;
  margin: 0 0 4px;
}

.prepare-item p {
  font-size: 14px;
  color: var(--c-body);
  line-height: 1.7;
  margin: 0 0 4px;
}

.prepare-item p:last-child {
  margin-bottom: 0;
}

html[data-theme="dark"] .prepare-item p {
  color: var(--c-dark-text);
}

.process-steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 24px;
}

.process-steps::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--c-line);
}

html[data-theme="dark"] .process-steps::before {
  background: var(--c-dark-line);
}

.process-step {
  position: relative;
  padding: 0 0 22px 0;
}

.process-step:last-child {
  padding-bottom: 0;
}

.process-step::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 5px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--c-panel);
  border: 2px solid var(--c-accent);
  box-sizing: content-box;
}

html[data-theme="dark"] .process-step::before {
  background: var(--c-dark-panel);
}

.process-stage {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--c-accent);
  margin-bottom: 4px;
}

.process-step h3 {
  font-size: 15px;
  margin: 0 0 4px;
}

.process-step p {
  font-size: 14px;
  color: var(--c-body);
  line-height: 1.7;
  margin: 0 0 4px;
}

html[data-theme="dark"] .process-step p {
  color: var(--c-dark-text);
}

.process-check {
  font-size: 13px;
  color: var(--c-muted);
}

/* --------------------------------------------------------------------------
   pages — 更新记录
   -------------------------------------------------------------------------- */
.updates-shell > section {
  padding: 28px 0;
  border-bottom: 1px solid var(--c-line);
}

.updates-shell > section:last-of-type {
  border-bottom: 0;
}

html[data-theme="dark"] .updates-shell > section {
  border-bottom-color: var(--c-dark-line);
}

.updates-shell .section-head h2 {
  font-size: 22px;
  margin: 0 0 8px;
}

.updates-shell .section-head p {
  font-size: 14px;
  color: var(--c-body);
  line-height: 1.75;
  margin: 0;
}

html[data-theme="dark"] .updates-shell .section-head p {
  color: var(--c-dark-text);
}

.record-data {
  min-width: 680px;
}

.record-table {
  overflow-x: auto;
}

.record-data td {
  font-variant-numeric: tabular-nums;
}

.legend-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legend-item {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--c-line);
}

.legend-item:last-child {
  border-bottom: 0;
}

html[data-theme="dark"] .legend-item {
  border-bottom-color: var(--c-dark-line);
}

.legend-item dt {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-ink);
}

.legend-item dd {
  margin: 0;
  font-size: 14px;
  color: var(--c-body);
  line-height: 1.7;
}

html[data-theme="dark"] .legend-item dt {
  color: #f3f4f6;
}

html[data-theme="dark"] .legend-item dd {
  color: var(--c-dark-text);
}

.cadence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.cadence-item {
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

html[data-theme="dark"] .cadence-item {
  background: var(--c-dark-panel);
  border-color: var(--c-dark-line);
}

.cadence-item h3 {
  font-size: 15px;
  margin: 0 0 6px;
}

.cadence-item p {
  font-size: 14px;
  color: var(--c-body);
  line-height: 1.7;
  margin: 0;
}

html[data-theme="dark"] .cadence-item p {
  color: var(--c-dark-text);
}

.cadence-tail {
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   pages — 404
   -------------------------------------------------------------------------- */
.error-main {
  padding-bottom: 40px;
}

.error-title {
  text-align: left;
}

.error-title .page-desc {
  margin: 10px 0 0;
  font-size: 15px;
  color: var(--c-muted);
  line-height: 1.7;
}

.error-body {
  padding: 48px 0;
}

.error-inner {
  max-width: 720px;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 64px;
  font-weight: 700;
  color: var(--c-accent);
  line-height: 1;
  margin: 0 0 12px;
  font-variant-numeric: tabular-nums;
}

.error-text {
  font-size: 16px;
  color: var(--c-body);
  line-height: 1.75;
  margin: 0 0 24px;
}

html[data-theme="dark"] .error-text {
  color: var(--c-dark-text);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding-top: 20px;
  border-top: 1px solid var(--c-line);
}

.error-links li a {
  font-size: 14px;
}

html[data-theme="dark"] .error-links {
  border-top-color: var(--c-dark-line);
}

/* --------------------------------------------------------------------------
   responsive — 960px
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  h1 { font-size: 32px; }
  h2 { font-size: 22px; }

  .page-title {
    font-size: 30px;
    padding: 26px 0 22px;
  }

  .header-nav-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .primary-nav.site-nav {
    flex: 1 1 100%;
    order: 3;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 0 6px;
    border-top: 1px solid var(--c-line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-item a {
    display: block;
    padding: 12px 12px;
    font-size: 15px;
  }

  .nav-quick {
    margin-left: auto;
  }

  .hero-focus-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .lead-story-title {
    font-size: 24px;
  }

  .path-timeline::before {
    left: 6px;
  }

  .path-step,
  .path-step:nth-child(even) {
    width: 100%;
    align-self: stretch;
    padding: 0 0 24px 28px;
  }

  .path-step::before,
  .path-step:nth-child(even)::before {
    left: 2px;
    right: auto;
    top: 8px;
  }

  .path-step:last-child {
    padding-bottom: 0;
  }

  .viewing-compare-inner,
  .library-strip-inner,
  .compare-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .support-path-grid,
  .dimension-grid,
  .cadence-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .channel-layout,
  .topic-layout,
  .support-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .issue-nav {
    position: static;
  }

  .issue-nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .issue-nav-link {
    border: 1px solid var(--c-line);
    font-size: 13px;
    padding: 8px 12px;
  }

  html[data-theme="dark"] .issue-nav-link {
    border-color: var(--c-dark-line);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-about {
    grid-column: 1 / -1;
  }
}

/* --------------------------------------------------------------------------
   responsive — 640px
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  body.site-body {
    font-size: 15px;
  }

  .shell {
    padding: 0 16px;
  }

  h1 { font-size: 26px; }
  h2 { font-size: 21px; }
  h3 { font-size: 16px; }

  .page-title {
    font-size: 26px;
    padding: 22px 0 18px;
  }

  .page-title-desc {
    font-size: 14px;
  }

  .header-top-inner {
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .brand {
    gap: 8px;
  }

  .brand-link {
    font-size: 19px;
  }

  .brand-tagline {
    font-size: 12px;
    flex: 1 0 100%;
  }

  .theme-toggle {
    min-height: 40px;
    padding: 6px 12px;
  }

  .nav-quick {
    display: none;
  }

  .home-main section {
    padding: 32px 0;
  }

  .hero-focus {
    padding-top: 24px;
  }

  .lead-story-body {
    padding: 18px 18px 20px;
  }

  .lead-story-title {
    font-size: 21px;
  }

  .lead-story-text {
    font-size: 14px;
  }

  .lead-story-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .lead-story-actions .btn {
    width: 100%;
  }

  .news-flash {
    padding: 16px 18px;
  }

  .channel-filter-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .channel-filter-list {
    gap: 6px;
  }

  .channel-index,
  .viewing-path,
  .topic-feature,
  .viewing-compare,
  .library-strip,
  .support-path {
    padding: 32px 0;
  }

  .section-title {
    font-size: 21px;
  }

  .topic-item,
  .topic-feature .topic-item {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 0;
  }

  .topic-index {
    font-size: 18px;
  }

  .topic-item-title,
  .topic-name {
    font-size: 16px;
  }

  .support-path-grid,
  .dimension-grid,
  .cadence-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .device-check,
  .network-check,
  .compare-col,
  .support-path-block,
  .dimension-item,
  .cadence-item,
  .definition-group,
  .issue-path {
    padding: 16px 18px;
  }

  /* 表格移动端横向滚动，避免整页溢出 */
  .table-wrap,
  .channel-table,
  .topic-channel,
  .record-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }

  .compare-table,
  .data-table,
  .field-table,
  .channel-table table,
  .record-data {
    min-width: 560px;
  }

  .compare-table thead th,
  .data-table thead th,
  .field-table thead th,
  .compare-table tbody th,
  .compare-table tbody td,
  .data-table tbody th,
  .data-table tbody td,
  .field-table tbody th,
  .field-table tbody td {
    padding: 10px 12px;
    font-size: 13px;
    white-space: normal;
  }

  .compare-table tbody th,
  .field-table tbody th,
  .channel-table tbody th {
    white-space: nowrap;
  }

  .table-caption {
    padding: 10px 12px;
    white-space: normal;
  }

  .definition-list,
  .version-list,
  .legend-item,
  .issue-path-detail {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .definition-list dt,
  .version-list dt {
    padding: 10px 0 2px;
    border-bottom: 0;
  }

  .definition-list dd,
  .version-list dd {
    padding: 0 0 10px;
  }

  .legend-item dt {
    padding-bottom: 2px;
  }

  .issue-path-detail dt {
    padding: 8px 0 2px;
    border-bottom: 0;
  }

  .issue-path-detail dd {
    padding: 0 0 8px;
  }

  .checklist-item {
    padding: 16px 0 16px 44px;
  }

  .checklist-item::before {
    width: 28px;
    height: 28px;
    font-size: 13px;
    top: 16px;
  }

  .rule-list > li,
  .order-step,
  .prepare-item {
    padding: 14px 16px 14px 46px;
  }

  .rule-list > li::before,
  .order-step::before,
  .prepare-item::before {
    left: 16px;
    top: 14px;
  }

  .process-steps {
    padding-left: 20px;
  }

  .process-step::before {
    left: -20px;
  }

  .error-code {
    font-size: 48px;
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 28px;
    padding-bottom: 24px;
  }

  .footer-about {
    grid-column: auto;
  }

  .footer-nav-list {
    gap: 4px 16px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .related-links {
    gap: 8px;
  }

  .related-links-item,
  .related-links-list li a {
    font-size: 13px;
    padding: 5px 10px;
  }

  .term-index-list li a {
    font-size: 12px;
    padding: 3px 10px;
  }

  .content-media-primary {
    margin-top: 20px;
  }

  .guide-shell,
  .library-shell,
  .updates-shell,
  .page-layout {
    padding-top: 24px;
  }

  .channel-main > section,
  .topic-main > section,
  .guide-shell > section,
  .library-shell > section,
  .library-shell > nav,
  .support-content > section,
  .updates-shell > section {
    padding: 22px 0;
  }

  .site-footer {
    margin-top: 40px;
  }
}

/* 尊重减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* 程序验收反馈：移动端防溢出 */
@media (max-width: 768px) {
  .site-main,
  .site-main * {
    min-width: 0;
    max-width: 100%;
  }

  .site-main :is(h1, h2, h3, h4, p, a, span) {
    overflow-wrap: anywhere;
  }
}
