/* ==========================================================================
   麻花影视 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */
:root {
  --paper: #f7f5ef;
  --paper-deep: #efece2;
  --ink: #10222e;
  --ink-soft: #3a4b57;
  --teal: #127a7a;
  --teal-deep: #0d5e5e;
  --amber: #c07a1e;
  --stone: #d9d4c8;
  --stone-light: #e7e2d6;
  --white: #fffdf8;
  --serif: "Noto Serif SC", "Songti SC", "Source Han Serif SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --wrap: 1120px;
  --gap: 24px;
  --radius: 6px;
  --line: 1px solid var(--stone);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  line-height: 1.35;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--teal-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
}

strong {
  font-weight: 600;
  color: var(--ink);
}

dl,
dd {
  margin: 0;
}

/* --------------------------------------------------------------------------
   layout · 全站骨架
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--ink);
  border-bottom: 1px solid rgba(217, 212, 200, 0.22);
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--paper);
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex: 0 0 auto;
}

.brand:hover {
  color: var(--white);
  text-decoration: none;
}

.primary-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  color: #cfd8dc;
  font-size: 15px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--white);
  text-decoration: none;
  border-bottom-color: rgba(18, 122, 122, 0.6);
}

.nav-link.is-current {
  color: var(--white);
  border-bottom-color: var(--teal);
  background-color: rgba(18, 122, 122, 0.16);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(217, 212, 200, 0.4);
  border-radius: var(--radius);
  background-color: transparent;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 0 0 auto;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--paper);
}

.site-main {
  display: block;
}

.inner-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px 64px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 60;
  padding: 10px 16px;
  background-color: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  transition: top 0.18s ease;
}

.skip-link:focus {
  top: 10px;
  text-decoration: none;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 20px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.breadcrumb a {
  color: var(--teal);
}

.breadcrumb-sep {
  color: #9aa5ab;
}

.breadcrumb-current {
  color: var(--ink-soft);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.breadcrumb-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.breadcrumb-list li + li::before {
  content: "/";
  color: #9aa5ab;
}

/* 页面标题区（全站统一） */
.page-header {
  padding: 14px 0 0;
  border-bottom: 1px solid var(--stone);
  margin-bottom: 32px;
  padding-bottom: 20px;
}

.page-title {
  font-size: 34px;
  line-height: 1.3;
  color: var(--ink);
  max-width: 900px;
}

/* 页脚 */
.site-footer {
  background-color: var(--ink);
  color: #d3dbdf;
  margin-top: 24px;
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 36px 20px 28px;
}

.back-to-main {
  display: inline-block;
  font-size: 13px;
  color: var(--paper);
  border-bottom: 1px solid rgba(247, 245, 239, 0.4);
  padding-bottom: 2px;
  margin-bottom: 28px;
}

.back-to-main:hover {
  color: var(--white);
  text-decoration: none;
  border-bottom-color: var(--teal);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(217, 212, 200, 0.22);
}

.footer-head {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #9fb2ba;
  margin-bottom: 12px;
}

.footer-list {
  display: grid;
  gap: 8px;
}

.footer-list a {
  color: #d3dbdf;
  font-size: 14px;
}

.footer-list a:hover {
  color: var(--white);
  text-decoration: none;
}

.footer-about {
  padding-top: 20px;
  font-size: 13px;
  color: #b6c3c9;
}

.footer-note {
  padding-top: 6px;
  font-size: 12px;
  color: #8b9ba3;
}

/* --------------------------------------------------------------------------
   components · 通用模块
   -------------------------------------------------------------------------- */
.section {
  padding: 36px 0;
  border-bottom: 1px solid var(--stone);
}

.section:last-child {
  border-bottom: 0;
}

.section-title {
  font-size: 23px;
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 4px solid var(--teal);
}

.section-lead,
.section-text,
.section-note,
.section-intro {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 72ch;
}

.section-text + .section-text,
.section-lead + .section-lead {
  margin-top: 10px;
}

.section-note {
  font-size: 13px;
  color: #6f7d84;
  margin-bottom: 16px;
}

.section-source {
  margin-top: 14px;
  font-size: 13px;
  color: #6f7d84;
  border-left: 3px solid var(--stone);
  padding-left: 12px;
}

/* 表格 */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  border: var(--line);
  border-radius: var(--radius);
  background-color: var(--white);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 560px;
}

