/* ==========================================================================
   泥巴影视 zsgaolong.com — 全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. base — 变量、重置、字体、通用元素
   -------------------------------------------------------------------------- */
:root {
  --bg-page: #f5f7f6;
  --bg-surface: #ffffff;
  --bg-soft: #eef3f1;
  --ink: #18232b;
  --ink-sub: #5a6a72;
  --accent: #1f7a6b;
  --accent-dark: #175e53;
  --warn: #b4761f;
  --line: #d7e0dd;
  --line-strong: #c2cfcb;
  --radius: 4px;
  --radius-card: 6px;
  --wrap: 1080px;
  --wrap-narrow: 860px;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --shadow-soft: 0 1px 2px rgba(24, 35, 43, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg-page);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
figure,
ul,
ol,
dl {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 120ms ease, background-color 120ms ease, border-color 120ms ease;
}

a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
}

strong {
  font-weight: 600;
}

time {
  font-variant-numeric: tabular-nums;
}

.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;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  z-index: 60;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  font-size: 14px;
}

.skip-link:focus {
  top: 8px;
  color: #fff;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   2. layout — 页头、主导航、主内容容器、面包屑、页脚
   -------------------------------------------------------------------------- */

/* 顶部状态条（首页 / 反馈说明） */
.topbar {
  background: var(--ink);
  color: #e6ecea;
}

.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 7px 24px;
  font-size: 13px;
  line-height: 1.5;
}

.topbar-note {
  color: #c8d4d0;
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.topbar-links a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  color: #e6ecea;
  border-bottom: 1px solid transparent;
}

.topbar-links a:hover {
  color: #ffffff;
  border-bottom-color: #7fc0b3;
  text-decoration: none;
}

/* 顶部状态条（更新日程变体） */
.top-status-bar {
  background: var(--ink);
  color: #e6ecea;
}

.top-status-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 7px 24px;
  font-size: 13px;
  line-height: 1.5;
}

.top-status-text {
  color: #c8d4d0;
}

.top-status-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.top-status-links a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  color: #e6ecea;
  border-bottom: 1px solid transparent;
}

.top-status-links a:hover {
  color: #ffffff;
  border-bottom-color: #7fc0b3;
  text-decoration: none;
}

/* 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px 24px;
}

.brand {
  flex: 0 0 auto;
}

.brand-link {
  display: flex;
  flex-direction: column;
  gap: 1px;
  color: var(--ink);
  min-height: 44px;
  justify-content: center;
}

.brand-link:hover {
  color: var(--ink);
  text-decoration: none;
}

.brand-name {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
}

.brand-slogan {
  font-size: 12px;
  color: var(--ink-sub);
  line-height: 1.4;
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: var(--bg-surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

/* 主导航 */
.primary-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-item > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  font-size: 14.5px;
  border-bottom: 2px solid transparent;
}

.nav-item > a:hover {
  color: var(--accent-dark);
  background: var(--bg-soft);
  text-decoration: none;
}

.nav-item.is-current > a,
.nav-item > a.is-current {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.sub-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 44px;
  margin-left: -6px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--ink-sub);
}

.sub-toggle::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 120ms ease;
}

.sub-toggle[aria-expanded="true"]::after {
  transform: rotate(-135deg) translateY(-2px);
}

.sub-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 148px;
  padding: 6px 0;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 6px 16px rgba(24, 35, 43, 0.1);
  z-index: 30;
}

.nav-item.has-sub:hover > .sub-list,
.nav-item.has-sub:focus-within > .sub-list {
  display: block;
}

.sub-list li {
  display: block;
}

.sub-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
  color: var(--ink);
}

.sub-list a:hover {
  background: var(--bg-soft);
  color: var(--accent-dark);
  text-decoration: none;
}

/* 主内容骨架 */
.site-main {
  display: block;
  width: 100%;
}

.inner-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 20px 24px 56px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--ink-sub);
  line-height: 1.6;
}

.breadcrumb a {
  color: var(--ink-sub);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--ink);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.breadcrumb-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb-list li + li::before {
  content: "/";
  color: var(--line-strong);
}

/* 页面标题区（全站统一） */
.page-header {
  margin-bottom: 14px;
}

.page-title {
  font-size: clamp(24px, 3.2vw, 30px);
  font-weight: 600;
  line-height: 1.32;
  color: var(--ink);
  max-width: 34em;
}

.page-head {
  margin-bottom: 22px;
}

