/* ==========================================================================
   华人吃瓜网 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --ink: #16181d;
  --paper: #f6f4ef;
  --paper-deep: #efece4;
  --red: #c2352b;
  --blue: #1f4e79;
  --text: #33363c;
  --muted: #6c6f76;
  --rule: #ddd7cb;
  --rule-strong: #c4bdae;
  --white: #fffdf9;
  --serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --container: 1120px;
  --gutter: 24px;
  --radius: 3px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.8;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

figcaption {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 8px;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
}

time,
.timeline-date,
.topic-index,
.check-num,
.channel-number,
.guide-step-no,
.checklist-index,
.step-num {
  font-variant-numeric: tabular-nums;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   layout：骨架
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.site-main {
  display: block;
}

.inner-main {
  padding-bottom: 56px;
}

/* 页头 */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: 64px;
  transition: min-height 0.18s ease;
}

.site-header.is-compact .header-inner {
  min-height: 48px;
}

.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  flex-shrink: 0;
  color: var(--ink);
  padding: 8px 0;
  min-height: 44px;
}

.brand:hover {
  text-decoration: none;
  color: var(--ink);
}

.brand-name {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.brand-tagline {
  font-size: 11px;
  line-height: 1.3;
  color: var(--muted);
}

.site-header.is-compact .brand-name {
  font-size: 18px;
}

.site-header.is-compact .brand-tagline {
  display: none;
}

/* 导航 */

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 14px;
  color: var(--text);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.nav-item a:hover {
  color: var(--red);
  text-decoration: none;
}

.nav-item.is-current a,
.nav-item a.is-current {
  color: var(--red);
  font-weight: 600;
  border-bottom-color: var(--red);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
}

/* 面包屑 */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px var(--gutter) 0;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--red);
}

.breadcrumb-sep {
  color: var(--rule-strong);
}

.breadcrumb-current {
  color: var(--text);
}

/* 页面标题区 */

.page-header {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px var(--gutter) 0;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 20px;
}

.page-title {
  font-size: 30px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--ink);
}

.page-title-block {
  padding-top: 18px;
  padding-bottom: 0;
}

.page-lead,
.page-lede {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  max-width: 780px;
}

.page-head {
  padding-top: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 28px;
}

.page-head .page-lead {
  margin-bottom: 10px;
}

.page-meta {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.meta-label {
  color: var(--muted);
}

/* 页脚 */

.site-footer {
  background: var(--paper-deep);
  border-top: 2px solid var(--ink);
  margin-top: 56px;
  padding: 36px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.4fr) minmax(0, 1.4fr);
  gap: 28px 32px;
  align-items: start;
}

.footer-summary {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
  margin: 0 0 10px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  min-height: 28px;
}

.footer-links a:hover {
  color: var(--red);
}

.footer-boundary p {
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}

.footer-brand-name {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.footer-brand-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 8px;
}

.footer-copy {
  font-size: 12px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   components：通用组件
   -------------------------------------------------------------------------- */

.section {
  padding: 40px 0 0;
}

.section-head {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}

.section-head h2 {
  font-size: 22px;
  line-height: 1.4;
  margin-bottom: 6px;
}

.section-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 820px;
}

.section-title {
  position: relative;
  font-size: 20px;
  line-height: 1.4;
  padding-left: 12px;
  margin-bottom: 10px;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: var(--blue);
}

.section-lead {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 18px;
}

.section-intro {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 16px;
}

.section-more {
  margin-top: 16px;
  font-size: 14px;
}

.section-more a {
  font-weight: 600;
}

/* 频道色标 */

.channel-mark {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  border: 2px solid var(--red);
  background: transparent;
}

.channel-mark.mark-red,
.channel-mark--red {
  border-color: var(--red);
  background: transparent;
}

.channel-mark.mark-blue,
.channel-mark--blue {
  border-color: var(--blue);
  background: transparent;
}

.channel-cell:hover .channel-mark,
.channel-block:hover .channel-mark {
  background: var(--red);
}

.channel-cell:hover .channel-mark.mark-blue,
.channel-block:hover .channel-mark--blue {
  background: var(--blue);
}

