/* ==========================================================================
   麻花传媒 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --ink: #141414;
  --ink-soft: #4a4a48;
  --ink-mute: #6f6b62;
  --paper: #f7f4ec;
  --paper-card: #ffffff;
  --accent: #d96b2b;
  --accent-deep: #b9531c;
  --teal: #2f5d62;
  --teal-soft: #e7eeec;
  --line: #d8d2c4;
  --line-soft: #e8e3d7;
  --radius: 6px;
  --shell: 1120px;
  --gutter: 24px;
  --header-h: 64px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd,
dt {
  margin: 0;
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink-mute);
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   layout · 全站骨架
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--shell);
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.brand {
  flex: 0 0 auto;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.brand:hover {
  color: var(--accent);
}

.primary-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link.is-current {
  color: var(--ink);
  font-weight: 700;
}

.nav-link.is-current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13px;
  cursor: pointer;
}

.nav-toggle-icon {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--ink);
  box-shadow: 0 -5px 0 var(--ink), 0 5px 0 var(--ink);
}

.site-main {
  display: block;
}

.home-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter) 56px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 18px 0 0;
  font-size: 13px;
  color: var(--ink-mute);
}

.breadcrumb a {
  color: var(--ink-mute);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink-soft);
}

/* 页面标题区 */
.page-header {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px 0 0;
}

.page-title {
  margin: 0;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--ink);
}

/* 内页两栏骨架 */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 48px;
  align-items: start;
  margin-top: 26px;
}

.page-layout > .inner-main {
  max-width: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.inner-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 48px;
  align-items: start;
  margin-top: 26px;
}

.inner-layout > .inner-main {
  max-width: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.layout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 48px;
  align-items: start;
  margin-top: 26px;
}