.data-table caption,
.table-caption {
  caption-side: top;
  text-align: left;
  padding: 12px 16px;
  font-size: 13px;
  color: #6f7d84;
  background-color: var(--paper-deep);
  border-bottom: var(--line);
}

.data-table thead th {
  background-color: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  padding: 11px 14px;
  border-right: 1px solid rgba(217, 212, 200, 0.2);
  white-space: nowrap;
}

.data-table thead th:last-child {
  border-right: 0;
}

.data-table tbody th,
.data-table tbody td {
  padding: 11px 14px;
  border-top: var(--line);
  border-right: 1px solid var(--stone-light);
  text-align: left;
  vertical-align: top;
  color: var(--ink-soft);
}

.data-table tbody th {
  font-weight: 600;
  color: var(--ink);
  background-color: var(--paper-deep);
  white-space: nowrap;
}

.data-table tbody tr:nth-child(even) td {
  background-color: #fbf9f3;
}

.data-table tbody tr:hover td,
.data-table tbody tr:hover th {
  background-color: #eef4f1;
}

.data-table tbody td:last-child,
.data-table tbody th:last-child {
  border-right: 0;
}

.table-note {
  margin-top: 10px;
  font-size: 13px;
  color: #6f7d84;
  max-width: 72ch;
}

.table-note a {
  color: var(--teal);
}

/* 图片容器 */
figure {
  margin: 0;
}

.channel-figure,
.feature-figure,
.guide-figure,
.page-figure {
  border: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--paper-deep);
}

.channel-figure img,
.feature-figure img,
.guide-figure img,
.page-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.channel-figure figcaption,
.feature-figure figcaption,
.guide-figure figcaption,
.page-figure figcaption,
.figure-caption,
.topic-caption {
  padding: 10px 14px;
  font-size: 13px;
  color: #6f7d84;
  border-top: var(--line);
  background-color: var(--white);
}

/* 标签组 */
.page-tags,
.object-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag,
.page-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  color: var(--ink-soft);
  background-color: var(--paper-deep);
  border: 1px solid var(--stone);
  border-radius: 999px;
}

/* 状态标记 */
.status {
  display: inline-block;
  padding: 2px 9px;
  font-family: var(--mono);
  font-size: 12px;
  border-radius: 3px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.status-ok {
  color: #0d5e5e;
  background-color: #dceceb;
  border-color: #b6d8d6;
}

.status-pending {
  color: #8a5713;
  background-color: #f6ebd7;
  border-color: #e6d0a5;
}

.status-fail {
  color: #8c2f2f;
  background-color: #f6e0de;
  border-color: #e5bcb8;
}

/* FAQ 折叠 */
.faq-group {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: var(--line);
  border-radius: var(--radius);
  background-color: var(--white);
  padding: 0 16px;
}

.faq-item summary {
  cursor: pointer;
  padding: 14px 26px 14px 0;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 18px;
  color: var(--teal);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item[open] summary {
  border-bottom: var(--line);
}

.faq-item p {
  padding: 12px 0;
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 72ch;
}

.faq-item p + p {
  padding-top: 0;
}

/* 相关入口链接组 */
.related-section {
  padding: 32px 0;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.related-item a {
  display: block;
  padding: 14px 16px;
  min-height: 44px;
  border: var(--line);
  border-radius: var(--radius);
  background-color: var(--white);
  color: var(--ink);
  font-size: 15px;
}

.related-item a:hover {
  border-color: var(--teal);
  color: var(--teal-deep);
  text-decoration: none;
}

/* 侧栏通用 */
.page-aside {
  min-width: 0;
}

.aside-head {
  font-size: 18px;
  margin-bottom: 8px;
}

.aside-note {
  font-size: 13px;
  color: #6f7d84;
  margin-bottom: 16px;
}

.aside-subhead {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #6f7d84;
  margin-bottom: 8px;
}

.aside-block {
  border: var(--line);
  border-radius: var(--radius);
  background-color: var(--white);
  padding: 16px;
  margin-bottom: 16px;
}

.aside-block h2,
.aside-block h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.aside-list {
  display: grid;
  gap: 8px;
}

.aside-list li {
  font-size: 14px;
  color: var(--ink-soft);
  padding-left: 14px;
  position: relative;
}

.aside-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--teal);
}

.aside-list a {
  color: var(--teal);
}

.aside-links {
  border: var(--line);
  border-radius: var(--radius);
  background-color: var(--white);
  padding: 16px;
}

.aside-link-list {
  display: grid;
  gap: 8px;
}

.aside-link-list a {
  display: inline-block;
  min-height: 28px;
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */
.home-main .hero {
  border-bottom: 1px solid var(--stone);
  background-color: var(--paper-deep);
}

.hero-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px 20px 44px;
}

.hero-head {
  max-width: 820px;
  margin-bottom: 32px;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--amber);
  margin-bottom: 12px;
}

