/* ==========================================================================
   樱花电视剧大全 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --bg-page: #f7f8f7;
  --bg-card: #ffffff;
  --ink-deep: #1f3d34;
  --ink-accent: #2f6f5e;
  --ink-gold: #c8a15a;
  --ink-muted: #5a6663;
  --line-soft: #d8ded9;
  --line-strong: #bcc6c0;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --shadow-card: 0 1px 2px rgba(31, 61, 52, 0.06);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC",
    Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-deep);
  background-color: var(--bg-page);
  word-break: break-word;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-deep);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

figure {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ink-accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--ink-deep);
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ink-accent);
  outline-offset: 2px;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  text-align: left;
  vertical-align: top;
}

time {
  font-style: normal;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   layout · 骨架
   -------------------------------------------------------------------------- */

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--bg-page);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-deep);
  text-decoration: none;
}

.brand:hover,
.brand:focus-visible {
  color: var(--ink-deep);
  text-decoration: none;
}

.brand-mark {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background-color: var(--ink-deep);
  border: 2px solid var(--ink-accent);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.brand-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-deep);
}

.brand-slogan {
  font-size: 12px;
  color: var(--ink-muted);
}

.site-nav {
  display: block;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
}

.nav-list li {
  display: block;
}

.nav-list a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 15px;
  color: var(--ink-muted);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--ink-deep);
  background-color: #eef2ef;
  text-decoration: none;
}

.nav-list a.is-current {
  color: var(--ink-accent);
  font-weight: 600;
  background-color: #e7efeb;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--ink-deep);
}

.site-main {
  flex: 1 1 auto;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 20px 56px;
}

.inner-main {
  padding-top: 20px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--ink-muted);
}

.breadcrumb a {
  color: var(--ink-accent);
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--ink-muted);
}

.page-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
}

.page-title {
  font-size: 30px;
  font-weight: 600;
  color: var(--ink-deep);
}

.page-description {
  margin-top: 10px;
  max-width: 720px;
  font-size: 16px;
  color: var(--ink-muted);
}

.site-footer {
  margin-top: auto;
  background-color: var(--ink-deep);
  color: #dbe4df;
}

.footer-inner {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 20px 24px;
}

.footer-brand {
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(219, 228, 223, 0.18);
}

.footer-name {
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
}

.footer-desc {
  margin-top: 8px;
  max-width: 720px;
  font-size: 14px;
  color: #b6c4be;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 28px;
  padding: 26px 0;
}

.footer-group-title {
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
}

.footer-group ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-group a {
  font-size: 14px;
  color: #b6c4be;
  text-decoration: none;
}

.footer-group a:hover,
.footer-group a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 18px;
  border-top: 1px solid rgba(219, 228, 223, 0.18);
  font-size: 13px;
  color: #9fb0a9;
}

/* --------------------------------------------------------------------------
   components · 通用
   -------------------------------------------------------------------------- */

.section {
  margin-bottom: 44px;
}

.section:last-child {
  margin-bottom: 0;
}

.section-head {
  margin-bottom: 18px;
}

.section-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink-deep);
}

.section-desc,
.section-lead,
.section-intro {
  margin-top: 8px;
  max-width: 720px;
  font-size: 15px;
  color: var(--ink-muted);
}

.section-note,
.section-foot,
.scope-note,
.order-note {
  margin-top: 16px;
  max-width: 720px;
  font-size: 14px;
  color: var(--ink-muted);
}

.section-cta {
  margin-top: 18px;
  font-size: 15px;
}

.link-inline {
  color: var(--ink-accent);
  text-decoration: underline;
}

.link-strong {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-strong:hover,
.link-strong:focus-visible {
  color: var(--ink-deep);
}

/* 数据表 */
.data-table {
  width: 100%;
  font-size: 14px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.data-table thead th {
  padding: 10px 14px;
  font-weight: 600;
  color: var(--ink-deep);
  background-color: #eef2ef;
  border-bottom: 1px solid var(--line-soft);
}

.data-table tbody th,
.data-table tbody td {
  padding: 11px 14px;
  color: var(--ink-deep);
  border-bottom: 1px solid var(--line-soft);
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody th {
  font-weight: 600;
  color: var(--ink-deep);
}

.data-table tbody td {
  color: var(--ink-muted);
}

/* 图片容器 */
.hero-figure,
.card-figure,
.section-media,
.collection-figure,
.section-figure {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background-color: #e8ece9;
}

.hero-figure img,
.card-figure img,
.section-media img,
.collection-figure img,
.section-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-figure figcaption,
.card-figure figcaption,
.section-media figcaption,
.collection-figure figcaption,
.section-figure figcaption {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--ink-muted);
  background-color: var(--bg-card);
  border-top: 1px solid var(--line-soft);
}

/* 状态标签 */
.log-status {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1.6;
  color: #7a5a1c;
  background-color: #f6edd8;
  border: 1px solid #e3d2ac;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.status-published {
  color: #245a4a;
  background-color: #e4efe9;
  border-color: #c3d9cf;
}

.status-updated {
  color: #7a5a1c;
  background-color: #f6edd8;
  border-color: #e3d2ac;
}

/* 调整记录 */
.log-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line-soft);
}