/* 频道标签 */

.channel-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 4px 12px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
}

.channel-tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 1px;
  background: var(--red);
  flex-shrink: 0;
}

.channel-tag:hover {
  color: var(--ink);
  border-color: var(--red);
  text-decoration: none;
}

.channel-tag.tag-blue::before,
.channel-tag--blue::before {
  background: var(--blue);
}

.channel-tag--red::before {
  background: var(--red);
}

/* 按钮 */

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  line-height: 1.4;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border: 1px solid var(--red);
}

.btn-primary:hover {
  background: #a92c23;
  border-color: #a92c23;
  color: var(--white);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
}

/* 图片容器 */

.hero-figure,
.section-figure,
.topic-figure,
.guide-figure,
.page-figure,
.section-media,
.channel-figure {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--white);
  padding: 8px;
  overflow: hidden;
}

.hero-figure img,
.section-figure img,
.topic-figure img,
.guide-figure img,
.page-figure img,
.section-media img,
.channel-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 2px;
  background: var(--paper-deep);
}

/* FAQ 折叠 */

.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
}

.faq-item {
  border-bottom: 1px solid var(--rule);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 4px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 400;
  color: var(--red);
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-question:hover {
  color: var(--red);
}

.faq-answer {
  padding: 0 4px 16px;
}

.faq-answer p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
}

/* 相关链接（首页底部） */

.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px var(--gutter) 0;
  font-size: 13px;
}

.related-links-label {
  color: var(--muted);
}

.related-links-item {
  color: var(--blue);
}

/* --------------------------------------------------------------------------
   pages：首页
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 100;
  display: inline-block;
  max-width: 100%;
  padding: 8px 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--white);
  background: var(--ink);
  border-radius: 0 0 var(--radius) 0;
  white-space: normal;
  transform: translateY(-120%);
}

.skip-link:focus {
  transform: translateY(0);
  color: var(--white);
}

.home-main {
  padding-bottom: 8px;
}

/* 首屏 */

.hero {
  padding: 32px 0 8px;
  border-bottom: 1px solid var(--rule);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr);
  gap: 36px;
  align-items: start;
}

.hero-lead {
  min-width: 0;
}

.hero-kicker {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

.hero-lead h1 {
  font-size: 38px;
  line-height: 1.3;
  margin-bottom: 14px;
}

.hero-intro {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 10px;
  max-width: 620px;
}

.channel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-aside {
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 18px 20px 20px;
}

.aside-title {
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 10px;
}

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.boundary-list li {
  position: relative;
  padding-left: 14px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--text);
}

.boundary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  background: var(--red);
  border-radius: 1px;
}

.hero-meta {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  padding-top: 10px;
  border-top: 1px dashed var(--rule);
  margin-bottom: 14px;
}

.hero-figure img {
  aspect-ratio: 4 / 3;
}

/* 频道分类总览 */

.channel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}

.channel-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 16px;
  background: var(--white);
}

.channel-cell .channel-mark {
  margin-bottom: 2px;
}

.channel-name {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
}

.channel-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  flex-grow: 1;
}

.channel-more {
  font-size: 12px;
  color: var(--blue);
  margin-top: 4px;
}

.section-channels .section-figure {
  margin-top: 20px;
}

/* 本期专题片单 */

.topic-list {
  border-top: 1px solid var(--rule);
}

.topic-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.topic-index {
  flex-shrink: 0;
  width: 34px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--red);
  line-height: 1.5;
}

.topic-body {
  min-width: 0;
  flex-grow: 1;
}

.topic-name {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 4px;
}

.topic-scope {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
}

.topic-order {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 4px;
}

/* 观看前须知 */

.notice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.notice-col {
  min-width: 0;
  padding-top: 12px;
  border-top: 2px solid var(--ink);
}

.notice-title {
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 10px;
}

.notice-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notice-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
}

.notice-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border: 1px solid var(--blue);
  border-radius: 1px;
}

/* 入口核验清单 */

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 32px;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
}

.check-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  background: var(--ink);
  border-radius: 2px;
}