.page-title-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-meta,
.page-status,
.page-status-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font-size: 12.5px;
  color: var(--ink-sub);
  line-height: 1.6;
}

.meta-type,
.meta-date,
.meta-checked,
.page-type,
.page-checked,
.status-label,
.status-type,
.status-date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.meta-type,
.page-type,
.status-type {
  padding: 1px 8px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink-sub);
}

.meta-date time,
.meta-checked time,
.page-checked time,
.status-date time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-sub);
}

.status-sep {
  color: var(--line-strong);
}

.page-lead,
.page-lede {
  margin-top: 10px;
  max-width: 42em;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-sub);
}

/* 页脚 */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--line);
  color: var(--ink-sub);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
  gap: 32px;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 36px 24px 24px;
}

.footer-col {
  min-width: 0;
}

.footer-brand {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.footer-desc {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-sub);
  max-width: 30em;
}

.footer-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.footer-nav ul,
.footer-rules ul,
.footer-check ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-nav a,
.footer-check a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 13.5px;
  color: var(--ink-sub);
}

.footer-nav a:hover,
.footer-check a:hover {
  color: var(--accent);
}

.footer-rules li {
  font-size: 13.5px;
  line-height: 1.7;
  padding: 4px 0;
  color: var(--ink-sub);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.footer-bottom p {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 24px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-sub);
}

/* --------------------------------------------------------------------------
   3. components — 按钮、徽标、表格、手风琴、时间轴、卡片、链接
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #ffffff;
}

.btn-ghost {
  background: var(--bg-surface);
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--bg-soft);
  border-color: var(--accent);
  color: var(--accent-dark);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid transparent;
}

.text-link::after {
  content: "›";
  font-size: 15px;
  line-height: 1;
}

.text-link:hover {
  color: var(--accent-dark);
  border-bottom-color: var(--accent-dark);
  text-decoration: none;
}

/* 徽标 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge-ok {
  color: var(--accent);
  background: #eaf4f1;
  border-color: #bcdcd4;
}

.badge-warn,
.badge-check {
  color: var(--warn);
  background: #fbf3e6;
  border-color: #e6cfa6;
}

.badge-bad,
.badge-fail {
  color: #9c3b2c;
  background: #fbeeeb;
  border-color: #e6c1b8;
}

/* 状态点 */
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
  flex: 0 0 auto;
}

.dot-on {
  background: var(--accent);
}

.dot-off {
  background: var(--warn);
}

/* 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--ink-sub);
}

.tag-ok {
  color: var(--accent);
  background: #eaf4f1;
  border-color: #bcdcd4;
}

.tag-warn {
  color: var(--warn);
  background: #fbf3e6;
  border-color: #e6cfa6;
}

/* 表格 */
.table-wrap,
.table-scroll {
  width: 100%;
  overflow-x: auto;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
}

.data-table caption {
  caption-side: top;
  text-align: left;
}

.table-caption {
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--ink-sub);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px 14px;
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 1px solid var(--line-strong);
}

.data-table tbody th {
  padding: 10px 14px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.data-table tbody td {
  padding: 10px 14px;
  color: var(--ink-sub);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.data-table tbody tr:nth-child(even) {
  background: #fafcfb;
}

.data-table tbody tr:hover {
  background: var(--bg-soft);
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table a {
  font-weight: 600;
}

.table-note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-sub);
  line-height: 1.7;
}

/* 手风琴 */
.accordion,
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.accordion-item,
.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.accordion-question,
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.accordion-question::-webkit-details-marker,
.faq-question::-webkit-details-marker {
  display: none;
}

.accordion-question::after,
.faq-question::after {
  content: "+";
  flex: 0 0 auto;
  width: 20px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 400;
  color: var(--accent);
}

.accordion-item[open] .accordion-question,
.faq-item[open] .faq-question {
  border-bottom: 1px solid var(--line);
}

.accordion-item[open] .accordion-question::after,
.faq-item[open] .faq-question::after {
  content: "−";
}

.accordion-answer,
.faq-answer {
  padding: 12px 16px 16px;
  font-size: 14.5px;
  color: var(--ink-sub);
  line-height: 1.8;
}

.accordion-answer p + ol,
.faq-answer p + ol,
.accordion-answer p + p,
.faq-answer p + p {
  margin-top: 8px;
}

/* 步骤列表 */
.step-list {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 0;
}

.step-list > li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-sub);
}

.step-list > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  line-height: 1;
}

