/* ==========================================================================
   91吃瓜在线 · 全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --ink-blue: #10202c;
  --ink-sub: #2b4453;
  --ink-body: #3d4d58;
  --paper: #f7f6f2;
  --white: #ffffff;
  --line: #d9d5cc;
  --line-soft: #e8e4dc;
  --accent: #b23a2b;
  --accent-soft: #f3e4e0;
  --green: #1f6f63;
  --green-soft: #e2eeeb;
  --radius: 4px;
  --shell: 1120px;
  --narrow: 720px;
  --gap: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-body);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Heiti SC", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  font-variant-numeric: tabular-nums;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink-blue);
  font-weight: 700;
  line-height: 1.4;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--ink-sub);
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease;
}

a:hover {
  color: var(--accent);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font: inherit;
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   layout · 全站骨架
   -------------------------------------------------------------------------- */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 56px;
}

.home-main {
  padding-bottom: 56px;
}

.inner-main {
  padding-top: 0;
}

/* 页头 */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 0 0 auto;
}

.brand-name {
  color: var(--ink-blue);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.brand-slogan {
  color: var(--ink-sub);
  font-size: 12px;
  line-height: 1.4;
}

.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 4px;
}

.nav-item a {
  display: block;
  padding: 8px 10px;
  color: var(--ink-sub);
  font-size: 14px;
  border-bottom: 2px solid transparent;
}

.nav-item a:hover {
  color: var(--accent);
}

.nav-item.is-current a,
.nav-item a.is-current {
  color: var(--ink-blue);
  font-weight: 700;
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink-blue);
}

/* 页内锚点导航 */
.anchor-nav {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.anchor-list {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.anchor-list a {
  display: block;
  padding: 9px 12px;
  font-size: 13px;
  color: var(--ink-sub);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.anchor-list a:hover,
.anchor-list a.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* 页脚 */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 32px 24px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 24px;
}

.footer-brand-name {
  color: var(--ink-blue);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.footer-desc {
  font-size: 13px;
  color: var(--ink-body);
  line-height: 1.7;
}

.footer-col-title {
  font-size: 14px;
  color: var(--ink-blue);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-soft);
}

.footer-list li {
  margin-bottom: 6px;
}

.footer-list a {
  font-size: 13px;
  color: var(--ink-body);
}

.footer-note {
  font-size: 12.5px;
  color: var(--ink-body);
  line-height: 1.7;
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid var(--line-soft);
}

.footer-copy {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px 24px;
  font-size: 12.5px;
  color: var(--ink-sub);
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 0 12px;
  font-size: 13px;
  color: var(--ink-sub);
}

.breadcrumb a {
  color: var(--ink-sub);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink-blue);
}

/* 页面标题区 · 全站统一内页标题 */
.page-header {
  padding-bottom: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink-blue);
}

/* 内页通用两栏骨架 */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  align-items: start;
}

.layout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  align-items: start;
}

/* 侧栏在前的两栏骨架：祖先带 .sidebar-left 时使用 */
.sidebar-left .page-layout,
.sidebar-left .layout-shell,
.page-layout.sidebar-left,
.layout-shell.sidebar-left {
  grid-template-columns: 240px minmax(0, 1fr);
}

/* --------------------------------------------------------------------------
   components
   -------------------------------------------------------------------------- */

/* 按钮 */
.btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 14px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #98301f;
  border-color: #98301f;
  color: #ffffff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink-blue);
  border-color: var(--line);
}

.btn-ghost:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* 区块标题 */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-blue);
}

.section-intro,
.section-lead,
.block-lead {
  color: var(--ink-body);
  margin-bottom: 16px;
  max-width: var(--narrow);
}

.section-more {
  font-size: 13px;
  color: var(--accent);
  white-space: nowrap;
  border-bottom: 1px solid transparent;
}

.section-more:hover {
  border-bottom-color: var(--accent);
}