.layout-shell > .inner-main {
  max-width: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.page-title-block {
  margin-bottom: 22px;
}

.page-summary,
.page-lead {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* 侧栏 */
.inner-aside {
  min-width: 0;
  font-size: 13px;
}

.aside-block {
  padding: 16px 18px;
  margin-bottom: 18px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.aside-heading {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.aside-toc,
.aside-links,
.aside-link-list,
.toc-list,
.related-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aside-toc li a,
.aside-links li a,
.aside-link-list li a,
.toc-list li a,
.related-list li a {
  display: block;
  padding: 4px 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--line-soft);
}

.aside-toc li:last-child a,
.aside-links li:last-child a,
.aside-link-list li:last-child a,
.toc-list li:last-child a,
.related-list li:last-child a {
  border-bottom: 0;
}

.aside-toc li a:hover,
.aside-links li a:hover,
.aside-link-list li a:hover,
.toc-list li a:hover,
.related-list li a:hover {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   components · 通用块
   -------------------------------------------------------------------------- */

.section-head {
  margin-bottom: 20px;
}

.section-head h2 {
  font-size: 22px;
  line-height: 1.35;
}

.section-sub {
  margin-top: 6px;
  max-width: 68ch;
  font-size: 14px;
  color: var(--ink-mute);
}

.content-section {
  margin-bottom: 36px;
}

.content-section h2 {
  font-size: 22px;
  line-height: 1.35;
}

.section-intro,
.section-lead {
  margin: 8px 0 16px;
  max-width: 68ch;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.text-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--teal);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.text-link:hover {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* 表格 */
.table-wrap {
  overflow-x: auto;
  margin: 4px 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-card);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

caption {
  padding: 10px 14px;
  text-align: left;
  font-size: 12.5px;
  color: var(--ink-mute);
  border-bottom: 1px solid var(--line-soft);
}

thead th {
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  background: #f2eee2;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

tbody td {
  padding: 10px 14px;
  vertical-align: top;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-soft);
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover td {
  background: #fbf8f0;
}

.table-note,
.mapping-note,
.scope-note,
.section-tail,
.check-footer,
.coop-tail {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.7;
}

/* 图片容器 */
.content-figure,
.section-figure,
.section-media,
.channel-figure {
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-card);
}

.content-figure img,
.section-figure img,
.section-media img,
.channel-figure img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.content-figure figcaption,
.section-figure figcaption,
.section-media figcaption,
.channel-figure figcaption {
  padding: 8px 14px 10px;
  margin: 0;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  position: relative;
  padding: 14px 40px 14px 16px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-answer,
.faq-body {
  padding: 0 16px 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
}

.faq-answer a,
.faq-body a {
  color: var(--teal);
  border-bottom: 1px solid currentColor;
}

.faq-answer a:hover,
.faq-body a:hover {
  color: var(--accent);
}

/* 页脚 */
.site-footer {
  background: #1c1b19;
  color: #d9d4c7;
  margin-top: 8px;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr) minmax(0, 1.2fr);
  gap: 40px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px var(--gutter) 28px;
}

.footer-col {
  min-width: 0;
}

.footer-name {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.footer-desc {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.75;
  color: #b5b0a3;
}

.footer-slogan {
  margin-top: 8px;
  font-size: 12.5px;
  color: #8f8a7e;
}

.footer-heading {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.footer-index {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  align-content: start;
}

.footer-index .footer-heading {
  grid-column: 1 / -1;
}

.footer-link-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-link-list li a {
  display: inline-block;
  padding: 2px 0;
  font-size: 13px;
  color: #b5b0a3;
}

.footer-link-list li a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 16px var(--gutter) 26px;
  border-top: 1px solid #33312c;
  font-size: 12.5px;
  line-height: 1.7;
  color: #8f8a7e;
}

.footer-bottom p + p {
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  min-height: 460px;
  padding: 32px 0 28px;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 10px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--teal);
  background: var(--teal-soft);
  border-radius: 4px;
}

.hero-copy h1 {
  font-size: 42px;
  line-height: 1.15;
  font-weight: 700;
}

.hero-lead {
  margin-top: 14px;
  max-width: 34em;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-visual {
  min-width: 0;
}

.hero-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-card);
}

.hero-figure img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.hero-figure figcaption {
  padding: 8px 14px 10px;
  margin: 0;
}

.hero-notes {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
  padding: 0;
}

.hero-notes li {
  display: flex;
  gap: 8px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-soft);
  padding-left: 14px;
  position: relative;
}

.hero-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 1px;
}

.hero-notes li strong {
  color: var(--ink);
  font-weight: 700;
  flex: 0 0 auto;
}

/* 频道标签条 */
.channel-chip-section {
  padding: 34px 0 26px;
  border-bottom: 1px solid var(--line);
}

.channel-chip-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.channel-chip {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  min-height: 44px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.channel-chip:hover {
  border-color: var(--teal);
  box-shadow: 0 2px 8px rgba(20, 20, 20, 0.06);
}

.chip-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.channel-chip:hover .chip-name {
  color: var(--teal);
}

.chip-desc {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-mute);
}

/* 站点结构总览 */
.overview-section {
  padding: 34px 0 26px;
  border-bottom: 1px solid var(--line);
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.overview-column {
  min-width: 0;
  padding: 18px 18px 16px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  border-radius: var(--radius);
}

.overview-column h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.overview-column p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.overview-column p + p {
  margin-top: 6px;
}

/* 频道分类带 */
.channel-group-section {
  padding: 34px 0 26px;
  border-bottom: 1px solid var(--line);
}

.channel-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.channel-group {
  min-width: 0;
}

.group-title {
  font-size: 16px;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.group-list {
  display: flex;
  flex-direction: column;
}

.group-item {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  gap: 4px 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line-soft);
}

.group-item:last-child {
  border-bottom: 0;
}

.group-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.group-tag {
  justify-self: start;
  align-self: center;
  padding: 1px 8px;
  font-size: 11.5px;
  color: var(--teal);
  background: var(--teal-soft);
  border-radius: 3px;
  white-space: nowrap;
}

.group-item p {
  grid-column: 1 / -1;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
}

/* 专题架摘要 */
.topic-preview-section {
  padding: 34px 0 26px;
  border-bottom: 1px solid var(--line);
}

.topic-preview-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.topic-preview {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 16px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.topic-preview .topic-figure {
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #eee9dc;
}

.topic-preview .topic-figure img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.topic-body {
  min-width: 0;
}

.topic-body h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.topic-body p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.topic-body p + p {
  margin-top: 6px;
}

.topic-points {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
  padding: 0;
}

.topic-points li {
  position: relative;
  padding-left: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.topic-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  background: var(--teal);
  border-radius: 50%;
}

/* 观看路径时间线（首页） */
.path-section {
  padding: 34px 0 26px;
  border-bottom: 1px solid var(--line);
}

.path-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  counter-reset: path;
}

.path-step {
  position: relative;
  min-width: 0;
  padding: 16px 14px 14px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.path-step .step-no {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.path-step h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.path-step p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.path-step .step-check {
  margin-top: 8px;
  padding-top: 8px;
  font-size: 12.5px;
  color: var(--ink-mute);
  border-top: 1px dashed var(--line-soft);
}

/* 维护与边界提示 */
.notice-section {
  padding: 34px 0 26px;
  border-bottom: 1px solid var(--line);
}

.notice-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notice-line {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.notice-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-deep);
  white-space: nowrap;
}

.notice-line p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.notice-line .text-link {
  margin-top: 0;
  white-space: nowrap;
}

/* 首页常见疑问 */
.faq-section {
  padding: 34px 0 40px;
}

/* 页脚相关支持带 */
.support-band {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter) 40px;
}

.support-inner {
  padding: 22px 24px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.support-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.support-links,
.support-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.support-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 12px;
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  color: var(--teal);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.support-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.support-strip {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter) 40px;
}

.support-strip .support-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
}

.footer-support {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter) 34px;
}

.footer-support-inner {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 16px 20px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.footer-support-inner .support-title {
  margin: 0;
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   pages · 频道地图
   -------------------------------------------------------------------------- */

.channel-table-section .section-lead {
  margin-bottom: 14px;
}

.channel-table td:first-child {
  font-weight: 700;
  color: var(--ink);
}

.channel-table td:last-child a {
  color: var(--teal);
  border-bottom: 1px solid currentColor;
}

.channel-table td:last-child a:hover {
  color: var(--accent);
}

.scene-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.scene-box {
  min-width: 0;
  padding: 16px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.scene-box h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

.scene-box p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.scene-box p + p {
  margin-top: 6px;
}

.tag-entry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.tag-entry {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  min-height: 44px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s ease;
}

.tag-entry:hover {
  border-color: var(--teal);
}

.tag-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.tag-entry:hover .tag-name {
  color: var(--teal);
}

.tag-desc {
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-mute);
}

.channel-note {
  padding: 16px 18px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
}

.channel-note p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.channel-note p + p {
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   pages · 专题架
   -------------------------------------------------------------------------- */

.topic-shelf-section {
  margin-bottom: 36px;
}

.topic-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 16px;
  margin-top: 16px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.topic-card .topic-figure {
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #eee9dc;
}

.topic-card .topic-figure img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.topic-card .topic-body h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.topic-background {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.topic-item-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
  padding-left: 0;
}

.topic-item-list li {
  position: relative;
  padding-left: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.topic-item-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  background: var(--teal);
  border-radius: 50%;
}

.topic-tags {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--ink-mute);
}

.compose-section {
  margin-bottom: 36px;
}

.compose-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.compose-column {
  min-width: 0;
  padding: 16px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  border-radius: var(--radius);
}

.compose-column h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

.compose-column p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.compose-column p + p {
  margin-top: 6px;
}

.mapping-section {
  margin-bottom: 36px;
}

.mapping-table {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-card);
}

.mapping-table th,
.mapping-table td {
  padding: 10px 14px;
  text-align: left;
  font-size: 13.5px;
  border-bottom: 1px solid var(--line-soft);
}

.mapping-table thead th {
  background: #f2eee2;
  font-weight: 700;
  color: var(--ink);
}

.mapping-table tbody tr:last-child td {
  border-bottom: 0;
}

.mapping-note {
  margin-top: 10px;
}

.mapping-note a {
  color: var(--teal);
  border-bottom: 1px solid currentColor;
}

.mapping-note a:hover {
  color: var(--accent);
}

.check-section {
  margin-bottom: 36px;
}

.check-note-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.check-note {
  position: relative;
  padding: 12px 14px 12px 40px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.check-note::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--teal);
}

.check-footer {
  margin-top: 12px;
}

.check-footer a {
  color: var(--teal);
  border-bottom: 1px solid currentColor;
}

.check-footer a:hover {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   pages · 观看路径
   -------------------------------------------------------------------------- */

#path-steps .path-timeline {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

#path-steps .path-step {
  padding: 16px;
}

#path-steps .path-step-num {
  display: inline-block;
  margin-bottom: 8px;
  padding: 1px 8px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 3px;
}

