/* ==========================================================================
   星辰影院 · 全站样式
   base → layout → components → pages → responsive
   ========================================================================== */

/* ==========================================================================
   base
   ========================================================================== */

:root {
  --ink: #1b2228;
  --graphite: #3e4a52;
  --paper: #f7f4ee;
  --mist: #e6e0d6;
  --teal: #6f817b;
  --brass: #9a7b52;
  --white: #ffffff;
  --shell: 1180px;
  --gap: 32px;
  --radius: 6px;
  --line: 1px solid var(--mist);
  --shadow-soft: 0 1px 2px rgba(27, 34, 40, 0.04);
}

*,
*::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", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.35;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dt,
dd {
  margin: 0;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: var(--brass);
  text-decoration: underline;
  text-underline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

input {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 60;
  padding: 10px 18px;
  background-color: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 12px;
  color: var(--paper);
  text-decoration: none;
}

/* ==========================================================================
   layout · 全站骨架
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--paper);
  border-bottom: var(--line);
}

.header-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  flex-shrink: 0;
}

.brand:hover {
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: var(--brass);
  border-radius: 2px;
  transform: rotate(45deg);
}

.brand-slogan {
  font-size: 1.125rem;
  font-weight: 600;
}

.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li {
  display: block;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--graphite);
  font-size: 0.9375rem;
  border-radius: var(--radius);
  white-space: nowrap;
}

.nav-list a:hover {
  color: var(--ink);
  background-color: rgba(111, 129, 123, 0.09);
  text-decoration: none;
}

.nav-list a.is-current {
  color: var(--ink);
  font-weight: 600;
  background-color: rgba(154, 123, 82, 0.13);
}

.tool-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--brass);
  border-radius: var(--radius);
  color: var(--brass);
  font-size: 0.875rem;
  white-space: nowrap;
}

.tool-link:hover {
  background-color: var(--brass);
  color: var(--paper);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  background-color: var(--white);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--ink);
  border-radius: 1px;
}

.mobile-nav {
  border-top: var(--line);
  background-color: var(--white);
  padding: 8px 24px 16px;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
}

.mobile-nav-list a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 8px;
  color: var(--graphite);
  border-bottom: 1px solid var(--mist);
  font-size: 0.9375rem;
}

.mobile-nav-list a:hover {
  color: var(--ink);
  text-decoration: none;
}

.mobile-nav-list a.is-current {
  color: var(--brass);
  font-weight: 600;
}

.site-main {
  display: block;
  padding: 0 24px 72px;
}

.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding-top: 28px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--graphite);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--teal);
}

.breadcrumb-sep {
  color: var(--mist);
}

.breadcrumb-current {
  color: var(--graphite);
}

.page-header {
  margin-bottom: 28px;
}

.page-title {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 600;
  line-height: 1.24;
  color: var(--ink);
  max-width: 900px;
}

.page-layout {
  display: grid;
  gap: var(--gap);
  align-items: start;
}

.content-main {
  min-width: 0;
}

.site-footer {
  background-color: var(--ink);
  color: #cfd4d2;
  padding: 56px 24px 0;
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-col {
  min-width: 0;
}

.footer-brand-name {
  color: var(--paper);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-brand-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #a9b1ae;
}

.footer-col-title {
  color: var(--paper);
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.footer-links li,
.footer-text-list li {
  margin-bottom: 8px;
  font-size: 0.875rem;
  line-height: 1.65;
}

.footer-links a {
  color: #a9b1ae;
}

.footer-links a:hover {
  color: var(--paper);
  text-decoration: none;
}

.footer-text-list li {
  color: #a9b1ae;
}

.footer-bottom {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(247, 244, 238, 0.14);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

.footer-copy,
.footer-note {
  font-size: 0.8125rem;
  color: #8d9794;
}

/* ==========================================================================
   components · 通用模块
   ========================================================================== */

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: var(--line);
}

.section-head h2 {
  font-size: 1.375rem;
  flex: 0 0 auto;
}

.section-sub,
.section-desc {
  flex: 1 1 240px;
  font-size: 0.875rem;
  color: var(--graphite);
  line-height: 1.7;
}

.section-more {
  flex: 0 0 auto;
  font-size: 0.875rem;
  color: var(--teal);
}

.section-more:hover {
  color: var(--brass);
}

.section-heading {
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: var(--line);
}

.section-heading h2 {
  font-size: 1.375rem;
  margin-bottom: 6px;
}

