/* ==========================================================================
   糖心vlog官网 · 整站样式表
   站点：zjjkcw.com | 视觉方向：物流运营风 · 内容线路隐喻
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   Base · 基础变量、重置、全局字体与颜色
   -------------------------------------------------------------------------- */
:root {
  --color-bg: #F4F6F8;
  --color-text: #10233F;
  --color-text-soft: #45566E;
  --color-link: #2563EB;
  --color-link-hover: #1D4ED8;
  --color-normal: #0EA36D;
  --color-warning: #F59E0B;
  --color-error: #DC2626;
  --color-border: #E2E8F0;
  --color-card: #FFFFFF;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --container-width: 1160px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --shadow-card: 0 1px 3px rgba(16, 35, 63, 0.06), 0 1px 2px rgba(16, 35, 63, 0.04);
  --shadow-float: 0 8px 24px rgba(16, 35, 63, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
figure {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
  border: 0;
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--color-link-hover);
  text-decoration: underline;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-variant-numeric: tabular-nums;
}

h1,
h2,
h3,
h4 {
  line-height: 1.3;
  color: var(--color-text);
  font-weight: 600;
}

h1 {
  font-size: clamp(1.65rem, 3vw, 2.15rem);
}

h2 {
  font-size: clamp(1.3rem, 2vw, 1.65rem);
}

h3 {
  font-size: 1.06rem;
}

p {
  margin-bottom: 0.85rem;
}

p:last-child {
  margin-bottom: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 状态标签通用样式 */
.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.2;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.status-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-normal {
  color: var(--color-normal);
  background: rgba(14, 163, 109, 0.08);
  border-color: rgba(14, 163, 109, 0.22);
}

.status-warning,
.status-wait,
.status-orange {
  color: var(--color-warning);
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25);
}

.status-abnormal,
.status-error,
.status-red {
  color: var(--color-error);
  background: rgba(220, 38, 38, 0.07);
  border-color: rgba(220, 38, 38, 0.2);
}

.status-ok {
  color: var(--color-normal);
  background: rgba(14, 163, 109, 0.08);
  border-color: rgba(14, 163, 109, 0.22);
}

/* --------------------------------------------------------------------------
   Layout · 页头 / 导航 / 页脚 / 页面骨架容器
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--color-card);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--color-text);
  font-size: 1.15rem;
  font-weight: 600;
}

.brand-link:hover {
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: var(--color-text);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
  flex-shrink: 0;
}

.brand-text {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-sub {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--color-text-soft);
  line-height: 1.2;
  margin-top: 2px;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-list li {
  position: relative;
}

.nav-list a {
  display: inline-block;
  padding: 0.55rem 0.85rem;
  font-size: 0.93rem;
  color: var(--color-text-soft);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.nav-list a:hover {
  color: var(--color-text);
  background: var(--color-bg);
  text-decoration: none;
}

.nav-list a.is-current {
  color: var(--color-link);
  background: rgba(37, 99, 235, 0.07);
  font-weight: 600;
}

.header-action {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-feedback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text-soft);
  background: var(--color-bg);
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
  white-space: nowrap;
}

.header-feedback:hover {
  border-color: var(--color-link);
  color: var(--color-link);
  background: rgba(37, 99, 235, 0.04);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* 主内容容器 */
.site-main {
  background: var(--color-bg);
}

.home-main {
  background: var(--color-bg);
}

.inner-main {
  background: var(--color-bg);
  padding-bottom: 3rem;
}

/* 页面标题区（内页通用） */
.page-header {
  background: var(--color-card);
  border-bottom: 1px solid var(--color-border);
  padding: 1.35rem 0 1.5rem;
  margin-bottom: 1.75rem;
}

.page-title {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.page-description {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--color-text-soft);
  max-width: 720px;
  margin-bottom: 0;
}

/* 面包屑 */
.breadcrumb {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0.8rem 1.25rem 0.1rem;
  font-size: 0.84rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  color: var(--color-text-soft);
}

.breadcrumb a {
  color: var(--color-text-soft);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--color-link);
  text-decoration: underline;
}

.breadcrumb-sep {
  color: #94A3B8;
  user-select: none;
}

.breadcrumb-current {
  color: var(--color-text);
  font-weight: 500;
}

/* 页脚 */
.site-footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 2.6rem 1.25rem 1.8rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-about {
  padding-right: 1rem;
}

.footer-brand {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.6rem;
}

.footer-about p:not(.footer-brand) {
  font-size: 0.85rem;
  line-height: 1.65;
  opacity: 0.7;
}

.footer-col h2 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.9rem;
}