.check-conclusion {
  margin-top: 20px;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
  background: var(--paper-deep);
  border-left: 3px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* 更新记录摘要（首页横向时间线） */

.section-log .timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}

.section-log .timeline-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 14px;
  background: var(--white);
}

.section-log .timeline-date {
  font-size: 12px;
  color: var(--muted);
}

.section-log .timeline-col {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
}

.section-log .timeline-text {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
}

/* 反馈引导条 */

.feedback-bar {
  margin-top: 44px;
  background: var(--ink);
  color: var(--white);
}

.feedback-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.feedback-bar-text {
  min-width: 0;
  flex: 1 1 320px;
}

.feedback-bar-text h2 {
  font-size: 19px;
  line-height: 1.4;
  color: var(--white);
  margin-bottom: 6px;
}

.feedback-bar-text p {
  font-size: 13px;
  line-height: 1.7;
  color: #cfcabd;
}

.feedback-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feedback-tag {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--white);
  border: 1px solid #575a62;
  border-radius: var(--radius);
}

.feedback-tag:hover {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   pages：频道分类
   -------------------------------------------------------------------------- */

.channel-index {
  padding-top: 22px;
  padding-bottom: 6px;
}

.channel-index-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}

.channel-index-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 4px 12px;
  font-size: 13px;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
}

.channel-index-item:hover {
  color: var(--red);
  border-color: var(--red);
  text-decoration: none;
}

.channel-index-item .channel-mark {
  width: 9px;
  height: 9px;
}

.channel-section {
  padding-top: 8px;
}

.channel-block {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
}

.channel-block-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.channel-block-side .channel-mark {
  width: 16px;
  height: 16px;
  border-width: 3px;
}

.channel-number {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: var(--rule-strong);
}

.channel-block-body {
  min-width: 0;
}

.channel-block-body .channel-name {
  font-size: 20px;
  margin-bottom: 8px;
}

.channel-position {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 12px;
}

.channel-forms {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.channel-forms li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

.channel-forms li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 1px;
  background: var(--rule-strong);
}

.channel-rhythm {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  padding-top: 10px;
  border-top: 1px dashed var(--rule);
}

.channel-notes {
  padding-top: 32px;
}

.channel-notes-title {
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 10px;
}

.channel-notes-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.channel-notes-item {
  min-width: 0;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--blue);
  border-radius: var(--radius);
}

.channel-figure {
  margin-top: 24px;
}

.related-links-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.related-link-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.related-link-name {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.related-link-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.related-link-item:hover {
  border-color: var(--red);
  text-decoration: none;
}

.related-link-item:hover .related-link-name {
  color: var(--red);
}

/* --------------------------------------------------------------------------
   pages：专题片单
   -------------------------------------------------------------------------- */

.page-body {
  padding-top: 22px;
}

.topic-figure {
  margin-bottom: 28px;
}

.topic-intro {
  padding-top: 0;
}

.topic-intro-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.topic-intro-item {
  min-width: 0;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
}

.topic-intro-heading {
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.topic-intro-item p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
}

.topic-list-section {
  padding-top: 36px;
}

.topic-list-section .topic-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) minmax(0, 240px);
  gap: 20px;
  align-items: start;
  padding: 16px 0;
}

.topic-list-section .topic-index {
  width: auto;
  font-size: 20px;
}

.topic-main {
  min-width: 0;
}

.topic-list-section .topic-order {
  margin-top: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.topic-adjust {
  padding-top: 36px;
}

.topic-adjust-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.topic-adjust-item {
  min-width: 0;
  padding: 16px;
  background: var(--paper-deep);
  border-radius: var(--radius);
}

.topic-adjust-heading {
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.topic-adjust-item p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
}

.related-section {
  padding-top: 36px;
}

.related-section .related-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: none;
  margin: 16px 0 0;
  padding: 0;
}

.related-item {
  min-width: 0;
}

.related-item a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 44px;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.related-item a:hover {
  border-color: var(--red);
  text-decoration: none;
}

