/* ==========================================================================
   天美影视免费 · 全站样式
   结构：base / layout / components / pages / responsive
   ========================================================================== */

/* ==========================================================================
   base
   ========================================================================== */

:root {
  --paper: #f6f5f2;
  --ink: #1f2328;
  --ink-soft: #4a5058;
  --link: #1b5e9c;
  --link-dark: #144a7c;
  --toc-bg: #e8f1f8;
  --accent: #b45309;
  --line: #d8d4cc;
  --line-strong: #b9b3a8;
  --white: #ffffff;
  --shell: 1120px;
  --body-col: 760px;
  --toc-col: 220px;
  --aside-col: 260px;
  --gap: 40px;
  --radius: 6px;
  --shadow-soft: 0 1px 2px rgba(31, 35, 40, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Hiragino Sans GB", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.4;
}

h1 {
  font-size: 32px;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 18px;
}

p {
  margin: 0 0 14px;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd,
dt,
figure,
figcaption {
  margin: 0;
}

a {
  color: var(--link);
  text-decoration: none;
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  color: var(--link-dark);
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  color: inherit;
  cursor: pointer;
}

strong {
  color: var(--ink);
  font-weight: 700;
}

table {
  border-collapse: collapse;
  width: 100%;
}

caption {
  caption-side: top;
  text-align: left;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
  padding-bottom: 8px;
}

th,
td {
  text-align: left;
  vertical-align: top;
}

/* 通用容器 */
.site-header .header-inner,
.site-main,
.site-footer .footer-inner,
.footer-bottom {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ==========================================================================
   layout
   ========================================================================== */

/* 跳转链接（内页无障碍入口） */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  display: inline-block;
  max-width: calc(100vw - 32px);
  padding: 8px 16px;
  background-color: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
  color: var(--white);
  text-decoration: none;
}

/* 页头 */
.site-header {
  background-color: var(--white);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 100;
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding-top: 10px;
  padding-bottom: 10px;
  flex-wrap: wrap;
}

.brand {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  line-height: 1.4;
}

.brand:hover,
.brand:focus-visible {
  color: var(--link);
  text-decoration: none;
}

/* 主导航 */
.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  align-items: center;
}

.site-nav a {
  display: inline-block;
  padding: 6px 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--link);
  text-decoration: none;
  border-bottom-color: var(--line-strong);
}

.site-nav a.is-current {
  color: var(--ink);
  font-weight: 700;
  border-bottom-color: var(--link);
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background-color: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--ink);
  border-radius: 1px;
}

/* 主内容 */
.site-main {
  padding-top: 32px;
  padding-bottom: 56px;
}

.inner-main {
  padding-top: 24px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--link);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--ink-soft);
}

/* 页面标题区 */
.page-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  color: var(--ink);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
}

/* 内页标题说明区（与 page-header 相邻的第二段） */
div.page-title {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 32px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  margin-bottom: 28px;
}

.page-lead,
.page-lede,
.page-title-lead {
  flex: 1 1 480px;
  min-width: 220px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.8;
}

.page-title-text,
.page-title-main,
.page-title-copy {
  flex: 1 1 480px;
  min-width: 220px;
}

.back-to-category,
.back-link,
.back-category {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background-color: var(--white);
  font-size: 14px;
  line-height: 1.6;
  color: var(--link);
  white-space: nowrap;
}

.back-to-category:hover,
.back-link:hover,
.back-category:hover,
.back-to-category:focus-visible,
.back-link:focus-visible,
.back-category:focus-visible {
  border-color: var(--link);
  color: var(--link-dark);
  text-decoration: none;
}

/* 内页内容外壳 */
.page-shell {
  width: 100%;
}

/* 布局容器：左目录 + 正文 */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap);
}

/* 默认（aside 在后）：正文 + 侧栏 */
.content-with-aside,
.topic-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}

/* 正文列宽约束 */
.overview-main,
.article-preparation,
.topic-main,
.troubleshooting-body {
  min-width: 0;
  max-width: var(--body-col);
}

/* 侧栏基础 */
.toc,
.related-reading,
.related-entry {
  min-width: 0;
}

/* ==========================================================================
   components
   ========================================================================== */

