/* =========================================================
   樱花视频下载 · yhygk.com
   全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================= */

/* ---------------------------------------------------------
   base：变量、重置、排版、全局元素
   --------------------------------------------------------- */
:root {
  --bg: #f5f6f7;
  --surface: #ffffff;
  --surface-alt: #f0f2f3;
  --ink: #1f2328;
  --ink-soft: #5b6570;
  --ink-faint: #8b949e;
  --line: #e2e5e8;
  --line-strong: #d3d8dd;
  --cyan: #7f9c9c;
  --purple: #9a8fa8;
  --orange: #c0a184;
  --green: #8fa88a;
  --blue: #8a9bb0;
  --focus: #4a6b8a;
  --radius: 6px;
  --radius-sm: 4px;
  --shell: 1120px;
  --prose: 720px;
  --mono: ui-monospace, "SFMono-Regular", "Menlo", "Consolas", "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  font-weight: 400;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 20px;
}

h3 {
  font-size: 16px;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0 0 1em;
  padding: 0;
  list-style: none;
}

a {
  color: #3d5a75;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

a:hover {
  color: #24405a;
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

figure {
  margin: 0;
}

dl,
dd {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font: inherit;
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------
   layout：骨架（页头、导航、主容器、页脚、三栏页面）
   --------------------------------------------------------- */

/* 顶部线索说明条（首页） */
.site-notice {
  background: #eef1f2;
  border-bottom: 1px solid var(--line);
}

.site-notice p {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 9px 24px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--cyan);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.55);
  flex: 0 0 auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}

.brand-slogan {
  font-size: 12px;
  color: var(--ink-faint);
}

/* 导航 */
.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
}

.nav-item {
  margin: 0;
}

.nav-link {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
}

.nav-link:hover {
  background: var(--surface-alt);
  color: var(--ink);
  text-decoration: none;
}

.nav-link.is-current {
  color: var(--ink);
  font-weight: 500;
  background: var(--surface-alt);
  box-shadow: inset 0 -2px 0 var(--cyan);
}

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 9px 12px;
  min-height: 44px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  color: var(--ink);
}

.nav-toggle:hover {
  background: var(--surface-alt);
}

.nav-toggle-icon {
  position: relative;
  width: 16px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  flex: 0 0 auto;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

.nav-toggle-icon::before {
  top: -5px;
}

.nav-toggle-icon::after {
  top: 5px;
}

/* 主内容 */
.site-main {
  display: block;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 28px 24px 56px;
}

.inner-main {
  padding-top: 20px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--ink-faint);
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb-sep {
  color: var(--ink-faint);
}

.breadcrumb-current {
  color: var(--ink);
}

/* 页面标题区 */
.page-header {
  margin: 0 0 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 28px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 10px;
}

.page-description {
  max-width: var(--prose);
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

/* 通用 section */
.section {
  margin: 0 0 40px;
}

.section:last-child {
  margin-bottom: 0;
}

.section-head {
  margin: 0 0 18px;
}

.section-title {
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 8px;
  padding-left: 10px;
  border-left: 3px solid var(--cyan);
  line-height: 1.35;
}

.section-desc,
.section-intro,
.section-lead {
  max-width: var(--prose);
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.section-intro a,
.section-lead a {
  color: #3d5a75;
}

.section-more {
  margin: 16px 0 0;
  font-size: 14px;
}

.link-more {
  display: inline-block;
  padding: 4px 0;
  color: #3d5a75;
  font-weight: 500;
}

/* 页脚 */
.site-footer {
  margin-top: 40px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 34px 24px 26px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2fr;
  gap: 32px;
}

.footer-brand {
  min-width: 0;
}

.footer-name {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--ink);
}

.footer-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-faint);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.footer-col-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.footer-links {
  margin: 0;
}

.footer-links li {
  margin-bottom: 7px;
}

.footer-links a {
  font-size: 13px;
  color: var(--ink-soft);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 16px 24px 22px;
  border-top: 1px solid var(--line);
}

.footer-copy {
  margin: 0;
  font-size: 13px;
  color: var(--ink-faint);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-nav a {
  font-size: 13px;
  color: var(--ink-soft);
}

/* 内页三栏布局：默认正文在前、aside 在后 */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 32px;
  align-items: start;
}

/* 侧栏在前的变体（aside 位于 main 之前） */
.layout-shell.sidebar-left {
  grid-template-columns: 220px minmax(0, 1fr);
}

.sidebar-left .page-layout,
.sidebar-left.page-layout {
  grid-template-columns: 220px minmax(0, 1fr) 200px;
}

.sidebar,
.side-dir,
.side-toc,
.channel-sidebar,
.page-toc {
  position: sticky;
  top: 84px;
  min-width: 0;
}

.sidebar-title,
.side-dir-title,
.side-toc-title,
.channel-tree-title,
.toc-title,
.page-toc-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.channel-tree-list,
.side-dir-list,
.side-toc-list,
.catalog-list,
.sidebar-list,
.toc-list,
.page-toc-list {
  margin: 0;
}

.channel-tree-item,
.side-dir-item,
.side-toc-item,
.catalog-item,
.sidebar-list li,
.toc-item,
.page-toc-item {
  margin: 0 0 2px;
}

.channel-tree-item a,
.side-dir-item a,
.side-toc-item a,
.catalog-link,
.sidebar-list a,
.toc-link,
.page-toc-list a {
  display: block;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--ink-soft);
  text-decoration: none;
  min-height: 34px;
  line-height: 1.5;
}

