/* ==========================================================================
   九九电影网 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --bg-page: #FAF8F4;
  --bg-soft: #F3EFE8;
  --bg-card: #FFFFFF;
  --ink-strong: #1F1D1A;
  --ink-body: #4A4741;
  --ink-muted: #7A756C;
  --brand: #2F6B63;
  --brand-deep: #245249;
  --accent: #A8442F;
  --line: #E3DED5;
  --line-strong: #CFC7B9;
  --radius: 6px;
  --radius-sm: 4px;
  --shell: 1180px;
  --shell-narrow: 1080px;
  --read: 760px;
  --gap-section: 64px;
  --shadow-soft: 0 1px 2px rgba(31, 29, 26, 0.04);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  background-color: var(--bg-page);
  color: var(--ink-body);
  font-family: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Heiti SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink-strong);
  font-weight: 700;
  line-height: 1.35;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd,
dt,
figure,
figcaption,
table,
caption,
th,
td {
  margin: 0;
  padding: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

strong {
  color: var(--ink-strong);
  font-weight: 700;
}

/* 通用文本链接 */
.text-link {
  color: var(--brand);
  border-bottom: 1px solid rgba(47, 107, 99, 0.35);
  padding-bottom: 1px;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--accent);
  border-bottom-color: rgba(168, 68, 47, 0.45);
}

/* 区块更多入口 */
.link-more {
  display: inline-block;
  margin-top: 12px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid rgba(47, 107, 99, 0.4);
  padding-bottom: 1px;
}

.link-more::after {
  content: " →";
  font-weight: 400;
}

.link-more:hover,
.link-more:focus-visible {
  color: var(--accent);
  border-bottom-color: rgba(168, 68, 47, 0.5);
}

/* --------------------------------------------------------------------------
   layout · 全站骨架
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background-color: rgba(250, 248, 244, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.header-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-strong);
  flex: 0 0 auto;
}

.brand:hover,
.brand:focus-visible {
  color: var(--ink-strong);
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: var(--radius-sm);
  background-color: var(--brand);
  position: relative;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 9px 8px;
  border: 2px solid #FAF8F4;
  border-radius: 2px;
}

.brand-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform: translate(-40%, -50%);
  border-left: 7px solid #FAF8F4;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-strong);
}

.brand-slogan {
  font-size: 12px;
  color: var(--ink-muted);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background-color: var(--bg-card);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--ink-strong);
  border-radius: 1px;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  display: block;
}

.nav-link {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink-body);
  font-size: 15px;
  line-height: 1.6;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--brand-deep);
  background-color: var(--bg-soft);
}

.nav-link.is-current {
  color: var(--brand-deep);
  font-weight: 700;
  background-color: rgba(47, 107, 99, 0.08);
}

.site-main {
  display: block;
}

.home-main {
  padding-bottom: 8px;
}

.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 24px 24px 72px;
}

.sidebar-left .page-layout,
.page-layout.sidebar-left {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--ink-muted);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--brand);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--ink-body);
}

/* 内页标题区 */
.page-header {
  max-width: var(--read);
  margin-bottom: 40px;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--ink-strong);
  line-height: 1.3;
}

.page-description {
  margin-top: 14px;
  font-size: 16px;
  color: var(--ink-body);
  line-height: 1.75;
}

/* 页脚 */
.site-footer {
  margin-top: 72px;
  background-color: var(--bg-soft);
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.footer-col {
  min-width: 0;
}

.footer-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-strong);
  margin-bottom: 12px;
}

.footer-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-body);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link {
  display: inline-block;
  font-size: 14px;
  color: var(--ink-body);
  padding: 2px 0;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--brand);
}

.footer-link-strong {
  margin-top: 10px;
  color: var(--brand);
  font-weight: 600;
  border-bottom: 1px solid rgba(47, 107, 99, 0.4);
  padding-bottom: 1px;
}

.footer-link-strong:hover,
.footer-link-strong:focus-visible {
  color: var(--accent);
  border-bottom-color: rgba(168, 68, 47, 0.5);
}

.footer-bottom {
  border-top: 1px solid var(--line);
}

.footer-copy {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 16px 24px 24px;
  font-size: 13px;
  color: var(--ink-muted);
}