/* 章节标题与引言 */
.section-lead,
.section-intro {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
  margin: 8px 0 20px;
}

/* 表格通用 */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.table-wrap table {
  min-width: 640px;
}

.info-table,
.check-table-grid,
.data-table {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.7;
}

.info-table th,
.info-table td,
.check-table-grid th,
.check-table-grid td,
.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  word-break: break-word;
}

.info-table thead th,
.check-table-grid thead th,
.data-table thead th {
  background-color: var(--toc-bg);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.6;
}

.info-table tbody th,
.check-table-grid tbody th,
.data-table tbody th {
  width: 22%;
  color: var(--ink);
  font-weight: 700;
  background-color: #fbfaf8;
}

.info-table tbody tr:last-child th,
.info-table tbody tr:last-child td,
.check-table-grid tbody tr:last-child th,
.check-table-grid tbody tr:last-child td,
.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.info-table tbody tr:hover,
.check-table-grid tbody tr:hover,
.data-table tbody tr:hover {
  background-color: #f9f8f5;
}

.table-note,
.field-note {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

/* 图片与图注 */
figure {
  margin: 0;
}

figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--toc-bg);
}

figcaption {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

/* 状态标签 */
.status-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.6;
  white-space: nowrap;
  background-color: #eef0f2;
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

.status-tag.status-done,
.status-tag--done {
  background-color: #e6f2e9;
  color: #22643a;
  border-color: #bcdcc6;
}

.status-tag.status-checking,
.status-tag--pending {
  background-color: #fdf0e2;
  color: var(--accent);
  border-color: #eccfae;
}

/* 目录索引列表 */
.toc {
  background-color: var(--toc-bg);
  border: 1px solid #cfdfeb;
  border-radius: var(--radius);
  padding: 16px 18px;
}

.toc h2,
.toc-title {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 10px;
  color: var(--ink);
}

.toc ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--link);
  border-bottom: 1px dashed transparent;
}

.toc a:hover,
.toc a:focus-visible {
  text-decoration: none;
  border-bottom-color: var(--link);
}

