/* ==========================================================================
   午夜伦理电影 kaile56.com — 全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --bg: #ffffff;
  --bg-sub: #f6f7f9;
  --text: #1c1f24;
  --text-sub: #5b6472;
  --line: #e3e6ea;
  --line-strong: #cbd1d9;
  --primary: #2f6bd8;
  --primary-dark: #2354ac;
  --accent: #7a4fd0;
  --ok: #1f8a5b;
  --radius: 6px;
  --radius-sm: 4px;
  --shell: 1080px;
  --gap: 20px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  font-variant-numeric: tabular-nums;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--primary-dark);
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* --------------------------------------------------------------------------
   layout — 全站骨架
   -------------------------------------------------------------------------- */

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-top {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  color: inherit;
  min-height: 44px;
  justify-content: center;
}

.brand:hover,
.brand:focus {
  text-decoration: none;
}

.brand-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

.brand-slogan {
  font-size: 13px;
  color: var(--text-sub);
}

.site-nav {
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.nav-list {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.nav-list li {
  display: flex;
}

.nav-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-sub);
  border-bottom: 2px solid transparent;
  text-decoration: none;
}

.nav-list a:hover,
.nav-list a:focus {
  color: var(--primary);
  border-bottom-color: var(--line-strong);
  text-decoration: none;
}

.nav-list a.is-current {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.home-main {
  display: block;
}

.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 20px 20px 48px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-sub);
  padding: 4px 0 14px;
}

.breadcrumb a {
  color: var(--text-sub);
  text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumb a:focus {
  color: var(--primary);
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--text);
}

.page-header {
  padding: 0 0 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.page-title {
  font-size: 32px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.page-description {
  font-size: 15px;
  color: var(--text-sub);
  max-width: 760px;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 36px;
  align-items: start;
}

.layout-shell,
.features-layout,
.guide-body {
  min-width: 0;
}

.page-primary,
.layout-main,
.content-main {
  min-width: 0;
}

.page-sidebar,
.layout-side,
.content-side,
.sidebar {
  min-width: 0;
}

.site-footer {
  background: var(--bg-sub);
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 32px 20px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.footer-brand {
  min-width: 0;
}

.footer-brand-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.footer-brand-desc {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.7;
}

.footer-group {
  min-width: 0;
}

.footer-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.footer-group ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-group a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 13px;
  color: var(--text-sub);
  text-decoration: none;
}

.footer-group a:hover,
.footer-group a:focus {
  color: var(--primary);
  text-decoration: underline;
}

.footer-bottom {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px 20px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: var(--text-sub);
}

.footer-copy {
  color: var(--text-sub);
}

/* --------------------------------------------------------------------------
   components — 通用元素
   -------------------------------------------------------------------------- */

.top-notice {
  background: var(--bg-sub);
  border-bottom: 1px solid var(--line);
}

.top-notice p {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 8px 20px;
  font-size: 13px;
  color: var(--text-sub);
}

.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: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #ffffff;
  text-decoration: none;
}

.btn-ghost {
  background: var(--bg);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover,
.btn-ghost:focus {
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
}

.btn-plain {
  background: var(--bg);
  border-color: var(--line-strong);
  color: var(--text-sub);
}

.btn-plain:hover,
.btn-plain:focus {
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
}

.section {
  margin-bottom: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

.section > h2,
.section-lead + h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.section-intro,
.section-lead {
  font-size: 15px;
  color: var(--text-sub);
  margin-bottom: 18px;
  max-width: 780px;
}

.section-note {
  font-size: 13px;
  color: var(--text-sub);
  margin-top: 14px;
}

.section-media,
.section-figure,
.records-figure {
  margin: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-sub);
}

.section-media img,
.section-figure img,
.records-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.section-media figcaption,
.section-figure figcaption,
.records-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-sub);
  border-top: 1px solid var(--line);
  background: var(--bg);
}

/* 数据表 */

.data-table,
.field-table {
  width: 100%;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.data-table caption,
.field-table caption {
  text-align: left;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-sub);
  background: var(--bg-sub);
  border-bottom: 1px solid var(--line);
}

.data-table th,
.data-table td,
.field-table th,
.field-table td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  line-height: 1.65;
}

.data-table thead th,
.field-table thead th {
  background: var(--bg-sub);
  font-weight: 600;
  color: var(--text);
  font-size: 13px;
  white-space: nowrap;
}

.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;
}

.data-table tbody tr:hover {
  background: #fbfcfd;
}

.cell-code {
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.data-table-compact th,
.data-table-compact td {
  padding: 8px 12px;
}

/* 检查清单 / 边界清单 */

.check-list,
.boundary-list,
.path-points,
.reading-tips {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.check-list li,
.boundary-list li,
.path-points li,
.reading-tips li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
}

.check-list li::before,
.boundary-list li::before,
.path-points li::before,
.reading-tips li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line-strong);
}

.check-list li::before {
  background: var(--ok);
}

/* FAQ */

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  margin-bottom: 10px;
}

.faq-item summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  margin-left: auto;
  padding-left: 12px;
  color: var(--text-sub);
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  color: var(--primary);
}