.footer-col ul li {
  margin-bottom: 0.45rem;
}

.footer-col ul a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.15s ease;
}

.footer-col ul a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.1rem 1.25rem;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.55;
}

.footer-bottom p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   Components · 通用组件（状态点、步骤节点、卡片、侧栏、表格、FAQ、链接）
   -------------------------------------------------------------------------- */

/* 圆形状态点 */
.route-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.dot-normal {
  background: var(--color-normal);
  box-shadow: 0 0 0 4px rgba(14, 163, 109, 0.15);
}

.dot-warning {
  background: var(--color-warning);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.dot-abnormal {
  background: var(--color-error);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.15);
}

/* 状态图例点 */
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.status-dot-normal {
  background: var(--color-normal);
}

.status-dot-pending {
  background: var(--color-warning);
}

.status-dot-abnormal {
  background: var(--color-error);
}

/* 通用文本链接 */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-link);
  text-decoration: none;
}

.text-link:hover {
  color: var(--color-link-hover);
  text-decoration: underline;
}

.text-link::after {
  content: "→";
  transition: transform 0.15s ease;
}

.text-link:hover::after {
  transform: translateX(3px);
}

/* 区块标题通用 */
.section-head {
  margin-bottom: 1.5rem;
}

.section-head h2 {
  margin-bottom: 0.4rem;
}

.section-head p {
  color: var(--color-text-soft);
  font-size: 0.94rem;
  margin-bottom: 0;
  max-width: 640px;
}

/* 侧栏通用布局（内页 .sidebar-left） */
.sidebar-left {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

/* 侧栏卡片容器（categories 页） */
.layout-shell.sidebar-left {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.page-aside,
.sidebar {
  position: sticky;
  top: 90px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.1rem;
  box-shadow: var(--shadow-card);
}

.aside-card {
  margin-bottom: 1.4rem;
}

.aside-card:last-child {
  margin-bottom: 0;
}

.aside-card h2,
.sidebar h2,
.faq-sidebar h2 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.7rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--color-border);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.aside-nav li,
.sidebar-anchor-list li,
.sidebar-related-list li {
  margin-bottom: 0.25rem;
}

.aside-nav a,
.sidebar-anchor-list a,
.sidebar-related-list a {
  display: block;
  padding: 0.35rem 0.55rem;
  font-size: 0.88rem;
  color: var(--color-text-soft);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.aside-nav a:hover,
.sidebar-anchor-list a:hover,
.sidebar-related-list a:hover {
  background: rgba(37, 99, 235, 0.06);
  color: var(--color-link);
  text-decoration: none;
}

.sidebar-related-list {
  margin-bottom: 0.5rem;
}

/* FAQ 详情折叠 */
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  margin-bottom: 0.65rem;
  overflow: hidden;
}

.faq-item summary {
  padding: 0.85rem 1rem;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background-color 0.15s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1;
  color: var(--color-text-soft);
  transition: transform 0.18s ease;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
  transform: rotate(180deg);
}

.faq-item summary:hover {
  background: rgba(37, 99, 235, 0.04);
}

.faq-answer {
  padding: 0 1rem 1rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--color-text-soft);
  border-top: 1px solid rgba(226, 232, 240, 0.5);
  padding-top: 0.7rem;
}

.faq-answer p {
  margin-bottom: 0.5rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* 表格基础样式 */
.table-wrapper,
.table-wrap,
.term-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-card);
}

table.status-table,
table.term-table,
.coverage-table table {
  width: 100%;
  font-size: 0.9rem;
  min-width: 560px;
}

.status-table th,
.status-table td,
.term-table th,
.term-table td,
.coverage-table th,
.coverage-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  line-height: 1.6;
}

.status-table thead th,
.term-table thead th,
.coverage-table thead th {
  background: var(--color-bg);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-text);
  white-space: nowrap;
}

.status-table tbody tr:last-child td,
.term-table tbody tr:last-child td,
.coverage-table tbody tr:last-child td {
  border-bottom: none;
}

/* 下一步引导卡片 */
.next-step {
  margin-top: 2rem;
}

.next-step-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.next-step-card {
  display: block;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.2rem;
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.next-step-card:hover {
  border-color: var(--color-link);
  box-shadow: var(--shadow-float);
  text-decoration: none;
}

.next-step-card h3 {
  font-size: 0.98rem;
  margin-bottom: 0.35rem;
  color: var(--color-text);
}

.next-step-card p {
  font-size: 0.88rem;
  color: var(--color-text-soft);
  margin-bottom: 0;
  line-height: 1.6;
}

.next-step-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.next-step-links .next-link,
.next-step-links a.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--color-link);
  text-decoration: none;
}