.section-heading p {
  font-size: 0.875rem;
  color: var(--graphite);
  line-height: 1.7;
}

.aside-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: var(--line);
}

.aside-desc,
.aside-intro {
  font-size: 0.8125rem;
  color: var(--graphite);
  line-height: 1.7;
  margin-bottom: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background-color: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  background-color: var(--brass);
  color: var(--paper);
}

.btn-ghost {
  background-color: transparent;
  color: var(--ink);
  border-color: var(--mist);
}

.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* 图片容器统一约束 */

.hero-figure,
.topic-media,
.media-figure,
.content-figure,
.topic-figure,
.section-media,
.article-media {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-figure img,
.topic-media img,
.media-figure img,
.content-figure img,
.topic-figure img,
.section-media img,
.article-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: var(--mist);
}

figcaption,
.hero-caption,
.figure-caption {
  font-size: 0.8125rem;
  color: var(--graphite);
  line-height: 1.6;
  padding: 8px 2px 0;
}

/* FAQ 折叠 */

.faq-item {
  border-bottom: var(--line);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 2px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  min-height: 44px;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  flex-shrink: 0;
  color: var(--brass);
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 400;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 2px 16px;
  font-size: 0.9375rem;
  color: var(--graphite);
  line-height: 1.75;
}

.faq-answer a {
  color: var(--teal);
}

/* 通用内容区 */

.content-section {
  margin-bottom: 36px;
}

.content-section h2,
.section-title {
  font-size: 1.375rem;
  margin-bottom: 10px;
}

.section-text {
  font-size: 0.9375rem;
  color: var(--graphite);
  line-height: 1.8;
  margin-bottom: 12px;
}

/* ==========================================================================
   pages · 首页
   ========================================================================== */

.home-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding-top: 28px;
}

.home-layout {
  grid-template-columns: 220px minmax(0, 1fr) 260px;
}

/* 左侧频道索引 */

.channel-index {
  position: sticky;
  top: 92px;
  background-color: var(--white);
  border: var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: var(--shadow-soft);
}

.index-group {
  margin-bottom: 16px;
}

.index-group:last-child {
  margin-bottom: 0;
}

.index-group-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brass);
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--mist);
}

.index-list li {
  margin-bottom: 2px;
}

.index-list a {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-height: 32px;
  padding: 4px 4px;
  font-size: 0.875rem;
  color: var(--graphite);
  border-radius: 4px;
}

.index-list a:hover {
  color: var(--ink);
  background-color: rgba(111, 129, 123, 0.08);
  text-decoration: none;
}

.index-name {
  font-weight: 600;
  color: var(--ink);
}

.index-desc {
  font-size: 0.75rem;
  color: var(--graphite);
}

/* 中心主栏 */

.main-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* 导视台首屏 */

.hero-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding-bottom: 32px;
  border-bottom: var(--line);
}

.hero-copy {
  min-width: 0;
}

.hero-kicker {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brass);
  margin-bottom: 10px;
}

.hero-copy h1 {
  font-size: clamp(1.875rem, 3.4vw, 2.75rem);
  line-height: 1.22;
  margin-bottom: 14px;
}

.hero-lead {
  font-size: 0.9375rem;
  color: var(--graphite);
  line-height: 1.8;
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--mist);
}

.hero-facts li {
  min-width: 90px;
  font-size: 0.8125rem;
  color: var(--graphite);
  line-height: 1.5;
}

.fact-num {
  display: block;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.hero-visual {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-figure img {
  aspect-ratio: 16 / 10;
}

.task-card {
  background-color: var(--white);
  border: 1px solid var(--mist);
  border-left: 3px solid var(--brass);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-soft);
}

.task-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brass);
  margin-bottom: 6px;
}

.task-title {
  font-size: 1.0625rem;
  margin-bottom: 8px;
}

.task-desc {
  font-size: 0.875rem;
  color: var(--graphite);
  line-height: 1.7;
  margin-bottom: 10px;
}

.task-steps {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
  counter-reset: taskstep;
}

.task-steps li {
  position: relative;
  padding-left: 22px;
  font-size: 0.8125rem;
  color: var(--graphite);
  line-height: 1.65;
  counter-increment: taskstep;
}

.task-steps li::before {
  content: counter(taskstep, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brass);
  font-variant-numeric: tabular-nums;
}

.task-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-top: 10px;
  border-top: 1px dashed var(--mist);
}

.task-links a {
  font-size: 0.8125rem;
  font-weight: 600;
}

/* 本周专题策展 */