#path-steps .path-step h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

#path-steps .path-step p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

#path-steps .path-step-check {
  margin-top: 8px;
  padding-top: 8px;
  font-size: 12.5px;
  color: var(--ink-mute);
  border-top: 1px dashed var(--line-soft);
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.check-item {
  padding: 14px 16px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.check-item h3 {
  font-size: 14.5px;
  margin-bottom: 6px;
}

.check-item p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.check-item .check-pass {
  margin-top: 6px;
  padding-top: 6px;
  font-size: 12.5px;
  color: var(--teal);
  border-top: 1px dashed var(--line-soft);
}

.device-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.device-box {
  min-width: 0;
  padding: 16px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.device-box h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

.device-box p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.handoff-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.handoff-note {
  padding: 14px 16px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.handoff-note h3 {
  font-size: 14.5px;
  margin-bottom: 6px;
}

.handoff-note p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   pages · 排查手册
   -------------------------------------------------------------------------- */

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter) 56px;
}

.shell .page-title-block {
  margin-top: 14px;
}

.shell .page-layout {
  margin-top: 20px;
}

.section-media {
  margin-bottom: 14px;
}

.symptom-table td:first-child {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.cause-group {
  margin-top: 16px;
  padding: 16px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cause-group h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.cause-scope {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line-soft);
}

.cause-steps {
  margin-top: 10px;
  padding-left: 0;
  counter-reset: cause;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cause-steps li {
  position: relative;
  padding-left: 26px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  counter-increment: cause;
}

.cause-steps li::before {
  content: counter(cause);
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  color: #fff;
  background: var(--teal);
  border-radius: 50%;
}

.judge-row {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.judge-row h3 {
  font-size: 14.5px;
  margin-bottom: 6px;
}

.judge-row p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

#troubleshoot-faq .faq-list {
  margin-top: 14px;
}

.stop-rule {
  margin-top: 12px;
  padding: 14px 16px;
  background: #fbf3ec;
  border: 1px solid #ecd6c2;
  border-radius: var(--radius);
}

.stop-rule h3 {
  font-size: 14.5px;
  margin-bottom: 6px;
  color: var(--accent-deep);
}

.stop-rule p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   pages · 维护日志
   -------------------------------------------------------------------------- */

.page-hero {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 10px 0 0;
}

.field-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-card);
  overflow: hidden;
}

.field-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
}