.channel-tree-item a:hover,
.side-dir-item a:hover,
.side-toc-item a:hover,
.catalog-link:hover,
.sidebar-list a:hover,
.toc-link:hover,
.page-toc-list a:hover {
  background: var(--surface-alt);
  color: var(--ink);
  text-decoration: none;
}

.catalog-note {
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-faint);
}

.main-column,
.content-column {
  min-width: 0;
}

/* ---------------------------------------------------------
   components：按钮、卡片、列表、表格、FAQ、步骤
   --------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: #4a6b8a;
  border-color: #4a6b8a;
  color: #ffffff;
}

.btn-primary:hover {
  background: #3b5871;
  border-color: #3b5871;
  color: #ffffff;
  text-decoration: none;
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--surface-alt);
  color: var(--ink);
  text-decoration: none;
}

/* 题材频道总览行（首页） */
.channel-list {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.channel-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(160px, 240px);
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.channel-row:last-child {
  border-bottom: 0;
}

.channel-row:hover {
  background: var(--surface-alt);
}

.channel-code {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0;
  padding: 3px 0 3px 10px;
  color: var(--ink-soft);
  border-left: 3px solid var(--line-strong);
}

.channel-cyan .channel-code {
  border-left-color: var(--cyan);
}

.channel-purple .channel-code {
  border-left-color: var(--purple);
}

.channel-orange .channel-code {
  border-left-color: var(--orange);
}

.channel-green .channel-code {
  border-left-color: var(--green);
}

.channel-blue .channel-code {
  border-left-color: var(--blue);
}

.channel-body {
  min-width: 0;
}

.channel-name {
  margin: 0 0 4px;
  font-size: 16px;
}

.channel-scope,
.channel-desc {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.channel-topic {
  margin: 0;
  font-size: 13.5px;
  text-align: right;
}

.channel-topic a {
  display: inline-block;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  color: #3d5a75;
  min-height: 34px;
}

.channel-topic a:hover {
  background: #e6eaec;
  text-decoration: none;
}

/* 专题片单卡 */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.topic-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.topic-card:hover {
  border-color: var(--line-strong);
  background: var(--surface);
}

.topic-figure,
.topic-media {
  margin: 0;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
}

.topic-figure img,
.topic-media img {
  display: block;
  width: 100%;
  height: 158px;
  object-fit: cover;
}

.topic-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 auto;
}

.topic-name {
  margin: 0;
  font-size: 16px;
}

.topic-name a {
  color: var(--ink);
}

.topic-theme,
.topic-desc {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.topic-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: auto 0 0;
  padding-top: 10px;
  font-size: 12.5px;
  color: var(--ink-faint);
}

.topic-count,
.topic-channel {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-alt);
}

