/* ==========================================================================
   禁漫天堂 · 全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* ==========================================================================
   base · 变量与基础元素
   ========================================================================== */
:root {
  --bg-page: #f6f8f9;
  --bg-card: #ffffff;
  --bg-soft: #f0faf7;
  --text-main: #1f2a2e;
  --text-sub: #5b6b70;
  --line: #e2e8ea;
  --brand: #1f9d8b;
  --brand-deep: #167a6c;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(31, 42, 46, 0.05);
  --shadow-md: 0 4px 14px rgba(31, 42, 46, 0.08);
  --container: 1160px;
  --gap: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--text-main);
  line-height: 1.35;
  font-weight: 700;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--brand-deep);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease,
    background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

a:hover {
  color: var(--brand);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 8px;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.6;
}

dl,
dd,
dt {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
}

.visually-hidden-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   layout · 全站骨架（页头 / 主容器 / 页脚）
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-brand {
  flex: 0 0 auto;
  font-size: 19px;
  font-weight: 700;
  color: var(--text-main);
  padding: 6px 0;
  letter-spacing: 0;
}

.site-brand:hover {
  color: var(--brand-deep);
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--text-main);
  box-shadow: 0 -6px 0 var(--text-main), 0 6px 0 var(--text-main);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li {
  display: block;
}

.nav-list a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-sub);
  font-size: 15px;
  min-height: 40px;
  line-height: 24px;
}

.nav-list a:hover {
  background: var(--bg-soft);
  color: var(--brand-deep);
}

.nav-list a.is-current {
  color: var(--brand-deep);
  font-weight: 700;
  background: var(--bg-soft);
}

.site-main {
  display: block;
}

.home-main {
  display: block;
}

.inner-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px 24px 56px;
}

.main-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px 56px;
}

/* 页脚 */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}

.footer-brand {
  min-width: 0;
}

.footer-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
}

.footer-desc {
  margin-top: 10px;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.7;
  max-width: 320px;
}

.footer-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-list a {
  color: var(--text-sub);
  font-size: 14px;
  display: inline-block;
  padding: 2px 0;
}

.footer-list a:hover {
  color: var(--brand-deep);
}

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-sub);
  font-size: 13px;
}

.footer-copy {
  color: var(--text-sub);
}

/* ==========================================================================
   components · 通用组件
   ========================================================================== */
.section {
  margin-bottom: 48px;
}

.section-head {
  margin-bottom: 20px;
  max-width: 760px;
}

.section-head h2 {
  font-size: 22px;
}

.section-head p {
  margin-top: 8px;
  color: var(--text-sub);
  font-size: 15px;
}

.section-title {
  font-size: 22px;
}

.section-desc {
  margin-top: 8px;
  color: var(--text-sub);
  font-size: 15px;
}

.section-intro {
  margin-top: 8px;
  margin-bottom: 18px;
  color: var(--text-sub);
  font-size: 15px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--text-sub);
}

.breadcrumb a:hover {
  color: var(--brand-deep);
}

.breadcrumb-sep {
  color: #a9b6ba;
}

.breadcrumb-current {
  color: var(--text-main);
  font-weight: 500;
}

.page-header {
  margin-bottom: 32px;
  max-width: 860px;
}

.page-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.page-description {
  margin-top: 12px;
  color: var(--text-sub);
  font-size: 16px;
  line-height: 1.75;
}

.page-lead {
  margin-top: 12px;
  color: var(--text-sub);
  font-size: 16px;
}

.page-media {
  margin-top: 20px;
}

.page-media img {
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--brand);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--brand-deep);
  color: #ffffff;
}

.link-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--brand-deep);
  font-size: 15px;
  font-weight: 500;
  text-align: center;
}

.link-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
  color: var(--brand-deep);
}

.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.related-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.related-link,
.related-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
}

.related-link:hover,
.related-name a:hover {
  color: var(--brand-deep);
}

.related-desc,
.related-text {
  margin-top: 8px;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.7;
}

/* ==========================================================================
   pages · 首页
   ========================================================================== */
