/* =========================================================
   秋霞网址指南 · 全站样式
   base → layout → components → pages → responsive
   ========================================================= */

/* ---------------------------------------------------------
   base
   --------------------------------------------------------- */
:root {
  --brand: #0f5c6b;
  --brand-dark: #0b4551;
  --brand-soft: #e6f0f2;
  --ink: #111111;
  --ink-body: #3d3d3d;
  --ink-muted: #6b6b6b;
  --line: #e4e4e4;
  --surface: #f7f8f8;
  --white: #ffffff;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow: 0 1px 2px rgba(17, 17, 17, 0.05);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --shell: 1120px;
  --pad: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

.site-body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-body);
  background: var(--white);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.35;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--brand-dark);
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

time {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------------------------------------------------------
   layout · 全站骨架
   --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--pad);
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: var(--ink);
  font-weight: 600;
}

.brand:hover,
.brand:focus-visible {
  color: var(--brand);
  text-decoration: none;
}

.brand-mark {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: var(--radius-sm);
  background: var(--brand);
  box-shadow: inset 0 0 0 4px var(--white), inset 0 0 0 5px var(--brand);
}

.brand-name {
  font-size: 17px;
  line-height: 1.4;
}

.site-nav {
  display: block;
}

.nav-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.nav-link {
  display: inline-block;
  padding: 10px 12px;
  color: var(--ink-body);
  font-size: 15px;
  line-height: 1.5;
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--brand);
  background: var(--brand-soft);
  text-decoration: none;
}

.nav-link.is-current {
  color: var(--brand);
  font-weight: 600;
  border-bottom-color: var(--brand);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

.site-main {
  display: block;
}

.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 24px var(--pad) 56px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
  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);
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 600;
}

.page-header {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.page-title {
  font-size: 32px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.page-description {
  margin-top: 12px;
  max-width: 820px;
  font-size: 16px;
  color: var(--ink-body);
}

.page-summary,
.page-summary-bar {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-muted);
}

.page-summary-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.summary-item {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.summary-item strong {
  color: var(--ink);
  font-weight: 600;
  font-family: var(--font-mono);
}

.section {
  margin-bottom: 48px;
}

.section-head {
  margin-bottom: 20px;
}

.section-head h2,
.section-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
}

.section-desc,
.section-intro,
.section-note {
  margin-top: 8px;
  max-width: 860px;
  font-size: 15px;
  color: var(--ink-muted);
}

.section-foot {
  margin-top: 16px;
  font-size: 15px;
}

.section-link {
  margin-top: 16px;
  font-size: 15px;
}

.text-link {
  display: inline-block;
  font-size: 15px;
  color: var(--brand);
  border-bottom: 1px solid transparent;
}

.text-link:hover,
.text-link:focus-visible {
  border-bottom-color: var(--brand);
  text-decoration: none;
}

/* 图片容器统一约束 */
.section-figure,
.hero-figure,
.aside-figure,
.records-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.section-figure img,
.hero-figure img,
.aside-figure img,
.records-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.section-figure figcaption,
.hero-figure figcaption,
.aside-figure figcaption,
.records-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink-muted);
  background: var(--white);
  border-top: 1px solid var(--line);
}

/* ---------------------------------------------------------
   components · 通用组件
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.btn:hover,
.btn:focus-visible {
  text-decoration: none;
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: var(--white);
}

.btn-ghost {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--brand);
  color: var(--brand);
}

/* 表格 */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.data-table {
  font-size: 15px;
  line-height: 1.6;
}

.data-table caption {
  text-align: left;
}

.data-table thead th {
  padding: 12px 14px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  border-bottom: 2px solid var(--brand);
}

.data-table tbody th,
.data-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  color: var(--ink-body);
}

