/* ==========================================================================
   麻豆影视 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */
:root {
  --bg-page: #F6F9F8;
  --bg-paper: #FFFFFF;
  --text-main: #122B2F;
  --text-sub: #52686B;
  --brand: #0F766E;
  --link: #0B6E99;
  --state-ok: #15803D;
  --state-warn: #B45309;
  --line: #D6E2E0;
  --bg-param: #EAF3F1;
  --radius: 6px;
  --shell: 1120px;
  --tree-col: 240px;
  --gap-col: 32px;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color .18s ease;
}

a:hover {
  color: var(--brand);
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

button {
  font-family: inherit;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   layout · 全站骨架
   -------------------------------------------------------------------------- */
.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background: var(--bg-paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  letter-spacing: 0;
}

.brand:hover {
  color: var(--brand);
  text-decoration: none;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  font-size: 15px;
  color: var(--text-sub);
  border-radius: var(--radius);
}

.nav-link:hover {
  color: var(--brand);
  background: var(--bg-param);
  text-decoration: none;
}

.nav-link.is-current {
  color: var(--brand);
  font-weight: 600;
  background: var(--bg-param);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-paper);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-main);
  border-radius: 1px;
}

/* 页面主布局：侧栏在前 */
.page-layout {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 28px 24px 56px;
  display: grid;
  grid-template-columns: var(--tree-col) minmax(0, 1fr);
  gap: var(--gap-col);
  align-items: start;
  flex: 1 0 auto;
}

.site-main {
  min-width: 0;
}

.inner-main {
  min-width: 0;
}

/* --------------------------------------------------------------------------
   layout · 侧栏树状目录
   -------------------------------------------------------------------------- */
.site-tree {
  position: sticky;
  top: 88px;
  align-self: start;
  max-height: calc(100vh - 104px);
  overflow-y: auto;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 14px;
  font-size: 14px;
}

.tree-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tree-group {
  border-bottom: 1px dashed var(--line);
  padding-bottom: 12px;
}

.site-tree .tree-group:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.tree-group-title,
.tree-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text-sub);
  text-transform: uppercase;
  margin: 0 0 8px;
}

.tree-group-title .tree-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
}

.tree-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tree-link {
  display: block;
  padding: 6px 10px;
  color: var(--text-main);
  border-left: 3px solid transparent;
  border-radius: 0 var(--radius) var(--radius) 0;
  line-height: 1.5;
}

.tree-link:hover {
  background: var(--bg-param);
  color: var(--brand);
  text-decoration: none;
}

.tree-link.is-current {
  color: var(--brand);
  font-weight: 600;
  border-left-color: var(--brand);
  background: var(--bg-param);
}

/* 浏览记录面板 */
.history-panel,
.browse-log,
.tree-history,
.browse-history {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.history-title,
.browse-log-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text-sub);
  margin: 0 0 8px;
}

.history-list,
.browse-history-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  margin-bottom: 10px;
}

.history-list li,
.browse-history-list li {
  line-height: 1.5;
}

.history-list a,
.browse-history-list a {
  display: block;
  padding: 4px 0;
  color: var(--text-main);
  word-break: break-all;
}

.history-list a:hover,
.browse-history-list a:hover {
  color: var(--brand);
  text-decoration: none;
}

.history-empty,
.browse-log-empty,
.browse-history-empty {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.6;
  margin-bottom: 10px;
}

.history-empty a {
  color: var(--link);
}

.history-clear,
.browse-log-clear,
.browse-history-clear {
  width: 100%;
  min-height: 36px;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--text-sub);
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.history-clear:hover,
.browse-log-clear:hover,
.browse-history-clear:hover {
  color: var(--brand);
  border-color: var(--brand);
}

/* --------------------------------------------------------------------------
   layout · 页脚
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-paper);
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 32px 24px 24px;
}

.footer-note {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text-sub);
  margin: 0 0 10px;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.footer-list a {
  color: var(--text-main);
}

.footer-list a:hover {
  color: var(--brand);
}

.footer-bottom {
  font-size: 13px;
  color: var(--text-sub);
  padding-top: 16px;
  border-top: 1px solid var(--line);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   components · 通用内容块
   -------------------------------------------------------------------------- */
.section-head {
  margin-bottom: 16px;
}