.top-fact-bar {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.top-fact-bar p {
  max-width: var(--container);
  margin: 0 auto;
  padding: 8px 24px;
  color: var(--brand-deep);
  font-size: 13.5px;
  line-height: 1.6;
}

.hero-workbench {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.hero-main {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-soft);
  border: 1px solid #cdeae4;
  border-radius: 999px;
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 500;
}

.hero-title {
  margin-top: 16px;
  font-size: 32px;
  line-height: 1.3;
  font-weight: 700;
}

.hero-summary {
  margin-top: 16px;
  color: var(--text-sub);
  font-size: 16px;
  line-height: 1.8;
  max-width: 640px;
}

.hero-paths {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.path-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  grid-template-areas:
    "idx link"
    "idx text";
  column-gap: 12px;
  row-gap: 2px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.path-item .path-index {
  grid-area: idx;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  color: var(--brand-deep);
  font-size: 14px;
  font-weight: 700;
}

.path-item a {
  grid-area: link;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.path-item a:hover {
  color: var(--brand-deep);
}

.path-item p {
  grid-area: text;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.7;
}

.hero-side {
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
}

.hero-side-title {
  font-size: 18px;
  margin-bottom: 14px;
}

.quick-list {
  display: grid;
  gap: 8px;
}

.quick-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  background: var(--bg-page);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 15px;
}

.quick-list a:hover {
  border-color: var(--brand);
  background: var(--bg-soft);
  color: var(--brand-deep);
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 16px;
  padding: 10px 18px;
  background: var(--brand);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
}

.hero-cta:hover {
  background: var(--brand-deep);
  color: #ffffff;
}

/* 题材方向总览 */
.direction-overview {
  max-width: var(--container);
  margin: 0 auto 48px;
  padding: 0 24px;
}

.direction-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.direction-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  min-height: 100%;
}

.direction-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}

.direction-name {
  font-size: 18px;
}

.direction-scope {
  margin-top: 10px;
  color: var(--text-main);
  font-size: 14.5px;
  line-height: 1.7;
}

.direction-trait {
  margin-top: 8px;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.7;
}

.direction-link {
  margin-top: auto;
  padding-top: 14px;
  color: var(--brand-deep);
  font-size: 14px;
  font-weight: 500;
}

.direction-link::after {
  content: " →";
}

.direction-link:hover {
  color: var(--brand);
}

/* 条目速览与更新记录 */
.overview-split {
  max-width: var(--container);
  margin: 0 auto 48px;
  padding: 0 24px;
}

.overview-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.column-main,
.column-side {
  min-width: 0;
}

.column-head {
  margin-bottom: 14px;
}

.column-head h3 {
  font-size: 18px;
}

.column-head p {
  margin-top: 6px;
  color: var(--text-sub);
  font-size: 14px;
}

.preview-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.preview-list {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.preview-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.preview-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}

.preview-card img {
  width: 100%;
  height: 100%;
  min-height: 96px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.preview-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.preview-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.preview-body p {
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.7;
}

.preview-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.preview-fields span {
  display: inline-block;
  padding: 2px 10px;
  background: var(--bg-soft);
  border-radius: 999px;
  color: var(--brand-deep);
  font-size: 12.5px;
}

.column-side {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
}

.batch-list {
  display: grid;
  gap: 14px;
}

.batch-item {
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}

.batch-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.batch-tag {
  display: inline-block;
  padding: 2px 10px;
  background: var(--bg-soft);
  border: 1px solid #cdeae4;
  border-radius: var(--radius-sm);
  color: var(--brand-deep);
  font-size: 12.5px;
  font-weight: 500;
}

.batch-desc {
  margin-top: 8px;
  color: var(--text-main);
  font-size: 14.5px;
  line-height: 1.7;
}

.batch-meta {
  display: block;
  margin-top: 6px;
  color: var(--text-sub);
  font-size: 13px;
}

.column-more {
  display: inline-block;
  margin-top: 16px;
  color: var(--brand-deep);
  font-size: 14px;
  font-weight: 500;
}

.column-more::after {
  content: " →";
}

/* 字段口径摘要 */
.field-summary {
  max-width: var(--container);
  margin: 0 auto 48px;
  padding: 0 24px;
}

.field-table {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}

.field-row:last-child {
  border-bottom: 0;
}

.field-name {
  padding: 16px 20px;
  background: var(--bg-page);
  color: var(--text-main);
  font-weight: 500;
  font-size: 15px;
  border-right: 1px solid var(--line);
}

.field-meaning,
.field-desc {
  padding: 16px 20px;
  color: var(--text-sub);
  font-size: 14.5px;
  line-height: 1.75;
  min-width: 0;
}

.field-note {
  margin-top: 14px;
  color: var(--text-sub);
  font-size: 14px;
}

.field-note a {
  color: var(--brand-deep);
  font-weight: 500;
}

/* 查阅路径三步指引 */
.path-steps {
  max-width: var(--container);
  margin: 0 auto 48px;
  padding: 0 24px;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.step-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.step-item .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  color: var(--brand-deep);
  font-size: 14px;
  font-weight: 700;
}

.step-item .step-name {
  margin-top: 12px;
  font-size: 17px;
}

.step-item p {
  margin-top: 8px;
  color: var(--text-sub);
  font-size: 14.5px;
  line-height: 1.75;
}

.steps-more {
  display: inline-block;
  margin-top: 18px;
  color: var(--brand-deep);
  font-size: 15px;
  font-weight: 500;
}

.steps-more::after {
  content: " →";
}

/* 站内栏目索引 */
.column-index {
  max-width: var(--container);
  margin: 0 auto 56px;
  padding: 0 24px;
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.index-cell {
  display: block;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text-main);
}

.index-cell:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
  color: var(--text-main);
}