/* 侧栏（延伸阅读 / 相关入口） */
.related-reading,
.related-entry {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.related-reading h2,
.related-entry h2 {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.aside-intro {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.reading-list,
.related-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reading-list li,
.related-list li {
  font-size: 14px;
  line-height: 1.7;
}

.reading-list a,
.related-list a {
  display: block;
  color: var(--link);
  font-weight: 600;
}

.reading-list p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

.related-list span {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

/* 相关入口 / 后续入口列表 */
.entry-links,
.entry-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 20px;
}

.entry-links li,
.entry-list li {
  font-size: 15px;
  line-height: 1.7;
}

.entry-list a {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--white);
  font-weight: 600;
}

.entry-list span {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
}

/* 通用 section 间距 */
.home-main > section,
.inner-main > section,
.page-shell > section,
.overview-main > section,
.article-preparation > section,
.topic-main > section,
.troubleshooting-body > section {
  margin-bottom: 40px;
}

.overview-main > section:last-child,
.article-preparation > section:last-child,
.topic-main > section:last-child,
.troubleshooting-body > section:last-child,
.page-shell > section:last-child {
  margin-bottom: 0;
}

/* 页脚 */
.site-footer {
  background-color: var(--white);
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

.site-footer .footer-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 32px;
  padding-top: 40px;
  padding-bottom: 32px;
}

.footer-col {
  min-width: 0;
}

.footer-title {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.footer-desc {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 10px;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-nav a {
  display: inline-block;
  padding: 4px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--link);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  padding-bottom: 24px;
}

.footer-bottom p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

/* 返回顶部 */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background-color: var(--white);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  border-color: var(--link);
  color: var(--link);
}

/* ==========================================================================
   pages
   ========================================================================== */

/* ---------- 首页 ---------- */

.hero-task-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.hero-tasks {
  min-width: 0;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 12px;
  padding: 2px 10px;
  border: 1px solid #cfdfeb;
  border-radius: var(--radius);
  background-color: var(--toc-bg);
  color: var(--link);
  font-size: 13px;
  line-height: 1.6;
}

.hero-tasks h1 {
  margin-bottom: 14px;
}

.hero-lead {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.8;
  max-width: 42em;
  margin-bottom: 20px;
}

.hero-task-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.hero-task-list a {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--white);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}

.hero-task-list a:hover,
.hero-task-list a:focus-visible {
  border-color: var(--link);
  text-decoration: none;
}

.hero-preview {
  min-width: 0;
}

.hero-preview img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* 现象选择条 */
.phenomenon-picker {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.phenomenon-picker h2,
.decision-summary h2,
.channel-directory h2,
.topic-preview h2,
.preparation-vs-access h2,
.update-notice-list h2 {
  margin-bottom: 4px;
}

.phenomenon-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.phenomenon-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.phenomenon-list a {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.phenomenon-hint {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

/* 决策树摘要 */
.decision-summary {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.decision-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.decision-summary .decision-steps li {
  position: relative;
  padding: 16px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.decision-summary .step-no {
  display: inline-block;
  margin-bottom: 8px;
  padding: 1px 9px;
  border-radius: var(--radius);
  background-color: var(--toc-bg);
  color: var(--link);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.decision-summary .decision-steps h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.decision-summary .decision-steps p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 8px;
}

.decision-summary .decision-steps a {
  font-size: 14px;
  font-weight: 600;
}

/* 频道目录 */
.channel-directory {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.channel-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 32px;
}

.channel-column {
  min-width: 0;
}

.channel-column > h3 {
  font-size: 16px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.channel-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.channel-item {
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}

.channel-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.channel-item dt {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 4px;
}

.channel-item dd {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.channel-item dd.channel-more {
  margin-top: 4px;
}

.channel-item dd.channel-more a {
  font-size: 14px;
  font-weight: 600;
}

/* 专题观察预览 */
.topic-preview {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.topic-row {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.topic-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.topic-figure {
  min-width: 0;
}

.topic-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.topic-copy {
  min-width: 0;
}

.topic-copy h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.topic-copy p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 10px;
}

.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-tags a {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid #cfdfeb;
  border-radius: var(--radius);
  background-color: var(--toc-bg);
  font-size: 13px;
  line-height: 1.6;
}

/* 观看准备与入口核验对照 */
.preparation-vs-access {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.compare-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.preparation-column,
.access-column {
  min-width: 0;
  padding: 18px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.preparation-column h3,
.access-column h3 {
  font-size: 17px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.preparation-column ul,
.access-column ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.preparation-column li,
.access-column li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  padding-left: 14px;
  position: relative;
}

.preparation-column li::before,
.access-column li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--line-strong);
}

.preparation-column li strong,
.access-column li strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
}

.column-link {
  display: inline-block;
  min-height: 44px;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 600;
}

/* 更订公告列表 */
.update-notice-list {
  padding: 28px 0 0;
}

.notice-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--white);
  overflow: hidden;
}

.notice-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.6;
}

.notice-list li:last-child {
  border-bottom: 0;
}

.notice-batch {
  font-weight: 700;
  color: var(--ink);
  font-size: 14px;
  white-space: nowrap;
}

.notice-scope {
  flex: 1 1 240px;
  min-width: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.notice-list a {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* 首页底部相关内容条 */
.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.6;
}

.related-links-label {
  color: var(--ink-soft);
  font-weight: 700;
}

.related-links-item {
  font-weight: 600;
}

/* ---------- 站点概览 ---------- */

.overview-position h2,
.scope-table h2,
.usage-path h2,
.terminology h2,
.related-entry h2 {
  margin-bottom: 10px;
}

.overview-position p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.8;
}

.not-handled-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding: 14px 18px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.not-handled-list li {
  position: relative;
  padding-left: 16px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
}

.not-handled-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
}

.scope-table > p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 14px;
}

.overview-figure {
  margin: 24px 0 0;
}

.overview-figure img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.path-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.path-steps li {
  padding: 14px 16px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.path-steps h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.path-steps p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.term-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--white);
  overflow: hidden;
}

.term-list dt {
  padding: 12px 16px 0;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}

.term-list dd {
  padding: 2px 16px 12px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
  border-bottom: 1px solid var(--line);
}

.term-list dd:last-of-type {
  border-bottom: 0;
}

/* ---------- 频道索引 ---------- */

.channel-groups h2,
.field-table h2,
.cross-reference h2,
.next-entry h2 {
  margin-bottom: 4px;
}

.channel-groups .channel-columns {
  margin-top: 20px;
}

.section-figure {
  margin: 20px 0;
}

.section-figure img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.field-table .table-wrap {
  margin-top: 8px;
}

.cross-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.cross-item {
  padding: 16px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cross-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.cross-item p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 10px;
}

.cross-item a {
  font-size: 14px;
  font-weight: 600;
}

/* ---------- 专题观察 ---------- */

.topic-narrative h2 {
  margin-bottom: 12px;
}

.topic-summary {
  padding: 14px 18px;
  background-color: var(--toc-bg);
  border-left: 3px solid var(--link);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.topic-narrative figure {
  margin-bottom: 20px;
}

.topic-narrative figure img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.topic-narrative p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.8;
}

.topic-narrative h3 {
  margin: 20px 0 8px;
}

.thread-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}

.thread-list li {
  padding: 14px 16px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.thread-list h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.thread-list p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.topic-preparation-note p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.8;
}

/* ---------- 观看准备 ---------- */

.preparation-checklist > p,
.environment-note > p,
.page-info-check > p,
.misconception-transfer > p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 14px;
}