/* 紧凑数据表 */
.table-wrap,
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.data-table {
  width: 100%;
  min-width: 560px;
  font-size: 14px;
  background: var(--white);
}

.data-table caption,
.table-caption {
  text-align: left;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink-sub);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.data-table thead th {
  background: var(--ink-blue);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  padding: 10px 14px;
  white-space: nowrap;
}

.data-table tbody th,
.data-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
  color: var(--ink-body);
}

.data-table tbody th {
  color: var(--ink-blue);
  font-weight: 700;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background: #faf9f6;
}

.data-table td a {
  color: var(--accent);
}

/* 字段说明块 */
.field-notes {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.field-notes .field-name {
  padding: 10px 14px 2px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-blue);
}

.field-notes .field-def {
  margin: 0;
  padding: 0 14px 12px;
  font-size: 13.5px;
  color: var(--ink-body);
  border-bottom: 1px solid var(--line-soft);
}

.field-notes .field-def:last-child {
  border-bottom: none;
}

.field-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.field-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.field-item .field-name {
  font-size: 15px;
  color: var(--ink-blue);
  margin-bottom: 6px;
}

.field-def {
  font-size: 13.5px;
  color: var(--ink-body);
  margin-bottom: 6px;
}

.field-example {
  font-size: 13px;
  color: var(--ink-sub);
  padding-top: 6px;
  border-top: 1px dashed var(--line);
}

/* 步骤清单 */
.step-list {
  counter-reset: step;
  display: grid;
  gap: 14px;
}

.step-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.step-index,
.step-num {
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.step-title {
  font-size: 16px;
  color: var(--ink-blue);
}

.step-text {
  font-size: 13.5px;
  color: var(--ink-body);
}

/* 折叠问答 */
.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  position: relative;
  padding: 13px 40px 13px 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-blue);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::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] .faq-question::after {
  content: "–";
}

.faq-question:hover {
  background: #faf9f6;
}

.faq-answer {
  padding: 0 16px 14px;
  border-top: 1px solid var(--line-soft);
}

.faq-answer p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-body);
}

/* 辅助栏通用块 */
.aside-block,
.side-block,
.sidebar-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
}