.section-head h2,
.section-title {
  font-size: 22px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.section-desc,
.section-intro,
.section-lead,
.section-note {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
}

.section-lead,
.section-intro,
.section-note {
  margin-bottom: 14px;
}

.site-main > section + section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.link-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
}

.link-inline::after {
  content: "›";
  font-size: 15px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--text-sub);
}

.breadcrumb a:hover {
  color: var(--brand);
}

.breadcrumb-sep {
  font-family: var(--font-mono);
  color: var(--line);
}

.breadcrumb-current {
  color: var(--text-main);
}

/* 页面标题区 */
.page-header {
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 20px;
}

.page-title {
  font-size: 34px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.page-head {
  margin-bottom: 28px;
}

.page-lead {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-main);
  margin-bottom: 12px;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--text-sub);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-item::before {
  content: "#";
  color: var(--line);
}

/* 页面配图 */
.page-figure,
.journey-figure,
.faq-figure,
.check-figure figure {
  margin: 0 0 24px;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-figure img,
.journey-figure img,
.faq-figure img,
.check-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.page-figure figcaption,
.journey-figure figcaption,
.faq-figure figcaption,
.check-figure figcaption {
  font-size: 13px;
  color: var(--text-sub);
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  line-height: 1.6;
}

.check-figure {
  margin-bottom: 24px;
}

/* 表格 */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-paper);
}

.data-table,
.check-table,
.param-table,
.issue-table-body {
  width: 100%;
  font-size: 14px;
  line-height: 1.65;
  background: var(--bg-paper);
}

.table-scroll .data-table {
  border: 0;
}

.data-table th,
.data-table td,
.check-table th,
.check-table td,
.param-table th,
.param-table td,
.issue-table-body th,
.issue-table-body td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.data-table thead th,
.check-table thead th,
.param-table thead th,
.issue-table-body thead th {
  background: var(--bg-param);
  color: var(--text-main);
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}

.data-table tbody tr:last-child td,
.data-table tbody tr:last-child th,
.check-table tbody tr:last-child td,
.param-table tbody tr:last-child td,
.issue-table-body tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody th {
  font-weight: 600;
  color: var(--text-main);
  background: var(--bg-param);
  white-space: nowrap;
}

.data-table tbody tr:hover,
.check-table tbody tr:hover,
.param-table tbody tr:hover,
.issue-table-body tbody tr:hover {
  background: #F2F8F6;
}

.table-caption {
  caption-side: top;
  text-align: left;
  font-size: 13px;
  color: var(--text-sub);
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-paper);
}

.check-table,
.param-table,
.issue-table-body {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.cell-mono,
.mono,
.param-table td:nth-child(1),
.issue-table-body td.mono {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-sub);
}

/* 标签 */
.channel-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.channel-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 10px;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--brand);
  background: var(--bg-param);
  border: 1px solid var(--line);
  border-radius: 999px;
}

/* 状态徽标 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  border-radius: 999px;
  border: 1px solid transparent;
}

.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.badge-verified {
  color: var(--state-ok);
  background: #E7F5EC;
  border-color: #BFE3CC;
}

.badge-pending {
  color: var(--state-warn);
  background: #FBF1E3;
  border-color: #EBD3B0;
}

.badge-expired {
  color: var(--text-sub);
  background: #EEF2F1;
  border-color: var(--line);
}

/* FAQ 折叠 */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-paper);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  min-height: 44px;
  background: none;
  border: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  text-align: left;
  line-height: 1.6;
}

.faq-question::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 3px;
}

.faq-item.is-open .faq-question::after,
.faq-item[open] .faq-question::after {
  content: "–";
}

.faq-question:hover {
  color: var(--brand);
}

.faq-answer {
  padding: 0 16px 14px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-sub);
}

.faq-answer p + p {
  margin-top: 8px;
}

.faq-answer a {
  color: var(--link);
}