/* 图片容器 */
.media-figure,
.section-figure,
.hero-figure,
.topic-figure,
.feedback-figure {
  margin: 0;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.media-figure img,
.section-figure img,
.hero-figure img,
.topic-figure img,
.feedback-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-figure figcaption,
.section-figure figcaption,
.feedback-figure figcaption {
  padding: 8px 12px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-sub);
  background: var(--bg-surface);
  border-top: 1px solid var(--line);
}

/* 相关链接 */
.related-links,
.related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.related-links li,
.related-list li {
  display: flex;
}

.related-links a,
.related-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.related-links a:hover,
.related-list a:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: var(--bg-soft);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   4. pages — 首页与各内页业务模块
   -------------------------------------------------------------------------- */

/* ===== 首页 ===== */
.home-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 24px 24px 56px;
}

/* 首屏三列操作面 */
.hero {
  margin-bottom: 32px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}

.hero-channels,
.hero-help {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 16px;
}

.hero-col-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.hero-col-note {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-sub);
  margin-bottom: 12px;
}

.channel-net {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}

.channel-net li {
  display: block;
}

.channel-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--ink);
}

.channel-chip:hover {
  background: var(--bg-soft);
  border-color: var(--line);
  color: var(--accent-dark);
  text-decoration: none;
}

.channel-chip .dot {
  margin-left: auto;
}

.hero-focus {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 16px;
}

.hero-figure {
  aspect-ratio: 16 / 9;
  margin-bottom: 14px;
}

.hero-focus h1 {
  font-size: clamp(22px, 2.6vw, 27px);
  line-height: 1.34;
  margin-bottom: 8px;
}

.hero-lead {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-sub);
  margin-bottom: 14px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-sub);
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.hero-meta time {
  font-family: var(--font-mono);
  font-size: 12px;
}

.status-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.status-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13.5px;
  line-height: 1.65;
}

.status-row:last-child {
  border-bottom: 0;
}

.status-row .badge {
  flex: 0 0 auto;
  margin-top: 2px;
}

.status-text {
  color: var(--ink-sub);
  min-width: 0;
}

/* 通用 section */
.section {
  margin-bottom: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: 16px;
}

.section-head h2 {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 18px;
  line-height: 1.4;
}

.section-head h2 .num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--accent);
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg-soft);
}

.section-desc {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-sub);
  max-width: 46em;
}

/* 时间轴（首页本周更新日程） */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.timeline-item:last-child {
  border-bottom: 0;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  padding-top: 2px;
  white-space: nowrap;
}

.timeline-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  min-width: 0;
}

.timeline-channel {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

.timeline-body p {
  flex: 1 1 100%;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-sub);
}

/* 专题卡片三栏 */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.topic-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.topic-card .topic-figure {
  aspect-ratio: 16 / 10;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.topic-name {
  margin: 12px 14px 4px;
  font-size: 16px;
  line-height: 1.4;
}

.topic-range {
  margin: 0 14px 6px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--warn);
}

.topic-desc {
  margin: 0 14px 10px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-sub);
  flex: 1 1 auto;
}

.topic-card .text-link {
  margin: 0 14px 14px;
  align-self: flex-start;
}

/* 三步流程条（首页） */
.flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.flow-step {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 14px;
  min-width: 0;
}

.flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-bottom: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
}

.flow-title {
  font-size: 15px;
  margin-bottom: 6px;
}

.flow-text {
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--ink-sub);
}

.check-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 12px;
}

.check-status li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-sub);
}

/* 内容说明与使用边界 */
.scope-body {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 18px;
}

.scope-body p {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-sub);
  max-width: 42em;
}

.scope-body p + p {
  margin-top: 10px;
}

.scope-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.scope-list li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-sub);
}

.scope-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* 反馈入口条 */
.section-cta {
  border-top: 1px solid var(--line);
}

.cta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding: 18px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-card);
}

.cta-text {
  min-width: 0;
  flex: 1 1 300px;
}

.cta-text h2 {
  font-size: 17px;
  margin-bottom: 4px;
}

.cta-text p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-sub);
  max-width: 42em;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* ===== 内页通用 section 标题 ===== */
.section-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 6px;
}

.section-num,
.section-index,
.sec-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--accent);
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg-soft);
}

.section-intro,
.section-lead,
.section-note {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-sub);
  max-width: 46em;
  margin-bottom: 14px;
}

.content-section,
.section-block,
.guide-section {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.content-section:last-child,
.section-block:last-child,
.guide-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

/* ===== 频道索引 ===== */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
}

