/* ============================================================
   禁漫天堂 uuluk.cn 全站样式
   base → layout → components → pages → responsive
   ============================================================ */

/* ------------------------------------------------------------
   base：变量、重置、排版基础
   ------------------------------------------------------------ */
:root {
  --ink: #0f2233;
  --paper: #ffffff;
  --sand: #f4f1ea;
  --amber: #c2571a;
  --slate: #3f5566;
  --line: #d8d3c8;
  --line-strong: #b9b2a4;
  --radius: 6px;
  --shell: 1160px;
  --gutter: 24px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.35;
  text-wrap: balance;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.15s ease, text-decoration-thickness 0.15s ease;
}

a:hover,
a:focus-visible {
  color: #8f3d10;
  text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

strong {
  font-weight: 700;
  color: var(--ink);
}

code,
kbd,
samp {
  font-family: var(--font-mono);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 8px;
  color: var(--slate);
  font-size: 13px;
  line-height: 1.6;
}

table {
  border-collapse: collapse;
  width: 100%;
}

caption {
  caption-side: top;
  text-align: left;
}

/* ------------------------------------------------------------
   layout：全站骨架（页头 / 导航 / 主容器 / 页脚）
   ------------------------------------------------------------ */
.site-header {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 3px solid var(--amber);
}

.header-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--paper);
  text-decoration: none;
  min-height: 44px;
  justify-content: center;
}

.brand:hover,
.brand:focus-visible {
  color: var(--paper);
  text-decoration: none;
}

.brand-name {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
}

.brand-tag {
  color: #c9d4dd;
  font-size: 12.5px;
  line-height: 1.3;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-item {
  display: flex;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: #dbe3e9;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.nav-link.is-current {
  color: var(--paper);
  font-weight: 700;
  border-bottom-color: var(--amber);
  background: rgba(194, 87, 26, 0.18);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  padding: 0;
  background: transparent;
  border: 1px solid #4a6072;
  border-radius: var(--radius);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--paper);
  border-radius: 1px;
}

.site-main {
  display: block;
}

.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 28px var(--gutter) 56px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 13.5px;
  color: var(--slate);
}

.breadcrumb a {
  color: var(--slate);
  text-decoration: underline;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--amber);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 600;
}

.page-header {
  padding-bottom: 20px;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--line);
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.page-description {
  margin-top: 12px;
  max-width: 78ch;
  color: var(--slate);
  font-size: 15.5px;
  line-height: 1.8;
}

.site-footer {
  background: var(--ink);
  color: #c9d4dd;
  border-top: 3px solid var(--amber);
  padding: 40px 0 24px;
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 32px;
}

.footer-title {
  color: var(--paper);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #2c3f4f;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-list a {
  color: #c9d4dd;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
  min-height: 24px;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--paper);
  text-decoration: underline;
}

.footer-note,
.footer-copy {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
  font-size: 13px;
  line-height: 1.7;
  color: #9fb0bd;
}

.footer-note {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #2c3f4f;
}

.footer-copy {
  margin-top: 6px;
}

/* ------------------------------------------------------------
   components：通用模块（表格、列表、卡片、链接、FAQ）
   ------------------------------------------------------------ */
.section {
  margin-bottom: 46px;
}

.section-title {
  font-size: 23px;
  font-weight: 700;
  margin-bottom: 10px;
}