/* --------------------------------------------------------------------------
   components · 通用模块
   -------------------------------------------------------------------------- */

.section {
  padding: var(--gap-section) 0;
}

.section-head {
  max-width: var(--read);
  margin-bottom: 32px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-strong);
}

.section-intro,
.section-lead,
.section-desc {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-body);
}

.section-text {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-body);
}

.section-footnote {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-muted);
}

.section-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}

.subsection-title {
  margin-top: 24px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-strong);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--brand);
  color: #FAF8F4;
  border-color: var(--brand);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--brand-deep);
  border-color: var(--brand-deep);
  color: #FFFFFF;
}

.btn-text,
.btn-ghost {
  background-color: transparent;
  color: var(--brand);
  border-color: var(--line-strong);
}

.btn-text:hover,
.btn-text:focus-visible,
.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: var(--brand-deep);
  border-color: var(--brand);
  background-color: rgba(47, 107, 99, 0.06);
}

/* 图片容器 */
.hero-figure,
.topic-figure,
.figure,
.scope-figure,
.featured-topic-media,
.editor-picks-media,
.related-topics-media,
.channel-figure {
  overflow: hidden;
  border-radius: var(--radius);
  background-color: var(--bg-soft);
  border: 1px solid var(--line);
}

.hero-figure img,
.topic-figure img,
.figure img,
.scope-figure img,
.featured-topic-media img,
.editor-picks-media img,
.related-topics-media img,
.channel-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.hero-caption,
.media-caption,
.figure-caption,
.channel-figure-caption {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-muted);
  border-top: 1px solid var(--line);
  background-color: var(--bg-card);
}

/* 细线表格 */
.field-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
}

.field-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background-color: var(--bg-card);
}

.field-caption,
.field-table-caption {
  caption-side: top;
  padding: 14px 16px;
  text-align: left;
  font-size: 14px;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--line);
}

.field-table th,
.field-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  line-height: 1.7;
}

.field-table thead th {
  background-color: var(--bg-soft);
  color: var(--ink-strong);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

.field-table tbody th {
  color: var(--ink-strong);
  font-weight: 600;
  white-space: nowrap;
  width: 20%;
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.field-note {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-muted);
}

/* FAQ 折叠 */
.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
  background-color: transparent;
}

.faq-question {
  display: block;
  position: relative;
  padding: 16px 40px 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-strong);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--brand);
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "–";
}

.faq-question:hover {
  color: var(--brand);
}

.faq-answer {
  padding: 0 0 18px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-body);
  max-width: var(--read);
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */

.hero {
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  border-left: 3px solid var(--brand);
  padding-left: 10px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 40px;
  font-weight: 700;
  color: var(--ink-strong);
  line-height: 1.25;
}

.hero-lead {
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-body);
  max-width: 560px;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.hero-figure {
  min-width: 0;
}

.hero-figure img {
  aspect-ratio: 16 / 10;
}

/* 平台定位两条主线 */
.section-positioning .line-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.line-card {
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.line-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-strong);
}

.line-text {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-body);
}

/* 题材方向总览 */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.channel-item {
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.channel-item:hover {
  border-color: var(--line-strong);
  background-color: #FFFDFA;
}

.channel-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-strong);
}

.channel-scope {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-body);
}

.channel-sample {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-body);
}

.sample-label {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 8px;
  border-radius: 2px;
  background-color: rgba(47, 107, 99, 0.1);
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 600;
}

.channel-footnote {
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-muted);
  max-width: var(--read);
}

/* 专题策展速览 */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.topic-card {
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.topic-card:hover {
  border-color: var(--line-strong);
  background-color: #FFFDFA;
}

.topic-figure {
  margin: -22px -22px 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
}

.topic-figure img {
  aspect-ratio: 3 / 2;
}

.topic-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-strong);
}

.topic-scope {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-body);
}

.topic-related {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-muted);
}

/* 查阅路径要点 */
.path-list {
  counter-reset: path;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 32px;
}

.path-item {
  position: relative;
  padding-left: 52px;
  min-height: 52px;
}

.path-index {
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(47, 107, 99, 0.1);
  color: var(--brand-deep);
  font-size: 14px;
  font-weight: 700;
}