.index-cell h3 {
  font-size: 16px;
}

.index-cell p {
  margin-top: 8px;
  color: var(--text-sub);
  font-size: 13.5px;
  line-height: 1.7;
}

/* ==========================================================================
   pages · 题材分类
   ========================================================================== */
.cat-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cat-overview-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.cat-overview-item:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}

.cat-overview-name {
  font-size: 17px;
}

.cat-overview-line {
  margin-top: 8px;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.7;
}

.cat-detail-list {
  display: grid;
  gap: 18px;
}

.cat-detail-item {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 22px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.cat-detail-item:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}

.cat-detail-media {
  min-width: 0;
}

.cat-detail-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.cat-detail-body {
  min-width: 0;
}

.cat-detail-name {
  font-size: 18px;
}

.cat-detail-fields {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px 14px;
}

.cat-detail-fields dt {
  color: var(--text-main);
  font-weight: 500;
  font-size: 14px;
}

.cat-detail-fields dd {
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.7;
  min-width: 0;
}

.cat-entry-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.cat-entry-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cat-entry-item:hover {
  border-color: var(--brand);
}

.cat-entry-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
}

.cat-entry-link:hover {
  color: var(--brand-deep);
}

.cat-entry-meta {
  color: var(--text-sub);
  font-size: 13px;
  white-space: nowrap;
}

.cat-compare-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 24px;
  align-items: start;
}

.cat-compare-col {
  min-width: 0;
}

.cat-compare-sub {
  font-size: 17px;
  margin-bottom: 12px;
}

.cat-tip-list {
  display: grid;
  gap: 10px;
}

.cat-tip-item {
  position: relative;
  padding: 12px 16px 12px 34px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text-sub);
  font-size: 14.5px;
  line-height: 1.7;
}

.cat-tip-item::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 22px;
  width: 8px;
  height: 8px;
  background: var(--brand);
  border-radius: 2px;
}

.cat-field-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14.5px;
}

.cat-field-caption {
  padding: 12px 16px;
  text-align: left;
  color: var(--text-sub);
  font-size: 13.5px;
  background: var(--bg-page);
  border-bottom: 1px solid var(--line);
}

.cat-field-table th,
.cat-field-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  color: var(--text-sub);
  line-height: 1.7;
}

.cat-field-table th {
  background: var(--bg-page);
  color: var(--text-main);
  font-weight: 500;
  font-size: 14px;
}

.cat-field-table tbody tr:last-child td {
  border-bottom: 0;
}

/* ==========================================================================
   pages · 更新记录
   ========================================================================== */