.topic-feature {
  min-width: 0;
}

.topic-media {
  margin-bottom: 18px;
}

.topic-media img {
  aspect-ratio: 21 / 9;
}

.topic-feature .topic-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.topic-feature .topic-item {
  display: flex;
  gap: 12px;
  padding: 16px;
  background-color: var(--white);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.topic-feature .topic-item:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}

.topic-seq {
  flex-shrink: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--brass);
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}

.topic-body {
  min-width: 0;
}

.topic-name {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.topic-body p {
  font-size: 0.8125rem;
  color: var(--graphite);
  line-height: 1.65;
  margin-bottom: 6px;
}

.topic-source {
  font-size: 0.75rem;
  color: var(--teal);
}

/* 观看准备清单 */

.setup-grid {
  min-width: 0;
}

.setup-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.setup-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  background-color: var(--white);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.setup-action {
  font-size: 1rem;
  color: var(--ink);
}

.setup-result {
  flex: 1 1 auto;
  font-size: 0.875rem;
  color: var(--graphite);
  line-height: 1.7;
}

.setup-link {
  font-size: 0.8125rem;
  font-weight: 600;
  align-self: flex-start;
}

/* 服务台分流目录 */

.desk-split {
  min-width: 0;
}

.desk-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.desk-col {
  min-width: 0;
  padding: 18px;
  background-color: var(--white);
  border: var(--line);
  border-radius: var(--radius);
}

.desk-col-title {
  font-size: 0.9375rem;
  color: var(--ink);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--mist);
}

.desk-list li {
  margin-bottom: 8px;
}

.desk-list a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-height: 32px;
  padding: 4px 0;
  font-size: 0.875rem;
  color: var(--graphite);
}

.desk-list a::before {
  content: "·";
  color: var(--brass);
  font-weight: 700;
}

.desk-list a:hover {
  color: var(--ink);
  text-decoration: none;
}

.desk-entry-list li {
  margin-bottom: 10px;
}

.desk-entry-list a {
  display: block;
  padding: 10px 12px;
  font-size: 0.875rem;
  color: var(--ink);
  background-color: var(--paper);
  border: 1px solid var(--mist);
  border-radius: 4px;
}

.desk-entry-list a:hover {
  border-color: var(--teal);
  text-decoration: none;
}

/* 常见问题精选 */

.faq-block {
  min-width: 0;
}

.faq-list {
  background-color: var(--white);
  border: var(--line);
  border-radius: var(--radius);
  padding: 4px 18px;
}

/* 右侧编辑动态 */

.editor-notes {
  position: sticky;
  top: 92px;
  background-color: var(--white);
  border: var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: var(--shadow-soft);
}

.notes-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.note-item {
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--mist);
}

.note-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.note-batch {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brass);
  font-variant-numeric: tabular-nums;
  margin-right: 8px;
}

.note-channel {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--teal);
}

.note-text {
  margin-top: 4px;
  font-size: 0.8125rem;
  color: var(--graphite);
  line-height: 1.65;
}

.notes-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: var(--line);
}

.notes-footer a {
  font-size: 0.8125rem;
  font-weight: 600;
}

/* ==========================================================================
   pages · 内页通用外壳与栏目
   ========================================================================== */

.page-hero,
.page-heading {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: var(--line);
}

.page-kicker,
.page-eyebrow,
.heading-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brass);
  margin-bottom: 8px;
}

.page-lead,
.page-lede,
.heading-lead {
  font-size: 0.9375rem;
  color: var(--graphite);
  line-height: 1.8;
  max-width: 820px;
  margin-bottom: 14px;
}

.page-meta,
.heading-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.page-meta li,
.heading-meta li {
  font-size: 0.8125rem;
  color: var(--graphite);
  padding-left: 14px;
  position: relative;
}

.page-meta li::before,
.heading-meta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  background-color: var(--brass);
  border-radius: 50%;
}

/* 频道导览：左索引 + 主内容（.sidebar-left 位于 .page-layout 上） */

.page-layout.sidebar-left {
  grid-template-columns: 240px minmax(0, 1fr);
}

.side-index {
  position: sticky;
  top: 92px;
  background-color: var(--white);
  border: var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: var(--shadow-soft);
}

.side-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: var(--line);
}

.side-index .index-list a {
  display: block;
  min-height: 36px;
  padding: 6px 8px;
  font-size: 0.875rem;
  color: var(--graphite);
  border-radius: 4px;
  border-left: 2px solid transparent;
}