.related-name {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.related-item a:hover .related-name {
  color: var(--red);
}

.related-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   pages：观看指南
   -------------------------------------------------------------------------- */

.page-title {
  padding-bottom: 0;
}

section.page-title {
  padding: 18px 0 0;
}

.page-title-inner {
  padding-top: 0;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(0, 300px);
  gap: 40px;
  align-items: start;
  padding-top: 26px;
}

.layout-shell {
  justify-content: space-between;
}

.page-main {
  min-width: 0;
}

.page-main-column {
  min-width: 0;
}

.page-aside,
.page-sidebar,
.sidebar {
  min-width: 0;
}

.guide-figure {
  margin-bottom: 24px;
}

.guide-section {
  padding-top: 28px;
}

.guide-section:first-of-type {
  padding-top: 8px;
}

.guide-section h2 {
  position: relative;
  font-size: 20px;
  line-height: 1.4;
  padding-left: 12px;
  margin-bottom: 10px;
}

.guide-section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: var(--blue);
}

.guide-section > p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 14px;
}

.guide-checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guide-check-item {
  min-width: 0;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.guide-check-item h3 {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 4px;
}

.guide-check-item p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  counter-reset: guide-step;
}

.guide-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.guide-step-no {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  background: var(--blue);
  border-radius: 2px;
}

.guide-step-body {
  min-width: 0;
  flex-grow: 1;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
}

/* 自查表 */

.guide-table {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.guide-table-head,
.guide-table-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 0;
}

.guide-table-head {
  background: var(--paper-deep);
  border-bottom: 1px solid var(--rule);
}

.guide-table-row {
  border-bottom: 1px solid var(--rule);
}

.guide-table-row:last-child {
  border-bottom: 0;
}

.guide-cell {
  min-width: 0;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
  border-right: 1px solid var(--rule);
}

.guide-cell:last-child {
  border-right: 0;
}

.guide-table-head .guide-cell {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
}

.guide-cell-symptom {
  font-weight: 600;
  color: var(--ink);
}

.guide-note {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}

/* 侧栏 */

.aside-block {
  padding: 16px 18px 18px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
}

.aside-block + .aside-block {
  margin-top: 20px;
}

.aside-block .aside-title {
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 10px;
}

.aside-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aside-list li {
  position: relative;
  padding-left: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
}

.aside-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  background: var(--red);
  border-radius: 1px;
}

.aside-list a {
  color: var(--blue);
}

/* --------------------------------------------------------------------------
   pages：入口核验
   -------------------------------------------------------------------------- */

.page-entry-check .page-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(0, 300px);
  gap: 40px;
  align-items: start;
  padding-top: 26px;
}

.content-section {
  padding-top: 30px;
}

.content-section:first-child {
  padding-top: 4px;
}

.content-section h2 {
  position: relative;
  font-size: 20px;
  line-height: 1.4;
  padding-left: 12px;
  margin-bottom: 10px;
}

.content-section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: var(--blue);
}

.content-section .section-figure {
  margin: 16px 0 18px;
}

.content-section .check-list {
  gap: 12px;
}

.content-section .check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.75;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.content-section .check-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  background: var(--blue);
  border-radius: 2px;
}

.check-body {
  min-width: 0;
  flex-grow: 1;
}

.check-verdict {
  margin-top: 14px;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
  background: var(--paper-deep);
  border-left: 3px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.step-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  background: var(--ink);
  border-radius: 2px;
}

.step-body {
  min-width: 0;
  flex-grow: 1;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
}

.step-stop {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--red);
}

/* 侧栏块（入口核验） */

.sidebar-block {
  padding: 16px 18px 18px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--ink);
  border-radius: var(--radius);
}

.sidebar-block + .sidebar-block {
  margin-top: 20px;
}

.sidebar-title {
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 10px;
}

.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-list li {
  position: relative;
  padding-left: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
}

.sidebar-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  background: var(--rule-strong);
  border-radius: 1px;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 13px;
  color: var(--blue);
}

.sidebar-note {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--rule);
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   pages：更新记录
   -------------------------------------------------------------------------- */

.page-update-log .page-head {
  margin-bottom: 8px;
}

.page-figure {
  margin: 20px 0 8px;
}