.layout-main {
  min-width: 0;
}

.layout-aside {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-table {
  margin-bottom: 32px;
}

.section-groups,
.section-advice {
  margin-bottom: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.section-figure {
  margin: 0 0 16px;
  aspect-ratio: 16 / 7;
}

.group-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.group-item {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 14px 16px;
}

.group-name {
  font-size: 15px;
  margin-bottom: 2px;
}

.group-cover {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--warn);
  margin-bottom: 6px;
}

.group-desc {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-sub);
}

.advice-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.advice-item {
  padding: 14px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-card);
}

.advice-title {
  font-size: 15px;
  margin-bottom: 4px;
}

.advice-text {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-sub);
}

.aside-card {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 16px;
}

.aside-title {
  font-size: 15px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.aside-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.aside-list li {
  position: relative;
  padding-left: 16px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-sub);
}

.aside-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.aside-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.aside-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 13.5px;
  font-weight: 600;
}

/* ===== 专题片单（左栏） ===== */
.page-container {
  display: block;
}

.sidebar-left .page-layout,
.page-layout.sidebar-left {
  grid-template-columns: 260px minmax(0, 1fr);
}

.page-aside {
  min-width: 0;
}

.page-main {
  min-width: 0;
}

.topic-toc {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.topic-toc li {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
}

.topic-toc li:hover {
  background: var(--bg-soft);
  border-color: var(--line);
}

.topic-toc a,
.topic-toc .toc-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.topic-toc a:hover {
  color: var(--accent-dark);
  text-decoration: none;
}

.toc-range {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--warn);
}

.aside-note {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink-sub);
}

.topic-detail {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 18px;
  margin-bottom: 18px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.topic-media {
  min-width: 0;
}

.topic-detail .topic-figure {
  aspect-ratio: 4 / 3;
}

.topic-body {
  min-width: 0;
}

.topic-title {
  font-size: 18px;
  margin-bottom: 6px;
}

.topic-summary {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-sub);
  margin-bottom: 12px;
}

.topic-subtitle {
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 6px;
}

.order-list {
  counter-reset: order;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
}

.order-list > li {
  position: relative;
  padding-left: 26px;
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--ink-sub);
}

.order-list > li::before {
  counter-increment: order;
  content: counter(order);
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  line-height: 1;
}

.topic-detail .topic-range {
  margin: 0;
  font-size: 12.5px;
}

.usage-block,
.related-block {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 18px;
  margin-bottom: 18px;
}

.usage-block h2,
.related-block h2 {
  font-size: 17px;
  margin-bottom: 8px;
}

.usage-list {
  counter-reset: usage;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.usage-list > li {
  position: relative;
  padding-left: 26px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-sub);
}

.usage-list > li::before {
  counter-increment: usage;
  content: counter(usage);
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  line-height: 1;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.94em;
}

/* ===== 更新日程（右栏） ===== */
.layout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
}

.main-column {
  min-width: 0;
}

.side-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.schedule-table {
  min-width: 560px;
}

.schedule-table td time {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  white-space: nowrap;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  border: 1px solid var(--line);
  white-space: nowrap;
}

.status-ok {
  color: var(--accent);
  background: #eaf4f1;
  border-color: #bcdcd4;
}

.status-plan {
  color: var(--ink-sub);
  background: var(--bg-soft);
  border-color: var(--line);
}

.status-review {
  color: var(--warn);
  background: #fbf3e6;
  border-color: #e6cfa6;
}

.reading-body {
  margin-bottom: 12px;
}

.reading-body p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-sub);
  max-width: 42em;
}

.reading-body p + p {
  margin-top: 8px;
}

.sub-title {
  font-size: 15px;
  margin: 14px 0 8px;
}

.rhythm-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rhythm-item {
  padding: 12px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.rhythm-name {
  font-size: 14.5px;
  margin-bottom: 2px;
}

.rhythm-item p {
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--ink-sub);
}

.side-card {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 16px;
}

.side-title {
  font-size: 15px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.side-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.side-list li {
  position: relative;
  padding-left: 16px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-sub);
}

.side-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.side-link-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.side-link-list a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 13.5px;
  font-weight: 600;
}

/* ===== 观看指南（单列 860） ===== */
.guide-shell {
  max-width: var(--wrap-narrow);
  margin: 0 auto;
}

.media-text {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-bottom: 16px;
}

.media-figure {
  aspect-ratio: 4 / 3;
}