details.faq-item summary {
  list-style: none;
  cursor: pointer;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item[open] .faq-question {
  border-bottom: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */
.home-main {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.home-main > section + section {
  margin-top: 0;
  padding-top: 28px;
}

.hero-task {
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: 28px;
  align-items: start;
}

.hero-copy {
  min-width: 0;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--brand);
  margin-bottom: 10px;
}

.hero-copy h1 {
  font-size: 32px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
}

.hero-lead {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-sub);
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.btn-primary {
  background: var(--brand);
  color: #FFFFFF;
  border-color: var(--brand);
}

.btn-primary:hover {
  background: #0B5C56;
  color: #FFFFFF;
  text-decoration: none;
}

.btn-secondary {
  background: var(--bg-paper);
  color: var(--brand);
  border-color: var(--brand);
}

.btn-secondary:hover {
  background: var(--bg-param);
  color: var(--brand);
  text-decoration: none;
}

.hero-media {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-param);
}

.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.task-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
}

.task-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--bg-page);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text-main);
  min-height: 44px;
}

.task-card:hover {
  border-color: var(--brand);
  background: var(--bg-param);
  text-decoration: none;
}

.task-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--brand);
}

.task-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.task-desc {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.6;
}

/* 频道速览 */
.video-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.video-card {
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.video-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--text-main);
}

.video-card-link:hover {
  text-decoration: none;
}

.video-card-link:hover .video-title,
.video-card-link:hover .video-card-title {
  color: var(--brand);
}

.video-thumb,
.video-card-media {
  margin: 0;
  background: var(--bg-param);
  overflow: hidden;
}

.video-thumb img,
.video-card-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.video-info,
.video-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 16px;
  min-width: 0;
}

.channel-preview .video-card-channel,
.video-card-channel {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--brand);
}

.video-title,
.video-card-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-main);
}

.video-desc,
.video-card-desc {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.65;
}

.video-meta,
.video-card-duration {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-sub);
  margin-top: auto;
  padding-top: 4px;
}

/* 专题焦点 */
.topic-focus {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.topic-poster {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-param);
}

.topic-poster img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.topic-summary {
  min-width: 0;
}

.topic-summary h2 {
  font-size: 22px;
  line-height: 1.35;
  font-weight: 700;
  margin-bottom: 10px;
}

.topic-summary > p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-sub);
  margin-bottom: 14px;
}

.topic-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.topic-points li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-main);
}

.topic-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--brand);
}

.topic-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

/* FAQ 导览 */
.faq-brief-layout {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.faq-topic-index {
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.faq-index-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text-sub);
  margin-bottom: 8px;
}

.faq-index-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq-index-link {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-main);
  border-bottom: 1px dashed var(--line);
}

.faq-index-list li:last-child .faq-index-link {
  border-bottom: 0;
}

.faq-index-link:hover {
  color: var(--brand);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   pages · 初次了解
   -------------------------------------------------------------------------- */
.journey-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.journey-step {
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.journey-step h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.journey-step > p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
}

.journey-link {
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
}

.fit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.fit-col {
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.fit-col h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.fit-yes h3 {
  color: var(--state-ok);
}

.fit-no h3 {
  color: var(--state-warn);
}

.fit-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fit-list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-main);
}

.fit-list li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.85;
}

.fit-yes .fit-list li::before {
  content: "✓";
  color: var(--state-ok);
}

.fit-no .fit-list li::before {
  content: "×";
  color: var(--state-warn);
}

.next-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.next-item {
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.next-item h3 {
  font-size: 16px;
  font-weight: 700;
}

.next-item > p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
}

.next-link {
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   pages · 频道目录
   -------------------------------------------------------------------------- */
.category-notes .data-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.video-cards .video-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.video-cards .video-card-link {
  flex-direction: row;
  align-items: stretch;
}

.video-cards .video-card-media {
  flex: 0 0 168px;
  border-right: 1px solid var(--line);
}

.video-cards .video-card-media img {
  height: 100%;
  aspect-ratio: auto;
  min-height: 112px;
}

.video-cards .video-card-body {
  flex: 1 1 auto;
}

.method-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.method-item {
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  padding: 14px 18px;
}

.method-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.method-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
  margin-bottom: 8px;
}

.method-link {
  font-size: 14px;
  font-weight: 600;
}

.topic-row-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.topic-row {
  list-style: none;
}

.topic-row-link {
  display: grid;
  grid-template-columns: minmax(0, 160px) minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text-main);
}

.topic-row-link:hover {
  border-color: var(--brand);
  background: var(--bg-param);
  text-decoration: none;
}

.topic-row-name {
  font-size: 15px;
  font-weight: 600;
}