.path-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-strong);
}

.path-text {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-body);
}

/* 内容边界与反馈 */
.boundary-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.boundary-copy {
  min-width: 0;
}

.boundary-text {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-body);
  max-width: var(--read);
}

.boundary-aside {
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.aside-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-strong);
}

.aside-note {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-muted);
}

.aside-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aside-item {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.7;
}

.aside-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.aside-link {
  color: var(--brand);
}

.aside-link:hover,
.aside-link:focus-visible {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   pages · 题材频道
   -------------------------------------------------------------------------- */

.page-channel .group-index {
  position: sticky;
  top: 84px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.page-channel .group-index-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-channel .group-index-item {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.page-channel .group-index-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.page-channel .group-index-link {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-strong);
}

.page-channel .group-index-link:hover,
.page-channel .group-index-link:focus-visible {
  color: var(--brand);
}

.page-channel .group-index-scope {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-muted);
}

.page-channel .entries {
  min-width: 0;
}

.page-channel .entries > .section-title {
  font-size: 22px;
}

.page-channel .entries > .section-lead {
  margin-bottom: 28px;
}

.entry-group {
  margin-bottom: 36px;
  scroll-margin-top: 92px;
}

.entry-group-head {
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line-strong);
  margin-bottom: 4px;
}

.entry-group-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-strong);
}

.entry-group-scope {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-muted);
}

.entry-list {
  display: flex;
  flex-direction: column;
}

.entry-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 150px minmax(0, 1.6fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.18s ease;
}

.entry-row:hover {
  background-color: #FFFDFA;
}

.entry-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-strong);
  min-width: 0;
}

.entry-meta {
  font-size: 13px;
  color: var(--ink-muted);
  white-space: nowrap;
}

.entry-summary {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-body);
  min-width: 0;
}

.entry-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
  border-bottom: 1px solid rgba(47, 107, 99, 0.4);
  padding-bottom: 1px;
}

.entry-link:hover,
.entry-link:focus-visible {
  color: var(--accent);
  border-bottom-color: rgba(168, 68, 47, 0.5);
}

.page-channel .field-legend,
.page-channel .scope-note {
  margin-top: 56px;
}

.page-channel .field-legend .section-lead,
.page-channel .scope-note .section-lead {
  margin-bottom: 22px;
}

.scope-note-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.scope-note-item {
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.scope-note-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-strong);
}

.scope-note-text {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-body);
}

.channel-figure {
  margin-top: 48px;
}

.channel-figure img {
  aspect-ratio: 21 / 9;
}

/* --------------------------------------------------------------------------
   pages · 专题策展
   -------------------------------------------------------------------------- */

.featured-topic {
  border-bottom: 1px solid var(--line);
}

.featured-topic-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.featured-topic-copy {
  min-width: 0;
}

.featured-topic-media {
  min-width: 0;
}

.featured-topic-media img {
  aspect-ratio: 4 / 3;
}

.topic-range-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.topic-range-item {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-body);
}

.topic-range-item::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--brand);
}

.topic-list-section .topic-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.topic-card-title {
  font-size: 17px;
  font-weight: 700;
}

.topic-card-link {
  color: var(--ink-strong);
}

.topic-card-link:hover,
.topic-card-link:focus-visible {
  color: var(--brand);
}

.topic-card-scope {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-body);
}

.topic-card-meta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 13px;
  color: var(--ink-muted);
}

.topic-card-meta dt {
  font-weight: 600;
  color: var(--ink-muted);
}

.topic-card-meta dd {
  color: var(--ink-body);
}

.topic-card-text {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-body);
}

.editor-picks-section {
  background-color: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.editor-picks-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.editor-picks-main {
  min-width: 0;
}

.editor-picks-media {
  min-width: 0;
}

.editor-picks-media img {
  aspect-ratio: 4 / 3;
}

.picks-list {
  counter-reset: picks;
  margin-top: 8px;
}

.picks-item {
  counter-increment: picks;
  position: relative;
  padding: 20px 0 20px 56px;
  border-top: 1px solid var(--line);
}

.picks-item::before {
  content: counter(picks, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 22px;
  width: 38px;
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

.picks-item-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-strong);
}

.picks-item-text {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-body);
}