.next-step-links .next-link:hover,
.next-step-links a.text-link:hover {
  color: var(--color-link-hover);
  text-decoration: underline;
}

.next-step-links .next-link::after,
.next-step-links a.text-link::after {
  content: "→";
}

/* --------------------------------------------------------------------------
   Pages · 首页各模块
   -------------------------------------------------------------------------- */

/* 步骤首屏 hero-step */
.hero-step {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 2.6rem 1.25rem 2.4rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-copy h1 {
  margin-bottom: 0.6rem;
  letter-spacing: 0;
}

.hero-lead {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text-soft);
  margin-bottom: 1.5rem;
  max-width: 520px;
}

.step-node-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step-node {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0.9rem;
  padding: 0.9rem 0;
  position: relative;
}

.step-node:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 52px;
  bottom: -8px;
  width: 1px;
  border-left: 2px dashed var(--color-border);
}

.step-index {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-text);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--color-bg);
}

.step-content h2 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--color-text-soft);
  margin-bottom: 0.35rem;
  line-height: 1.6;
}

.step-content a {
  font-size: 0.88rem;
}

.hero-visual {
  margin: 0;
}

.hero-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
}

/* 年度滚动档案带 */
.archive-annual {
  background: var(--color-card);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 2.2rem 0;
}

.archive-annual .section-head,
.archive-annual .year-index-bar,
.archive-annual .archive-list {
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.year-index-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 0.4rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1.2rem;
}

.year-label {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.2rem 1rem;
}

.year-note {
  font-size: 0.82rem;
  color: var(--color-text-soft);
}

.archive-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.archive-item {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.archive-month {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text-soft);
  letter-spacing: 0.04em;
}

.archive-item h3 {
  font-size: 0.96rem;
  margin-bottom: 0.1rem;
}

.archive-item p {
  font-size: 0.86rem;
  color: var(--color-text-soft);
  line-height: 1.6;
  margin-bottom: 0.4rem;
  flex-grow: 1;
}

.archive-item .status-tag {
  align-self: flex-start;
}

.archive-item a {
  font-size: 0.84rem;
  margin-top: 0.2rem;
}

/* 内容方向快速卡片 */
.direction-card-group {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 2.4rem 1.25rem;
}

.direction-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.direction-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.direction-card:hover {
  box-shadow: var(--shadow-float);
  transform: translateY(-2px);
}

.direction-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-bottom: 1px solid var(--color-border);
}

.card-body {
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 0.35rem;
}

.card-body h3 {
  font-size: 1rem;
  margin-bottom: 0.1rem;
}

.card-keywords {
  font-size: 0.84rem;
  color: var(--color-text-soft);
  line-height: 1.5;
  margin-bottom: 0.4rem;
  flex-grow: 1;
}

.card-body .status-tag {
  align-self: flex-start;
  margin-bottom: 0.4rem;
}

.card-body a {
  font-size: 0.88rem;
}

/* 访问路径节点图 */
.access-route-visual {
  background: var(--color-card);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 2.4rem 0;
}

.access-route-visual .section-head,
.route-nodes {
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.route-nodes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  counter-reset: route-count;
}

.route-node {
  position: relative;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.2rem 1.2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.route-node::before {
  counter-increment: route-count;
  content: counter(route-count);
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-soft);
  opacity: 0.4;
}

.route-dot {
  width: 16px;
  height: 16px;
  margin-bottom: 0.3rem;
}

.route-node h3 {
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.route-node p {
  font-size: 0.88rem;
  color: var(--color-text-soft);
  line-height: 1.65;
  margin-bottom: 0.5rem;
}

.route-node a {
  font-size: 0.86rem;
}

/* 异常安全提醒 */
.security-warning {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 2.4rem 1.25rem;
}

.warning-banner {
  background: var(--color-error);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.4rem;
  margin-bottom: 1.2rem;
}

.warning-banner h2 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.warning-banner p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.warning-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.warning-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.2rem;
  border-left: 3px solid var(--color-error);
}

.warning-icon {
  font-size: 1.4rem;
  display: inline-block;
  margin-bottom: 0.4rem;
  line-height: 1;
}

.warning-card h3 {
  font-size: 0.96rem;
  margin-bottom: 0.3rem;
}

.warning-card p {
  font-size: 0.86rem;
  color: var(--color-text-soft);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.warning-card a {
  font-size: 0.84rem;
}

/* FAQ 与名词预览 */
.faq-glossary-preview {
  background: var(--color-card);
  border-top: 1px solid var(--color-border);
  padding: 2.4rem 0;
}

.preview-grid {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.2rem;
}

.preview-col h2 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-bg);
}