.topic-row-scope {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.6;
}

.topic-row-enter {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
}

.topic-row-enter::after {
  content: " ›";
}

/* --------------------------------------------------------------------------
   pages · 专题片单
   -------------------------------------------------------------------------- */
.topic-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.topic-rows .topic-row-link {
  grid-template-columns: minmax(0, 150px) minmax(0, 1fr) minmax(0, 150px) minmax(0, 120px);
}

.topic-row-order,
.topic-row-channel {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.6;
}

.topic-row-channel {
  color: var(--brand);
  font-weight: 600;
  text-align: right;
}

.topic-row-channel::after {
  content: " ›";
}

.order-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.order-col {
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-col h3 {
  font-size: 16px;
  font-weight: 700;
}

.order-col > p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
}

.order-link {
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
}

.channel-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.channel-row-link {
  display: grid;
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px 18px;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text-main);
}

.channel-row-link:hover {
  border-color: var(--brand);
  background: var(--bg-param);
  text-decoration: none;
}

.channel-row-name {
  font-size: 15px;
  font-weight: 600;
}

.channel-row-use {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   pages · 观看指南
   -------------------------------------------------------------------------- */
.prepare .check-table {
  display: block;
  overflow-x: auto;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  counter-reset: step;
}

.step-item {
  position: relative;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  counter-increment: step;
}

.step-item::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--brand);
}

.step-item h3 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.step-item > p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-sub);
}

.step-see {
  color: var(--text-main) !important;
}

.step-fallback {
  margin-top: auto;
  font-size: 13px;
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.related-list li {
  padding: 10px 16px;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
}

.related-list a {
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   pages · 入口核验
   -------------------------------------------------------------------------- */
.checklist .data-table,
.status-badges .data-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.status-card {
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.status-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
}

.status-card-ok {
  border-top: 3px solid var(--state-ok);
}

.status-card-warn {
  border-top: 3px solid var(--state-warn);
}

.status-card-expired {
  border-top: 3px solid var(--text-sub);
}

.status-card > p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
}

.status-action {
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.related-block {
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.related-block h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.related-block > p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
}

/* --------------------------------------------------------------------------
   pages · 更新记录
   -------------------------------------------------------------------------- */
.note-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.note-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-main);
}

.note-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--brand);
}

.note-list strong {
  color: var(--text-main);
}

.revision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.revision-item {
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.revision-item h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--brand);
}

.revision-item > p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-sub);
}

.submit-note {
  background: var(--bg-param);
  border: 1px solid var(--line);
  border-left: 4px solid var(--state-warn);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.submit-note h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.submit-note > p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-main);
}

.submit-note > p a {
  font-weight: 600;
}

.submit-hint {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-sub);
}

/* --------------------------------------------------------------------------
   pages · 常见问题
   -------------------------------------------------------------------------- */
.faq-hero {
  margin-bottom: 24px;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.faq-layout .faq-topic-index {
  position: sticky;
  top: 88px;
}

.faq-layout .faq-topic-index .section-title {
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--text-sub);
  margin-bottom: 10px;
}

.topic-index-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.topic-index-link {
  display: block;
  padding: 7px 0;
  font-size: 14px;
  color: var(--text-main);
  border-bottom: 1px dashed var(--line);
}

.topic-index-list li:last-child .topic-index-link {
  border-bottom: 0;
}

.topic-index-link:hover {
  color: var(--brand);
  text-decoration: none;
}

.faq-group + .faq-group {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.faq-group .section-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  padding-left: 10px;
  border-left: 3px solid var(--brand);
}

.related-pages .related-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.related-card {
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.related-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.related-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-sub);
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */
.error-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 64px;
}

.error-panel {
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--brand);
  margin-bottom: 8px;
}

.error-panel h1 {
  font-size: 30px;
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 12px;
}

.error-lead {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-sub);
  margin-bottom: 18px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.error-home {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  background: var(--brand);
  color: #FFFFFF;
  border-radius: var(--radius);
  font-weight: 600;
}

.error-home:hover {
  background: #0B5C56;
  color: #FFFFFF;
  text-decoration: none;
}

.error-paths {
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.error-paths h2 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
}

.error-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.error-list a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px dashed var(--line);
}