.media-body {
  min-width: 0;
}

.media-body h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

.media-body p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-sub);
  margin-top: 8px;
}

.note-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.note-item {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 14px;
  min-width: 0;
}

.note-item h3 {
  font-size: 14.5px;
  margin-bottom: 4px;
}

.note-item p {
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--ink-sub);
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.col-checklist,
.col-explain {
  min-width: 0;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 16px;
}

.col-checklist h3,
.col-explain h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.check-list li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--ink-sub);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 12px;
  color: var(--accent);
}

.col-explain p {
  font-size: 13.5px;
  line-height: 1.78;
  color: var(--ink-sub);
}

.col-explain p + p {
  margin-top: 8px;
}

.rule-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.rule-list li {
  padding: 12px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-card);
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-sub);
}

.rule-list strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 2px;
}

.inline-link {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-sub);
}

.inline-link a {
  font-weight: 600;
  margin: 0 2px;
}

.related-section {
  border-bottom: 0;
}

/* ===== 入口核验（单列 860） ===== */
.content-shell {
  max-width: var(--wrap-narrow);
  margin: 0 auto;
}

.content-narrow {
  max-width: var(--wrap-narrow);
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.flow-steps .flow-step {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.flow-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
}

.flow-step-title {
  font-size: 15px;
}

.flow-step-desc {
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--ink-sub);
}

.flow-step-cond,
.flow-step-result {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-sub);
  padding-top: 6px;
  border-top: 1px dashed var(--line);
}

.cond-label,
.result-label {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--ink-sub);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0 6px;
}

.flow-step-result strong {
  font-weight: 600;
}

.order-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--ink-sub);
}

.order-item + .order-item {
  margin-top: 8px;
}

.order-item-title {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
}

.record-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 12px;
}

.record-col {
  min-width: 0;
  padding: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.record-title {
  font-size: 14.5px;
  margin-bottom: 6px;
}

.record-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.record-list li {
  position: relative;
  padding-left: 16px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-sub);
}

.record-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.related-nav {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.related-title {
  font-size: 17px;
  margin-bottom: 12px;
}

/* ===== 反馈说明 ===== */
.feedback-types,
.feedback-flow,
.feedback-faq,
.related-links {
  margin-bottom: 32px;
}

.feedback-types h2,
.feedback-flow h2,
.feedback-faq h2,
.related-links h2 {
  font-size: 18px;
  margin-bottom: 6px;
}

.col {
  min-width: 0;
}

.col-types,
.col-needs {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 16px;
}

.col-types h3,
.col-needs h3 {
  font-size: 15px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.type-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.type-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 4px 10px;
  align-items: start;
}

.type-index {
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
}

.type-item h4 {
  font-size: 14.5px;
  line-height: 1.5;
}

.type-item p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-sub);
}

.need-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.need-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}

.need-item:last-child {
  border-bottom: 0;
}

.need-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.need-item p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-sub);
}

.feedback-figure {
  aspect-ratio: 16 / 9;
}

.flow-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.flow-timeline .flow-step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.flow-timeline .flow-step:last-child {
  border-bottom: 0;
}

.flow-timeline .flow-index {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.flow-body {
  min-width: 0;
}

.flow-body h3 {
  font-size: 14.5px;
  margin-bottom: 2px;
}

.flow-body p {
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--ink-sub);
}

/* ===== 404 ===== */
.error-main {
  max-width: var(--wrap-narrow);
  margin: 0 auto;
  padding: 40px 24px 56px;
}

.error-panel {
  padding: 28px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-card);
  margin-bottom: 24px;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 6px;
}

.error-panel h1 {
  font-size: clamp(22px, 3vw, 28px);
  margin-bottom: 10px;
}

.error-lead {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-sub);
  max-width: 42em;
  margin-bottom: 18px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.error-hints,
.error-note {
  padding: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  margin-bottom: 20px;
}

.error-hints h2,
.error-note h2 {
  font-size: 17px;
  margin-bottom: 6px;
}

.error-hints p,
.error-note p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-sub);
  max-width: 46em;
}

.error-note p + p {
  margin-top: 8px;
}

.error-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 12px;
}