.field-row:last-child {
  border-bottom: 0;
}

.field-row dt {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.field-row dd {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.log-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
  counter-reset: log;
}

.log-entry {
  padding: 14px 16px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
}

.log-batch {
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
}

.log-scope {
  margin-top: 4px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.log-desc {
  margin-top: 4px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.log-status {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--ink-mute);
}

.verify-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.verify-entry {
  padding: 12px 16px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.verify-target {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.verify-result {
  margin-top: 4px;
  font-size: 13px;
  color: var(--teal);
}

.verify-next {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
}

.fix-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
  padding-left: 0;
  counter-reset: fix;
}

.fix-step {
  position: relative;
  padding: 14px 16px 14px 52px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: fix;
}

.fix-num {
  position: absolute;
  left: 16px;
  top: 14px;
  width: 24px;
  height: 24px;
  font-size: 12px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
}

.fix-step h3 {
  font-size: 14.5px;
  margin-bottom: 6px;
}

.fix-step p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.section-tail {
  margin-top: 14px;
}

.section-tail a {
  color: var(--teal);
  border-bottom: 1px solid currentColor;
}

.section-tail a:hover {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   pages · 内容边界
   -------------------------------------------------------------------------- */

.page-shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter) 56px;
}

.page-shell > .page-title {
  margin-top: 14px;
}

.page-shell .page-layout {
  margin-top: 20px;
}

.scope-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-card);
  overflow: hidden;
}