.hero-head h1 {
  font-size: 40px;
  line-height: 1.28;
  color: var(--ink);
}

.hero-lead {
  margin-top: 16px;
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background-color: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.btn-primary:hover {
  background-color: var(--teal-deep);
  border-color: var(--teal-deep);
  color: var(--white);
}

.btn-ghost {
  background-color: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-ghost:hover {
  background-color: var(--ink);
  color: var(--paper);
}

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--gap);
  align-items: start;
}

.hero-figure {
  border: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--white);
}

.hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-caption {
  padding: 10px 14px;
  font-size: 13px;
  color: #6f7d84;
  border-top: var(--line);
}

.hero-list {
  background-color: var(--white);
  border: var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  min-width: 0;
}

.block-title {
  font-size: 17px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--stone);
}

.entry-list {
  display: grid;
  gap: 2px;
}

.entry-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--stone);
}

.entry-item:last-child {
  border-bottom: 0;
}

.entry-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--amber);
}

.entry-link {
  font-size: 15px;
  color: var(--ink);
  font-weight: 600;
}

.entry-link:hover {
  color: var(--teal-deep);
}

.entry-desc {
  grid-column: 2 / -1;
  font-size: 13px;
  color: #6f7d84;
  margin-top: 2px;
}

.entry-tag {
  font-size: 12px;
  color: var(--teal-deep);
  background-color: #e3efee;
  border-radius: 3px;
  padding: 1px 8px;
  white-space: nowrap;
}

/* 首页各栏目统一内宽 */
.section-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.summary {
  padding: 40px 0;
  border-bottom: 1px solid var(--stone);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 22px;
}

.summary-col {
  border: var(--line);
  border-top: 3px solid var(--teal);
  border-radius: var(--radius);
  background-color: var(--white);
  padding: 18px 18px 16px;
  min-width: 0;
}

.summary-head {
  font-size: 17px;
  margin-bottom: 10px;
}

.summary-text {
  font-size: 14px;
  color: var(--ink-soft);
}

.summary-text + .summary-text {
  margin-top: 8px;
}

.summary-note {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--stone);
  font-size: 12px;
  color: #6f7d84;
}

.summary-link {
  display: inline-block;
  margin-top: 12px;
  min-height: 28px;
  font-size: 14px;
  color: var(--teal);
}

.channel-table {
  padding: 40px 0;
  border-bottom: 1px solid var(--stone);
}

.channel-table .section-lead {
  margin-bottom: 18px;
}

.featured-topics {
  padding: 40px 0;
  border-bottom: 1px solid var(--stone);
}

.featured-topics .section-lead {
  margin-bottom: 20px;
}

.topic-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.topic-card {
  border: var(--line);
  border-radius: var(--radius);
  background-color: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topic-media {
  border-bottom: var(--line);
  background-color: var(--paper-deep);
}

.topic-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.topic-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.topic-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--amber);
}

.topic-title {
  font-size: 18px;
}

.topic-desc {
  font-size: 14px;
  color: var(--ink-soft);
}

.issue-strip {
  padding: 40px 0;
  border-bottom: 1px solid var(--stone);
}

.issue-strip .section-lead {
  margin-bottom: 18px;
}

.issue-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}

.issue-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  min-height: 56px;
  border: var(--line);
  border-radius: var(--radius);
  background-color: var(--white);
  color: var(--ink);
  min-width: 96px;
}

.issue-chip:hover {
  border-color: var(--teal);
  text-decoration: none;
}

.issue-no {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--amber);
}

.issue-name {
  font-size: 14px;
  color: var(--ink);
}

.issue-chip.is-current {
  border-color: var(--amber);
  background-color: #fbf3e4;
}