.batch-status {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.batch-figure {
  margin: 18px 0;
}

.batch-figure img {
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.status-bar {
  margin-top: 8px;
  padding: 18px 20px;
  background: var(--bg-soft);
  border: 1px solid #cdeae4;
  border-radius: var(--radius);
}

.status-tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
}

.status-tag-current {
  background: var(--brand);
  color: #ffffff;
}

.status-fields {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px 20px;
}

.status-fields dt {
  color: var(--text-sub);
  font-size: 13px;
}

.status-fields dd {
  margin-top: 2px;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 500;
}

.batch-group {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 16px;
}

.batch-group-title {
  font-size: 17px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.change-list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.change-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg-page);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.change-type {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 500;
  text-align: center;
}

.change-type-new {
  background: var(--bg-soft);
  color: var(--brand-deep);
  border: 1px solid #cdeae4;
}

.change-type-edit {
  background: #fdf6e8;
  color: #8a6415;
  border: 1px solid #f0e0bb;
}

.change-name {
  color: var(--text-main);
  font-size: 14.5px;
  font-weight: 500;
  min-width: 0;
}

.change-direction,
.change-field {
  color: var(--text-sub);
  font-size: 13.5px;
  min-width: 0;
}

.legend-table {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.legend-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1.2fr);
  border-bottom: 1px solid var(--line);
}

.legend-row:last-child {
  border-bottom: 0;
}

.legend-head {
  background: var(--bg-page);
}

.legend-head .legend-cell {
  color: var(--text-main);
  font-weight: 500;
}

.legend-cell {
  padding: 14px 18px;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.7;
  min-width: 0;
}

.legend-cell + .legend-cell {
  border-left: 1px solid var(--line);
}

.legend-cell a {
  color: var(--brand-deep);
}

.tip-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.tip-item {
  position: relative;
  padding: 16px 18px 16px 38px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text-sub);
  font-size: 14.5px;
  line-height: 1.75;
}

.tip-item::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 26px;
  width: 8px;
  height: 8px;
  background: var(--brand);
  border-radius: 2px;
}

.tip-links {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.related-nav .related-list {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.related-nav .related-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--brand-deep);
  font-size: 15px;
  font-weight: 500;
}

.related-nav .related-list a:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   pages · 查阅指引
   ========================================================================== */
.guide-fields .field-table {
  border: 1px solid var(--line);
}

.guide-fields .field-row {
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
}

.field-row-head {
  background: var(--bg-page);
}

.field-row-head .field-name,
.field-row-head .field-desc {
  color: var(--text-main);
  font-weight: 500;
  font-size: 14px;
}

.guide-figure {
  margin-bottom: 20px;
}

.guide-figure img {
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.guide-steps .step-list {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.guide-steps .step-item {
  display: flex;
  flex-direction: column;
}

.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  color: var(--brand-deep);
  font-size: 14px;
  font-weight: 700;
}

.guide-steps .step-name {
  margin-top: 12px;
  font-size: 17px;
}

.step-text {
  margin-top: 8px;
  color: var(--text-sub);
  font-size: 14.5px;
  line-height: 1.75;
}

.step-text a {
  color: var(--brand-deep);
  font-weight: 500;
}

.step-check {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  color: var(--text-sub);
  font-size: 13.5px;
  line-height: 1.7;
}

.trouble-list {
  display: grid;
  gap: 12px;
}

.trouble-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 18px;
}

.trouble-item[open] {
  border-color: var(--brand);
}

.trouble-q {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 0;
  color: var(--text-main);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.trouble-q::-webkit-details-marker {
  display: none;
}

.trouble-q::after {
  content: "+";
  margin-left: auto;
  padding-left: 12px;
  color: var(--brand-deep);
  font-size: 18px;
  font-weight: 400;
}

.trouble-item[open] .trouble-q::after {
  content: "−";
}

.trouble-body {
  padding: 4px 0 16px;
  border-top: 1px solid var(--line);
}

.trouble-symptom,
.trouble-cause {
  margin-top: 10px;
  color: var(--text-sub);
  font-size: 14.5px;
  line-height: 1.75;
}

.trouble-symptom strong,
.trouble-cause strong {
  color: var(--text-main);
}

.trouble-steps {
  margin-top: 10px;
  padding-left: 20px;
  list-style: decimal;
  color: var(--text-sub);
  font-size: 14.5px;
  line-height: 1.8;
}

.trouble-steps li {
  margin-bottom: 4px;
}

/* ==========================================================================
   pages · 常见问题
   ========================================================================== */
.faq-nav-section {
  margin-bottom: 32px;
}

.faq-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.faq-nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-main);
  font-size: 14.5px;
}