.aside-title,
.side-title,
.sidebar-title {
  font-size: 15px;
  color: var(--ink-blue);
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.aside-lead {
  font-size: 13px;
  color: var(--ink-sub);
  margin-bottom: 10px;
}

.aside-list li {
  font-size: 13.5px;
  color: var(--ink-body);
  padding: 6px 0 6px 12px;
  position: relative;
  border-bottom: 1px dashed var(--line-soft);
}

.aside-list li:last-child {
  border-bottom: none;
}

.aside-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.aside-link-list li,
.side-link-list li,
.sidebar-links li {
  margin-bottom: 8px;
}

.aside-link-list a,
.side-link-list a,
.sidebar-links a {
  font-size: 13.5px;
  color: var(--ink-sub);
  display: block;
  padding: 6px 0;
  border-bottom: 1px solid var(--line-soft);
}

.aside-link-list li:last-child a,
.side-link-list li:last-child a,
.sidebar-links li:last-child a {
  border-bottom: none;
}

.aside-more {
  margin-top: 10px;
  font-size: 13px;
}

.aside-more a {
  color: var(--accent);
}

/* 图片容器 */
.hero-visual,
.catalog-figure,
.topic-figure,
.cycle-figure,
.card-grid-figure,
.ranking-figure,
.guide-figure,
.structure-figure,
.content-figure,
.sidebar-figure {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-visual img,
.catalog-figure img,
.topic-figure img,
.cycle-figure img,
.card-grid-figure img,
.ranking-figure img,
.guide-figure img,
.structure-figure img,
.content-figure img,
.sidebar-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

figcaption {
  padding: 8px 12px;
  font-size: 12.5px;
  color: var(--ink-sub);
  background: var(--paper);
  border-top: 1px solid var(--line-soft);
}

/* 内页相关内容块 */
.related-block {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.related-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.related-item a {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-blue);
  margin-bottom: 4px;
}

.related-desc {
  font-size: 13px;
  color: var(--ink-body);
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */

/* 首屏 */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--line);
}

.hero-eyebrow {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 10px;
}

.hero-text h1 {
  font-size: 34px;
  line-height: 1.3;
  margin-bottom: 14px;
}

.hero-lead {
  font-size: 16px;
  color: var(--ink-sub);
  margin-bottom: 10px;
}

.hero-sub {
  font-size: 14px;
  color: var(--ink-body);
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual img {
  aspect-ratio: 4 / 3;
}

/* 摘要字段条 */
.summary-bar {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.summary-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.summary-cell {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.summary-cell .field-name {
  display: block;
  font-size: 13px;
  color: var(--ink-sub);
  margin-bottom: 4px;
}

.summary-cell .field-value {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-blue);
}

/* 题材索引 / 更新节奏 */
.catalog-section,
.updates-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.catalog-figure {
  margin-top: 18px;
  max-width: var(--narrow);
}

/* 榜单维度 */
.ranking-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.dimension-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.dimension-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.dimension-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.dimension-criteria {
  font-size: 13.5px;
  color: var(--ink-body);
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.dimension-list li {
  font-size: 13.5px;
  color: var(--ink-sub);
  padding: 5px 0 5px 14px;
  position: relative;
}

.dimension-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

/* 专题解读区 */
.topic-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.topic-points {
  display: grid;
  gap: 14px;
  margin: 16px 0 18px;
}

.topic-point {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.topic-point h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.topic-point p {
  font-size: 13.5px;
  color: var(--ink-body);
}

.topic-side {
  display: grid;
  gap: 20px;
}

.topic-related {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.topic-related h3 {
  font-size: 15px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.link-list li {
  margin-bottom: 8px;
}

.link-list a {
  font-size: 13.5px;
  color: var(--ink-sub);
  display: block;
  padding: 6px 0;
  border-bottom: 1px solid var(--line-soft);
}

.link-list li:last-child a {
  border-bottom: none;
}

/* 阅读指南速览 */
.guide-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

/* 首页问答 */
.faq-section {
  padding: 32px 0;
}

/* 首页相关内容条 */
.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.related-links-label {
  font-size: 13px;
  color: var(--ink-sub);
}

.related-links-item {
  font-size: 13px;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   pages · 内页
   -------------------------------------------------------------------------- */

/* 内页页面标题区（宽版） */
.inner-main > .page-title {
  max-width: var(--shell);
  padding: 28px 0 18px;
  margin: 0 0 24px;
  border-bottom: 1px solid var(--line);
}

.page-lead,
.page-summary {
  font-size: 15px;
  color: var(--ink-body);
  max-width: var(--narrow);
  margin-bottom: 14px;
}

.page-meta,
.page-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.page-meta-item,
.page-fields .field-item {
  font-size: 13px;
  color: var(--ink-sub);
}

.page-fields .field-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 12px;
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.page-fields .field-name {
  color: var(--ink-sub);
}

.page-fields .field-value {
  color: var(--ink-blue);
  font-weight: 700;
}

.page-title-block {
  padding: 0 0 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.page-title-inner {
  padding: 0 0 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

/* 主内容列 */
.content-main,
.content-column,
.main-col,
.layout-main,
.page-content {
  min-width: 0;
}

.content-main > section,
.content-column > section,
.layout-main > section,
.page-content > section {
  margin-bottom: 32px;
}

.content-main h2,
.content-column h2,
.layout-main h2,
.page-content h2,
.main-col h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.content-main h3,
.content-column h3,
.layout-main h3,
.page-content h3,
.main-col h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

/* 题材目录：左侧题材树 */
.topic-tree {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  position: sticky;
  top: 16px;
}

.tree-title {
  font-size: 15px;
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.tree-group {
  margin-bottom: 14px;
}

.tree-group-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-blue);
  padding: 4px 0;
  margin-bottom: 4px;
}

.tree-list {
  border-left: 1px solid var(--line);
}

.tree-item {
  font-size: 13px;
  color: var(--ink-sub);
  padding: 5px 0 5px 12px;
  border-left: 2px solid transparent;
  margin-left: -1px;
}

.tree-item.is-current {
  color: var(--accent);
  font-weight: 700;
  border-left-color: var(--accent);
}

/* 条目卡网格 */
.entry-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.entry-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.entry-card-link {
  display: block;
  padding: 12px 14px;
}

.entry-card-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-blue);
  margin-bottom: 8px;
}

.entry-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 12px;
  color: var(--ink-sub);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2px 8px;
}

.entry-card:hover {
  background: #faf9f6;
}

/* 字段说明区块 */
.field-notes-block,
.group-table-block,
.card-grid-block {
  margin-bottom: 32px;
}

.block-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-sub);
}

.block-note a {
  color: var(--accent);
}

/* 更新节奏页 */
.cycle-table-block h3.table-caption {
  margin: 18px 0 8px;
  padding: 0;
  background: none;
  border: none;
  font-size: 15px;
  color: var(--ink-blue);
}

.progress-notes {
  margin-top: 32px;
}

.cross-entry {
  margin-top: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.cross-title {
  font-size: 15px;
  margin-bottom: 6px;
}

.cross-entry p {
  font-size: 13.5px;
}

.cross-entry a {
  color: var(--accent);
}

/* 更新节奏页侧栏步骤 */
.order-tips .step-list {
  gap: 10px;
}

.order-tips .step-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  grid-template-rows: auto;
  align-items: start;
  gap: 10px;
  padding: 10px 12px;
  background: var(--paper);
  border: none;
  border-radius: var(--radius);
}

.order-tips .step-num {
  grid-row: auto;
  width: 26px;
  height: 26px;
  font-size: 13px;
}

.order-tips .step-text {
  font-size: 13px;
  color: var(--ink-body);
}

/* 榜单页 */
.criteria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 16px 0 20px;
}

.criteria-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.criteria-name {
  font-size: 16px;
  margin-bottom: 6px;
}

.criteria-def {
  font-size: 13.5px;
  color: var(--ink-body);
  margin-bottom: 8px;
}

.criteria-scale {
  font-size: 13px;
  color: var(--ink-sub);
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.ranking-figure {
  margin: 0 0 24px;
}

.ranking-tables {
  margin-top: 24px;
}

.ranking-table-block {
  margin-bottom: 24px;
}

.ranking-table-title {
  font-size: 16px;
  margin-bottom: 8px;
}

/* 专题页 */
.topic-aside {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  position: sticky;
  top: 16px;
}

.chapter-list {
  border-left: 1px solid var(--line);
}

.chapter-item {
  font-size: 13.5px;
  padding: 6px 0 6px 12px;
  border-left: 2px solid transparent;
  margin-left: -1px;
}

.chapter-item a {
  color: var(--ink-sub);
}

.chapter-item.is-current {
  border-left-color: var(--accent);
}

.chapter-item.is-current a {
  color: var(--accent);
  font-weight: 700;
}

.aside-note {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--ink-sub);
}

.aside-note a {
  color: var(--accent);
}

.topic-article {
  max-width: var(--narrow);
}

.article-section {
  margin-bottom: 28px;
}

.article-section p {
  margin-bottom: 10px;
  font-size: 15px;
  color: var(--ink-body);
}

.structure-figure {
  margin: 0 0 28px;
  max-width: var(--narrow);
}

.pace-block {
  margin-bottom: 32px;
}

.pace-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 14px;
}

.pace-column {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.pace-title {
  font-size: 16px;
  margin-bottom: 8px;
}

.pace-list li {
  font-size: 13.5px;
  color: var(--ink-body);
  padding: 5px 0 5px 14px;
  position: relative;
}

.pace-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.extend-block {
  margin-bottom: 32px;
}

.extend-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 14px 0 16px;
}

.extend-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.extend-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-blue);
  margin-bottom: 6px;
}