.topic-code {
  margin: 0;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-faint);
}

.topic-cyan .topic-figure,
.topic-cyan .topic-media {
  box-shadow: inset 0 3px 0 var(--cyan);
}

.topic-purple .topic-figure,
.topic-purple .topic-media {
  box-shadow: inset 0 3px 0 var(--purple);
}

.topic-orange .topic-figure,
.topic-orange .topic-media {
  box-shadow: inset 0 3px 0 var(--orange);
}

.topic-green .topic-figure,
.topic-green .topic-media {
  box-shadow: inset 0 3px 0 var(--green);
}

/* 浏览顺序四步 */
.step-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 0;
}

.step-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  min-width: 0;
}

.step-item:hover {
  background: var(--surface-alt);
}

.step-index {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-soft);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: #e8ebed;
  margin-bottom: 10px;
}

.step-name {
  margin: 0 0 6px;
  font-size: 15px;
}

.step-check {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
}

/* 字段口径与收录边界（首页摘要） */
.field-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.field-col {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.col-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 500;
}

.field-table {
  width: 100%;
  font-size: 13.5px;
}

.field-table th,
.field-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.field-table th {
  font-weight: 500;
  color: var(--ink);
  width: 34%;
  white-space: nowrap;
}

.field-table td {
  color: var(--ink-soft);
}

.boundary-list {
  margin: 0;
}

.boundary-item {
  position: relative;
  padding: 0 0 0 16px;
  margin-bottom: 9px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.boundary-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.boundary-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--ink-faint);
}

/* 站内栏目索引 */
.index-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin: 0;
}

.index-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  min-width: 0;
}

.index-item:hover {
  background: var(--surface-alt);
}

.index-name {
  margin: 0 0 6px;
  font-size: 15px;
}

.index-name a {
  color: var(--ink);
}

.index-desc {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.index-channel,
.index-topic,
.index-guide,
.index-home,
.index-log {
  font-size: 12.5px;
  color: var(--ink-faint);
}

/* ---------------------------------------------------------
   pages：各页面专属模块
   --------------------------------------------------------- */

/* 首页首屏 */
.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 40px;
}

.hero-media {
  min-width: 0;
}

.hero-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-alt);
}

.hero-figure img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.hero-text {
  min-width: 0;
}

.hero-title {
  margin: 0 0 12px;
}

.hero-lead {
  margin: 0 0 10px;
  font-size: 14.5px;
  color: var(--ink);
}

.hero-note {
  margin: 0 0 18px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.hero-fact {
  min-width: 0;
}

.hero-fact dt {
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-bottom: 2px;
}

.hero-fact dd {
  margin: 0;
  font-size: 14px;
  color: var(--ink);
}

/* 题材频道页 */
.section-channels .channel-row {
  grid-template-columns: 200px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 16px;
  padding: 18px;
}

.section-channels .channel-row:last-child {
  margin-bottom: 0;
}

.section-channels .channel-row:hover {
  background: var(--surface);
  border-color: var(--line-strong);
}

.channel-figure {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-alt);
}

.channel-figure img {
  display: block;
  width: 100%;
  height: 130px;
  object-fit: cover;
}

.inner-main .channel-code {
  display: block;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-faint);
  padding: 0;
  border: 0;
  margin: 0 0 4px;
}

.channel-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  margin: 10px 0 0;
  font-size: 13px;
}

.channel-meta dt {
  color: var(--ink-faint);
  white-space: nowrap;
}

.channel-meta dd {
  margin: 0;
  color: var(--ink-soft);
}