.preparation-figure {
  margin: 18px 0;
}

.preparation-figure img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: prep;
}

.checklist li {
  position: relative;
  padding: 12px 16px 12px 46px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
  counter-increment: prep;
}

.checklist li::before {
  content: counter(prep);
  position: absolute;
  left: 12px;
  top: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--toc-bg);
  color: var(--link);
  font-size: 13px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

.checklist li strong {
  color: var(--ink);
}

.environment-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.environment-list li {
  position: relative;
  padding-left: 16px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.environment-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--line-strong);
}

.misconception-transfer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.misconception-transfer > h2,
.misconception-transfer > p {
  grid-column: 1 / -1;
}

.misconception-column,
.transfer-column {
  min-width: 0;
  padding: 16px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.misconception-column h3,
.transfer-column h3 {
  font-size: 16px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.misconception-column ul,
.transfer-column ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.misconception-column li,
.transfer-column li {
  position: relative;
  padding-left: 16px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.misconception-column li::before,
.transfer-column li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--line-strong);
}

/* ---------- 入口核验 ---------- */

.check-steps h2,
.entry-info-table h2,
.boundary-note h2 {
  margin-bottom: 4px;
}

.section-media {
  margin: 20px 0;
}

.section-media img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  counter-reset: step;
}

.step-item {
  position: relative;
  padding: 16px 18px 16px 54px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: step;
}

.step-item::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--toc-bg);
  color: var(--link);
  font-size: 14px;
  font-weight: 700;
  line-height: 26px;
  text-align: center;
}

.step-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.step-observe,
.step-basis,
.step-stop {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 6px;
}

.step-basis a {
  font-weight: 600;
}

.step-stop {
  margin-bottom: 0;
  padding-top: 6px;
  border-top: 1px dashed var(--line);
  color: var(--accent);
}

.entry-info-table .info-table {
  margin-top: 8px;
}

.boundary-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.boundary-list,
.stop-list {
  min-width: 0;
  padding: 16px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.boundary-list h3,
.stop-list h3 {
  font-size: 16px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.boundary-list ul,
.stop-list ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.boundary-list li,
.stop-list li {
  position: relative;
  padding-left: 16px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.boundary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--line-strong);
}

.stop-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
}

/* ---------- 现象排障 ---------- */

.symptom-picker h2,
.decision-tree h2,
.check-table h2,
.troubleshooting-faq h2 {
  margin-bottom: 4px;
}

.symptom-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.symptom-list li {
  min-width: 0;
}

.symptom-list a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: 100%;
  min-height: 44px;
  padding: 12px 14px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.5;
}

.symptom-list a:hover,
.symptom-list a:focus-visible {
  border-color: var(--link);
  border-left-color: var(--accent);
  text-decoration: none;
  color: var(--ink);
}

.symptom-hint {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
}

.decision-tree .decision-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}

.decision-node {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 14px;
  padding: 16px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.node-index {
  grid-row: 1 / span 3;
  display: inline-block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--toc-bg);
  color: var(--link);
  font-size: 14px;
  font-weight: 700;
  line-height: 30px;
  text-align: center;
}