.preview-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.preview-faq-list li {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
}

.preview-faq-list h3 {
  font-size: 0.94rem;
  margin-bottom: 0.2rem;
}

.preview-faq-list p {
  font-size: 0.85rem;
  color: var(--color-text-soft);
  line-height: 1.6;
  margin-bottom: 0.3rem;
}

.preview-faq-list a {
  font-size: 0.84rem;
}

.glossary-mini-table {
  font-size: 0.88rem;
  margin-bottom: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.glossary-mini-table th,
.glossary-mini-table td {
  padding: 0.6rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.glossary-mini-table thead th {
  background: var(--color-bg);
  font-weight: 600;
  font-size: 0.82rem;
}

.glossary-mini-table tbody tr:last-child td {
  border-bottom: none;
}

.glossary-preview > a {
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   Pages · 内容方向 categories
   -------------------------------------------------------------------------- */

/* 字段说明栏 */
.field-explanation {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.4rem 1.1rem;
  margin-bottom: 1.6rem;
}

.field-explanation h2 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.field-explanation > p {
  font-size: 0.9rem;
  color: var(--color-text-soft);
  margin-bottom: 1rem;
}

.field-table {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.field-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  border-bottom: 1px solid var(--color-border);
}

.field-row:last-child {
  border-bottom: none;
}

.field-row-head {
  background: var(--color-bg);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-text);
}

.field-name {
  padding: 0.6rem 0.9rem;
  font-weight: 500;
  font-size: 0.88rem;
  background: var(--color-bg);
  border-right: 1px solid var(--color-border);
}

.field-row-head .field-name {
  background: transparent;
  border-right: 1px solid var(--color-border);
}

.field-desc {
  padding: 0.6rem 0.9rem;
  font-size: 0.88rem;
  color: var(--color-text-soft);
  line-height: 1.6;
}

.field-row-head .field-desc {
  color: var(--color-text);
  font-weight: 500;
}

/* 方向列表 */
.direction-list {
  margin-bottom: 1.6rem;
}

.direction-list > h2 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.direction-list > p {
  font-size: 0.9rem;
  color: var(--color-text-soft);
  margin-bottom: 1rem;
}

.direction-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 0.9rem;
  transition: box-shadow 0.18s ease;
}

.direction-item:hover {
  box-shadow: var(--shadow-float);
}

.direction-media {
  overflow: hidden;
}

.direction-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 140px;
}

.direction-body {
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.direction-body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.1rem;
}

.direction-audience {
  font-size: 0.86rem;
  color: var(--color-text-soft);
  margin-bottom: 0.1rem;
}

.direction-keywords {
  font-size: 0.88rem;
  color: var(--color-text-soft);
  margin-bottom: 0.1rem;
}

.direction-note {
  font-size: 0.86rem;
  color: var(--color-text-soft);
  line-height: 1.6;
  margin-bottom: 0.3rem;
}

.direction-body .status-tag {
  align-self: flex-start;
  margin-top: 0.2rem;
}

.direction-body .text-link {
  align-self: flex-start;
  margin-top: 0.2rem;
}

/* 状态图例 */
.status-guide {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.4rem;
  margin-bottom: 1.6rem;
}

.status-guide h2 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.status-guide > p {
  font-size: 0.9rem;
  color: var(--color-text-soft);
  margin-bottom: 1rem;
}

.status-legend {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.status-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.status-legend strong {
  font-weight: 500;
  color: var(--color-text);
}

/* --------------------------------------------------------------------------
   Pages · 访问路径 access
   -------------------------------------------------------------------------- */

.page-layout.sidebar-left {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.page-layout.sidebar-left .sidebar {
  position: sticky;
  top: 90px;
  margin-top: 0;
}

.main-content {
  min-width: 0;
}

.main-content .breadcrumb {
  padding-left: 0;
  padding-right: 0;
  margin: 0 0 1rem;
}

.main-content .page-header {
  background: transparent;
  border-bottom: none;
  padding: 0 0 1rem;
  margin-bottom: 1.2rem;
}

.content-section {
  margin-bottom: 2rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
}

.content-section h2 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  padding-bottom: 0.4rem;
}

.content-section > p {
  font-size: 0.9rem;
  color: var(--color-text-soft);
  margin-bottom: 1rem;
}

/* 步骤列表 */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.step-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1rem;
  padding: 0.8rem 0;
}

.step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-number {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-text);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
}

.step-connector {
  width: 2px;
  flex-grow: 1;
  border-left: 2px dashed var(--color-border);
  margin-top: 0.4rem;
  min-height: 20px;
}