.error-link-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.error-link-list a:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   5. responsive — 960px / 640px 断点
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .header-inner {
    gap: 12px;
    padding: 10px 20px;
  }

  .nav-toggle {
    display: flex;
    order: 3;
  }

  .primary-nav {
    order: 4;
    flex: 1 1 100%;
    display: block;
    position: static;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin-top: 8px;
    padding: 8px 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list .nav-item {
    display: block;
    width: 100%;
    border-bottom: 1px solid var(--line);
  }

  .nav-list .nav-item:last-child {
    border-bottom: 0;
  }

  .nav-list .nav-item > a {
    display: inline-flex;
    width: calc(100% - 52px);
    min-height: 46px;
    padding: 0 4px;
    border-bottom: 0;
  }

  .nav-list .nav-item.is-current > a,
  .nav-list .nav-item > a.is-current {
    border-bottom: 0;
    border-left: 2px solid var(--accent);
    padding-left: 10px;
  }

  .nav-list .sub-toggle {
    display: inline-flex;
    width: 44px;
    height: 46px;
    margin-left: 0;
    vertical-align: top;
  }

  .nav-list .sub-list {
    display: none;
    position: static;
    min-width: 0;
    width: 100%;
    padding: 0 0 6px 14px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: var(--bg-soft);
  }

  .nav-list .sub-toggle[aria-expanded="true"] + .sub-list {
    display: block;
  }

  .nav-list .sub-list a {
    min-height: 44px;
  }

  /* 首页首屏 */
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .hero-focus {
    grid-column: 1 / -1;
    order: -1;
  }

  .hero-channels {
    order: 1;
  }

  .hero-help {
    order: 2;
  }

  /* 三栏模块 */
  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-grid .topic-card:last-child {
    grid-column: 1 / -1;
  }

  .note-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .note-list .note-item:last-child {
    grid-column: 1 / -1;
  }

  /* 侧栏结构 */
  .page-layout,
  .layout-shell,
  .sidebar-left .page-layout,
  .page-layout.sidebar-left {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .layout-aside,
  .side-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .page-aside {
    display: block;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .topbar-inner,
  .top-status-inner {
    padding: 7px 16px;
    font-size: 12.5px;
  }

  .topbar-links,
  .top-status-links {
    gap: 2px 14px;
  }

  .header-inner {
    flex-wrap: wrap;
    padding: 10px 16px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-slogan {
    font-size: 11.5px;
  }

  .home-main,
  .inner-main {
    padding: 16px 16px 40px;
  }

  .page-title {
    font-size: 23px;
  }

  .page-lead,
  .page-lede {
    font-size: 14px;
  }

  /* 首页首屏改为单列，H1 与焦点内容在前 */
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .hero-focus {
    order: 1;
  }

  .hero-channels {
    order: 2;
  }

  .hero-help {
    order: 3;
  }

  .hero-focus,
  .hero-channels,
  .hero-help {
    padding: 14px;
  }

  .hero-focus h1 {
    font-size: 21px;
  }

  .channel-net {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .channel-chip {
    min-height: 44px;
    padding: 0 8px;
    font-size: 13.5px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  /* 时间轴 */
  .timeline-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 12px 14px;
  }

  .timeline-date {
    padding-top: 0;
  }

  /* 三栏模块全部单列 */
  .topic-grid,
  .note-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .topic-grid .topic-card:last-child,
  .note-list .note-item:last-child {
    grid-column: auto;
  }

  .flow,
  .flow-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .two-col,
  .record-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .media-text {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-actions {
    justify-content: flex-start;
  }

  /* 专题详情 */
  .topic-detail {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }

  .topic-media {
    max-width: 100%;
  }

  /* 侧栏卡片单列 */
  .layout-aside,
  .side-column {
    grid-template-columns: minmax(0, 1fr);
  }

  /* 表格横向滚动 */
  .table-wrap,
  .table-scroll {
    border-radius: var(--radius);
  }

  .data-table {
    min-width: 600px;
    font-size: 13px;
  }

  .schedule-table {
    min-width: 520px;
  }

  .data-table thead th,
  .data-table tbody th,
  .data-table tbody td {
    padding: 9px 11px;
  }

  /* 页脚 */
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 28px 16px 20px;
  }

  .footer-bottom p {
    padding: 12px 16px;
  }

  /* 404 */
  .error-main {
    padding: 28px 16px 40px;
  }

  .error-panel,
  .error-hints,
  .error-note {
    padding: 18px;
  }

  /* 反馈两列 */
  .col-types,
  .col-needs {
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* 程序验收反馈：移动端正文优先 */
@media (max-width: 768px) {
  .site-main :is(.page-content, .main-content, .content-main) {
    order: 1;
  }

  .site-main :is(aside, .sidebar) {
    order: 2;
  }
}