.issue-flag {
  font-size: 11px;
  color: #8a5713;
}

.issue-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 18px;
  border: 1px dashed var(--teal);
  border-radius: var(--radius);
  color: var(--teal-deep);
  font-size: 14px;
  font-weight: 600;
}

.issue-all:hover {
  background-color: #e3efee;
  text-decoration: none;
}

.guide-check {
  padding: 40px 0;
  border-bottom: 1px solid var(--stone);
}

.guide-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 22px;
}

.guide-col,
.check-col {
  border: var(--line);
  border-radius: var(--radius);
  background-color: var(--white);
  padding: 18px 20px;
  min-width: 0;
}

.col-head {
  font-size: 17px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--stone);
}

.numbered-list {
  display: grid;
  gap: 12px;
  counter-reset: step;
}

.numbered-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  counter-increment: step;
}

.numbered-no {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--teal-deep);
  background-color: #e3efee;
  border-radius: 3px;
  text-align: center;
  padding: 1px 0;
}

.numbered-item:not(:has(.numbered-no))::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--teal-deep);
  background-color: #e3efee;
  border-radius: 3px;
  text-align: center;
  padding: 1px 0;
}

.numbered-body {
  min-width: 0;
}

.numbered-title {
  font-size: 15px;
  margin-bottom: 2px;
}

.numbered-text {
  font-size: 14px;
  color: var(--ink-soft);
}

.col-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  min-height: 28px;
}

.feedback-paths {
  padding: 40px 0 44px;
}

.feedback-paths .section-lead {
  margin-bottom: 20px;
}

.path-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.path-item {
  border: var(--line);
  border-radius: var(--radius);
  background-color: var(--white);
  padding: 18px;
  min-width: 0;
}

.path-name {
  font-size: 16px;
  margin-bottom: 8px;
}

.path-text {
  font-size: 14px;
  color: var(--ink-soft);
}

.path-link {
  display: inline-block;
  margin-top: 12px;
  min-height: 28px;
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   pages · 频道索引
   -------------------------------------------------------------------------- */
.content-inner {
  max-width: 100%;
}

.page-head {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--stone);
}

.page-lede,
.page-lead {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 72ch;
}

.method-section {
  padding-top: 32px;
}

.method-section .section-text + .section-text {
  margin-top: 10px;
}

.channel-figure {
  margin: 28px 0 0;
}

.table-section .section-text {
  margin-bottom: 16px;
}

.path-section {
  padding-top: 36px;
}

.path-section .section-text {
  margin-bottom: 18px;
}

.path-section .path-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.path-section .path-item {
  border-left: 3px solid var(--teal);
  background-color: var(--white);
  padding: 16px 18px;
}

.path-num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--amber);
  margin-bottom: 6px;
}

.path-head {
  font-size: 16px;
  margin-bottom: 6px;
}

.path-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
  font-size: 14px;
}

.pitfall-section {
  padding-top: 36px;
}

.pitfall-section .section-text {
  margin-bottom: 16px;
}

.pitfall-list {
  display: grid;
  gap: 12px;
}

.pitfall-item {
  border: var(--line);
  border-radius: var(--radius);
  background-color: var(--white);
  padding: 14px 18px;
}

.pitfall-claim {
  font-size: 15px;
  color: var(--amber);
  font-weight: 600;
}

.pitfall-fix {
  margin-top: 4px;
  font-size: 14px;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   pages · 期号目录
   -------------------------------------------------------------------------- */
.page-intro {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--gap);
  align-items: start;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--stone);
}

.page-intro-text {
  min-width: 0;
}

.page-intro-text h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.page-intro-text p {
  font-size: 15px;
  color: var(--ink-soft);
}

.page-intro-text p + p {
  margin-top: 10px;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
  padding-top: 32px;
}

.page-layout.sidebar-left {
  grid-template-columns: 260px minmax(0, 1fr);
}

.page-main {
  min-width: 0;
}

.issue-list-section .section-note {
  margin-bottom: 14px;
}

.issue-list {
  display: grid;
  gap: 12px;
}

.issue-item {
  border: var(--line);
  border-radius: var(--radius);
  background-color: var(--white);
  padding: 16px 18px;
  min-width: 0;
}

.issue-item-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.issue-number {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--amber);
}