.node-body {
  min-width: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.node-branch {
  grid-column: 2;
  min-width: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--accent);
}

.check-figure {
  margin: 18px 0;
}

.check-figure img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.check-table-grid {
  margin-top: 6px;
}

.troubleshooting-faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 16px;
}

.faq-item summary {
  padding: 14px 28px 14px 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--link);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
  padding-bottom: 12px;
}

/* ---------- 更订与纠错 ---------- */

.update-batch-table h2,
.change-type-note h2,
.correction-guide h2 {
  margin-bottom: 4px;
}

.update-batch-table .table-wrap {
  margin-top: 8px;
}

.change-type-note .term-list {
  margin-top: 8px;
}

.correction-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.correction-elements,
.correction-boundary {
  min-width: 0;
  padding: 16px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.correction-elements h3,
.correction-boundary h3 {
  font-size: 16px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.element-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  counter-reset: elem;
}

.element-list li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
  counter-increment: elem;
}

.element-list li::before {
  content: counter(elem) ".";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--link);
  font-weight: 700;
  font-size: 15px;
}

.correction-boundary .boundary-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  background-color: transparent;
  border: 0;
  border-radius: 0;
}

.correction-boundary .boundary-list li {
  position: relative;
  padding-left: 16px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.correction-boundary .boundary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--line-strong);
}