.faq-nav-list a:hover {
  border-color: var(--brand);
  background: var(--bg-soft);
  color: var(--brand-deep);
}

.faq-group {
  margin-bottom: 40px;
  scroll-margin-top: 88px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 20px;
}

.faq-item[open] {
  border-color: var(--brand);
}

.faq-question {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 0;
  color: var(--text-main);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  margin-left: auto;
  padding-left: 12px;
  color: var(--brand-deep);
  font-size: 18px;
  font-weight: 400;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 4px 0 16px;
  border-top: 1px solid var(--line);
}

.faq-answer p {
  margin-top: 10px;
  color: var(--text-sub);
  font-size: 14.5px;
  line-height: 1.8;
}

.faq-answer a {
  color: var(--brand-deep);
  font-weight: 500;
}

.related-section {
  margin-bottom: 48px;
}

/* ==========================================================================
   pages · 404
   ========================================================================== */
.error-main {
  display: block;
}

.error-panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
}

.error-code {
  color: var(--brand);
  font-size: 44px;
  font-weight: 700;
  line-height: 1.1;
}

.error-panel h1 {
  margin-top: 12px;
  font-size: 26px;
}

.error-text {
  margin-top: 12px;
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.8;
}

.error-panel .btn {
  margin-top: 24px;
}

.error-routes {
  margin-top: 40px;
}

.error-routes h2 {
  font-size: 20px;
  margin-bottom: 16px;
}

.error-route-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.error-route-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-route-list a {
  color: var(--text-main);
  font-size: 15px;
  font-weight: 500;
}

.error-route-list a:hover {
  color: var(--brand-deep);
}

.error-route-list span {
  color: var(--text-sub);
  font-size: 13.5px;
  line-height: 1.7;
}

/* ==========================================================================
   responsive · 断点适配
   ========================================================================== */
@media (max-width: 1024px) {
  .direction-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .index-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cat-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 10px 16px;
    gap: 12px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: relative;
  }

  .nav-list {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(280px, calc(100vw - 32px));
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    padding: 12px 14px;
    min-height: 44px;
    line-height: 20px;
  }

  .inner-main {
    padding: 18px 16px 44px;
  }

  .main-inner {
    padding: 28px 16px 44px;
  }

  .top-fact-bar p {
    padding: 8px 16px;
  }

  .hero-workbench {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 28px 16px 36px;
  }

  .hero-title {
    font-size: 26px;
  }

  .direction-overview,
  .overview-split,
  .field-summary,
  .path-steps,
  .column-index {
    padding: 0 16px;
    margin-bottom: 40px;
  }

  .direction-grid,
  .index-grid,
  .cat-overview-grid,
  .cat-compare-layout,
  .overview-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-title {
    font-size: 24px;
  }

  .cat-detail-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .cat-detail-fields {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .field-row,
  .guide-fields .field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-name {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 12px 16px;
  }

  .field-meaning,
  .field-desc {
    padding: 12px 16px;
  }

  .field-row-head {
    display: none;
  }

  .change-item {
    grid-template-columns: 72px minmax(0, 1fr);
    row-gap: 6px;
  }

  .change-direction,
  .change-field {
    grid-column: 2;
  }

  .legend-row {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .legend-cell:last-child {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .legend-head {
    display: none;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 32px 16px 20px;
  }

  .footer-bottom {
    padding: 14px 16px 24px;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .preview-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .preview-card img {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .error-panel {
    padding: 32px 20px;
  }

  .error-code {
    font-size: 36px;
  }

  .step-list,
  .guide-steps .step-list,
  .tip-list,
  .tip-links,
  .cat-entry-list,
  .related-list,
  .related-nav .related-list,
  .error-route-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .cat-field-table {
    font-size: 13.5px;
  }

  .cat-field-table th,
  .cat-field-table td {
    padding: 10px 12px;
  }
}