.step-item:last-child .step-connector {
  display: none;
}

.step-item .step-content h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.step-item .step-content p {
  font-size: 0.9rem;
  color: var(--color-text-soft);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

/* 异常处理卡 */
.exception-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.exception-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-error);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
}

.exception-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.exception-card p {
  font-size: 0.86rem;
  color: var(--color-text-soft);
  line-height: 1.65;
  margin-bottom: 0.4rem;
}

.exception-card p:last-child {
  margin-bottom: 0;
}

.content-media {
  max-width: var(--container-width);
  margin: 0 auto 1.5rem;
  padding: 0 1.25rem;
}

.content-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 0.5rem;
}

.content-media figcaption {
  font-size: 0.82rem;
  color: var(--color-text-soft);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Pages · 更新观察 updates
   -------------------------------------------------------------------------- */

.tracking-logic,
.timeline-section,
.reminder-guide,
.misconception-note {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 1.6rem 1.25rem 0.4rem;
}

.section-heading {
  margin-bottom: 1.2rem;
}

.section-heading h2 {
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.section-heading p {
  font-size: 0.9rem;
  color: var(--color-text-soft);
  margin-bottom: 0;
}

.logic-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.logic-item {
  display: flex;
  gap: 0.8rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
}

.node-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.node-dot-green {
  background: var(--color-normal);
  box-shadow: 0 0 0 4px rgba(14, 163, 109, 0.12);
}

.node-dot-orange {
  background: var(--color-warning);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.logic-text h3 {
  font-size: 0.96rem;
  margin-bottom: 0.25rem;
}

.logic-text p {
  font-size: 0.88rem;
  color: var(--color-text-soft);
  line-height: 1.65;
  margin-bottom: 0;
}

.media-figure {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-bottom: 1rem;
}

.media-figure figure {
  margin: 0;
}

.media-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
}

.media-figure figcaption {
  font-size: 0.82rem;
  color: var(--color-text-soft);
  text-align: center;
}

/* 年份索引 */
.year-index {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.year-tag {
  display: inline-block;
  padding: 0.3rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-soft);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 999px;
}

.year-tag.is-active {
  background: var(--color-text);
  color: #fff;
  border-color: var(--color-text);
}

.year-note {
  font-size: 0.82rem;
  color: var(--color-text-soft);
}

/* 时间线 */
.timeline-section {
  background: var(--color-card);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding-top: 2rem;
  padding-bottom: 2rem;
  margin-bottom: 0;
  max-width: none;
}

.timeline-section .section-heading,
.timeline-section .year-index,
.timeline-track {
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.timeline-track {
  position: relative;
  display: flex;
  flex-direction: column;
}

.timeline-track::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  border-left: 2px dashed var(--color-border);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.9rem;
  padding: 0.4rem 0 1rem;
}

.timeline-marker {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-normal);
  border: 3px solid var(--color-card);
  box-shadow: 0 0 0 2px var(--color-normal);
  margin-top: 0.4rem;
  margin-left: 4px;
  z-index: 1;
}

.timeline-content {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
}

.timeline-content h3 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.timeline-content p {
  font-size: 0.86rem;
  color: var(--color-text-soft);
  line-height: 1.65;
  margin-bottom: 0.4rem;
}

.timeline-content .status-tag {
  font-size: 0.78rem;
  padding: 0.2rem 0.6rem;
}

/* 提醒设置 */
.reminder-guide {
  padding-top: 2rem;
  padding-bottom: 1rem;
}

.reminder-guide .section-heading {
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

.reminder-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0;
}

.reminder-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.2rem;
}

.reminder-card h3 {
  font-size: 0.96rem;
  margin-bottom: 0.4rem;
}

.reminder-card p {
  font-size: 0.88rem;
  color: var(--color-text-soft);
  line-height: 1.65;
  margin-bottom: 0;
}

/* 误解澄清 */
.misconception-note {
  padding-top: 1.8rem;
  padding-bottom: 1.4rem;
}

.misconception-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.misconception-item {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
}