.section-lead,
.section-desc {
  max-width: 76ch;
  color: var(--slate);
  font-size: 15.5px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.section-head {
  margin-bottom: 20px;
}

.section-head .section-title {
  margin-bottom: 8px;
}

.section-head .section-desc {
  margin-bottom: 0;
}

.inline-link {
  font-weight: 600;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.data-table,
.field-table {
  min-width: 560px;
  font-size: 14.5px;
}

.data-table caption,
.field-table caption {
  padding: 12px 14px 0;
  color: var(--slate);
  font-size: 13.5px;
  text-align: left;
}

.data-table thead th,
.field-table thead th {
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: 14px;
  text-align: left;
  padding: 11px 14px;
  border-bottom: 2px solid var(--amber);
  white-space: nowrap;
}

.data-table tbody th,
.data-table tbody td,
.field-table tbody th,
.field-table tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.7;
}

.data-table tbody th,
.field-table tbody th {
  text-align: left;
  font-weight: 700;
  color: var(--ink);
  background: var(--sand);
  white-space: nowrap;
}

.data-table tbody tr:nth-child(even) td,
.field-table tbody tr:nth-child(even) td {
  background: #faf8f4;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td,
.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.related-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
  min-height: 44px;
}

.related-link {
  font-weight: 700;
  font-size: 15.5px;
}

.related-desc {
  color: var(--slate);
  font-size: 14px;
  line-height: 1.7;
}

/* ------------------------------------------------------------
   pages：首页
   ------------------------------------------------------------ */
.fact-bar {
  margin: 0;
  padding: 9px var(--gutter);
  background: var(--sand);
  color: var(--slate);
  font-size: 13.5px;
  line-height: 1.6;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.home-main {
  display: block;
}

.hero {
  position: relative;
  background: var(--ink);
  overflow: hidden;
}

.hero-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  min-height: 300px;
  max-height: 520px;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 32px var(--gutter) 40px;
  background: linear-gradient(180deg, rgba(15, 34, 51, 0.15) 0%, rgba(15, 34, 51, 0.82) 62%, rgba(15, 34, 51, 0.92) 100%);
}

.hero-title {
  color: var(--paper);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.25;
  max-width: 22ch;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.hero-summary {
  color: #e6ecf1;
  font-size: 15.5px;
  line-height: 1.85;
  max-width: 68ch;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.quick-entry {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  background: var(--sand);
  border-bottom: 1px solid var(--line);
}

.quick-entry-item {
  display: flex;
  border-right: 1px solid var(--line);
}

.quick-entry-item:last-child {
  border-right: 0;
}

.quick-entry-item a {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  min-height: 44px;
  padding: 16px 18px;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

.quick-entry-item a:hover,
.quick-entry-item a:focus-visible {
  background: var(--paper);
  border-bottom-color: var(--amber);
  color: var(--amber);
}

.quick-entry-note {
  color: var(--slate);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
}

.positioning {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 48px var(--gutter) 8px;
}

.positioning-track {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.positioning-intro h2 {
  font-size: 23px;
  margin-bottom: 14px;
}

.positioning-intro p {
  color: #33475a;
  font-size: 15.5px;
  line-height: 1.85;
  margin-bottom: 12px;
}

.positioning-principles {
  padding: 22px 24px;
  background: var(--sand);
  border: 1px solid var(--line);
  border-top: 3px solid var(--amber);
  border-radius: var(--radius);
}

.positioning-principles h2 {
  font-size: 18px;
  margin-bottom: 14px;
}

.principle-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.principle-item {
  position: relative;
  padding-left: 22px;
  color: #33475a;
  font-size: 14.5px;
  line-height: 1.75;
}

.principle-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 9px;
  height: 9px;
  background: var(--amber);
  border-radius: 2px;
}

.directions,
.fields-summary,
.guide-steps,
.site-index {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 48px var(--gutter) 0;
}

.directions h2,
.fields-summary h2,
.guide-steps h2,
.site-index h2 {
  font-size: 23px;
  margin-bottom: 10px;
}

.direction-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.direction-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.direction-card:hover {
  border-color: var(--amber);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(15, 34, 51, 0.1);
}

.direction-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--sand);
}

.direction-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.direction-name {
  padding: 14px 16px 0;
  font-size: 17px;
  font-weight: 700;
}

.direction-scope,
.direction-type {
  padding: 0 16px;
  color: var(--slate);
  font-size: 14px;
  line-height: 1.7;
}

.direction-scope {
  margin-top: 8px;
}

.direction-type {
  margin-top: 6px;
}

.direction-link {
  margin: 14px 16px 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  font-weight: 600;
  min-height: 24px;
}

.table-footnote,
.guide-footnote {
  margin-top: 16px;
  color: var(--slate);
  font-size: 14px;
  line-height: 1.8;
}

.guide-steps .step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  counter-reset: home-step;
}

.guide-steps .step-item {
  position: relative;
  padding: 22px 20px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--amber);
  border-radius: var(--radius);
  counter-increment: home-step;
}