.side-index .index-list a:hover {
  color: var(--ink);
  background-color: rgba(111, 129, 123, 0.08);
  border-left-color: var(--brass);
  text-decoration: none;
}

.side-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--mist);
  font-size: 0.75rem;
  color: var(--graphite);
  line-height: 1.6;
}

.channel-section {
  margin-bottom: 36px;
}

.media-figure {
  margin-bottom: 18px;
}

.media-figure img {
  aspect-ratio: 21 / 9;
}

.density-control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 14px 16px;
  margin-bottom: 22px;
  background-color: var(--white);
  border: var(--line);
  border-radius: var(--radius);
}

.density-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.density-range {
  flex: 1 1 180px;
  min-width: 140px;
  height: 24px;
  accent-color: var(--teal);
  cursor: pointer;
}

.density-number {
  width: 68px;
  min-height: 40px;
  padding: 4px 8px;
  border: 1px solid var(--mist);
  border-radius: 4px;
  background-color: var(--paper);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.density-readout {
  flex: 0 0 auto;
  font-size: 0.8125rem;
  color: var(--graphite);
}

.density-value {
  font-weight: 600;
  color: var(--brass);
  font-variant-numeric: tabular-nums;
}

.channel-group {
  margin-bottom: 28px;
  scroll-margin-top: 92px;
}

.channel-group-title {
  font-size: 1.0625rem;
  color: var(--ink);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--mist);
}

.channel-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.channel-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 20px;
  padding: 16px 18px;
  background-color: var(--white);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.18s ease;
}

.channel-item:hover {
  border-color: var(--teal);
}

.channel-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.channel-fields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 24px;
  font-size: 0.8125rem;
  color: var(--graphite);
  line-height: 1.65;
}

.channel-fields dt {
  font-weight: 600;
  color: var(--ink);
}

.channel-fields dd {
  margin: 0 0 4px;
}

.channel-enter {
  grid-row: 1;
  grid-column: 2;
  align-self: start;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.field-guide {
  margin-bottom: 36px;
}

.field-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.field-item {
  padding: 16px;
  background-color: var(--white);
  border: var(--line);
  border-radius: var(--radius);
}

.field-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.field-meaning {
  font-size: 0.875rem;
  color: var(--graphite);
  line-height: 1.7;
  margin-bottom: 8px;
}

.field-tip {
  font-size: 0.75rem;
  color: var(--teal);
  line-height: 1.6;
  padding-top: 8px;
  border-top: 1px dashed var(--mist);
}

.channel-advice {
  margin-bottom: 12px;
}

.advice-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.advice-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background-color: var(--white);
  border: var(--line);
  border-radius: var(--radius);
}

.advice-scene {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
}

.advice-pick {
  flex: 1 1 auto;
  font-size: 0.875rem;
  color: var(--graphite);
  line-height: 1.7;
}

.advice-enter {
  align-self: flex-start;
  font-size: 0.8125rem;
  font-weight: 600;
}

.advice-footnote {
  margin-top: 16px;
  font-size: 0.8125rem;
  color: var(--graphite);
}

.advice-footnote a {
  margin-right: 12px;
}

/* 专题日历：主内容 + 右侧标签栏 */

.topic-layout {
  grid-template-columns: minmax(0, 1fr) 260px;
}

.topic-directory,
.topic-structure,
.topic-cross {
  margin-bottom: 36px;
}

.topic-figure {
  margin-bottom: 18px;
}

.topic-figure img {
  aspect-ratio: 21 / 9;
}

.topic-directory .topic-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.topic-directory .topic-item {
  display: block;
  padding: 16px 18px;
  background-color: var(--white);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.topic-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin-bottom: 6px;
}

.topic-batch {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brass);
  font-variant-numeric: tabular-nums;
  padding: 2px 8px;
  background-color: rgba(154, 123, 82, 0.1);
  border-radius: 3px;
}

.topic-directory .topic-name {
  margin-bottom: 0;
}

.topic-desc {
  font-size: 0.875rem;
  color: var(--graphite);
  line-height: 1.75;
  margin-bottom: 10px;
}

.topic-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 24px;
  margin: 0;
  padding-top: 10px;
  border-top: 1px dashed var(--mist);
}

.topic-field {
  font-size: 0.8125rem;
  color: var(--graphite);
  line-height: 1.65;
}

.topic-field dt {
  display: inline;
  font-weight: 600;
  color: var(--ink);
  margin-right: 6px;
}

.topic-field dd {
  display: inline;
  margin: 0;
}