.issue-state {
  font-size: 12px;
  color: #6f7d84;
  border: 1px solid var(--stone);
  border-radius: 3px;
  padding: 0 7px;
}

.issue-state-current {
  color: #8a5713;
  background-color: #f6ebd7;
  border-color: #e6d0a5;
}

.issue-title {
  font-size: 17px;
  margin-bottom: 8px;
}

.issue-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.issue-meta dt {
  display: inline;
  color: #6f7d84;
}

.issue-meta dd {
  display: inline;
  margin-left: 4px;
  color: var(--ink);
}

.issue-desc {
  font-size: 14px;
  color: var(--ink-soft);
}

.issue-more {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  min-height: 28px;
}

.issue-nav {
  display: grid;
  gap: 16px;
}

.issue-year {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #6f7d84;
  margin-bottom: 6px;
}

.issue-year-list {
  display: grid;
  gap: 4px;
}

.issue-year-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.issue-year-list a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 14px;
  color: var(--ink-soft);
}

.issue-year-list a:hover {
  color: var(--teal-deep);
}

.issue-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--amber);
  flex: 0 0 auto;
}

.issue-link {
  font-size: 14px;
}

.segment-section {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--stone);
}

.segment-control {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.segment-btn {
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  border: var(--line);
  border-radius: var(--radius);
  background-color: var(--white);
  color: var(--ink);
  font-size: 14px;
}

.segment-btn:hover {
  border-color: var(--teal);
  color: var(--teal-deep);
}

.segment-btn.is-active {
  background-color: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.segment-result {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--amber);
  margin-bottom: 6px;
}

.segment-subhead {
  font-size: 17px;
  margin-bottom: 6px;
}

.segment-desc {
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 72ch;
}

.archive-note {
  margin-top: 32px;
  padding: 18px 20px;
  border: var(--line);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  background-color: var(--white);
}

.archive-note h2 {
  font-size: 17px;
  margin-bottom: 8px;
}

.archive-note p {
  font-size: 14px;
  color: var(--ink-soft);
}

.archive-note-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.archive-note-list li {
  font-size: 14px;
  color: var(--ink-soft);
  padding-left: 14px;
  position: relative;
}

.archive-note-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--stone);
}

/* --------------------------------------------------------------------------
   pages · 专题策划
   -------------------------------------------------------------------------- */
.page-hero {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--stone);
}

.topic-scope {
  padding-top: 32px;
}

.topic-scope .section-text + .section-text {
  margin-top: 10px;
}

.scope-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.scope-item {
  font-size: 14px;
  color: var(--ink-soft);
  border-left: 3px solid var(--stone);
  padding-left: 12px;
}

.scope-item strong {
  display: inline-block;
  margin-right: 6px;
  color: var(--ink);
}

.topic-list .section-text {
  margin-bottom: 20px;
}

.topic-row {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
  border: var(--line);
  border-radius: var(--radius);
  background-color: var(--white);
  overflow: hidden;
  min-width: 0;
}

.topic-row + .topic-row {
  margin-top: 20px;
}

.topic-figure {
  background-color: var(--paper-deep);
  border-right: var(--line);
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

.topic-figure img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.topic-figure figcaption {
  border-top: var(--line);
}

.topic-list .topic-body {
  padding: 18px 20px 20px;
}

.topic-no {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--amber);
}

.topic-name {
  font-size: 19px;
  margin: 4px 0 8px;
}

.topic-structure {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--stone);
}

.topic-structure li {
  font-size: 14px;
  color: var(--ink-soft);
  padding-left: 16px;
  position: relative;
}

.topic-structure li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--teal);
}

.topic-structure-table .section-text {
  margin-bottom: 16px;
}

.topic-source .section-text {
  margin-bottom: 14px;
}

.source-list {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.source-item {
  font-size: 14px;
  color: var(--ink-soft);
  border-left: 3px solid var(--stone);
  padding-left: 12px;
}

.source-item strong {
  display: inline-block;
  margin-right: 6px;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   pages · 观看指南
   -------------------------------------------------------------------------- */
.page-primary {
  min-width: 0;
}

.page-title-block {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--stone);
}

.guide-figure {
  margin-top: 28px;
}

.content-section {
  padding-top: 32px;
}

.content-section .section-intro {
  margin-bottom: 16px;
}

.checklist {
  display: grid;
  gap: 12px;
  counter-reset: prep;
}

.checklist-item {
  border: var(--line);
  border-radius: var(--radius);
  background-color: var(--white);
  padding: 14px 18px 14px 52px;
  position: relative;
  counter-increment: prep;
}

.checklist-item::before {
  content: counter(prep, decimal-leading-zero);
  position: absolute;
  left: 16px;
  top: 15px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--teal-deep);
  background-color: #e3efee;
  border-radius: 3px;
  padding: 1px 5px;
}