.log-item {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) auto;
  align-items: start;
  gap: 6px 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}

.log-date {
  font-size: 14px;
  color: var(--ink-muted);
}

.log-text {
  min-width: 0;
  font-size: 15px;
  color: var(--ink-deep);
}

/* 常见问题 */
.faq-item {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background-color: var(--bg-card);
  margin-bottom: 10px;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-item summary {
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-deep);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  font-weight: 600;
  color: var(--ink-accent);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  color: var(--ink-accent);
}

.faq-item p,
.faq-answer {
  padding: 0 16px 14px;
  font-size: 15px;
  color: var(--ink-muted);
}

.faq-answer p {
  padding: 0;
}

/* 步骤清单（首页） */
.step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  counter-reset: step-flag;
}

.step-item {
  padding: 18px 18px 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.step-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-deep);
}

.step-action,
.step-result {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-muted);
}

.step-result {
  color: var(--ink-accent);
}

/* 相关入口 */
.related-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
}

.related-list a {
  display: block;
  padding: 10px 0;
  font-size: 15px;
  color: var(--ink-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 系列索引 */
.series-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  padding-left: 0;
}

.series-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--ink-muted);
}

.series-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--ink-gold);
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */

.hero {
  margin-bottom: 48px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 32px;
  align-items: start;
}

.hero-lead {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-block;
  padding: 3px 10px;
  font-size: 13px;
  color: var(--ink-accent);
  background-color: #e7efeb;
  border-radius: var(--radius-sm);
}

.hero-title {
  margin-top: 14px;
  font-size: 30px;
  font-weight: 600;
  color: var(--ink-deep);
}

.hero-text {
  margin-top: 12px;
  max-width: 620px;
  font-size: 16px;
  color: var(--ink-muted);
}

.hero-figure {
  margin-top: 22px;
  border: 1px solid var(--line-soft);
}

.hero-figure img {
  aspect-ratio: 16 / 9;
}

.hero-cta {
  margin-top: 20px;
}

.hero-panel {
  min-width: 0;
  padding: 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.panel-title {
  margin-bottom: 14px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-deep);
}

.panel-foot {
  margin-top: 14px;
  font-size: 14px;
}

/* 题材分类方向总览 */
.category-rows {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-soft);
}

.category-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px 20px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}

.row-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-deep);
}

.row-intent,
.row-audience,
.row-range {
  min-width: 0;
  font-size: 14px;
  color: var(--ink-muted);
}

.row-range {
  color: var(--ink-accent);
}

/* 专题片单速览 */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.collection-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0 0 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.collection-card .card-figure {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-bottom: 1px solid var(--line-soft);
}

.collection-card .card-figure img {
  aspect-ratio: 3 / 2;
}

.collection-card .card-title {
  margin: 16px 18px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-deep);
}

.card-range,
.card-related,
.card-link {
  margin: 8px 18px 0;
  font-size: 14px;
  color: var(--ink-muted);
}

.card-link {
  margin-top: auto;
  padding-top: 14px;
}

/* 条目字段与收录边界摘要 */
.data-table-fields tbody th {
  width: 26%;
}

/* --------------------------------------------------------------------------
   pages · 内页通用布局
   -------------------------------------------------------------------------- */

.page-layout {
  display: grid;
  gap: 32px;
  align-items: start;
}

.sidebar-left .page-layout,
.page-layout.sidebar-left {
  grid-template-columns: 220px minmax(0, 1fr);
}

.page-layout:not(.sidebar-left):not(.layout-shell) {
  grid-template-columns: minmax(0, 1fr) 220px;
}

.content-main,
.content-column,
.page-content {
  min-width: 0;
  max-width: 720px;
}

/* 侧栏 */
.topic-tree,
.sidebar,
.page-aside {
  min-width: 0;
  padding: 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}

.topic-tree-title,
.sidebar-title,
.aside-title {
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-deep);
}

.topic-tree-list,
.sidebar-list,
.aside-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.topic-tree-list a,
.sidebar-list a,
.aside-list a {
  display: block;
  padding: 7px 10px;
  font-size: 14px;
  color: var(--ink-muted);
  border-left: 3px solid transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  text-decoration: none;
}

