/* =========================================================
   秋霞网址指南 lipin56.com
   base → layout → components → pages → responsive
   ========================================================= */

/* ---------- base ---------- */

:root {
  --ink: #1f2a44;
  --ink-soft: #5a6478;
  --accent: #2f7d6f;
  --warn: #a34a3c;
  --bg: #f7f6f3;
  --line: #e2e0da;
  --surface: #ffffff;
  --wrap: 1120px;
  --text-max: 760px;
  --radius: 6px;
  --serif: "Songti SC", "SimSun", "Source Han Serif SC", "Noto Serif CJK SC", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body.site-body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  font-weight: 400;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.4;
}

p {
  margin: 0 0 12px;
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--accent);
}

img {
  max-width: 100%;
  display: block;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

caption {
  text-align: left;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- layout ---------- */

.top-notice {
  background: var(--ink);
  color: #eef0f5;
  font-size: 13px;
}

.top-notice p {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 8px 20px;
  line-height: 1.6;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px 0;
  flex: 0 0 auto;
}

.brand-name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.brand-slogan {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.4;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li {
  display: flex;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 15px;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--ink);
}

.nav-list a.is-current {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.site-main {
  display: block;
}

.home-main {
  width: 100%;
}

.inner-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 24px 20px 8px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--ink-soft);
}

.breadcrumb-current {
  color: var(--ink);
}

.page-header {
  padding: 0 0 22px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 34px;
  margin: 0 0 12px;
}

.page-description {
  max-width: var(--text-max);
  color: var(--ink-soft);
  margin: 0;
}

.section {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.inner-main > .section:first-of-type,
.inner-main > .content-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.section-head {
  max-width: var(--wrap);
  margin: 0 auto 22px;
  padding: 0 20px;
}

.section-head h2 {
  font-size: 22px;
  margin: 0 0 8px;
}

.section-head p {
  max-width: var(--text-max);
  color: var(--ink-soft);
  margin: 0;
}

.section-title {
  font-size: 22px;
  margin: 0 0 10px;
}

.section-intro,
.section-desc,
.section-lead {
  max-width: var(--text-max);
  color: var(--ink-soft);
  margin: 0 0 20px;
}

.content-section {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.section-note,
.table-note {
  max-width: var(--wrap);
  margin: 14px auto 0;
  padding: 0 20px;
  font-size: 13px;
  color: var(--ink-soft);
}

.inner-main .section-note,
.inner-main .table-note {
  padding: 0;
  margin-left: 0;
  margin-right: 0;
}

/* ---------- components ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #2b3a5c;
  color: #ffffff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--ink);
  color: var(--ink);
}

.link-more {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid transparent;
}

.link-more:hover,
.link-more:focus-visible {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  font-size: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  min-width: 640px;
}

.data-table caption,
.table-caption {
  padding: 0 0 10px;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: left;
}

.data-table thead th {
  background: #f1efea;
  color: var(--ink);
  font-weight: 600;
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.data-table tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--ink);
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.data-table tbody td {
  padding: 12px 14px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background: #faf9f6;
}

.section-figure {
  margin: 22px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.section-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.section-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

.plain-list {
  margin: 0;
  padding: 0;
}

.plain-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  color: var(--ink-soft);
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.field-list {
  margin: 0;
}

.field-list dt {
  font-weight: 600;
  color: var(--ink);
  margin-top: 12px;
}

.field-list dt:first-child {
  margin-top: 0;
}

.field-list dd {
  margin: 2px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.related-links,
.related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related-links li,
.related-list li {
  display: flex;
}

.related-links a,
.related-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  font-size: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
}

.related-links a:hover,
.related-list a:hover,
.related-links a:focus-visible,
.related-list a:focus-visible {
  border-color: var(--ink);
  color: var(--ink);
}

.inline-note {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 12px 0 0;
}

/* ---------- 首页 ---------- */

.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 44px 20px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.hero-copy {
  min-width: 0;
}

.hero-eyebrow {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 12px;
}

.hero-title {
  font-size: 34px;
  margin: 0 0 16px;
}

.hero-lead {
  max-width: 540px;
  color: var(--ink-soft);
  margin: 0 0 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-media {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.hero-figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}

.hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

.clue-table {
  font-size: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.clue-table caption {
  padding: 0 0 10px;
  font-size: 13px;
  color: var(--ink-soft);
}

.clue-table thead th {
  background: #f1efea;
  text-align: left;
  font-weight: 600;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.clue-table tbody th {
  text-align: left;
  font-weight: 600;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.clue-table tbody td {
  padding: 10px 14px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.clue-table tbody tr:last-child th,
.clue-table tbody tr:last-child td {
  border-bottom: none;
}

.section-columns .table-scroll,
.section-topics .topic-grid,
.section-summary .summary-grid,
.section-prep .prep-steps,
.section-pages .page-index {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.column-table tbody th {
  color: var(--ink);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.topic-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.topic-card:hover {
  background: #fbfaf7;
}

.topic-figure {
  border-bottom: 1px solid var(--line);
}

.topic-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.topic-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.topic-name {
  font-size: 17px;
  margin: 0 0 8px;
}

.topic-body p {
  color: var(--ink-soft);
  margin: 0 0 10px;
}

.topic-meta {
  font-size: 13px;
  color: var(--accent);
  margin: 0 0 14px;
}

.topic-body .link-more {
  margin-top: auto;
  align-self: flex-start;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.summary-col {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.summary-col-title {
  font-size: 17px;
  margin: 0 0 14px;
}

.field-table {
  min-width: 0;
  border: none;
  font-size: 13px;
}

.field-table thead th {
  background: transparent;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.field-table tbody th,
.field-table tbody td {
  padding: 8px;
  font-size: 13px;
  white-space: normal;
}

.summary-link {
  margin: 14px 0 0;
  font-size: 14px;
}

.summary-link a {
  color: var(--accent);
  font-weight: 600;
}

.prep-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  counter-reset: prep;
}

.prep-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.step-no {
  display: inline-block;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

.step-name {
  font-size: 17px;
  margin: 0 0 8px;
}

.step-action {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 0 0 10px;
}

.step-done {
  font-size: 13px;
  color: var(--accent);
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.page-index {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.page-index-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.page-index-item:hover {
  background: #fbfaf7;
}

.page-index-item h3 {
  font-size: 17px;
  margin: 0 0 8px;
}

.page-index-item p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- 内页通用模块 ---------- */

.column-visual-media {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.media-figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.media-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.media-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.column-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.column-block h3 {
  font-size: 17px;
  margin: 0 0 12px;
}

.choice-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.choice-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.choice-item h3 {
  font-size: 17px;
  margin: 0 0 8px;
}

.choice-item p {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 0;
}

.rule-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.rule-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.rule-name {
  font-size: 17px;
  margin: 0 0 8px;
}

.rule-text {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 0;
}

.confusable-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.confusable-col {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.confusable-name {
  font-size: 17px;
  margin: 0 0 8px;
}

.confusable-text {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 0 0 10px;
}

.confusable-tip {
  font-size: 13px;
  color: var(--accent);
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.step-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.step-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.step-item .step-name {
  font-size: 17px;
  margin: 0 0 8px;
}

.step-text {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 0;
}

.prep-step-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.prep-step-list .prep-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.prep-step-no {
  display: inline-block;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

.prep-step-title {
  font-size: 17px;
  margin: 0 0 8px;
}

.prep-step-action {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 0 0 10px;
}

.prep-step-done {
  font-size: 13px;
  color: var(--accent);
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.checklist {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 20px;
}

.checklist-item {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.checklist-item:last-child {
  border-bottom: none;
}

.checklist-point {
  flex: 0 0 auto;
  min-width: 200px;
  font-weight: 600;
  color: var(--ink);
}

.checklist-standard {
  flex: 1 1 240px;
  color: var(--ink-soft);
  font-size: 14px;
}

.pitfall-columns,
.misread-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.pitfall-col,
.misread-col {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.pitfall-col-title,
.misread-col-title {
  font-size: 17px;
  margin: 0 0 12px;
}

.pitfall-col-wrong {
  border-top: 3px solid var(--warn);
}

.pitfall-col-fix {
  border-top: 3px solid var(--accent);
}

.pitfall-list li,
.misread-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 14px;
}

.pitfall-list li:last-child,
.misread-list li:last-child {
  margin-bottom: 0;
}

.pitfall-list li::before,
.misread-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-soft);
}

.pitfall-col-wrong .pitfall-list li::before {
  background: var(--warn);
}

.pitfall-col-fix .pitfall-list li::before {
  background: var(--accent);
}

.misread-myth {
  border-top: 3px solid var(--warn);
}

.misread-fact {
  border-top: 3px solid var(--accent);
}

.misread-myth .misread-list li::before {
  background: var(--warn);
}

.misread-fact .misread-list li::before {
  background: var(--accent);
}

.scope-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.scope-main {
  min-width: 0;
}

.scope-list {
  margin: 0;
  padding: 0;
}

.scope-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 14px;
}

.scope-item:last-child {
  margin-bottom: 0;
}

.scope-item-title {
  font-size: 17px;
  margin: 0 0 6px;
}

.scope-item p {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 0;
}

.scope-figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.scope-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.scope-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

.exclude-table thead th:first-child,
.exclude-table tbody td:first-child {
  color: var(--warn);
  font-weight: 600;
}

.feedback-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feedback-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.feedback-step-title {
  font-size: 17px;
  margin: 0 0 8px;
}

.feedback-step p {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 0 0 8px;
}

.feedback-step p a {
  color: var(--accent);
  font-weight: 600;
}

.feedback-need {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq-question {
  cursor: pointer;
  list-style: none;
  padding: 15px 44px 15px 20px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  position: relative;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--ink-soft);
}

.faq-item[open] .faq-question::after {
  content: "−";
  color: var(--accent);
}

.faq-answer {
  padding: 0 20px 16px;
  border-top: 1px solid var(--line);
}

.faq-answer p {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 14px 0 0;
}

.section-related {
  padding-bottom: 48px;
}

.related-nav {
  display: block;
}

/* ---------- pages ---------- */

/* 404 */

.site-error .error-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 60px 20px 40px;
}

.error-intro {
  border-bottom: 1px solid var(--line);
  padding-bottom: 36px;
  margin-bottom: 36px;
}

.error-code {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--warn);
  margin: 0 0 12px;
}

.error-intro h1 {
  font-size: 34px;
  margin: 0 0 14px;
}

.error-lead {
  max-width: var(--text-max);
  color: var(--ink-soft);
  margin: 0 0 10px;
}

.error-note {
  max-width: var(--text-max);
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 22px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-links h2 {
  font-size: 22px;
  margin: 0 0 18px;
}

.error-link-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.error-link-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.error-link-list li:hover {
  background: #fbfaf7;
}

.error-link-list a {
  display: inline-block;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}

.error-link-list p {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 0;
}

/* 栏目索引页：配图与文字左右两栏 */

.section-column-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.column-visual-text {
  min-width: 0;
}

.column-visual-text h2 {
  font-size: 22px;
  margin: 0 0 10px;
}

.column-visual-text p {
  color: var(--ink-soft);
  margin: 0 0 14px;
}

/* ---------- 页脚 ---------- */

.site-footer {
  background: var(--ink);
  color: #c9cfdd;
  margin-top: 0;
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 44px 20px 30px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-brand-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 8px;
}

.footer-brand-desc {
  font-size: 13px;
  color: #a9b2c6;
  margin: 0;
  max-width: 320px;
}

.footer-col-title {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 12px;
}

.footer-col ul li {
  margin-bottom: 4px;
}

.footer-col ul a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  font-size: 14px;
  color: #c9cfdd;
}

.footer-col ul a:hover,
.footer-col ul a:focus-visible {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-bottom p {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 6px 20px;
  font-size: 13px;
  color: #98a2b8;
}

.footer-bottom p:first-child {
  padding-top: 16px;
}

.footer-bottom p:last-child {
  padding-bottom: 18px;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex: 1 1 100%;
    margin-left: 0;
    order: 3;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--line);
    padding: 6px 0 10px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    display: block;
  }

  .nav-list a {
    width: 100%;
    min-height: 44px;
    padding: 0 4px;
    border-bottom: none;
    border-left: 2px solid transparent;
    padding-left: 12px;
  }

  .nav-list a.is-current {
    border-left-color: var(--accent);
    background: #f6f5f1;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 32px 20px 36px;
  }

  .hero-title,
  .page-title,
  .error-intro h1 {
    font-size: 28px;
  }

  .topic-grid,
  .summary-grid,
  .two-column,
  .confusable-grid,
  .step-list,
  .prep-step-list,
  .pitfall-columns,
  .misread-layout,
  .choice-list,
  .section-column-visual {
    grid-template-columns: minmax(0, 1fr);
  }

  .prep-steps,
  .page-index,
  .rule-list,
  .feedback-steps,
  .error-link-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scope-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .top-notice p {
    padding: 8px 16px;
  }

  .header-inner {
    padding: 0 16px;
  }

  .inner-main,
  .site-error .error-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-head,
  .section-columns .table-scroll,
  .section-topics .topic-grid,
  .section-summary .summary-grid,
  .section-prep .prep-steps,
  .section-pages .page-index,
  .section-note,
  .table-note {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-title,
  .page-title,
  .error-intro h1 {
    font-size: 24px;
  }

  .section-head h2,
  .section-title,
  .error-links h2,
  .column-visual-text h2 {
    font-size: 20px;
  }

  .prep-steps,
  .page-index,
  .rule-list,
  .feedback-steps,
  .error-link-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .checklist {
    padding: 4px 16px;
  }

  .checklist-point {
    min-width: 0;
    flex: 1 1 100%;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 34px 16px 24px;
  }

  .footer-bottom p {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-actions,
  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .error-actions .btn {
    width: 100%;
  }

  .related-links,
  .related-list {
    flex-direction: column;
  }

  .related-links a,
  .related-list a {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .topic-card,
  .page-index-item,
  .data-table tbody tr,
  .faq-item,
  .btn,
  .related-links a,
  .related-list a {
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  }
}