.extend-reason {
  font-size: 13px;
  color: var(--ink-body);
}

.extend-more {
  font-size: 13px;
}

.extend-more a {
  color: var(--accent);
  margin-right: 12px;
}

/* 阅读指南页 */
.guide-figure {
  margin: 0 0 20px;
  max-width: var(--narrow);
}

.guide-steps .step-list {
  max-width: var(--narrow);
}

.guide-paths {
  margin-top: 32px;
}

.path-compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 14px;
}

.path-col {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.path-title {
  font-size: 16px;
  margin-bottom: 8px;
}

.path-desc {
  font-size: 13.5px;
  color: var(--ink-body);
  margin-bottom: 10px;
}

.path-list li {
  font-size: 13.5px;
  color: var(--ink-sub);
  padding: 5px 0 5px 14px;
  position: relative;
  border-bottom: 1px dashed var(--line-soft);
}

.path-list li:last-child {
  border-bottom: none;
}

.path-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.guide-mistakes {
  margin-top: 32px;
}

.mistake-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.mistake-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.mistake-title {
  font-size: 15px;
  margin-bottom: 6px;
}

.mistake-text {
  font-size: 13px;
  color: var(--ink-body);
}

.checklist {
  display: grid;
  gap: 8px;
}

.checklist-item {
  position: relative;
  padding: 6px 0 6px 24px;
  font-size: 13.5px;
  color: var(--ink-body);
  border-bottom: 1px dashed var(--line-soft);
}

.checklist-item:last-child {
  border-bottom: none;
}

.checklist-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 12px;
  height: 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
}