.correction-boundary .boundary-note {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

/* ---------- 404 ---------- */

.error-main {
  padding-top: 48px;
  padding-bottom: 64px;
}

.error-inner {
  max-width: 720px;
}

.error-code {
  display: inline-block;
  margin-bottom: 12px;
  padding: 2px 12px;
  border: 1px solid #cfdfeb;
  border-radius: var(--radius);
  background-color: var(--toc-bg);
  color: var(--link);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.error-inner h1 {
  margin-bottom: 14px;
}

.error-lead {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 10px;
}

.error-note {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 28px;
}

.error-actions {
  margin-bottom: 32px;
}

.error-actions h2 {
  font-size: 18px;
  margin-bottom: 12px;
}

.error-actions ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.error-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background-color: var(--white);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.error-button:hover,
.error-button:focus-visible {
  border-color: var(--link);
  text-decoration: none;
}

.error-hint {
  padding: 18px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-hint h2 {
  font-size: 17px;
  margin-bottom: 10px;
}

.error-hint ol {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  padding-left: 20px;
  list-style: decimal;
}

.error-hint li {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.error-hint p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

/* ==========================================================================
   responsive
   ========================================================================== */

/* 桌面：宽屏布局 */
@media (min-width: 961px) {
  .page-layout.sidebar-left {
    grid-template-columns: var(--toc-col) minmax(0, 1fr);
  }

  .content-with-aside,
  .topic-layout {
    grid-template-columns: minmax(0, 1fr) var(--aside-col);
  }

  .page-layout.sidebar-left .toc {
    position: sticky;
    top: 20px;
  }

  .content-with-aside .related-entry,
  .topic-layout .related-reading {
    position: sticky;
    top: 20px;
  }
}

/* 中屏：单列堆叠 */
@media (max-width: 960px) {
  .site-header .header-inner {
    flex-wrap: wrap;
    gap: 0 16px;
    min-height: 60px;
  }

  .brand {
    font-size: 18px;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .site-nav {
    flex-basis: 100%;
    display: block;
    margin-top: 8px;
  }

  .site-nav ul {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 10px;
    border-top: 1px solid var(--line);
  }

  .site-nav ul.is-open {
    display: flex;
  }

  .site-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }

  .site-nav li:last-child a {
    border-bottom: 0;
  }

  .site-nav a.is-current {
    border-bottom-color: var(--line);
    color: var(--link);
  }

  .hero-task-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .hero-preview {
    order: 2;
  }

  .channel-columns,
  .compare-columns,
  .misconception-transfer,
  .boundary-columns,
  .correction-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .topic-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .topic-figure img {
    aspect-ratio: 16 / 9;
  }

  .site-footer .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-layout,
  .content-with-aside,
  .topic-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  /* 移动端正文在前、侧栏在后 */
  .page-layout.sidebar-left .toc {
    order: 2;
  }

  .page-layout.sidebar-left .overview-main,
  .page-layout.sidebar-left .article-preparation {
    order: 1;
  }

  .overview-main,
  .article-preparation,
  .topic-main,
  .troubleshooting-body {
    max-width: none;
  }

  .toc {
    background-color: #eef4f9;
  }
}

/* 手机：紧凑排版 */
@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 20px;
  }

  h3 {
    font-size: 17px;
  }

  .site-header .header-inner,
  .site-main,
  .site-footer .footer-inner,
  .footer-bottom {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-main {
    padding-top: 24px;
    padding-bottom: 40px;
  }

  .inner-main {
    padding-top: 18px;
  }

  .page-title {
    font-size: 26px;
  }

  div.page-title {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 22px;
  }

  .page-lead,
  .page-lede,
  .page-title-lead,
  .page-title-text,
  .page-title-main,
  .page-title-copy {
    flex: 1 1 auto;
    min-width: 0;
  }

  .back-to-category,
  .back-link,
  .back-category {
    align-self: flex-start;
  }

  .home-main > section,
  .inner-main > section,
  .page-shell > section,
  .overview-main > section,
  .article-preparation > section,
  .topic-main > section,
  .troubleshooting-body > section {
    margin-bottom: 32px;
  }

  .hero-task-list,
  .phenomenon-list,
  .decision-summary .decision-steps,
  .entry-links,
  .entry-list,
  .cross-list,
  .symptom-list,
  .error-actions ul {
    grid-template-columns: minmax(0, 1fr);
  }

  .notice-list li {
    align-items: flex-start;
    gap: 6px 10px;
  }

  .notice-scope {
    flex-basis: 100%;
  }

  .step-item {
    padding: 14px 14px 14px 46px;
  }

  .step-item::before {
    left: 12px;
    top: 14px;
    width: 24px;
    height: 24px;
    line-height: 24px;
  }

  .decision-node {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .node-index {
    grid-row: auto;
  }

  .node-branch {
    grid-column: 1;
  }

  .table-wrap table {
    min-width: 560px;
  }

  .info-table,
  .check-table-grid,
  .data-table {
    font-size: 14px;
  }

  .info-table th,
  .info-table td,
  .check-table-grid th,
  .check-table-grid td,
  .data-table th,
  .data-table td {
    padding: 10px 12px;
  }

  .info-table tbody th,
  .check-table-grid tbody th,
  .data-table tbody th {
    width: auto;
  }

  /* 手机端独立表格改为逐行字段块，避免横向溢出 */
  .entry-info-table,
  .page-info-check {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .entry-info-table .info-table,
  .page-info-check .info-table {
    min-width: 0;
    width: 100%;
    border: 0;
    background-color: transparent;
  }

  .entry-info-table .info-table thead,
  .page-info-check .info-table thead {
    display: none;
  }

  .entry-info-table .info-table tbody,
  .page-info-check .info-table tbody {
    display: block;
  }

  .entry-info-table .info-table tbody tr,
  .page-info-check .info-table tbody tr {
    display: block;
    margin-bottom: 12px;
    padding: 12px 14px;
    background-color: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .entry-info-table .info-table tbody tr:last-child,
  .page-info-check .info-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .entry-info-table .info-table tbody th,
  .entry-info-table .info-table tbody td,
  .page-info-check .info-table tbody th,
  .page-info-check .info-table tbody td {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
    background-color: transparent;
    word-break: break-word;
  }

  .entry-info-table .info-table tbody th,
  .page-info-check .info-table tbody th {
    margin-bottom: 4px;
    font-size: 15px;
  }

  .entry-info-table .info-table tbody td,
  .page-info-check .info-table tbody td {
    margin-bottom: 6px;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.7;
  }

  .entry-info-table .info-table tbody td:last-child,
  .page-info-check .info-table tbody td:last-child {
    margin-bottom: 0;
  }

  .site-footer .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding-top: 28px;
    padding-bottom: 24px;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
  }

  .faq-item {
    padding: 0 14px;
  }

  .error-main {
    padding-top: 32px;
    padding-bottom: 48px;
  }

  .error-lead {
    font-size: 16px;
  }
}

/* 尊重减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.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;
  }
}