.guide-steps .step-item::before {
  content: "0" counter(home-step);
  display: block;
  margin-bottom: 8px;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.guide-steps .step-title {
  font-size: 17px;
  margin-bottom: 8px;
}

.step-action {
  color: #33475a;
  font-size: 14.5px;
  line-height: 1.75;
}

.step-result {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-strong);
  color: var(--slate);
  font-size: 14px;
  line-height: 1.7;
}

.index-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: 56px;
}

.index-item {
  display: flex;
}

.index-item a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  min-height: 44px;
  padding: 14px 16px;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.index-item a:hover,
.index-item a:focus-visible {
  border-color: var(--amber);
  color: var(--amber);
}

.index-note {
  color: var(--slate);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
}

/* ------------------------------------------------------------
   pages：栏目分类
   ------------------------------------------------------------ */
.columns-table {
  min-width: 640px;
}

.column-block {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.column-block:last-of-type {
  border-bottom: 1px solid var(--line);
}

.column-block-media {
  width: 100%;
}

.media-figure {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand);
}

.media-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media-figure figcaption {
  padding: 0 12px 10px;
}

.column-block-body {
  min-width: 0;
}

.column-block-title {
  font-size: 19px;
  margin-bottom: 10px;
}

.column-block-text {
  color: #33475a;
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 12px;
}

.column-type-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.column-type-item {
  padding-left: 18px;
  position: relative;
  color: #33475a;
  font-size: 14.5px;
  line-height: 1.75;
}

.column-type-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  background: var(--amber);
  border-radius: 50%;
}

.column-block-entry {
  font-size: 14.5px;
}

.browse-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.browse-col {
  padding: 20px 22px;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.browse-col-title {
  font-size: 17px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.browse-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.browse-item {
  position: relative;
  padding-left: 22px;
  color: #33475a;
  font-size: 14.5px;
  line-height: 1.75;
}

.browse-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 9px;
  height: 9px;
  background: var(--amber);
  border-radius: 2px;
}

.browse-link-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.browse-link-item {
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line-strong);
  font-size: 14.5px;
}

.browse-link-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

/* ------------------------------------------------------------
   pages：查阅指引
   ------------------------------------------------------------ */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.page-toc {
  position: sticky;
  top: 20px;
  padding: 18px 20px;
  background: var(--sand);
  border: 1px solid var(--line);
  border-top: 3px solid var(--amber);
  border-radius: var(--radius);
}

.toc-title {
  font-size: 15px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.toc-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: toc;
}

.toc-item {
  counter-increment: toc;
  font-size: 14px;
  line-height: 1.6;
}

.toc-item a {
  display: inline-block;
  min-height: 24px;
}

.toc-item a::before {
  content: counter(toc) ". ";
  color: var(--amber);
  font-family: var(--font-mono);
  font-weight: 700;
}

.layout-content {
  min-width: 0;
}

.step-figure {
  width: 100%;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand);
}

.step-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.step-figure figcaption {
  padding: 0 14px 12px;
}

.section-steps .step-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-steps .step-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 4px 18px;
  padding: 20px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius);
}

.section-steps .step-number {
  grid-row: 1 / span 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
}

.section-steps .step-title {
  font-size: 18px;
  margin-bottom: 6px;
}

.step-text {
  color: #33475a;
  font-size: 15px;
  line-height: 1.8;
}

.step-link {
  margin-top: 10px;
  font-size: 14.5px;
  font-weight: 600;
  min-height: 24px;
  display: inline-block;
}