.data-table tbody th {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.data-table tbody tr:nth-child(even) {
  background: var(--surface);
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.table-hint {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-muted);
}

/* 步骤清单 */
.step-list {
  display: grid;
  gap: 16px;
}

.step-item {
  position: relative;
  padding: 16px 18px 16px 56px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-index {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1;
}

.step-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.step-input,
.step-rule {
  margin-top: 6px;
  font-size: 15px;
  color: var(--ink-body);
}

.step-rule {
  color: var(--ink-muted);
}

/* 记录列表 */
.record-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.record-item {
  display: grid;
  grid-template-columns: 110px 92px 84px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}

.record-time,
.record-date {
  font-size: 14px;
  color: var(--ink-muted);
}

.record-type {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--brand);
  border-radius: var(--radius-sm);
  color: var(--brand);
  font-size: 13px;
  line-height: 1.6;
  justify-self: start;
  white-space: nowrap;
}

.record-scene {
  font-size: 14px;
  color: var(--ink-body);
  white-space: nowrap;
}

.record-note {
  font-size: 15px;
  color: var(--ink-body);
}

/* 折叠问答 */
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 16px;
  margin-bottom: 10px;
  background: var(--white);
}

.faq-item[open] {
  border-color: var(--brand);
  background: var(--surface);
}

.faq-question {
  padding: 14px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "＋";
  float: right;
  color: var(--brand);
  font-weight: 400;
}

.faq-item[open] .faq-question::after {
  content: "－";
}

.faq-answer {
  padding: 0 0 16px;
  font-size: 15px;
  color: var(--ink-body);
}

/* 返回顶部 */
.back-to-top {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  border-color: var(--brand);
  color: var(--brand);
}

.back-to-top.is-visible {
  border-color: var(--brand);
}

/* 页脚 */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  color: var(--ink-body);
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px var(--pad) 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr 1fr;
  gap: 28px;
}

.footer-col {
  min-width: 0;
}

.footer-title {
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.footer-about p,
.footer-boundary p {
  font-size: 14px;
  color: var(--ink-muted);
}

.footer-nav ul {
  display: grid;
  gap: 8px;
}

.footer-nav a {
  display: inline-block;
  padding: 4px 0;
  font-size: 14px;
  color: var(--ink-body);
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--brand);
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-current {
  font-size: 13px;
  color: var(--ink-muted);
}

.footer-copy {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--pad) 32px;
  font-size: 13px;
  color: var(--ink-muted);
}

/* ---------------------------------------------------------
   pages · 首页
   --------------------------------------------------------- */
.home-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 32px var(--pad) 56px;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
  margin-bottom: 48px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-intro,
.hero-filter,
.hero-picks {
  min-width: 0;
}