.checklist-item h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.checklist-item p {
  font-size: 14px;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   pages · 入口核验
   -------------------------------------------------------------------------- */
.page-layout.layout-shell {
  grid-template-columns: minmax(0, 1fr) 300px;
  padding-top: 0;
}

.page-title-section {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--stone);
}

.feature-figure {
  margin-top: 24px;
}

.check-overview,
.check-anomaly,
.check-history {
  padding-top: 32px;
}

.check-overview > p,
.check-anomaly > p,
.check-history > p {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 14px;
  max-width: 72ch;
}

.check-overview > p .status + .status {
  margin-left: 6px;
}

.check-list {
  display: grid;
  gap: 10px;
}

.check-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  align-items: start;
  border: var(--line);
  border-radius: var(--radius);
  background-color: var(--white);
  padding: 14px 16px;
  min-width: 0;
}

.check-name {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.check-basis {
  grid-column: 1 / 2;
  font-size: 14px;
  color: var(--ink-soft);
}

.check-item .status {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  justify-self: end;
}

.check-anomaly h3 {
  font-size: 17px;
  margin: 24px 0 12px;
}

.step-list {
  display: grid;
  gap: 12px;
}

.step-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  border: var(--line);
  border-radius: var(--radius);
  background-color: var(--white);
  padding: 14px 16px;
  min-width: 0;
}

.step-no {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--teal-deep);
  background-color: #e3efee;
  border-radius: 3px;
  text-align: center;
  height: 26px;
  line-height: 26px;
}

.step-body {
  min-width: 0;
}

.step-body h4 {
  font-size: 15px;
  margin-bottom: 4px;
}

.step-body p {
  font-size: 14px;
  color: var(--ink-soft);
}

.step-result {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--stone);
  color: #6f7d84 !important;
  font-size: 13px !important;
}

.source-note {
  margin-top: 14px;
  font-size: 13px;
  color: #6f7d84;
  border-left: 3px solid var(--stone);
  padding-left: 12px;
}

/* --------------------------------------------------------------------------
   pages · 问题反馈
   -------------------------------------------------------------------------- */
.feedback-method p {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 72ch;
}

.feedback-method p + p {
  margin-top: 10px;
}

.feedback-types .section-note {
  margin-bottom: 18px;
}

.feedback-type {
  border: var(--line);
  border-radius: var(--radius);
  background-color: var(--white);
  padding: 18px 20px;
}

.feedback-type + .feedback-type {
  margin-top: 16px;
}

.feedback-type-title {
  font-size: 18px;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.feedback-type-no {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--amber);
}

.feedback-type-symptom {
  font-size: 14px;
  color: var(--ink-soft);
}

.feedback-type-path {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-soft);
}

.feedback-type-path a + a::before {
  content: "·";
  margin: 0 6px;
  color: var(--stone);
}

.feedback-need-list {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--stone);
}

.feedback-need-list li {
  font-size: 14px;
  color: var(--ink-soft);
  padding-left: 16px;
  position: relative;
}

.feedback-need-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--teal);
}

.feedback-writing p {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 72ch;
}

.feedback-writing-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.feedback-writing-list li {
  font-size: 14px;
  color: var(--ink-soft);
  border-left: 3px solid var(--stone);
  padding-left: 12px;
}

.feedback-writing-list strong {
  display: inline-block;
  margin-right: 6px;
  color: var(--ink);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.related-links .related-list {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */
.error-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 56px 20px 72px;
}

.error-panel {
  border: var(--line);
  border-top: 4px solid var(--amber);
  border-radius: var(--radius);
  background-color: var(--white);
  padding: 32px 28px;
  max-width: 720px;
}

.error-code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--amber);
  margin-bottom: 10px;
}

.error-title {
  font-size: 30px;
  margin-bottom: 12px;
}

.error-lead {
  font-size: 16px;
  color: var(--ink-soft);
}