.misconception-item h3 {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.misconception-item p {
  font-size: 0.88rem;
  color: var(--color-text-soft);
  line-height: 1.65;
  margin-bottom: 0;
}

.misconception-more {
  font-size: 0.9rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* 下一步 */
.next-step .next-step-inner {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.4rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.next-step .next-step-inner p {
  margin-bottom: 0;
}

.next-step .next-step-inner .next-link {
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Pages · 名词索引 glossary
   -------------------------------------------------------------------------- */

.term-group {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.2rem;
  margin-bottom: 1.6rem;
}

.term-group h2 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.group-intro {
  font-size: 0.9rem;
  color: var(--color-text-soft);
  margin-bottom: 1rem;
}

.content-media-inline {
  margin: 0 0 1rem;
}

.content-media-inline img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 6;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 0.4rem;
}

.content-media-inline figcaption {
  font-size: 0.82rem;
  color: var(--color-text-soft);
  text-align: center;
}

.term-table-wrap {
  border-radius: var(--radius-lg);
}

.term-table th {
  font-weight: 600;
  font-size: 0.85rem;
}

.term-table td {
  font-size: 0.9rem;
  line-height: 1.7;
}

.term-table th[scope="row"] {
  font-weight: 600;
  white-space: nowrap;
  background: var(--color-bg);
  font-size: 0.9rem;
}

/* 周边词条卡片 */
.related-term-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.term-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
}

.term-card h3 {
  font-size: 0.96rem;
  margin-bottom: 0.3rem;
}

.term-card p {
  font-size: 0.86rem;
  color: var(--color-text-soft);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.term-card .term-scene {
  font-size: 0.82rem;
  color: var(--color-text-soft);
  border-top: 1px dashed var(--color-border);
  padding-top: 0.5rem;
  margin-bottom: 0;
}

.term-scene a {
  font-size: 0.82rem;
}

/* 场景说明 */
.context-note {
  margin-bottom: 1.6rem;
}

.context-note h2 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.context-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.4rem;
}

.context-card p {
  font-size: 0.9rem;
  color: var(--color-text-soft);
  line-height: 1.7;
  margin-bottom: 0.6rem;
}

.context-card p:last-child {
  margin-bottom: 0;
}

/* 下一步链接卡片 */
.next-step-inner {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.4rem;
}

.next-step-inner h2 {
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
}

.next-step-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.next-link {
  display: block;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.next-link:hover {
  border-color: var(--color-link);
  box-shadow: var(--shadow-card);
  text-decoration: none;
}

.next-link-title {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  margin-bottom: 0.15rem;
}

.next-link-desc {
  display: block;
  font-size: 0.84rem;
  color: var(--color-text-soft);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Pages · 常见问题 faq
   -------------------------------------------------------------------------- */

.faq-stage-figure {
  max-width: var(--container-width);
  margin: 0 auto 1.5rem;
  padding: 0 1.25rem;
}

.faq-stage-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 0.4rem;
}

.faq-stage-figure figcaption {
  font-size: 0.82rem;
  color: var(--color-text-soft);
  text-align: center;
}

.faq-sidebar {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.1rem;
  position: sticky;
  top: 90px;
}

.faq-sidebar ul li {
  margin-bottom: 0.25rem;
}

.faq-sidebar ul a {
  display: block;
  padding: 0.35rem 0.55rem;
  font-size: 0.88rem;
  color: var(--color-text-soft);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.faq-sidebar ul a:hover {
  background: rgba(37, 99, 235, 0.06);
  color: var(--color-link);
  text-decoration: none;
}

.faq-content {
  min-width: 0;
}

.faq-group {
  margin-bottom: 2rem;
}

.faq-group h2 {
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--color-bg);
}

.faq-group .group-intro {
  font-size: 0.9rem;
  color: var(--color-text-soft);
  margin-bottom: 0.9rem;
}

.faq-group .faq-answer a {
  font-size: 0.9rem;
  font-weight: 500;
}

/* 步骤卡引导 */
.step-card {
  display: block;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  text-decoration: none;
  transition: border-color 0.18s ease;
}

.step-card:hover {
  border-color: var(--color-link);
  text-decoration: none;
}

.step-label {
  display: block;
  font-size: 0.78rem;
  color: var(--color-text-soft);
  margin-bottom: 0.15rem;
  letter-spacing: 0.02em;
}

.step-title {
  display: block;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--color-text);
  margin-bottom: 0.15rem;
}

.step-desc {
  display: block;
  font-size: 0.84rem;
  color: var(--color-text-soft);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Pages · 收录规则 rules
   -------------------------------------------------------------------------- */

.positioning-summary,
.coverage-table,
.source-rules,
.citation-rules,
.feedback-path {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
  margin-bottom: 1.6rem;
}

.positioning-summary h2,
.coverage-table h2,
.source-rules h2,
.citation-rules h2,
.feedback-path h2 {
  font-size: 1.12rem;
  margin-bottom: 0.6rem;
}

.positioning-summary p,
.coverage-table p,
.source-rules p,
.citation-rules p,
.feedback-path p {
  font-size: 0.92rem;
  color: var(--color-text-soft);
  line-height: 1.75;
  margin-bottom: 0.7rem;
}

.positioning-summary p:last-child,
.coverage-table p:last-child,
.source-rules p:last-child,
.citation-rules p:last-child,
.feedback-path p:last-child {
  margin-bottom: 0;
}

.rules-media {
  max-width: var(--container-width);
  margin: 0 auto 1.6rem;
  padding: 0 1.25rem;
}

.rules-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 6;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 0.4rem;
}

.rules-media figcaption {
  font-size: 0.82rem;
  color: var(--color-text-soft);
  text-align: center;
}

.coverage-table .table-wrap {
  margin-top: 0.8rem;
  border-radius: var(--radius-md);
}

.source-rules ul,
.citation-rules ul,
.feedback-path ul {
  margin: 0.6rem 0 0.9rem;
}

.source-rules ul li,
.citation-rules ul li,
.feedback-path ul li {
  font-size: 0.9rem;
  color: var(--color-text-soft);
  line-height: 1.7;
  padding-left: 1.2rem;
  position: relative;
  margin-bottom: 0.4rem;
}

.source-rules ul li::before,
.citation-rules ul li::before,
.feedback-path ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-normal);
}