.topic-tree-list a:hover,
.sidebar-list a:hover,
.aside-list a:hover,
.topic-tree-list a:focus-visible,
.sidebar-list a:focus-visible,
.aside-list a:focus-visible {
  color: var(--ink-deep);
  background-color: #eef2ef;
  text-decoration: none;
}

.topic-tree-list a.is-current,
.sidebar-list a.is-active,
.aside-list a.is-active {
  color: var(--ink-accent);
  font-weight: 600;
  border-left-color: var(--ink-accent);
  background-color: #e7efeb;
}

.aside-nav {
  margin-bottom: 14px;
}

.aside-note,
.sidebar-note {
  margin-top: 14px;
  padding-top: 12px;
  font-size: 13px;
  color: var(--ink-muted);
  border-top: 1px solid var(--line-soft);
}

.aside-steps {
  counter-reset: aside-step;
}

.aside-steps .aside-item a {
  padding-left: 12px;
}

/* 内页区块 */
.section-scope,
.section-order,
.section-fields-value,
.section-fields-boundary,
.section-faq,
.section-log,
.section-steps {
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   pages · 题材分类
   -------------------------------------------------------------------------- */

.category-overview .section-media {
  margin: 18px 0;
  border: 1px solid var(--line-soft);
}

.category-overview .section-media img {
  aspect-ratio: 21 / 9;
}

.table-caption {
  padding: 10px 14px;
  font-size: 13px;
  text-align: left;
  color: var(--ink-muted);
  caption-side: top;
}

.category-table {
  margin-top: 18px;
}

.scope-block {
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}

.scope-block:last-child {
  border-bottom: 0;
}

.scope-block h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-deep);
}

.scope-block p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-muted);
}

.category-faq .faq-item {
  margin-bottom: 10px;
}

/* --------------------------------------------------------------------------
   pages · 专题片单
   -------------------------------------------------------------------------- */

.section-collection .collection-item {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
}

.section-collection .collection-item:first-of-type {
  padding-top: 4px;
}

.section-collection .collection-item:last-of-type {
  border-bottom: 0;
}

.collection-figure {
  border: 1px solid var(--line-soft);
}

.collection-figure img {
  aspect-ratio: 3 / 2;
}

.collection-body {
  min-width: 0;
}

.collection-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-deep);
}

.collection-desc {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-muted);
}

.collection-meta {
  margin: 12px 0 0;
  padding: 12px 0 0;
  border-top: 1px dashed var(--line-soft);
}

.collection-meta dt {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-deep);
}

.collection-meta dd {
  margin: 2px 0 10px;
  font-size: 14px;
  color: var(--ink-muted);
}

.collection-meta dd:last-child {
  margin-bottom: 0;
}

.scope-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background-color: var(--bg-card);
}

.scope-table {
  min-width: 480px;
  font-size: 14px;
}

.scope-table caption {
  padding: 10px 14px;
  font-size: 13px;
  text-align: left;
  color: var(--ink-muted);
  caption-side: top;
}

.scope-table thead th {
  padding: 10px 14px;
  font-weight: 600;
  color: var(--ink-deep);
  background-color: #eef2ef;
  border-bottom: 1px solid var(--line-soft);
}

.scope-table tbody th,
.scope-table tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft);
}

.scope-table tbody tr:last-child th,
.scope-table tbody tr:last-child td {
  border-bottom: 0;
}

.scope-table tbody th {
  font-weight: 600;
  color: var(--ink-deep);
}

.scope-table tbody td {
  color: var(--ink-muted);
}

.order-list {
  counter-reset: order-step;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.order-item {
  position: relative;
  padding: 16px 18px 16px 56px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  counter-increment: order-step;
}

.order-item::before {
  content: counter(order-step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 26px;
  height: 26px;
  line-height: 26px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background-color: var(--ink-accent);
  border-radius: 50%;
}

.order-step {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-deep);
}

.order-text {
  margin-top: 6px;
  font-size: 15px;
  color: var(--ink-muted);
}

/* --------------------------------------------------------------------------
   pages · 条目字段说明
   -------------------------------------------------------------------------- */

.section-fields-table .section-figure {
  margin: 18px 0;
  border: 1px solid var(--line-soft);
}

.section-fields-table .section-figure img {
  aspect-ratio: 21 / 9;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background-color: var(--bg-card);
}

.fields-table {
  min-width: 560px;
  border: 0;
  border-radius: 0;
}

.fields-table thead th:first-child,
.fields-table tbody th {
  width: 22%;
}

.field-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.field-group {
  min-width: 0;
  padding: 16px 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}

.field-group-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-deep);
}

.field-group p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-muted);
}

.field-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.field-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--ink-muted);
}

.field-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--ink-gold);
}

.boundary-block {
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}