.page-update-log .timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-top: 8px;
  padding-left: 0;
}

.page-update-log .timeline-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  min-width: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}

.page-update-log .timeline-date {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  padding-top: 1px;
}

.timeline-body {
  min-width: 0;
}

.timeline-channel {
  display: inline-block;
  margin-bottom: 4px;
  padding: 1px 8px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--white);
  background: var(--red);
  border-radius: 2px;
}

.page-update-log .timeline-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
}

.change-list,
.revision-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
  border-top: 1px solid var(--rule);
}

.change-item,
.revision-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  min-width: 0;
}

.change-title,
.revision-target {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 4px;
}

.change-text,
.revision-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
}

.section-note {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   pages：问题反馈
   -------------------------------------------------------------------------- */

.page-feedback .page-head {
  padding: 18px 0 0;
  border-bottom: 0;
  margin-bottom: 0;
}

.page-feedback .page-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(0, 300px);
  gap: 40px;
  align-items: start;
  padding-top: 22px;
}

.main-column {
  min-width: 0;
}

.page-feedback .section-media {
  margin: 16px 0 18px;
}

.feedback-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 4px;
}

.feedback-type {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.feedback-type .channel-tag {
  align-self: flex-start;
  min-height: 28px;
  padding: 2px 10px;
  font-size: 12px;
  border: 0;
  background: var(--paper-deep);
}

.feedback-type-title {
  font-size: 16px;
  line-height: 1.4;
}

.feedback-type-desc {
  font-size: 13px;
  line-height: 1.75;
  color: var(--text);
}

.feedback-type-detail {
  margin: 0;
  padding-top: 10px;
  border-top: 1px dashed var(--rule);
  font-size: 13px;
  line-height: 1.7;
}

.feedback-type-detail dt {
  font-weight: 600;
  color: var(--ink);
  margin-top: 6px;
}

.feedback-type-detail dt:first-child {
  margin-top: 0;
}

.feedback-type-detail dd {
  margin: 2px 0 0;
  color: var(--muted);
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.checklist-index {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  background: var(--red);
  border-radius: 2px;
}

.checklist-body {
  min-width: 0;
  flex-grow: 1;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
}

.checklist-title {
  display: block;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 2px;
}

/* --------------------------------------------------------------------------
   pages：404
   -------------------------------------------------------------------------- */

.error-main {
  padding: 56px 0 8px;
}

.error-container {
  max-width: 760px;
}

.error-code {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  color: var(--rule-strong);
  margin-bottom: 8px;
}

.error-title {
  font-size: 28px;
  line-height: 1.35;
  margin-bottom: 10px;
}

.error-lead {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 28px;
}

.error-section {
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.error-section + .error-section {
  margin-top: 20px;
}

.error-section-title {
  font-size: 17px;
  line-height: 1.4;
  margin-bottom: 10px;
}

.error-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
}

.error-list li {
  min-width: 0;
}

.error-list a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 14px;
}

.error-action {
  margin-top: 32px;
}

.error-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: var(--red);
  border-radius: var(--radius);
}