.source-rules ul li strong {
  color: var(--color-text);
  font-weight: 600;
}

.feedback-path ul li a {
  font-weight: 500;
}

/* 下一阅读 */
.next-step {
  background: transparent;
  border: none;
  padding: 0;
}

/* --------------------------------------------------------------------------
   Pages · 404
   -------------------------------------------------------------------------- */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
  padding: 3rem 1.25rem;
}

.error-panel {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.6rem 2.4rem;
  text-align: center;
  max-width: 560px;
  width: 100%;
  box-shadow: var(--shadow-card);
}

.error-code {
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--color-border);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.error-panel h1 {
  margin-bottom: 0.6rem;
}

.error-lead {
  color: var(--color-text-soft);
  font-size: 0.95rem;
  margin-bottom: 1.6rem;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.3rem;
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  min-height: 44px;
}

.btn-primary {
  background: var(--color-text);
  color: #fff;
  border: 1px solid var(--color-text);
}

.btn-primary:hover {
  background: #1D3150;
  color: #fff;
  text-decoration: none;
}

.btn-secondary {
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-link);
  color: var(--color-link);
  text-decoration: none;
}

.error-help {
  font-size: 0.86rem;
  color: var(--color-text-soft);
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Responsive · 响应式断点
   -------------------------------------------------------------------------- */

/* ≥960px 桌面导航 */
@media (max-width: 1159px) {
  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 1.8rem;
  }

  .direction-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .archive-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ≤959px 汉堡菜单 */
@media (max-width: 959px) {
  .header-inner {
    flex-wrap: wrap;
    min-height: 60px;
    padding: 0.4rem 1rem;
  }

  .nav-toggle {
    display: inline-flex;
    order: 3;
  }

  .brand {
    order: 1;
    flex: 1;
  }

  .header-action {
    order: 2;
  }

  .site-nav {
    order: 4;
    width: 100%;
    flex-basis: 100%;
    display: block;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 0.5rem 0 0.8rem;
    gap: 0;
    border-top: 1px solid var(--color-border);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    border-bottom: 1px solid var(--color-bg);
  }

  .nav-list li:last-child {
    border-bottom: none;
  }

  .nav-list a {
    display: block;
    padding: 0.7rem 0.4rem;
    font-size: 0.98rem;
    border-radius: 0;
  }

  .header-feedback {
    padding: 0.4rem 0.8rem;
    font-size: 0.82rem;
  }

  /* 内页侧栏布局改为单列 */
  .layout-shell.sidebar-left,
  .page-layout.sidebar-left {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .page-aside,
  .sidebar,
  .faq-sidebar {
    position: static;
    order: 2;
  }

  .content-area,
  .main-content,
  .faq-content {
    order: 1;
  }

  .page-header {
    padding: 1.1rem 0 1.2rem;
  }

  .breadcrumb {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-step {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.8rem 1rem 1.6rem;
  }

  .hero-visual {
    order: 2;
  }

  .hero-visual img {
    aspect-ratio: 16 / 9;
  }

  .archive-annual .section-head,
  .archive-annual .year-index-bar,
  .archive-annual .archive-list {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .archive-list {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .direction-card-group {
    padding: 1.8rem 1rem;
  }

  .direction-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .access-route-visual .section-head,
  .route-nodes {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .route-nodes {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .route-node {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    gap: 0.8rem;
    padding: 1rem 1.2rem;
  }

  .route-node::before {
    position: static;
    margin-left: auto;
  }

  .route-node .route-dot {
    margin-bottom: 0;
  }

  .route-node p {
    margin-bottom: 0.2rem;
  }

  .security-warning {
    padding: 1.8rem 1rem;
  }

  .warning-cards {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .faq-glossary-preview {
    padding: 1.8rem 0;
  }

  .preview-grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    padding: 0 1rem;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    padding: 2rem 1rem 1.4rem;
    gap: 1.6rem;
  }

  .footer-about {
    grid-column: 1 / -1;
    padding-right: 0;
  }

  /* categories 内页 */
  .field-row {
    grid-template-columns: 110px 1fr;
  }

  .direction-item {
    grid-template-columns: 1fr;
  }

  .direction-media img {
    height: 160px;
    min-height: 0;
  }

  .status-legend {
    gap: 1rem;
    flex-direction: column;
  }

  .next-step-grid {
    grid-template-columns: 1fr;
  }

  /* access 内页 */
  .main-content .breadcrumb {
    padding: 0 1rem;
  }

  .content-section {
    padding: 1.1rem 1.1rem;
  }

  .exception-card-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  /* updates */
  .logic-points {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .reminder-cards {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .misconception-list {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .timeline-section .section-heading,
  .timeline-section .year-index,
  .timeline-track {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* glossary */
  .related-term-list {
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
  }

  .next-step-links {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  /* faq */
  .faq-stage-figure {
    padding: 0 1rem;
  }

  .faq-sidebar {
    order: 2;
  }

  .faq-content {
    order: 1;
  }

  /* rules */
  .positioning-summary,
  .coverage-table,
  .source-rules,
  .citation-rules,
  .feedback-path {
    padding: 1.2rem 1.2rem;
  }

  .rules-media {
    padding: 0 1rem;
  }
}

/* ≤767px 手机 */
@media (max-width: 767px) {
  .header-inner {
    gap: 0.5rem;
  }

  .brand-sub {
    display: none;
  }

  .brand-text {
    font-size: 1.05rem;
  }

  .header-feedback {
    display: none;
  }

  .page-header {
    padding: 1rem 0 1.1rem;
  }

  .page-description {
    font-size: 0.92rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    padding: 1.8rem 1rem 1.2rem;
  }

  .footer-about {
    grid-column: 1;
  }

  /* 表格在手机上保持可横向滚动 */
  .table-wrapper,
  .table-wrap,
  .term-table-wrap {
    border-radius: var(--radius-sm);
  }

  .field-table {
    overflow-x: auto;
  }

  .field-row {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .field-name {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg);
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem 0.2rem;
  }

  .field-desc {
    padding: 0.2rem 0.8rem 0.6rem;
    font-size: 0.88rem;
  }

  .field-row-head {
    display: none;
  }

  .direction-item {
    margin-bottom: 0.7rem;
  }

  .related-term-list {
    grid-template-columns: 1fr;
  }

  .step-item {
    grid-template-columns: 44px 1fr;
    gap: 0.7rem;
  }

  .step-number {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }

  .content-media img,
  .faq-stage-figure img,
  .rules-media img,
  .media-figure img {
    aspect-ratio: 4 / 3;
  }

  .error-panel {
    padding: 2rem 1.4rem;
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .year-index {
    gap: 0.4rem;
  }

  .year-tag {
    padding: 0.25rem 0.8rem;
    font-size: 0.82rem;
  }

  .year-note {
    width: 100%;
  }

  .timeline-content {
    padding: 0.8rem 0.9rem;
  }

  .next-step-links {
    grid-template-columns: 1fr;
  }

  .step-card {
    padding: 0.8rem 0.9rem;
  }
}

/* ≤400px 小屏手机 */
@media (max-width: 400px) {
  .brand-mark {
    width: 26px;
    height: 26px;
    font-size: 0.85rem;
  }

  .brand-text {
    font-size: 0.98rem;
  }

  .nav-list a {
    padding: 0.65rem 0.3rem;
    font-size: 0.95rem;
  }

  .hero-copy h1 {
    font-size: 1.5rem;
  }

  .step-node {
    grid-template-columns: 36px 1fr;
    gap: 0.7rem;
  }

  .step-index {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }

  .step-node:not(:last-child)::after {
    left: 17px;
  }

  .route-node {
    flex-wrap: wrap;
  }

  .route-node::before {
    margin-left: 0;
  }

  .warning-banner {
    padding: 0.9rem 1rem;
  }

  .warning-card {
    padding: 0.9rem 1rem;
  }
}