.step-detail {
  padding: 20px 22px;
  margin-bottom: 16px;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-detail-title {
  font-size: 17px;
  margin-bottom: 10px;
}

.step-detail-result {
  color: #33475a;
  font-size: 14.5px;
  line-height: 1.8;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line-strong);
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-question {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 16px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::before {
  content: "＋";
  margin-right: 10px;
  color: var(--amber);
  font-weight: 700;
}

.faq-item[open] .faq-question::before {
  content: "－";
}

.faq-item[open] .faq-question {
  background: var(--sand);
  border-bottom: 1px solid var(--line);
}

.faq-answer {
  padding: 12px 16px 14px;
  color: #33475a;
  font-size: 14.5px;
  line-height: 1.8;
}

.next-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.next-column {
  padding: 20px 22px;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.next-title {
  font-size: 17px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.next-text {
  color: #33475a;
  font-size: 14.5px;
  line-height: 1.8;
  margin-bottom: 12px;
}

.next-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.next-list li {
  position: relative;
  padding-left: 20px;
  color: #33475a;
  font-size: 14.5px;
  line-height: 1.75;
}

.next-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  background: var(--amber);
  border-radius: 50%;
}

/* ------------------------------------------------------------
   pages：字段说明
   ------------------------------------------------------------ */
.field-figure {
  width: 100%;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand);
}

.field-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.field-figure figcaption {
  padding: 0 14px 12px;
}

.field-item {
  padding: 18px 20px;
  margin-bottom: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius);
}

.field-item:last-child {
  margin-bottom: 0;
}

.field-name {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.field-meaning {
  color: #33475a;
  font-size: 14.5px;
  line-height: 1.8;
}

.field-note {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-strong);
  color: var(--slate);
  font-size: 14px;
  line-height: 1.75;
}

.field-map-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.field-map-col {
  padding: 20px 22px;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.field-map-title {
  font-size: 17px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.field-map-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-map-list li {
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line-strong);
  color: #33475a;
  font-size: 14.5px;
  line-height: 1.75;
}

.field-map-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.field-map-list strong {
  display: block;
  margin-bottom: 2px;
}

/* ------------------------------------------------------------
   pages：反馈说明
   ------------------------------------------------------------ */
.type-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.type-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--amber);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.type-card:hover {
  border-color: var(--amber);
  transform: translateY(-3px);
}

.type-name {
  font-size: 17px;
  font-weight: 700;
}

.type-condition {
  color: #33475a;
  font-size: 14px;
  line-height: 1.75;
}

.type-path {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--line-strong);
  color: var(--slate);
  font-size: 14px;
  line-height: 1.7;
}

.feedback-figure {
  width: 100%;
  margin: 0 auto 40px;
  max-width: var(--shell);
  padding: 0 var(--gutter);
  border-radius: var(--radius);
}

.feedback-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sand);
}

.feedback-figure figcaption {
  padding: 0 2px;
}

.prepare-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.prepare-item {
  padding: 18px 20px;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.prepare-name {
  font-size: 16px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.prepare-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prepare-points li {
  position: relative;
  padding-left: 20px;
  color: #33475a;
  font-size: 14px;
  line-height: 1.75;
}

.prepare-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  background: var(--amber);
  border-radius: 50%;
}

.process-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.process-main {
  padding: 22px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.process-main p {
  color: #33475a;
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 12px;
}

.process-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.process-points li {
  position: relative;
  padding-left: 22px;
  color: #33475a;
  font-size: 14.5px;
  line-height: 1.75;
}

.process-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 9px;
  height: 9px;
  background: var(--amber);
  border-radius: 2px;
}

.process-aside {
  padding: 20px 22px;
  background: var(--sand);
  border: 1px solid var(--line);
  border-top: 3px solid var(--amber);
  border-radius: var(--radius);
}

.aside-title {
  font-size: 16px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.aside-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aside-links li {
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line-strong);
  font-size: 14.5px;
  line-height: 1.7;
}

.aside-links li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

/* ------------------------------------------------------------
   pages：404
   ------------------------------------------------------------ */
.error-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 56px var(--gutter) 64px;
}

.error-hero {
  padding: 36px 0 32px;
  border-bottom: 2px solid var(--line);
}

.error-code {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 12px;
}

.error-hero h1 {
  font-size: 32px;
  line-height: 1.3;
  margin-bottom: 14px;
}

.error-lead {
  max-width: 70ch;
  color: var(--slate);
  font-size: 15.5px;
  line-height: 1.85;
  margin-bottom: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  font-size: 15.5px;
  font-weight: 700;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--amber);
  color: var(--paper);
  border-color: var(--amber);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #8f3d10;
  border-color: #8f3d10;
  color: var(--paper);
  text-decoration: none;
}