.structure-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.structure-card {
  padding: 18px;
  background-color: var(--white);
  border: var(--line);
  border-radius: var(--radius);
}

.structure-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.structure-card p {
  font-size: 0.875rem;
  color: var(--graphite);
  line-height: 1.7;
}

.structure-note {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--mist);
  font-size: 0.75rem;
  color: var(--teal);
}

.cross-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.cross-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  background-color: var(--white);
  border: var(--line);
  border-radius: var(--radius);
}

.cross-item h3 {
  font-size: 0.9375rem;
}

.cross-item p {
  flex: 1 1 auto;
  font-size: 0.875rem;
  color: var(--graphite);
  line-height: 1.7;
}

.cross-link {
  align-self: flex-start;
  font-size: 0.8125rem;
  font-weight: 600;
}

.topic-layout .sidebar {
  background-color: var(--white);
  border: var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: var(--shadow-soft);
}

.sidebar-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: var(--line);
}

.sidebar-desc {
  font-size: 0.8125rem;
  color: var(--graphite);
  line-height: 1.7;
  margin-bottom: 12px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tag-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 4px 12px;
  font-size: 0.8125rem;
  color: var(--graphite);
  background-color: var(--paper);
  border: 1px solid var(--mist);
  border-radius: 4px;
}

.tag-link:hover {
  color: var(--ink);
  border-color: var(--teal);
  text-decoration: none;
}

.sidebar-block {
  padding-top: 16px;
  border-top: var(--line);
}

.sidebar-block-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.sidebar-links li {
  margin-bottom: 6px;
}

.sidebar-links a {
  display: block;
  min-height: 32px;
  padding: 4px 0;
  font-size: 0.8125rem;
  color: var(--graphite);
}

.sidebar-links a:hover {
  color: var(--ink);
}

/* 观看准备 / 服务台 / 使用帮助 / 反馈说明：主内容 + 右侧 aside
   DOM 中 .page-layout 本身带 .layout-shell，主内容在前、aside 在后 */

.layout-shell {
  grid-template-columns: minmax(0, 1fr) 260px;
}

.layout-shell .content-main,
.layout-shell .page-main,
.layout-shell .layout-main {
  min-width: 0;
  max-width: 760px;
}

.layout-shell .page-main {
  max-width: none;
}

.page-shell {
  max-width: var(--shell);
  margin: 0 auto;
}

.page-meta .meta-item {
  padding-left: 14px;
  position: relative;
}

.page-meta .meta-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  background-color: var(--brass);
  border-radius: 50%;
}

.page-meta dt {
  font-size: 0.75rem;
  color: var(--teal);
  font-weight: 600;
}

.page-meta dd {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--graphite);
}

.content-figure {
  margin: 18px 0;
}

.content-figure img {
  aspect-ratio: 16 / 9;
}

.task-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 14px 0;
  counter-reset: tasknum;
}

.task-item {
  padding: 14px 16px 14px 46px;
  position: relative;
  background-color: var(--white);
  border: var(--line);
  border-radius: var(--radius);
  counter-increment: tasknum;
}

.task-item::before {
  content: counter(tasknum, decimal-leading-zero);
  position: absolute;
  left: 16px;
  top: 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brass);
  font-variant-numeric: tabular-nums;
}

.task-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.task-item .task-desc {
  font-size: 0.875rem;
  color: var(--graphite);
  line-height: 1.7;
  margin-bottom: 6px;
}

.task-entry {
  font-size: 0.8125rem;
  font-weight: 600;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 14px 0;
  counter-reset: stepnum;
}

.step-item {
  padding: 16px 18px 16px 52px;
  position: relative;
  background-color: var(--white);
  border: var(--line);
  border-radius: var(--radius);
  counter-increment: stepnum;
}

.step-item::before {
  content: counter(stepnum, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 16px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--brass);
  font-variant-numeric: tabular-nums;
}

.step-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.step-desc {
  font-size: 0.875rem;
  color: var(--graphite);
  line-height: 1.7;
  margin-bottom: 4px;
}

.step-result {
  font-size: 0.8125rem;
  color: var(--teal);
  line-height: 1.65;
  margin-bottom: 4px;
}

.step-exception {
  font-size: 0.75rem;
  color: var(--graphite);
  line-height: 1.6;
  padding-top: 6px;
  border-top: 1px dashed var(--mist);
}

.result-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0;
}

.result-item {
  padding: 12px 16px;
  background-color: var(--white);
  border-left: 3px solid var(--teal);
  border-radius: 4px;
}