.error-button:hover {
  background: #a92c23;
  color: var(--white);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .hero-lead h1 {
    font-size: 32px;
  }

  .channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-log .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-layout,
  .page-entry-check .page-layout,
  .page-feedback .page-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 32px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .channel-notes-list,
  .related-links-list,
  .topic-intro-list,
  .related-section .related-links,
  .feedback-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .notice-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .topic-list-section .topic-row {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
  }

  .topic-list-section .topic-order {
    grid-column: 2;
    margin-top: 2px;
  }

  .page-layout,
  .page-entry-check .page-layout,
  .page-feedback .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .page-update-log .timeline-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }

  body.site-body {
    font-size: 15px;
  }

  /* 页头与移动导航 */

  .header-inner {
    min-height: 56px;
    flex-wrap: wrap;
    gap: 0;
  }

  .site-header.is-compact .header-inner {
    min-height: 48px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-tagline {
    font-size: 10px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    order: 3;
    width: 100%;
    flex-basis: 100%;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 4px 0 12px;
    border-top: 1px solid var(--rule);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-item a {
    min-height: 48px;
    padding: 0 4px;
    font-size: 15px;
    border-bottom: 1px solid var(--rule);
  }

  .nav-item.is-current a,
  .nav-item a.is-current {
    border-bottom-color: var(--rule);
    border-left: 3px solid var(--red);
    padding-left: 10px;
  }

  /* 页面标题 */

  .page-title {
    font-size: 24px;
    line-height: 1.4;
  }

  .hero-lead h1 {
    font-size: 27px;
    line-height: 1.35;
  }

  .hero {
    padding-top: 22px;
  }

  .hero-intro {
    font-size: 14px;
  }

  .channel-tags {
    margin: 14px 0 18px;
  }

  .channel-tag {
    min-height: 36px;
  }

  .hero-actions {
    gap: 10px;
  }

  .btn-primary,
  .btn-ghost {
    flex: 1 1 140px;
  }

  /* 首页模块 */

  .section {
    padding-top: 30px;
  }

  .section-head h2 {
    font-size: 19px;
  }

  .channel-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-cell {
    padding: 14px;
  }

  .section-log .timeline {
    grid-template-columns: minmax(0, 1fr);
  }

  .check-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .topic-row {
    gap: 12px;
    padding: 12px 0;
  }

  .topic-index {
    width: 26px;
    font-size: 16px;
  }

  .feedback-bar {
    margin-top: 32px;
  }

  .feedback-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .feedback-tags {
    width: 100%;
  }

  .feedback-tag {
    flex: 1 1 auto;
    justify-content: center;
    min-height: 44px;
  }

  .related-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-top: 16px;
  }

  .related-links-item {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
  }

  /* 频道分类页 */

  .channel-index-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 14px;
    -webkit-overflow-scrolling: touch;
  }

  .channel-index-item {
    flex-shrink: 0;
    min-height: 40px;
  }

  .channel-block {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 20px 0;
  }

  .channel-block-side {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .channel-number {
    font-size: 20px;
  }

  .channel-notes-list,
  .related-links-list,
  .topic-intro-list,
  .related-section .related-links,
  .feedback-type-grid,
  .topic-adjust-list {
    grid-template-columns: minmax(0, 1fr);
  }

  /* 专题片单页 */

  .topic-list-section .topic-row {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  /* 观看指南表格 */

  .guide-table-head {
    display: none;
  }

  .guide-table-row {
    grid-template-columns: minmax(0, 1fr);
    padding: 10px 0;
  }

  .guide-cell {
    border-right: 0;
    padding: 4px 14px;
  }

  .guide-cell-symptom {
    font-size: 14px;
    padding-top: 6px;
  }

  .guide-cell-cause::before {
    content: "原因：";
    color: var(--muted);
  }

  .guide-cell-fix::before {
    content: "处理：";
    color: var(--muted);
  }

  /* 404 */

  .error-main {
    padding-top: 36px;
  }

  .error-code {
    font-size: 44px;
  }

  .error-title {
    font-size: 22px;
  }

  .error-list {
    grid-template-columns: minmax(0, 1fr);
  }

  /* 页脚折叠 */

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .site-footer {
    padding: 24px 0 20px;
  }

  .footer-group {
    border-bottom: 1px solid var(--rule);
  }

  .footer-group .footer-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    margin: 0;
    cursor: pointer;
    list-style: none;
  }

  .footer-group .footer-summary::-webkit-details-marker {
    display: none;
  }

  .footer-group .footer-summary::after {
    content: "+";
    font-family: var(--sans);
    font-size: 16px;
    color: var(--muted);
  }

  .footer-group[open] .footer-summary::after {
    content: "−";
  }

  .footer-links {
    padding-bottom: 12px;
  }

  .footer-links a {
    min-height: 40px;
  }

  .footer-boundary {
    border-bottom: 0;
  }

  .footer-boundary .footer-summary {
    cursor: default;
    margin-bottom: 6px;
  }

  .footer-boundary .footer-summary::after {
    content: none;
  }

  .footer-brand {
    padding-top: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .header-inner {
    transition: none;
  }
}