.channel-link {
  margin: 12px 0 0;
  font-size: 13.5px;
}

/* 频道与专题对应关系 */
.mapping-columns,
.advice-columns,
.map-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.mapping-col,
.advice-col,
.map-col {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.mapping-col-title,
.advice-col-title,
.map-col-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 500;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.mapping-list,
.advice-list,
.map-list {
  margin: 0;
}

.mapping-item,
.advice-item,
.map-item {
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13.5px;
  color: var(--ink-soft);
}

.mapping-item:last-child,
.advice-item:last-child,
.map-item:last-child {
  border-bottom: 0;
}

.mapping-code,
.map-code {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
  margin-right: 8px;
}

.mapping-name,
.map-name {
  color: var(--ink);
}

.section-footnote {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--ink-faint);
}

/* 专题片单页 */
.section-order .order-list {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.order-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.order-item:last-child {
  border-bottom: 0;
}

.order-item:hover {
  background: var(--surface-alt);
}

.order-code {
  margin: 0;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-faint);
}

.order-body {
  min-width: 0;
}

.order-name {
  margin: 0 0 4px;
  font-size: 15px;
}

.order-reason {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.map-note {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--ink-faint);
}

.tips-list {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.tip-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 13.5px;
  color: var(--ink-soft);
  min-width: 0;
}

/* 观看说明页 */
.prep-list {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.prep-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.prep-item:last-child {
  border-bottom: 0;
}

.prep-item:hover {
  background: var(--surface-alt);
}

.prep-index {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-faint);
  padding-top: 2px;
}

.prep-body {
  min-width: 0;
}

.prep-name {
  margin: 0 0 4px;
  font-size: 15px;
}

.prep-desc {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.order-figure {
  margin: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.order-figure img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.order-caption {
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
}

.order-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 0;
}

.order-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  min-width: 0;
}

.order-step:hover {
  background: var(--surface-alt);
}

.order-step-name {
  margin: 0 0 6px;
  font-size: 15px;
}

.order-step-desc {
  margin: 0 0 8px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.order-step-check {
  margin: 0;
  font-size: 13px;
  color: var(--ink-faint);
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

/* 入口核验表 */
.verify-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.verify-table {
  min-width: 480px;
  font-size: 13.5px;
}

.verify-caption {
  caption-side: top;
  text-align: left;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--line);
}

.verify-table th,
.verify-table td {
  padding: 11px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.verify-table thead th {
  background: var(--surface-alt);
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.verify-table tbody tr:last-child th,
.verify-table tbody tr:last-child td {
  border-bottom: 0;
}

.verify-table tbody th {
  font-weight: 500;
  color: var(--ink);
  width: 32%;
}

.verify-table td {
  color: var(--ink-soft);
}

/* FAQ */
.faq-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-question {
  position: relative;
  padding: 14px 44px 14px 18px;
  font-size: 14.5px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  min-height: 44px;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 16px;
  color: var(--ink-faint);
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-question:hover {
  background: var(--surface-alt);
}

.faq-answer {
  margin: 0;
  padding: 0 18px 16px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

/* 整理记录页 */
.spec-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.spec-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}

.spec-row:last-child {
  border-bottom: 0;
}

.spec-row:hover:not(.spec-head) {
  background: var(--surface-alt);
}

.spec-head {
  background: var(--surface-alt);
}

.spec-cell {
  padding: 11px 16px;
  font-size: 13.5px;
  min-width: 0;
}

.spec-name {
  color: var(--ink);
  font-weight: 500;
  border-right: 1px solid var(--line);
}

.spec-head .spec-name,
.spec-head .spec-desc {
  font-weight: 500;
  color: var(--ink);
}

.spec-desc {
  color: var(--ink-soft);
}

.log-figure {
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.log-figure img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.log-caption {
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
}

.log-month {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 16px;
}

.log-month:last-child {
  margin-bottom: 0;
}

.log-month-title {
  margin: 0 0 12px;
  font-size: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.log-list {
  margin: 0;
}

.log-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13.5px;
}

.log-item:last-child {
  border-bottom: 0;
}

.log-date {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-faint);
}

.log-text {
  margin: 0;
  color: var(--ink-soft);
  min-width: 0;
}

.log-scope,
.log-meta {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--ink-faint);
}

.feedback-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 0;
}

.feedback-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  min-width: 0;
}

.feedback-title {
  margin: 0 0 6px;
  font-size: 15px;
}

.feedback-text {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.feedback-note {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--ink-faint);
}

.feedback-note a {
  margin-right: 14px;
}

/* 404 页 */
.error-main {
  max-width: var(--shell);
}

.error-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: left;
}