.error-paths {
  padding-top: 36px;
}

.error-paths h2 {
  font-size: 22px;
  margin-bottom: 18px;
}

.error-path-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.error-path-item {
  padding: 18px 20px;
  background: var(--sand);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
}

.error-path-item h3 {
  font-size: 16.5px;
  margin-bottom: 8px;
}

.error-path-item p {
  color: var(--slate);
  font-size: 14px;
  line-height: 1.75;
}

/* ------------------------------------------------------------
   responsive：900px / 600px 两档
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex-basis: 100%;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding-top: 8px;
    border-top: 1px solid #2c3f4f;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    padding: 0 12px;
    border-bottom: 1px solid #2c3f4f;
    border-radius: 0;
  }

  .nav-link.is-current {
    border-bottom-color: var(--amber);
  }

  .hero-media {
    aspect-ratio: 16 / 10;
    min-height: 260px;
  }

  .hero-overlay {
    padding: 26px var(--gutter) 30px;
  }

  .hero-title {
    font-size: 30px;
  }

  .quick-entry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-entry-item {
    border-bottom: 1px solid var(--line);
  }

  .quick-entry-item:nth-child(2n) {
    border-right: 0;
  }

  .quick-entry-item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .positioning,
  .directions,
  .fields-summary,
  .guide-steps,
  .site-index {
    padding-top: 40px;
  }

  .positioning-track {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .direction-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-steps .step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .index-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .column-block {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .column-block-media {
    max-width: 420px;
  }

  .browse-layout,
  .next-grid,
  .field-map-grid,
  .process-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .page-toc {
    position: static;
  }

  .toc-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 18px;
  }

  .type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  body.site-body {
    font-size: 15.5px;
  }

  .header-inner {
    padding: 12px 16px;
  }

  .brand-name {
    font-size: 19px;
  }

  .inner-main {
    padding: 20px 16px 44px;
  }

  .page-title {
    font-size: 24px;
  }

  .page-description {
    font-size: 15px;
  }

  .page-header {
    padding-bottom: 16px;
    margin-bottom: 22px;
  }

  .fact-bar {
    padding: 8px 16px;
    font-size: 13px;
    text-align: left;
  }

  .hero-media {
    aspect-ratio: 4 / 3;
    min-height: 220px;
    max-height: none;
  }

  .hero-overlay {
    padding: 20px 16px 24px;
    gap: 10px;
  }

  .hero-title {
    font-size: 24px;
    max-width: none;
  }

  .hero-summary {
    font-size: 14.5px;
    line-height: 1.75;
  }

  .quick-entry {
    grid-template-columns: minmax(0, 1fr);
  }

  .quick-entry-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .quick-entry-item:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .quick-entry-item:last-child {
    border-bottom: 0;
  }

  .positioning,
  .directions,
  .fields-summary,
  .guide-steps,
  .site-index {
    padding: 32px 16px 0;
  }

  .positioning-principles,
  .browse-col,
  .next-column,
  .field-map-col,
  .process-main,
  .process-aside,
  .step-detail {
    padding: 16px 16px;
  }

  .section-title,
  .directions h2,
  .fields-summary h2,
  .guide-steps h2,
  .site-index h2,
  .positioning-intro h2 {
    font-size: 20px;
  }

  .section {
    margin-bottom: 34px;
  }

  .direction-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .guide-steps .step-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .index-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding-bottom: 40px;
  }

  .section-steps .step-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 16px 16px;
  }

  .section-steps .step-number {
    grid-row: auto;
    width: 44px;
    height: 44px;
    font-size: 17px;
  }

  .type-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .feedback-figure {
    padding: 0 16px;
    margin-bottom: 32px;
  }

  .error-main {
    padding: 36px 16px 48px;
  }

  .error-hero h1 {
    font-size: 24px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 0 16px;
  }

  .footer-note,
  .footer-copy {
    padding: 0 16px;
  }

  .related-list,
  .prepare-list,
  .error-path-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