.home-title {
  font-size: 32px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.hero-lead {
  margin-top: 12px;
  font-size: 16px;
  color: var(--ink-body);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.hero-figure {
  margin-top: 20px;
}

.panel-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.panel-subtitle {
  margin-top: 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.panel-note {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-muted);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.filter-btn {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink-body);
  font-size: 15px;
}

.filter-btn:hover,
.filter-btn:focus-visible {
  border-color: var(--brand);
  color: var(--brand);
}

.filter-btn.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
  font-weight: 600;
}

.pick-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.pick-item {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.pick-item:hover {
  border-color: var(--brand);
}

.pick-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.pick-meta {
  font-size: 13px;
  color: var(--ink-muted);
}

.mini-record-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mini-record-list li {
  padding-left: 12px;
  border-left: 2px solid var(--brand);
  font-size: 14px;
  color: var(--ink-body);
}

.hero-picks .text-link {
  margin-top: 14px;
}

/* 首页 · 场景总览 */
.scene-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.scene-card {
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.scene-card:hover {
  border-color: var(--brand);
}

.scene-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.scene-count {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-muted);
}

.scene-samples {
  display: grid;
  gap: 6px;
  margin: 12px 0 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.scene-samples li {
  font-size: 14px;
  color: var(--ink-body);
}

.scene-overview .section-figure,
.field-summary .section-figure,
.record-preview .section-figure {
  margin-top: 20px;
}

/* 首页 · 字段摘要 */
.field-table {
  min-width: 640px;
}

/* 首页 · 查阅路径 */
.guide-preview .step-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* 首页 · 维护记录 */
.record-preview .record-list {
  margin-top: 4px;
}

/* ---------------------------------------------------------
   pages · 内页 · 场景分类
   --------------------------------------------------------- */
.page-layout {
  display: block;
}

.layout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}

.layout-main {
  min-width: 0;
}

.layout-aside {
  min-width: 0;
  display: grid;
  gap: 20px;
}

.aside-block {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.aside-block .section-title {
  font-size: 17px;
}

.field-list,
.status-list,
.aside-link-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.field-item,
.status-item {
  display: grid;
  gap: 2px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.field-item:last-child,
.status-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.field-name,
.status-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.field-desc,
.status-desc {
  font-size: 14px;
  color: var(--ink-muted);
}

.scene-table {
  min-width: 780px;
}

.scene-table tbody tr.group-row th {
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 600;
}

.section-scene-table .section-figure {
  margin-bottom: 20px;
}

.section-diff .data-table + .data-table {
  margin-top: 20px;
}

.diff-table {
  min-width: 560px;
}

/* ---------------------------------------------------------
   pages · 内页 · 收录标准
   --------------------------------------------------------- */
.section-compare .compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.compare-col {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  min-width: 0;
}

.compare-accept {
  border-top: 3px solid var(--brand);
}

.compare-reject {
  border-top: 3px solid var(--ink-muted);
}

.compare-heading {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.compare-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.compare-item {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.compare-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.compare-label {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.compare-item p {
  font-size: 14px;
  color: var(--ink-muted);
}

.section-criteria .section-figure {
  margin: 20px 0;
}

.criteria-list {
  counter-reset: criteria;
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.criteria-item {
  position: relative;
  padding: 16px 18px 16px 56px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.criteria-item::before {
  counter-increment: criteria;
  content: counter(criteria);
  position: absolute;
  top: 16px;
  left: 16px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1;
}

.criteria-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.criteria-item p {
  margin-top: 6px;
  font-size: 15px;
}

.check-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  counter-reset: check;
}

.check-item {
  position: relative;
  padding: 12px 16px 12px 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 15px;
}

.check-item::before {
  counter-increment: check;
  content: counter(check);
  position: absolute;
  top: 12px;
  left: 16px;
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
}

.handling-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.handling-item {
  padding: 16px 18px;
  border-left: 3px solid var(--brand);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.handling-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.handling-item p {
  margin-top: 6px;
  font-size: 15px;
}

.section-faq {
  margin-bottom: 0;
}

.section-faq .faq-item:first-of-type {
  margin-top: 20px;
}

/* ---------------------------------------------------------
   pages · 内页 · 查阅路径
   --------------------------------------------------------- */
.sidebar-left .page-layout {
  grid-template-columns: 260px minmax(0, 1fr);
}

.guide-sidebar {
  min-width: 0;
  display: grid;
  gap: 20px;
  align-self: start;
  position: sticky;
  top: 88px;
}

.aside-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.step-nav-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.step-nav-list a {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink-body);
  font-size: 14px;
}

.step-nav-list a:hover,
.step-nav-list a:focus-visible {
  border-color: var(--brand);
  color: var(--brand);
  text-decoration: none;
}

.guide-steps,
.guide-detail,
.guide-pitfalls,
.guide-advice {
  margin-bottom: 48px;
}

.guide-detail .step-block {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  margin-bottom: 16px;
  scroll-margin-top: 88px;
}

.guide-detail .step-block h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.step-meta {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 6px 16px;
  margin: 14px 0;
  padding: 12px 14px;
  background: var(--surface);
  border-radius: var(--radius);
  font-size: 15px;
}

.step-meta dt {
  color: var(--ink-muted);
  font-weight: 600;
}

.step-meta dd {
  margin: 0;
  color: var(--ink-body);
}

.guide-detail .step-block p {
  font-size: 15px;
}

.pitfall-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.pitfall-item {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.pitfall-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.pitfall-item p {
  margin-top: 6px;
  font-size: 15px;
}

.advice-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  counter-reset: advice;
  padding-left: 0;
}

.advice-list li {
  position: relative;
  padding: 12px 16px 12px 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 15px;
}

.advice-list li::before {
  counter-increment: advice;
  content: counter(advice);
  position: absolute;
  top: 12px;
  left: 16px;
  color: var(--brand);
  font-family: var(--font-mono);
  font-weight: 600;
}

/* ---------------------------------------------------------
   pages · 内页 · 维护记录
   --------------------------------------------------------- */
.records-log,
.records-types,
.records-feedback,
.records-scope {
  margin-bottom: 48px;
}

.records-log h2,
.records-types h2,
.records-feedback h2,
.records-scope h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
}

.records-figure {
  margin: 20px 0 24px;
}

.records-log .record-list {
  margin-top: 4px;
}

.records-log .record-item {
  grid-template-columns: 116px 96px 84px minmax(0, 1fr);
}

.record-type-table {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 15px;
}

.record-type-table caption {
  padding: 10px 14px;
  text-align: left;
  font-size: 13px;
  color: var(--ink-muted);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.record-type-table thead th {
  padding: 12px 14px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  text-align: left;
  border-bottom: 2px solid var(--brand);
  white-space: nowrap;
}

.record-type-table tbody th,
.record-type-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.record-type-table tbody th {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.record-type-table tbody tr:nth-child(even) {
  background: var(--surface);
}

.record-type-table tbody tr:last-child th,
.record-type-table tbody tr:last-child td {
  border-bottom: 0;
}

.feedback-steps {
  display: grid;
  gap: 14px;
  margin-top: 20px;
  counter-reset: feedback;
}

.feedback-step {
  position: relative;
  padding: 16px 18px 16px 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.feedback-step::before {
  counter-increment: feedback;
  content: counter(feedback);
  position: absolute;
  top: 16px;
  left: 16px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1;
}

.feedback-step h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.feedback-step p {
  margin-top: 6px;
  font-size: 15px;
}

.scope-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.scope-item {
  padding: 16px 18px;
  border-left: 3px solid var(--brand);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.scope-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.scope-item p {
  margin-top: 6px;
  font-size: 15px;
}

/* ---------------------------------------------------------
   pages · 404
   --------------------------------------------------------- */
.error-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 64px var(--pad) 80px;
}

.error-panel {
  max-width: 640px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.error-title {
  font-size: 32px;
  font-weight: 600;
  color: var(--ink);
}

.error-desc {
  margin-top: 12px;
  font-size: 16px;
  color: var(--ink-body);
}

.error-links {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.error-links a {
  display: block;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 15px;
  color: var(--ink-body);
}

.error-links a:hover,
.error-links a:focus-visible {
  border-color: var(--brand);
  color: var(--brand);
  text-decoration: none;
}

.error-action {
  font-size: 15px;
}

.error-home-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius);
  background: var(--brand);
  color: var(--white);
  font-weight: 600;
}

.error-home-link:hover,
.error-home-link:focus-visible {
  background: var(--brand-dark);
  color: var(--white);
  text-decoration: none;
}

/* ---------------------------------------------------------
   responsive
   --------------------------------------------------------- */
@media (max-width: 960px) {
  .header-inner {
    flex-wrap: wrap;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex: 1 0 100%;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    display: block;
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
  }

  .nav-link.is-current {
    border-bottom-color: var(--brand);
  }

  .hero-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .scene-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-preview .step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .layout-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar-left .page-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide-sidebar {
    position: static;
  }

  .section-compare .compare-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .record-item,
  .records-log .record-item {
    grid-template-columns: 110px 92px minmax(0, 1fr);
  }

  .record-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  :root {
    --pad: 16px;
  }

  .page-title,
  .home-title,
  .error-title {
    font-size: 24px;
  }

  .section-head h2,
  .section-title,
  .records-log h2,
  .records-types h2,
  .records-feedback h2,
  .records-scope h2 {
    font-size: 19px;
  }

  .home-main,
  .inner-main {
    padding-top: 20px;
    padding-bottom: 40px;
  }

  .hero-panel {
    padding: 18px;
  }

  .scene-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide-preview .step-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .step-meta {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .step-meta dt {
    margin-top: 8px;
  }

  .step-meta dt:first-of-type {
    margin-top: 0;
  }

  .record-item,
  .records-log .record-item {
    grid-template-columns: 90px minmax(0, 1fr);
    row-gap: 6px;
  }

  .record-type {
    justify-self: start;
  }

  .record-scene {
    grid-column: 1 / -1;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .footer-top {
    align-items: stretch;
  }

  .back-to-top {
    width: 100%;
  }

  .error-panel {
    padding: 22px;
  }
}