/* 常见问题页 */
.faq-group {
  margin-bottom: 32px;
}

.question-index li {
  margin-bottom: 8px;
}

.question-index a {
  display: block;
  font-size: 13.5px;
  color: var(--ink-sub);
  padding: 6px 0;
  border-bottom: 1px solid var(--line-soft);
}

.question-index li:last-child a {
  border-bottom: none;
}

.sidebar-figure {
  margin-bottom: 20px;
}

/* 站点说明页 */
.standard-list {
  margin: 14px 0 20px;
  display: grid;
  gap: 8px;
}

.standard-list li {
  position: relative;
  padding: 8px 0 8px 24px;
  font-size: 14px;
  color: var(--ink-body);
  border-bottom: 1px solid var(--line-soft);
}

.standard-list li:last-child {
  border-bottom: none;
}

.standard-list li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 17px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.standard-list strong {
  color: var(--ink-blue);
  margin-right: 6px;
}

.content-block {
  margin-bottom: 32px;
}

.field-table {
  margin: 14px 0;
}

.field-summary-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  font-size: 13px;
  border-bottom: 1px dashed var(--line-soft);
}

.field-summary-list li:last-child {
  border-bottom: none;
}

.field-summary-list .field-name {
  color: var(--ink-sub);
}

.field-summary-list .field-value {
  color: var(--ink-blue);
  font-weight: 700;
  text-align: right;
}

.content-sidebar {
  min-width: 0;
}

/* 404 */
.error-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 56px;
}

.error-block {
  max-width: var(--narrow);
  padding: 48px 0;
}

.error-code {
  font-size: 44px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}

.error-title {
  font-size: 30px;
  margin-bottom: 12px;
}

.error-text {
  font-size: 15px;
  color: var(--ink-body);
  margin-bottom: 8px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}

.error-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.error-links a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-sub);
}