.picks-item-next {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-muted);
}

.related-topic-nav {
  margin-top: 8px;
}

.related-topic-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.related-topic-item {
  min-width: 0;
}

.related-topic-link {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 12px 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-strong);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.related-topic-link:hover,
.related-topic-link:focus-visible {
  color: var(--brand-deep);
  border-color: var(--line-strong);
  background-color: #FFFDFA;
}

.related-topics-media {
  margin-top: 36px;
}

.related-topics-media img {
  aspect-ratio: 21 / 9;
}

/* --------------------------------------------------------------------------
   pages · 查阅指引
   -------------------------------------------------------------------------- */

.page-guide .guide-aside {
  position: sticky;
  top: 84px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.anchor-nav-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-strong);
}

.anchor-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.anchor-link {
  display: block;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--ink-body);
}

.anchor-link:hover,
.anchor-link:focus-visible {
  color: var(--brand-deep);
  background-color: var(--bg-soft);
}

.anchor-link.is-active {
  color: var(--brand-deep);
  font-weight: 700;
  background-color: rgba(47, 107, 99, 0.1);
}

.guide-body {
  min-width: 0;
  max-width: var(--read);
}

.guide-section {
  padding-bottom: 44px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 92px;
}

.guide-section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.guide-section > .section-title {
  font-size: 22px;
}

.guide-section > p {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-body);
}

.figure-wide {
  margin-top: 24px;
}

.figure-wide img {
  aspect-ratio: 16 / 9;
}

.entry-pick-list {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.entry-pick {
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-body);
}

.entry-pick strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  color: var(--ink-strong);
}

.guide-section .field-table {
  margin-top: 24px;
}

.note-text {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-muted);
}

.step-list {
  counter-reset: step;
  margin-top: 24px;
}

.step-item {
  counter-increment: step;
  position: relative;
  padding: 18px 0 18px 56px;
  border-top: 1px solid var(--line);
}

.step-item::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 20px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(47, 107, 99, 0.1);
  color: var(--brand-deep);
  font-size: 14px;
  font-weight: 700;
}

.step-body {
  min-width: 0;
}

.step-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-strong);
}

.step-body p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-body);
}

.back-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.back-item {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-body);
}

.back-item::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--brand);
}

/* --------------------------------------------------------------------------
   pages · 收录范围与反馈
   -------------------------------------------------------------------------- */

.page-scope .scope-section {
  max-width: var(--shell-narrow);
  margin: 0 auto;
  padding: 44px 24px;
  border-bottom: 1px solid var(--line);
}

.page-scope .scope-section:last-of-type {
  border-bottom: 0;
}

.page-scope .scope-section .section-head {
  margin-bottom: 28px;
}

.scope-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.scope-item {
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.scope-in .scope-item {
  border-left: 3px solid var(--brand);
}

.scope-out .scope-item {
  border-left: 3px solid var(--accent);
}

.scope-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-strong);
}

.scope-text {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-body);
}

.scope-figure {
  margin-top: 32px;
}

.scope-figure img {
  aspect-ratio: 21 / 9;
}

.gap-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.gap-item {
  background-color: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.gap-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-strong);
}

.gap-text {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-body);
}

.feedback-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.feedback-main {
  min-width: 0;
}

.feedback-aside {
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.feedback-subtitle {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-strong);
}

.feedback-text {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-body);
}

.feedback-steps {
  counter-reset: feedback;
  margin-top: 14px;
}

.feedback-step {
  counter-increment: feedback;
  position: relative;
  padding: 12px 0 12px 34px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-body);
}

.feedback-step:first-child {
  border-top: 0;
}

.feedback-step::before {
  content: counter(feedback);
  position: absolute;
  left: 0;
  top: 14px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(47, 107, 99, 0.1);
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 700;
}

.scope-faq .faq-list {
  max-width: var(--read);
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */

.site-error .error-main {
  max-width: var(--shell-narrow);
  margin: 0 auto;
  padding: 72px 24px 24px;
}

.error-panel {
  max-width: var(--read);
}

.error-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--ink-strong);
}

.error-code {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}