.faq-item p {
  padding: 0 16px 14px;
  font-size: 14px;
  color: var(--text-sub);
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

/* 步骤列表 */

.step-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  counter-reset: step;
}

.step-item {
  position: relative;
  padding-left: 40px;
  counter-increment: step;
}

.step-item::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-sub);
  border: 1px solid var(--line);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.step-content,
.step-basis {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
}

.step-basis {
  margin-top: 4px;
  color: #6c7482;
}

/* 侧栏通用 */

.sidebar-block,
.side-block,
.aside-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 18px;
  background: var(--bg);
}

.sidebar-block h2,
.side-block h2,
.aside-block h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.sidebar-link-list,
.side-link-list,
.aside-link-list,
.quick-list,
.type-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-link-list a,
.side-link-list a,
.aside-link-list a,
.quick-list a {
  display: flex;
  align-items: center;
  min-height: 36px;
  font-size: 14px;
  color: var(--text-sub);
  text-decoration: none;
}

.sidebar-link-list a:hover,
.side-link-list a:hover,
.aside-link-list a:hover,
.quick-list a:hover,
.sidebar-link-list a:focus,
.side-link-list a:focus,
.aside-link-list a:focus,
.quick-list a:focus {
  color: var(--primary);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   pages — 首页
   -------------------------------------------------------------------------- */

.hero {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px 20px 36px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: center;
}

.hero-text {
  min-width: 0;
}

.hero-title {
  font-size: 32px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
}

.hero-lead {
  font-size: 16px;
  color: var(--text-sub);
  margin-bottom: 12px;
  max-width: 520px;
}

.hero-note {
  font-size: 13px;
  color: #6c7482;
  margin-bottom: 22px;
  padding-left: 12px;
  border-left: 2px solid var(--line-strong);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-media {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-sub);
  min-width: 0;
}

.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-media figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-sub);
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.taxonomy-brief,
.feature-entry,
.field-boundary,
.records-brief,
.page-index {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 32px 20px;
  border-top: 1px solid var(--line);
}

.taxonomy-brief > h2,
.feature-entry > h2,
.field-boundary > h2,
.records-brief > h2,
.page-index > h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.feature-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.feature-card:hover {
  border-color: var(--line-strong);
}

.feature-media {
  margin: 0;
  background: var(--bg-sub);
}

.feature-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.feature-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  padding: 14px 16px 6px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-sub);
  padding: 0 16px;
  line-height: 1.7;
}

.feature-range {
  font-size: 13px;
  color: #6c7482;
  padding: 8px 16px 0;
  line-height: 1.7;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  margin-top: auto;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
}

.feature-link:hover,
.feature-link:focus {
  color: var(--primary-dark);
  text-decoration: underline;
}

.field-boundary-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
  margin-top: 20px;
}

.field-col,
.boundary-col {
  min-width: 0;
}

.col-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.col-note {
  font-size: 13px;
  color: var(--text-sub);
  margin-top: 12px;
}

.records-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.records-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  min-width: 0;
}

.records-month {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.records-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.records-list li {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.7;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
}

.records-tag {
  flex: none;
  display: inline-block;
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--accent);
  background: var(--bg-sub);
}

.index-columns {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.index-col {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.index-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.index-desc {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 10px;
}

.index-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: auto;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
}

.index-link:hover,
.index-link:focus {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   pages — 题材分类
   -------------------------------------------------------------------------- */

.section-topics-table .section-media img {
  aspect-ratio: 21 / 9;
}

.topic-table td:first-child {
  width: 68px;
}

.division-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  margin-top: 18px;
}

.division-col {
  min-width: 0;
}

.division-col h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.division-col p {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.75;
  margin-bottom: 10px;
}

.division-col p:last-child {
  margin-bottom: 0;
}

.entry-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.entry-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  min-width: 0;
}

.entry-item h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.entry-item p {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   pages — 专题导览
   -------------------------------------------------------------------------- */

.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 18px;
}

.topic-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topic-card:hover {
  border-color: var(--line-strong);
}

.topic-cover {
  margin: 0;
  background: var(--bg-sub);
}

.topic-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.topic-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
}

.topic-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.topic-direction {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 8px;
}

.topic-scope {
  font-size: 13px;
  color: #6c7482;
  line-height: 1.7;
  margin-bottom: 10px;
}

.topic-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: auto;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
}

.topic-link:hover,
.topic-link:focus {
  color: var(--primary-dark);
  text-decoration: underline;
}

.organize-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  margin-top: 18px;
}

.organize-col {
  min-width: 0;
}

.organize-col h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.organize-col p {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.75;
  margin-bottom: 10px;
}

.organize-col p:last-child {
  margin-bottom: 0;
}

.organize-col .rule-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.organize-col .rule-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
}

.organize-col .rule-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.relation-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.relation-item {
  border-left: 2px solid var(--line-strong);
  padding: 2px 0 2px 14px;
  min-width: 0;
}

.relation-item h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.relation-item p {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
}

.features-side .side-block ol.step-list {
  gap: 12px;
}