.error-list li:last-child a {
  border-bottom: 0;
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

/* 1024px 以下：重复项较多的模块改为两列，避免末项孤行 */
@media (max-width: 1024px) {
  .step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 960px 以下：侧栏折叠到正文之后，主内容占满；多列收敛 */
@media (max-width: 960px) {
  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 20px;
  }

  .site-tree {
    position: static;
    max-height: none;
    overflow: visible;
    order: 2;
  }

  .site-main {
    order: 1;
  }

  .hero-task {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy h1 {
    font-size: 28px;
  }

  .topic-focus {
    grid-template-columns: minmax(0, 1fr);
  }

  .video-card-grid,
  .video-cards .video-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journey-grid,
  .next-grid,
  .order-columns,
  .status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faq-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq-layout .faq-topic-index {
    position: static;
  }

  .faq-brief-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .topic-rows .topic-row-link {
    grid-template-columns: minmax(0, 140px) minmax(0, 1fr);
  }

  .topic-row-order,
  .topic-row-channel {
    text-align: left;
  }

  .footer-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* 720px 以下：单列，移动导航 */
@media (max-width: 720px) {
  .header-inner {
    height: auto;
    min-height: 56px;
    padding: 8px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .brand {
    font-size: 18px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex-basis: 100%;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 4px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    min-height: 44px;
    padding: 0 12px;
    border-radius: var(--radius);
  }

  .page-layout {
    padding: 16px 16px 40px;
    gap: 20px;
  }

  .page-header {
    padding: 16px 16px 16px 18px;
  }

  .page-title {
    font-size: 26px;
  }

  .hero-task {
    padding: 20px 18px;
    gap: 20px;
  }

  .hero-copy h1 {
    font-size: 24px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .task-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .video-card-grid,
  .video-cards .video-card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .video-cards .video-card-link {
    flex-direction: column;
  }

  .video-cards .video-card-media {
    flex: none;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .video-cards .video-card-media img {
    min-height: 0;
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .journey-grid,
  .next-grid,
  .order-columns,
  .status-grid,
  .fit-grid,
  .related-grid,
  .related-pages .related-grid,
  .revision-grid,
  .step-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .topic-focus {
    padding: 18px;
  }

  .topic-row-link,
  .topic-rows .topic-row-link,
  .channel-row-link {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    align-items: start;
  }

  .topic-row-channel {
    text-align: left;
  }

  .data-table,
  .check-table,
  .param-table,
  .issue-table-body {
    font-size: 13px;
  }

  .data-table th,
  .data-table td,
  .check-table th,
  .check-table td,
  .param-table th,
  .param-table td,
  .issue-table-body th,
  .issue-table-body td {
    padding: 8px 10px;
  }

  .prepare .check-table,
  .table-scroll {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .prepare .check-table {
    border: 0;
  }

  .prepare .check-table thead,
  .prepare .check-table tbody,
  .prepare .check-table tr {
    display: table;
    width: 100%;
    min-width: 560px;
  }

  .param-table,
  .issue-table-body {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .param-table thead,
  .param-table tbody,
  .param-table tr,
  .issue-table-body thead,
  .issue-table-body tbody,
  .issue-table-body tr {
    display: table;
    width: 100%;
    min-width: 560px;
  }

  .footer-inner {
    padding: 24px 16px 20px;
  }

  .footer-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .faq-question {
    font-size: 14px;
    padding: 12px 14px;
  }

  .faq-answer {
    padding: 0 14px 12px;
  }

  .submit-note {
    padding: 16px 18px;
  }

  .error-main {
    padding: 32px 16px 48px;
  }

  .error-panel {
    padding: 20px 18px;
  }

  .error-panel h1 {
    font-size: 24px;
  }
}

/* 480px 以下：进一步压缩留白 */
@media (max-width: 480px) {
  .page-title {
    font-size: 22px;
  }

  .hero-copy h1 {
    font-size: 22px;
  }

  .section-head h2,
  .section-title,
  .topic-summary h2 {
    font-size: 19px;
  }

  .page-lead {
    font-size: 15px;
  }

  .page-meta {
    font-size: 11px;
    gap: 6px 12px;
  }
}

/* 程序验收反馈：修复网格孤项 */
@media (min-width: 769px) {
  .task-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