.error-code {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink-faint);
}

.error-panel h1 {
  margin: 0 0 12px;
}

.error-text {
  max-width: var(--prose);
  margin: 0 0 22px;
  font-size: 14px;
  color: var(--ink-soft);
}

.error-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 0 0 28px;
}

.error-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: #3d5a75;
}

.error-link:hover {
  background: #e6eaec;
  text-decoration: none;
}

.error-tips {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.error-tips h2 {
  font-size: 16px;
  margin: 0 0 10px;
}

.error-tip-list {
  margin: 0;
}

.error-tip-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.error-tip-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

/* ---------------------------------------------------------
   responsive：平板与手机
   --------------------------------------------------------- */
@media (max-width: 960px) {
  .page-layout,
  .layout-shell.sidebar-left,
  .sidebar-left .page-layout,
  .sidebar-left.page-layout {
    grid-template-columns: minmax(0, 1fr) 200px;
  }

  .layout-shell.sidebar-left .sidebar,
  .sidebar-left .page-layout .sidebar {
    order: 2;
  }

  .layout-shell.sidebar-left .main-column,
  .sidebar-left .page-layout .main-column {
    order: 1;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    min-height: 0;
    padding: 10px 16px;
    gap: 10px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    flex: 1 1 100%;
    margin-left: 0;
    order: 3;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 6px 0 4px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    padding: 12px 10px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .site-notice p {
    padding: 9px 16px;
  }

  .site-main {
    padding: 20px 16px 44px;
  }

  .hero-section {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px;
    gap: 20px;
  }

  .hero-figure img {
    height: 220px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 28px 16px 22px;
  }

  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .footer-bottom {
    padding: 14px 16px 20px;
  }

  .page-layout,
  .layout-shell.sidebar-left,
  .sidebar-left .page-layout,
  .sidebar-left.page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .sidebar,
  .side-dir,
  .side-toc,
  .channel-sidebar,
  .page-toc {
    position: static;
    order: 2;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }

  .main-column,
  .content-column,
  .inner-main {
    order: 1;
  }

  .section-channels .channel-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-figure img {
    height: 170px;
  }

  .channel-row {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .channel-topic {
    grid-column: 2 / 3;
    text-align: left;
  }

  .spec-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .spec-name {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: var(--surface-alt);
  }

  .order-figure img {
    height: 180px;
  }

  .log-figure img {
    height: 160px;
  }

  .error-panel {
    padding: 28px 20px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14.5px;
  }

  h1,
  .page-title {
    font-size: 22px;
  }

  .section-title {
    font-size: 18px;
  }

  .brand-slogan {
    display: none;
  }

  .hero-figure img {
    height: 180px;
  }

  .topic-figure img,
  .topic-media img {
    height: 150px;
  }

  .topic-grid,
  .step-list,
  .order-steps,
  .tips-list,
  .feedback-list,
  .mapping-columns,
  .advice-columns,
  .map-columns,
  .field-columns,
  .index-list,
  .error-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .order-item,
  .prep-item,
  .log-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .channel-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .channel-topic {
    grid-column: auto;
  }

  .verify-table {
    min-width: 0;
  }

  .verify-table th,
  .verify-table td {
    padding: 9px 12px;
  }
}