.features-side .side-block .step-item {
  padding-left: 32px;
}

.features-side .side-block .step-item::before {
  width: 22px;
  height: 22px;
  font-size: 12px;
}

.features-side .side-block .step-item p {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   pages — 浏览指引
   -------------------------------------------------------------------------- */

.section-preparation .step-item {
  padding-left: 40px;
}

.section-preparation .step-item h3.step-name {
  margin-bottom: 4px;
}

.section-preparation .step-content {
  margin-bottom: 4px;
}

.path-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  margin-top: 18px;
}

.path-column {
  min-width: 0;
}

.path-column h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.path-column p {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.75;
  margin-bottom: 10px;
}

.path-points {
  margin-top: 6px;
}

.field-table td:first-child {
  width: 120px;
  font-weight: 500;
  color: var(--text);
}

.boundary-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  min-width: 0;
}

.boundary-item h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.boundary-item p {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
}

.section-boundary .boundary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.section-boundary .boundary-list li {
  padding-left: 0;
}

.section-boundary .boundary-list li::before {
  display: none;
}

.guide-sidebar .aside-boundary p {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 8px;
}

.guide-sidebar .aside-boundary p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   pages — 整理记录
   -------------------------------------------------------------------------- */

.month-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  min-width: 0;
}

.month-group h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.record-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.record-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  min-width: 0;
}

.record-date {
  font-size: 13px;
  color: var(--text-sub);
  white-space: nowrap;
}

.record-type {
  display: inline-block;
  padding: 1px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  border: 1px solid var(--line);
  background: var(--bg-sub);
  white-space: nowrap;
}

.record-type-category {
  color: var(--primary);
}

.record-type-collect {
  color: var(--accent);
}

.record-type-field {
  color: var(--ok);
}

.record-item p {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
  grid-column: 2;
  min-width: 0;
}

.reason-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  margin-top: 18px;
}

.reason-col {
  min-width: 0;
}

.reason-col h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.reason-col p {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.75;
  margin-bottom: 10px;
}

.reason-col p:last-child {
  margin-bottom: 0;
}

.reason-col .scope-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reason-col .scope-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
}

.reason-col .scope-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ok);
}

.records-field .field-table td:first-child {
  width: 130px;
  font-weight: 500;
  color: var(--text);
}

.records-reading > p {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.75;
  margin-bottom: 14px;
  max-width: 780px;
}

.reading-tips {
  gap: 10px;
}

.reading-tips li a {
  font-size: 14px;
  color: var(--primary);
  text-decoration: none;
}

.reading-tips li a:hover,
.reading-tips li a:focus {
  color: var(--primary-dark);
  text-decoration: underline;
}

.content-side .type-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.content-side .type-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.content-side .type-list li p {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   pages — 404
   -------------------------------------------------------------------------- */

.error-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 56px 20px 64px;
}

.error-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 24px;
  background: var(--bg-sub);
  margin-bottom: 28px;
}

.error-panel h1 {
  font-size: 32px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.error-lead {
  font-size: 15px;
  color: var(--text-sub);
  max-width: 640px;
  margin-bottom: 20px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-hints h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
}

.hint-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hint-list li {
  min-width: 0;
}

.hint-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
}

.hint-list a:hover,
.hint-list a:focus {
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .footer-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .index-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .records-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  .header-top {
    padding: 12px 16px;
  }

  .brand-name {
    font-size: 18px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    border-top: 1px solid var(--line);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0 16px 12px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list a {
    width: 100%;
    min-height: 44px;
    padding: 0 4px;
    border-bottom: 1px solid var(--line);
    border-left: 2px solid transparent;
  }

  .nav-list a.is-current {
    border-bottom-color: var(--line);
    border-left-color: var(--primary);
    padding-left: 10px;
  }

  .nav-list a:hover,
  .nav-list a:focus {
    border-bottom-color: var(--line);
    border-left-color: var(--line-strong);
    padding-left: 10px;
  }

  .inner-main {
    padding: 16px 16px 40px;
  }

  .page-title {
    font-size: 24px;
  }

  .page-header {
    padding-bottom: 16px;
    margin-bottom: 22px;
  }

  .page-description {
    font-size: 14px;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 28px 16px 26px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-media {
    order: 2;
  }

  .taxonomy-brief,
  .feature-entry,
  .field-boundary,
  .records-brief,
  .page-index {
    padding: 26px 16px;
  }

  .feature-grid,
  .entry-list,
  .topic-grid,
  .field-boundary-cols,
  .division-columns,
  .organize-columns,
  .path-columns,
  .reason-columns,
  .section-boundary .boundary-list,
  .hint-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .records-groups,
  .index-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .record-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .record-item p {
    grid-column: 1;
  }

  .data-table,
  .field-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .data-table caption,
  .field-table caption {
    white-space: normal;
  }

  .error-main {
    padding: 36px 16px 48px;
  }

  .error-panel {
    padding: 24px 18px;
  }

  .error-panel h1 {
    font-size: 24px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 26px 16px 16px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    padding: 14px 16px 22px;
  }
}

@media (max-width: 420px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .error-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