.result-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.result-desc {
  font-size: 0.875rem;
  color: var(--graphite);
  line-height: 1.7;
}

.tip-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0;
}

.tip-item {
  position: relative;
  padding-left: 22px;
  font-size: 0.9375rem;
  color: var(--graphite);
  line-height: 1.75;
}

.tip-item::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  background-color: var(--brass);
  border-radius: 50%;
}

.section-related {
  padding-top: 20px;
  border-top: var(--line);
}

.related-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.related-links a {
  display: block;
  padding: 12px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  background-color: var(--white);
  border: var(--line);
  border-radius: var(--radius);
}

.related-links a:hover {
  border-color: var(--teal);
  text-decoration: none;
}

.content-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.aside-card {
  background-color: var(--white);
  border: var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: var(--shadow-soft);
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: checknum;
}

.checklist-item {
  position: relative;
  padding-left: 26px;
  font-size: 0.8125rem;
  color: var(--graphite);
  line-height: 1.65;
  counter-increment: checknum;
}

.checklist-item::before {
  content: counter(checknum);
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--paper);
  background-color: var(--brass);
  border-radius: 50%;
  font-variant-numeric: tabular-nums;
}

.checklist-num {
  display: inline-block;
  min-width: 20px;
  font-weight: 600;
  color: var(--brass);
  font-variant-numeric: tabular-nums;
}

.checklist-text {
  font-size: 0.8125rem;
  color: var(--graphite);
  line-height: 1.65;
}

.aside-links {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--mist);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.aside-links a {
  font-size: 0.8125rem;
}

/* 服务台 */

.page-main {
  min-width: 0;
}

.page-aside {
  background-color: var(--white);
  border: var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: var(--shadow-soft);
}

.service-directory,
.service-order,
.feedback-entry {
  margin-bottom: 36px;
}

.section-media {
  margin-bottom: 18px;
}

.section-media img {
  aspect-ratio: 21 / 9;
}

.directory-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.directory-col {
  min-width: 0;
  padding: 18px;
  background-color: var(--white);
  border: var(--line);
  border-radius: var(--radius);
}

.directory-col-title {
  font-size: 0.9375rem;
  color: var(--ink);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--mist);
}

.directory-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.directory-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--mist);
}

.directory-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.directory-type {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.directory-item p {
  grid-column: 1;
  font-size: 0.8125rem;
  color: var(--graphite);
  line-height: 1.6;
}

.directory-link {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.order-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: ordernum;
}

.order-item {
  position: relative;
  padding: 16px 18px 16px 50px;
  background-color: var(--white);
  border: var(--line);
  border-radius: var(--radius);
  counter-increment: ordernum;
}

.order-item::before {
  content: counter(ordernum, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 16px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--brass);
  font-variant-numeric: tabular-nums;
}

.order-item-title {
  font-size: 0.9375rem;
  color: var(--ink);
  margin-bottom: 4px;
}

.order-item-desc {
  font-size: 0.875rem;
  color: var(--graphite);
  line-height: 1.7;
  margin-bottom: 6px;
}

.order-item-path {
  font-size: 0.8125rem;
  color: var(--teal);
  font-weight: 600;
}

.entry-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.entry-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  background-color: var(--white);
  border: var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.entry-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}

.entry-card-title {
  font-size: 0.9375rem;
  color: var(--ink);
}

.entry-card-desc {
  flex: 1 1 auto;
  font-size: 0.875rem;
  color: var(--graphite);
  line-height: 1.7;
}

.entry-card-link {
  align-self: flex-start;
  font-size: 0.8125rem;
  font-weight: 600;
}

.scope-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.scope-item {
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--mist);
}

.scope-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.scope-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brass);
  padding: 2px 8px;
  background-color: rgba(154, 123, 82, 0.1);
  border-radius: 3px;
  margin-bottom: 6px;
}

.scope-item p {
  font-size: 0.8125rem;
  color: var(--graphite);
  line-height: 1.7;
}

.aside-more {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 0.8125rem;
  font-weight: 600;
}

/* 使用帮助 */

.layout-main {
  min-width: 0;
  max-width: 760px;
}

.article-media {
  margin-bottom: 24px;
}

.article-media img {
  aspect-ratio: 16 / 9;
}

.faq-section {
  margin-bottom: 32px;
}

.faq-section h2,
.path-section h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.section-intro {
  font-size: 0.875rem;
  color: var(--graphite);
  line-height: 1.7;
  margin-bottom: 14px;
}