.boundary-block:last-child {
  border-bottom: 0;
}

.boundary-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-deep);
}

.boundary-block p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-muted);
}

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.boundary-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--ink-muted);
}

.boundary-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--ink-gold);
}

/* --------------------------------------------------------------------------
   pages · 查阅路径
   -------------------------------------------------------------------------- */

.section-steps .section-figure {
  margin: 18px 0;
  border: 1px solid var(--line-soft);
}

.section-steps .section-figure img {
  aspect-ratio: 21 / 9;
}

.section-steps .step-list {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.section-steps .step-item {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 6px 20px;
  align-items: start;
}

.section-steps .step-name {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.section-steps .step-action {
  grid-column: 2;
  margin-top: 0;
}

.section-steps .step-result {
  grid-column: 2;
}

.section-faq .faq-item {
  margin-bottom: 10px;
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */

.error-main {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 56px;
}

.error-panel {
  width: 100%;
  max-width: 640px;
  padding: 32px 28px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.error-code {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-gold);
}

.error-panel h1 {
  margin-top: 8px;
  font-size: 30px;
  font-weight: 600;
  color: var(--ink-deep);
}

.error-text {
  margin-top: 12px;
  font-size: 16px;
  color: var(--ink-muted);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 24px;
}

.error-home-link,
.error-sub-link {
  display: inline-block;
  padding: 11px 18px;
  font-size: 15px;
  border-radius: var(--radius-md);
  text-decoration: none;
}

.error-home-link {
  color: #ffffff;
  background-color: var(--ink-accent);
}

.error-home-link:hover,
.error-home-link:focus-visible {
  color: #ffffff;
  background-color: var(--ink-deep);
  text-decoration: none;
}

.error-sub-link {
  color: var(--ink-accent);
  border: 1px solid var(--line-strong);
  background-color: var(--bg-card);
}

.error-sub-link:hover,
.error-sub-link:focus-visible {
  color: var(--ink-deep);
  border-color: var(--ink-accent);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-panel {
    max-width: 560px;
  }

  .category-row {
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 4px 18px;
  }

  .row-audience,
  .row-range {
    grid-column: 2;
  }

  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-groups {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 12px 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex: 1 1 100%;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid var(--line-soft);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    padding: 12px 10px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .site-main,
  .inner-main {
    padding: 20px 16px 44px;
  }

  .page-title,
  .hero-title,
  .error-panel h1 {
    font-size: 24px;
  }

  .section-title {
    font-size: 20px;
  }

  .page-header {
    margin-bottom: 22px;
    padding-bottom: 16px;
  }

  .section {
    margin-bottom: 34px;
  }

  /* 单列化：辅助侧栏一律排在正文之后 */
  .sidebar-left .page-layout,
  .page-layout.sidebar-left,
  .page-layout:not(.sidebar-left):not(.layout-shell) {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .topic-tree,
  .sidebar,
  .page-aside {
    order: 2;
  }

  .content-main,
  .content-column,
  .page-content {
    order: 1;
    max-width: none;
  }

  .topic-tree-list,
  .sidebar-list,
  .aside-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .topic-tree-list li,
  .sidebar-list li,
  .aside-list li {
    flex: 1 1 auto;
  }

  .topic-tree-list a,
  .sidebar-list a,
  .aside-list a {
    min-height: 44px;
    display: flex;
    align-items: center;
    border-left: 0;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
  }

  .topic-tree-list a.is-current,
  .sidebar-list a.is-active,
  .aside-list a.is-active {
    border-color: var(--ink-accent);
  }

  .step-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-steps .step-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .section-steps .step-name,
  .section-steps .step-action,
  .section-steps .step-result {
    grid-column: 1;
    grid-row: auto;
  }

  .collection-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-collection .collection-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .collection-figure {
    max-width: 420px;
  }

  .log-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .log-status {
    justify-self: start;
  }

  .related-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-nav {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .error-main {
    padding-top: 32px;
  }

  .error-panel {
    padding: 24px 18px;
  }
}

@media (max-width: 480px) {
  .brand-slogan {
    display: none;
  }

  .hero-figure img,
  .category-overview .section-media img,
  .section-fields-table .section-figure img,
  .section-steps .section-figure img {
    aspect-ratio: 3 / 2;
  }

  .data-table,
  .data-table thead th,
  .data-table tbody th,
  .data-table tbody td {
    font-size: 13px;
  }

  .data-table thead th,
  .data-table tbody th,
  .data-table tbody td {
    padding: 9px 10px;
  }

  .order-item {
    padding: 14px 14px 14px 50px;
  }

  .order-item::before {
    left: 14px;
    top: 14px;
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .error-home-link,
  .error-sub-link {
    text-align: center;
  }
}