.error-hint {
  margin-top: 10px;
  font-size: 14px;
  color: #6f7d84;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.error-home,
.error-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--ink);
  background-color: var(--paper);
}

.error-home {
  background-color: var(--teal);
  border-color: var(--teal);
  color: var(--white);
  font-weight: 600;
}

.error-home:hover {
  background-color: var(--teal-deep);
  border-color: var(--teal-deep);
  color: var(--white);
  text-decoration: none;
}

.error-link:hover {
  border-color: var(--teal);
  color: var(--teal-deep);
  text-decoration: none;
}

.error-note {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px dashed var(--stone);
  font-size: 13px;
  color: #6f7d84;
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-head h1 {
    font-size: 34px;
  }

  .page-title {
    font-size: 30px;
  }

  .topic-row {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr) 268px;
    gap: 24px;
  }

  .page-layout.sidebar-left {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .page-layout.layout-shell {
    grid-template-columns: minmax(0, 1fr) 268px;
  }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background-color: var(--ink);
    border-bottom: 1px solid rgba(217, 212, 200, 0.22);
    padding: 8px 20px 16px;
    display: block;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    min-height: 48px;
    padding: 0 12px;
    border-bottom: 1px solid rgba(217, 212, 200, 0.14);
    border-left: 2px solid transparent;
    justify-content: flex-start;
  }

  .nav-link.is-current {
    border-bottom-color: rgba(217, 212, 200, 0.14);
    border-left-color: var(--teal);
  }

  .hero-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-list {
    order: -1;
  }

  .summary-grid,
  .topic-cards,
  .path-list,
  .path-section .path-list,
  .guide-check-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-intro {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-layout,
  .page-layout.sidebar-left,
  .page-layout.layout-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .page-layout .page-aside,
  .page-layout.sidebar-left .page-aside,
  .page-layout.layout-shell .page-aside {
    order: 2;
  }

  .page-layout .page-main,
  .page-layout .page-primary,
  .page-layout.layout-shell .inner-main {
    order: 1;
  }

  .topic-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .topic-figure {
    border-right: 0;
    border-bottom: var(--line);
  }

  .topic-figure img {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-cols {
    gap: 24px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .header-inner {
    padding: 0 16px;
    gap: 12px;
  }

  .brand {
    font-size: 18px;
  }

  .inner-main,
  .hero-inner,
  .section-inner,
  .error-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-title {
    font-size: 26px;
  }

  .hero-head h1 {
    font-size: 27px;
  }

  .hero-inner {
    padding-top: 28px;
    padding-bottom: 32px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .section-title {
    font-size: 20px;
  }

  .summary-grid,
  .topic-cards,
  .path-list,
  .path-section .path-list,
  .guide-check-grid,
  .related-list,
  .related-links .related-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .entry-item {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .entry-tag {
    grid-column: 2 / 3;
    justify-self: start;
  }

  .issue-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .issue-chip,
  .issue-all {
    flex: 0 0 auto;
  }

  .footer-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  /* 表格转逐行定义列表 */
  .table-scroll {
    overflow-x: visible;
    border: 0;
    background-color: transparent;
  }

  .data-table {
    min-width: 0;
    display: block;
    border: 0;
  }

  .data-table caption,
  .data-table thead {
    display: none;
  }

  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table tbody tr {
    border: var(--line);
    border-radius: var(--radius);
    background-color: var(--white);
    margin-bottom: 12px;
    padding: 4px 0;
    overflow: hidden;
  }

  .data-table tbody tr:nth-child(even) td {
    background-color: transparent;
  }

  .data-table tbody th,
  .data-table tbody td {
    border: 0;
    border-bottom: 1px dashed var(--stone);
    padding: 9px 14px;
    white-space: normal;
    background-color: transparent;
  }

  .data-table tbody tr > *:last-child {
    border-bottom: 0;
  }

  .data-table tbody th {
    background-color: var(--paper-deep);
    border-bottom: 1px solid var(--stone);
  }

  .check-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .check-item .status {
    grid-column: 1 / 2;
    grid-row: auto;
    justify-self: start;
    margin-top: 6px;
  }

  .step-item {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
  }

  .error-panel {
    padding: 24px 18px;
  }

  .error-title {
    font-size: 24px;
  }

  .error-actions a {
    flex: 1 1 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