.faq-section .faq-item {
  background-color: var(--white);
  border: var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
  padding: 0 16px;
}

.faq-section .faq-question {
  padding: 14px 0;
}

.faq-section .faq-answer {
  padding: 0 0 16px;
}

.path-section {
  margin-bottom: 12px;
}

.path-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.path-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  background-color: var(--white);
  border: var(--line);
  border-radius: var(--radius);
}

.path-card h3 {
  font-size: 0.9375rem;
}

.path-card p {
  flex: 1 1 auto;
  font-size: 0.875rem;
  color: var(--graphite);
  line-height: 1.7;
}

.card-link {
  align-self: flex-start;
  font-size: 0.8125rem;
  font-weight: 600;
}

.layout-side {
  background-color: var(--white);
  border: var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: var(--shadow-soft);
}

.aside-link-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.aside-link-list li {
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--mist);
}

.aside-link-list li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.aside-link-list a {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.aside-link-list a:hover {
  color: var(--brass);
}

.aside-link-list .aside-desc {
  display: block;
  font-size: 0.75rem;
  color: var(--graphite);
  line-height: 1.6;
}

.aside-note {
  padding-top: 14px;
  border-top: var(--line);
}

.aside-note-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.aside-note p {
  font-size: 0.8125rem;
  color: var(--graphite);
  line-height: 1.7;
}

/* 反馈说明 */

.layout-main-right {
  grid-template-columns: minmax(0, 1fr) 260px;
}

.feedback-main {
  min-width: 0;
  max-width: 760px;
}

.feedback-scope-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 14px 0;
}

.feedback-scope-item {
  padding: 16px 18px;
  background-color: var(--white);
  border: var(--line);
  border-left: 3px solid var(--brass);
  border-radius: var(--radius);
}

.feedback-item-standard {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.feedback-item-example {
  font-size: 0.875rem;
  color: var(--graphite);
  line-height: 1.7;
}

.feedback-writing-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0;
  counter-reset: writenum;
}

.feedback-writing-item {
  position: relative;
  padding: 12px 16px 12px 44px;
  background-color: var(--white);
  border: var(--line);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--graphite);
  line-height: 1.7;
  counter-increment: writenum;
}

.feedback-writing-item::before {
  content: counter(writenum, decimal-leading-zero);
  position: absolute;
  left: 16px;
  top: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brass);
  font-variant-numeric: tabular-nums;
}

.feedback-help-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.feedback-help-item a {
  display: block;
  padding: 12px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  background-color: var(--white);
  border: var(--line);
  border-radius: var(--radius);
}

.feedback-help-item a:hover {
  border-color: var(--teal);
  text-decoration: none;
}

.feedback-not-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0;
}

.feedback-not-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.875rem;
  color: var(--graphite);
  line-height: 1.7;
}

.feedback-not-list li::before {
  content: "×";
  position: absolute;
  left: 2px;
  top: 0;
  color: var(--teal);
  font-weight: 600;
}

.feedback-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.aside-block {
  background-color: var(--white);
  border: var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: var(--shadow-soft);
}

.checklist-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: checknum;
}

.checklist-body {
  display: block;
}

.checklist-name {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.checklist-note {
  display: block;
  font-size: 0.75rem;
  color: var(--graphite);
  line-height: 1.6;
}

/* ==========================================================================
   pages · 404
   ========================================================================== */

.error-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding-top: 48px;
}

.error-panel {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 32px;
  background-color: var(--white);
  border: var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  text-align: left;
}

.error-code {
  font-size: 3.5rem;
  font-weight: 600;
  line-height: 1;
  color: var(--brass);
  font-variant-numeric: tabular-nums;
  margin-bottom: 12px;
}

.error-panel h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 12px;
}

.error-lead {
  font-size: 0.9375rem;
  color: var(--graphite);
  line-height: 1.8;
  margin-bottom: 18px;
}

.error-tips {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.error-tips li {
  position: relative;
  padding-left: 22px;
  font-size: 0.875rem;
  color: var(--graphite);
  line-height: 1.7;
}

.error-tips li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  background-color: var(--brass);
  border-radius: 50%;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.error-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  border: 1px solid var(--mist);
  color: var(--ink);
  background-color: transparent;
}

.error-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
  text-decoration: none;
}