.error-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .page-layout,
  .layout-shell {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 24px;
  }

  .sidebar-left .page-layout,
  .sidebar-left .layout-shell,
  .page-layout.sidebar-left,
  .layout-shell.sidebar-left {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .topic-section {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
  }

  .hero-text h1 {
    font-size: 30px;
  }
}

@media (max-width: 760px) {
  .site-main,
  .error-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .header-inner,
  .anchor-list,
  .footer-inner,
  .footer-copy {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex: 1 1 100%;
    justify-content: flex-start;
  }

  .nav-list {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 0 8px;
    border-top: 1px solid var(--line-soft);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-item a {
    padding: 13px 4px;
    min-height: 48px;
    font-size: 15px;
    border-bottom: 1px solid var(--line-soft);
  }

  .nav-item.is-current a,
  .nav-item a.is-current {
    border-bottom-color: var(--line-soft);
    border-left: 3px solid var(--accent);
    padding-left: 10px;
  }

  .anchor-list a {
    padding: 10px 10px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 24px 0 20px;
  }

  .hero-text h1 {
    font-size: 24px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-visual {
    order: -1;
  }

  .page-header .page-title,
  .inner-main > .page-title,
  .error-title {
    font-size: 24px;
  }

  .section-title,
  .content-main h2,
  .content-column h2,
  .layout-main h2,
  .page-content h2,
  .main-col h2 {
    font-size: 19px;
  }

  .content-main h3,
  .content-column h3,
  .layout-main h3,
  .page-content h3,
  .main-col h3 {
    font-size: 16px;
  }

  .page-layout,
  .layout-shell,
  .sidebar-left .page-layout,
  .sidebar-left .layout-shell,
  .page-layout.sidebar-left,
  .layout-shell.sidebar-left {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  /* 手机端主内容排在辅助侧栏之前 */
  .page-layout > .content-main,
  .layout-shell > .content-main,
  .page-layout > .layout-main,
  .layout-shell > .layout-main,
  .page-layout > .page-content,
  .layout-shell > .content-column,
  .page-layout > .main-col,
  .layout-shell > article.content-main {
    order: 1;
  }

  .page-layout > .content-aside,
  .page-layout > .layout-aside,
  .page-layout > .side-col,
  .page-layout > .page-sidebar,
  .page-layout > .content-sidebar,
  .layout-shell > .content-aside,
  .layout-shell > .layout-aside,
  .layout-shell > .topic-aside,
  .layout-shell > .topic-tree,
  .page-layout > .topic-tree,
  .page-layout > .topic-aside {
    order: 2;
  }

  .topic-tree,
  .topic-aside {
    position: static;
  }

  .topic-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .topic-article,
  .structure-figure,
  .guide-figure,
  .catalog-figure {
    max-width: none;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .data-table {
    min-width: 520px;
    font-size: 13px;
  }

  .data-table thead th,
  .data-table tbody th,
  .data-table tbody td {
    padding: 9px 10px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14.5px;
  }

  .brand-name {
    font-size: 18px;
  }

  .hero-text h1 {
    font-size: 22px;
  }

  .page-header .page-title,
  .inner-main > .page-title,
  .error-title {
    font-size: 22px;
  }

  .section-title,
  .content-main h2,
  .content-column h2,
  .layout-main h2,
  .page-content h2,
  .main-col h2 {
    font-size: 18px;
  }

  .summary-fields,
  .dimension-columns,
  .criteria-grid,
  .entry-card-grid,
  .field-list,
  .pace-columns,
  .path-compare,
  .extend-list,
  .mistake-list,
  .related-list,
  .error-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .step-item {
    grid-template-columns: 30px minmax(0, 1fr);
    column-gap: 10px;
  }

  .step-index,
  .step-num {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* 程序验收反馈：移动端正文优先 */
@media (max-width: 768px) {
  .site-main :is(.page-content, .main-content, .content-main) {
    order: 1;
  }

  .site-main :is(aside, .sidebar) {
    order: 2;
  }
}