.error-text {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-body);
}

.error-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.error-help {
  max-width: var(--shell-narrow);
  margin: 0 auto;
  padding: 48px 24px 24px;
}

.error-help-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-strong);
}

.error-help-list {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.error-help-item {
  min-width: 0;
}

.error-link {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 14px 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-strong);
}

.error-link:hover,
.error-link:focus-visible {
  color: var(--brand-deep);
  border-color: var(--line-strong);
  background-color: #FFFDFA;
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .hero-title {
    font-size: 34px;
  }

  .channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-list-section .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .related-topic-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .featured-topic-grid,
  .editor-picks-grid,
  .feedback-layout,
  .boundary-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .sidebar-left .page-layout,
  .page-layout.sidebar-left {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .page-channel .group-index,
  .page-guide .guide-aside {
    position: static;
  }

  .page-channel .group-index-list {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 6px;
  }

  .page-channel .group-index-item {
    flex: 0 0 auto;
    border-top: 0;
    padding-top: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    background-color: var(--bg-card);
  }

  .page-channel .group-index-scope {
    display: none;
  }

  .page-guide .anchor-list {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 6px;
  }

  .page-guide .anchor-item {
    flex: 0 0 auto;
  }

  .page-guide .anchor-link {
    white-space: nowrap;
    border: 1px solid var(--line);
    background-color: var(--bg-card);
  }

  .entry-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name link"
      "meta meta"
      "summary summary";
    gap: 6px 12px;
    align-items: start;
  }

  .entry-name { grid-area: name; }
  .entry-meta { grid-area: meta; }
  .entry-summary { grid-area: summary; }
  .entry-link { grid-area: link; }
}

@media (max-width: 768px) {
  body.site-body {
    font-size: 15px;
    line-height: 1.7;
  }

  .header-inner {
    padding: 12px 18px;
    gap: 12px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-left: 0;
    background-color: var(--bg-page);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 6px 16px rgba(31, 29, 26, 0.06);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 18px 16px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
  }

  .inner-main {
    padding: 20px 18px 56px;
  }

  .section-inner,
  .hero-inner,
  .boundary-inner {
    padding: 0 18px;
  }

  .hero {
    padding: 40px 0 36px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .page-title {
    font-size: 28px;
  }

  .page-header {
    margin-bottom: 32px;
  }

  .section {
    padding: 40px 0;
  }

  .section-title,
  .guide-section > .section-title,
  .page-channel .entries > .section-title {
    font-size: 20px;
  }

  .line-grid,
  .channel-grid,
  .topic-grid,
  .topic-list-section .topic-grid,
  .path-list,
  .scope-note-list,
  .scope-list,
  .gap-list,
  .related-topic-list,
  .entry-pick-list,
  .error-help-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 36px 18px 24px;
  }

  .footer-copy {
    padding: 14px 18px 20px;
  }

  .field-table {
    font-size: 14px;
  }

  .field-table th,
  .field-table td {
    padding: 10px 12px;
  }

  .field-table tbody th {
    width: auto;
  }

  .channel-figure img,
  .related-topics-media img,
  .scope-figure img {
    aspect-ratio: 16 / 10;
  }

  .featured-topic-media img,
  .editor-picks-media img {
    aspect-ratio: 16 / 10;
  }

  .site-error .error-main {
    padding: 48px 18px 16px;
  }

  .error-help {
    padding: 36px 18px 16px;
  }

  .error-title,
  .site-error .error-title {
    font-size: 28px;
  }

  .page-scope .scope-section {
    padding: 36px 18px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 10px 14px;
  }

  .brand-slogan {
    display: none;
  }

  .brand-name {
    font-size: 17px;
  }

  .hero-title {
    font-size: 26px;
  }

  .page-title {
    font-size: 26px;
  }

  .hero-actions .btn,
  .error-actions .btn {
    width: 100%;
  }

  .path-item {
    padding-left: 46px;
  }

  .picks-item {
    padding-left: 46px;
  }

  .step-item {
    padding-left: 48px;
  }

  .entry-row {
    padding: 12px 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  a,
  .channel-item,
  .topic-card,
  .related-topic-link,
  .entry-row {
    transition: none;
  }
}