.error-btn-primary {
  background-color: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.error-btn-primary:hover {
  background-color: var(--brass);
  border-color: var(--brass);
  color: var(--paper);
}

.error-links {
  padding-top: 20px;
  border-top: var(--line);
}

.error-links-title {
  font-size: 0.9375rem;
  margin-bottom: 12px;
}

.error-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.error-links a {
  font-size: 0.875rem;
  font-weight: 600;
}

/* ==========================================================================
   responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .home-layout {
    grid-template-columns: 200px minmax(0, 1fr);
  }

  .editor-notes {
    position: static;
    grid-column: 1 / -1;
  }

  .notes-list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .note-item {
    flex: 1 1 180px;
    padding-bottom: 0;
    border-bottom: none;
  }

  .page-layout.sidebar-left {
    grid-template-columns: 200px minmax(0, 1fr);
  }

  .topic-layout {
    grid-template-columns: minmax(0, 1fr) 220px;
  }

  .layout-shell {
    grid-template-columns: minmax(0, 1fr) 220px;
  }

  .footer-inner {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .nav-list a {
    padding: 0 8px;
    font-size: 0.875rem;
  }

  .tool-link {
    padding: 0 12px;
  }

  .hero-stage {
    grid-template-columns: minmax(0, 1fr);
  }

  .topic-feature .topic-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .structure-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: 64px;
    gap: 12px;
    padding: 0 16px;
  }

  .site-nav {
    display: none;
  }

  .tool-link {
    display: none;
  }

  .menu-toggle {
    display: flex;
    margin-left: auto;
  }

  .site-main {
    padding: 0 16px 56px;
  }

  .inner-main {
    padding-top: 20px;
  }

  .home-main {
    padding-top: 20px;
  }

  /* 首页：主内容在前，两侧栏依次后置 */

  .home-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .home-layout .main-column {
    order: 1;
    gap: 28px;
  }

  .home-layout .channel-index {
    order: 2;
    position: static;
  }

  .home-layout .editor-notes {
    order: 3;
    position: static;
  }

  .notes-list {
    flex-direction: column;
  }

  .note-item {
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--mist);
  }

  .hero-actions .btn {
    flex: 1 1 140px;
  }

  .hero-facts {
    gap: 12px 16px;
  }

  .setup-cards,
  .desk-columns,
  .directory-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  /* 频道导览：主内容在前，题材索引后置 */

  .page-layout.sidebar-left {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .page-layout.sidebar-left .content-main {
    order: 1;
  }

  .page-layout.sidebar-left .side-index {
    order: 2;
    position: static;
  }

  .channel-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-enter {
    grid-row: auto;
    grid-column: 1;
    justify-self: start;
  }

  .channel-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  /* 专题日历：主内容在前，标签栏后置 */

  .topic-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .topic-layout .content-main {
    order: 1;
  }

  .topic-layout .sidebar {
    order: 2;
  }

  .topic-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  /* 观看准备 / 服务台 / 使用帮助 / 反馈说明：主内容在前，aside 后置 */

  .layout-shell,
  .layout-main-right {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .layout-shell .content-main,
  .layout-shell .page-main,
  .layout-shell .layout-main,
  .layout-main-right .content-main {
    order: 1;
    max-width: none;
  }

  .layout-shell .content-aside,
  .layout-shell .page-aside,
  .layout-shell .layout-side,
  .layout-main-right .content-aside {
    order: 2;
  }

  .page-title {
    font-size: clamp(1.625rem, 6vw, 2.25rem);
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
    padding-bottom: 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }

  .error-panel {
    padding: 28px 20px;
  }
}

@media (max-width: 520px) {
  .header-inner {
    padding: 0 14px;
  }

  .site-main {
    padding: 0 14px 48px;
  }

  .brand-slogan {
    font-size: 1rem;
  }

  .hero-copy h1 {
    font-size: 1.625rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .section-more {
    align-self: flex-start;
  }

  .density-control {
    align-items: stretch;
  }

  .density-range {
    flex: 1 1 100%;
  }

  .density-number {
    width: 80px;
  }

  .step-item,
  .order-item {
    padding-left: 42px;
  }

  .step-item::before,
  .order-item::before {
    left: 14px;
  }

  .directory-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .directory-link {
    grid-row: auto;
    grid-column: 1;
    justify-self: start;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-brand {
    grid-column: 1;
  }

  .error-code {
    font-size: 2.75rem;
  }
}

/* 程序验收反馈：移动端正文优先 */
@media (max-width: 768px) {
  .site-main :is(.page-content, .main-content, .content-main) {
    order: 1;
  }

  .site-main :is(aside, .sidebar) {
    order: 2;
  }
}