.scope-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.scope-item:last-child {
  border-bottom: 0;
}

.scope-item dt {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.scope-item dd {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.scope-note {
  margin-top: 12px;
}

.link-rule-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.link-rule {
  position: relative;
  padding: 12px 14px 12px 40px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.link-rule::before {
  content: "§";
  position: absolute;
  left: 14px;
  top: 11px;
  font-size: 14px;
  font-weight: 700;
  color: var(--teal);
}

.feedback-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
  padding-left: 0;
  counter-reset: fb;
}

.feedback-step {
  position: relative;
  padding: 14px 16px 14px 52px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: fb;
}

.feedback-step .step-num {
  position: absolute;
  left: 16px;
  top: 14px;
  width: 24px;
  height: 24px;
  font-size: 12px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
  color: #fff;
  background: var(--teal);
  border-radius: 50%;
}

.feedback-step .step-body {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.coop-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.coop-note {
  min-width: 0;
  padding: 16px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.coop-note h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

.coop-note p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.coop-tail {
  margin-top: 14px;
}

.coop-tail a {
  color: var(--teal);
  border-bottom: 1px solid currentColor;
}

.coop-tail a:hover {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */

.error-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter) 56px;
}

.error-panel {
  max-width: 640px;
  margin: 48px 0;
  padding: 32px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
}

.error-code {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.error-panel h1 {
  margin-top: 8px;
  font-size: 28px;
  line-height: 1.3;
}

.error-desc {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.error-hint-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 16px;
  padding-left: 0;
}

.error-hint-list li {
  position: relative;
  padding-left: 16px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.error-hint-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 1px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .nav-list {
    gap: 16px;
  }

  .topic-preview {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .topic-card {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  :root {
    --gutter: 18px;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    flex-basis: 100%;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 4px 0 10px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 4px;
    font-size: 14px;
    border-bottom: 1px dashed var(--line-soft);
  }

  .nav-link.is-current::after {
    display: none;
  }

  .nav-link.is-current {
    color: var(--accent);
  }

  /* 内页两栏转单栏，主内容在侧栏之前 */
  .page-layout,
  .inner-layout,
  .layout-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .inner-aside {
    order: 2;
  }

  /* 首页首屏取消固定高度 */
  .home-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    min-height: 0;
    padding: 24px 0 22px;
  }

  .hero-copy h1 {
    font-size: 30px;
  }

  .hero-figure img {
    height: 200px;
  }

  .channel-chip-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .channel-group-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .topic-preview,
  .topic-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .topic-preview .topic-figure img,
  .topic-card .topic-figure img {
    height: 180px;
  }

  .path-timeline,
  #path-steps .path-timeline {
    grid-template-columns: minmax(0, 1fr);
  }

  .notice-line {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    align-items: start;
  }

  .notice-line .text-link {
    justify-self: start;
  }

  .support-links,
  .support-list,
  .support-strip .support-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-support-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .scene-grid,
  .compose-grid,
  .device-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tag-entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .coop-notes {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 30px var(--gutter) 22px;
  }

  .field-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .error-panel {
    margin: 24px 0;
    padding: 22px;
  }

  .error-panel h1 {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .hero-copy h1 {
    font-size: 26px;
  }

  .page-title {
    font-size: 22px;
  }

  .content-section h2,
  .section-head h2 {
    font-size: 19px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .channel-chip-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .tag-entry-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .support-links,
  .support-list,
  .support-strip .support-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-index {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .content-figure img,
  .section-figure img,
  .section-media img,
  .channel-figure img {
    height: 170px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
