/* ==========================================================================
   樱花动漫在线观看 · 全站样式
   校园刊物风：浅色底、边框分隔、栏目编号索引感
   ========================================================================== */

/* --------------------------------------------------------------------------
   base · 基础重置与全站变量
   -------------------------------------------------------------------------- */

:root {
  --c-primary: #e8577a;
  --c-primary-dark: #c93d60;
  --c-accent: #2f9e8f;
  --c-warm: #f08a3c;
  --c-bg: #f7f7f9;
  --c-surface: #ffffff;
  --c-text: #2b2b33;
  --c-text-soft: #5c5c68;
  --c-text-muted: #7a7a86;
  --c-border: #e0e0e6;
  --c-border-strong: #cfcfd8;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, "Courier New", monospace;
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 8px;
  --shell-max: 1180px;
  --shell-pad: 24px;
  --header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
  color: var(--c-text);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--c-primary);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: var(--c-primary-dark);
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

figure {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

/* --------------------------------------------------------------------------
   layout · 全站骨架：容器、页头、主导航、页脚
   -------------------------------------------------------------------------- */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-sans);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
}

.header-inner {
  position: relative;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--shell-pad);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--c-text);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  padding: 8px 0;
}

.brand:hover,
.brand:focus-visible {
  color: var(--c-text);
  text-decoration: none;
}

.brand-mark {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  background: var(--c-primary);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px 7px auto auto;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  opacity: 0.85;
}

.brand-text {
  white-space: nowrap;
}

.site-nav {
  display: block;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  flex: 0 0 auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: var(--c-text-soft);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--c-primary);
  background: #fdf1f4;
  text-decoration: none;
}

.nav-link.is-current {
  color: var(--c-primary);
  border-bottom-color: var(--c-primary);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle:hover {
  border-color: var(--c-primary);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--c-text);
  border-radius: 1px;
}

.site-main {
  flex: 1 1 auto;
  width: 100%;
}

.home-main,
.inner-main {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--shell-pad);
}

.inner-main {
  padding-top: 24px;
  padding-bottom: 56px;
}

.site-footer {
  margin-top: 48px;
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  color: var(--c-text-soft);
  font-size: 14px;
}

.footer-inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 40px var(--shell-pad) 24px;
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 28px 24px;
  align-items: start;
}

.footer-group {
  min-width: 0;
}

.footer-about {
  max-width: 320px;
}

.footer-brand {
  margin-bottom: 8px;
  color: var(--c-text);
  font-size: 16px;
  font-weight: 700;
}

.footer-desc {
  color: var(--c-text-muted);
  line-height: 1.7;
}

.footer-title {
  margin-bottom: 10px;
  color: var(--c-text);
  font-size: 14px;
  font-weight: 700;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-list a {
  display: inline-block;
  padding: 3px 0;
  color: var(--c-text-soft);
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--c-primary);
}

.footer-note {
  margin-top: 10px;
  color: var(--c-text-muted);
  font-size: 13px;
  line-height: 1.65;
}

.footer-bottom {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 16px var(--shell-pad) 28px;
  border-top: 1px solid var(--c-border);
}

.footer-copy {
  color: var(--c-text-muted);
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   components · 通用按钮、区块标题、面包屑、页标题
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
  text-decoration: none;
}

.btn-primary {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--c-primary-dark);
  border-color: var(--c-primary-dark);
  color: #ffffff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--c-border-strong);
  color: var(--c-text);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--c-primary);
  color: var(--c-primary);
}

.section {
  padding: 40px 0;
  border-top: 1px solid var(--c-border);
}

.section:first-child {
  border-top: 0;
}

.section-head {
  margin-bottom: 22px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--c-text);
}

.section-desc {
  margin-top: 8px;
  max-width: 860px;
  color: var(--c-text-soft);
  font-size: 15px;
}

.section-desc a {
  font-weight: 600;
}

.sub-title {
  margin-bottom: 14px;
  font-size: 16px;
  font-weight: 700;
  color: var(--c-text);
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--c-text-muted);
}

.breadcrumb a {
  color: var(--c-text-soft);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--c-primary);
}

.breadcrumb-sep {
  color: var(--c-border-strong);
}

.breadcrumb-current {
  color: var(--c-text-muted);
}

.page-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--c-border);
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.3;
}

.page-description {
  margin-top: 10px;
  max-width: 860px;
  color: var(--c-text-soft);
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   components · 内页侧栏与双栏布局
   -------------------------------------------------------------------------- */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 36px;
  align-items: start;
}

.sidebar-left .page-layout,
.page-layout.sidebar-left {
  grid-template-columns: 240px minmax(0, 1fr);
}

.content-main,
.page-content {
  min-width: 0;
}

.sidebar,
.inner-sidebar,
.page-aside {
  min-width: 0;
  padding: 18px 16px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.sidebar-title,
.aside-title {
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--c-text);
}

.sidebar-nav {
  display: block;
}

.sidebar-list,
.aside-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-item,
.aside-item {
  min-width: 0;
}

.sidebar-link,
.aside-item a {
  display: block;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--c-text-soft);
  font-size: 14px;
  line-height: 1.5;
  border-left: 2px solid transparent;
}

.sidebar-link:hover,
.sidebar-link:focus-visible,
.aside-item a:hover,
.aside-item a:focus-visible {
  background: #fdf1f4;
  color: var(--c-primary);
  border-left-color: var(--c-primary);
  text-decoration: none;
}

.sidebar-note,
.aside-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--c-border);
  color: var(--c-text-muted);
  font-size: 13px;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   components · 内页相关链接
   -------------------------------------------------------------------------- */

.related-links,
.related-section {
  margin-top: 8px;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.related-item {
  min-width: 0;
}

.related-item a {
  display: block;
  padding: 14px 16px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  color: var(--c-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.related-item a:hover,
.related-item a:focus-visible {
  border-color: var(--c-primary);
  color: var(--c-primary);
  text-decoration: none;
}

.link-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.link-item {
  min-width: 0;
}

.link-item a {
  display: block;
  padding: 14px 16px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  color: var(--c-text);
  font-size: 15px;
  font-weight: 600;
}

.link-item a:hover,
.link-item a:focus-visible {
  border-color: var(--c-primary);
  color: var(--c-primary);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */

.top-clue-bar {
  background: #fdf1f4;
  border-bottom: 1px solid var(--c-border);
}

.top-clue-text {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 10px var(--shell-pad);
  color: var(--c-text-soft);
  font-size: 13px;
  line-height: 1.6;
}

.hero-section {
  padding: 40px 0 36px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.hero-main {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 12px;
  background: #eaf6f4;
  border-radius: var(--radius-sm);
  color: var(--c-accent);
  font-size: 13px;
  font-weight: 600;
}

.hero-title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.28;
  color: var(--c-text);
}

.hero-lead {
  margin-top: 16px;
  max-width: 620px;
  color: var(--c-text-soft);
  font-size: 16px;
  line-height: 1.8;
}

.hero-points {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px 18px;
}

.hero-point {
  position: relative;
  padding-left: 18px;
  color: var(--c-text-soft);
  font-size: 14px;
  line-height: 1.7;
}

.hero-point::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--c-accent);
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-figure {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--c-surface);
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
}

.hero-quick {
  padding: 18px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
}

.hero-quick-title {
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--c-text);
}

.hero-quick-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hero-quick-list li {
  min-width: 0;
}

.hero-quick-list a,
.hero-quick-list span {
  display: block;
  padding: 8px 10px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  color: var(--c-text-soft);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.hero-quick-list a:hover,
.hero-quick-list a:focus-visible {
  border-color: var(--c-accent);
  color: var(--c-accent);
  text-decoration: none;
}

.hero-quick-note {
  margin-top: 12px;
  color: var(--c-text-muted);
  font-size: 13px;
  line-height: 1.65;
}

/* 题材分类总览（首页） */

.category-rows {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--c-border);
}

.category-overview .category-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--c-border);
}

.category-overview .category-code {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--c-accent);
  letter-spacing: 0;
}

.category-overview .category-body {
  min-width: 0;
}

.category-overview .category-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-text);
}

.category-overview .category-name a {
  color: var(--c-text);
}

.category-overview .category-name a:hover,
.category-overview .category-name a:focus-visible {
  color: var(--c-primary);
}

.category-overview .category-rep {
  margin-top: 6px;
  color: var(--c-text-soft);
  font-size: 14px;
  line-height: 1.7;
}

.category-overview .category-filter {
  margin-top: 4px;
  color: var(--c-text-muted);
  font-size: 13px;
  line-height: 1.7;
}

/* 封面墙与最近更新 */

.cover-update-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.cover-wall,
.update-stream {
  min-width: 0;
}

.cover-group {
  margin-bottom: 22px;
}

.cover-group:last-child {
  margin-bottom: 0;
}

.cover-group-title {
  margin-bottom: 10px;
  padding-left: 10px;
  border-left: 3px solid var(--c-accent);
  font-size: 15px;
  font-weight: 700;
  color: var(--c-text);
}

.cover-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.cover-card {
  min-width: 0;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.cover-card:hover {
  border-color: var(--c-primary);
}

.cover-figure {
  background: var(--c-bg);
}

.cover-figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
}

.cover-name {
  padding: 10px 12px 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--c-text);
}

.cover-tag {
  display: block;
  padding: 0 12px 12px;
  color: var(--c-text-muted);
  font-size: 12px;
  line-height: 1.6;
}

.update-stream {
  padding: 18px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
}

.update-group {
  margin-bottom: 18px;
}

.update-group:last-child {
  margin-bottom: 0;
}

.update-date {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px dashed var(--c-border);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--c-warm);
}

.update-day {
  color: var(--c-text-muted);
  font-weight: 400;
}

.update-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.update-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--c-border);
}

.update-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.update-name {
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
}

.update-cat {
  justify-self: end;
  padding: 1px 8px;
  background: #eaf6f4;
  border-radius: var(--radius-sm);
  color: var(--c-accent);
  font-size: 12px;
  white-space: nowrap;
}

.update-note {
  grid-column: 1 / -1;
  color: var(--c-text-muted);
  font-size: 13px;
  line-height: 1.65;
}

/* 专题片单入口（首页） */

.playlist-entry .playlist-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.playlist-entry .playlist-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
}

.playlist-entry .playlist-card:hover {
  border-color: var(--c-primary);
}

.playlist-entry .playlist-figure {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-bg);
}

.playlist-entry .playlist-figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
}

.playlist-entry .playlist-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.playlist-entry .playlist-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-text);
}

.playlist-entry .playlist-name a {
  color: var(--c-text);
}

.playlist-entry .playlist-name a:hover,
.playlist-entry .playlist-name a:focus-visible {
  color: var(--c-primary);
}

.playlist-entry .playlist-direction {
  color: var(--c-text-soft);
  font-size: 14px;
  line-height: 1.7;
}

.playlist-entry .playlist-order {
  color: var(--c-text-muted);
  font-size: 13px;
  line-height: 1.65;
}

/* 排行榜（首页） */

.ranking-rows {
  border-top: 1px solid var(--c-border);
}

.ranking-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1.1fr) 96px minmax(0, 1.6fr);
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--c-border);
  font-size: 14px;
}

.ranking-no {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--c-warm);
}

.ranking-name {
  min-width: 0;
  font-weight: 600;
  color: var(--c-text);
}

.ranking-cat {
  color: var(--c-accent);
  font-size: 13px;
}

.ranking-reason {
  min-width: 0;
  color: var(--c-text-muted);
  line-height: 1.7;
}

/* 浏览顺序四步（首页） */

.browse-steps .step-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.browse-steps .step-item {
  position: relative;
  min-width: 0;
  padding: 20px 18px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-top: 3px solid var(--c-accent);
  border-radius: var(--radius);
}

.browse-steps .step-no {
  display: inline-block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--c-accent);
}

.browse-steps .step-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-text);
}

.browse-steps .step-desc {
  margin-top: 8px;
  color: var(--c-text-soft);
  font-size: 14px;
  line-height: 1.7;
}

.browse-steps .step-check {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--c-border);
  color: var(--c-text-muted);
  font-size: 13px;
  line-height: 1.65;
}

/* 字段口径与收录边界摘要（首页） */

.field-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.field-table-wrap,
.boundary-wrap {
  min-width: 0;
}

.field-table {
  width: 100%;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14px;
}

.field-table th,
.field-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--c-border);
  line-height: 1.65;
}

.field-table thead th {
  background: #fdf1f4;
  color: var(--c-text);
  font-weight: 700;
  font-size: 13px;
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.field-table tbody th {
  width: 30%;
  color: var(--c-text);
  font-weight: 600;
}

.field-table tbody td {
  color: var(--c-text-soft);
}

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.boundary-item {
  position: relative;
  padding: 10px 14px 10px 34px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  color: var(--c-text-soft);
  font-size: 14px;
  line-height: 1.7;
}

.boundary-item::before {
  position: absolute;
  left: 12px;
  top: 11px;
  font-size: 13px;
  font-weight: 700;
}

.boundary-in::before {
  content: "收";
  color: var(--c-accent);
}

.boundary-out::before {
  content: "限";
  color: var(--c-warm);
}

.boundary-note {
  margin-top: 12px;
  color: var(--c-text-muted);
  font-size: 13px;
  line-height: 1.65;
}

/* 站内栏目索引（首页） */

.site-index .index-columns {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.site-index .index-col {
  min-width: 0;
  padding: 18px 16px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}

.site-index .index-col:hover {
  border-color: var(--c-primary);
}

.site-index .index-col-title {
  font-size: 15px;
  font-weight: 700;
}

.site-index .index-col-title a {
  color: var(--c-text);
}

.site-index .index-col-title a:hover,
.site-index .index-col-title a:focus-visible {
  color: var(--c-primary);
}

.site-index .index-col-desc {
  margin-top: 8px;
  color: var(--c-text-muted);
  font-size: 13px;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   pages · 题材分类页
   -------------------------------------------------------------------------- */

.category-index .category-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--c-border);
}

.category-index .category-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--c-border);
}

.category-index .category-cover {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
}

.category-index .category-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
}

.category-index .category-body {
  min-width: 0;
}

.category-index .category-code {
  display: inline-block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--c-accent);
}

.category-index .category-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-text);
}

.category-index .category-direction {
  margin-top: 8px;
  color: var(--c-text-soft);
  font-size: 14px;
  line-height: 1.75;
}

.category-index .category-sample {
  margin-top: 10px;
  color: var(--c-text-muted);
  font-size: 13px;
  line-height: 1.7;
}

.category-index .sample-name {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 8px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  color: var(--c-text-soft);
  font-size: 13px;
}

.category-index .category-filter {
  margin-top: 8px;
  color: var(--c-text-muted);
  font-size: 13px;
  line-height: 1.7;
}

.category-boundary .boundary-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.category-boundary .boundary-item {
  padding: 18px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
}

.category-boundary .boundary-item::before {
  content: none;
}

.category-boundary .boundary-name {
  margin-bottom: 10px;
  padding-left: 10px;
  border-left: 3px solid var(--c-accent);
  font-size: 15px;
  font-weight: 700;
  color: var(--c-text);
}

.category-boundary .boundary-in,
.category-boundary .boundary-out {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.75;
}

.category-boundary .boundary-in {
  color: var(--c-text-soft);
}

.category-boundary .boundary-out {
  margin-top: 6px;
  color: var(--c-text-muted);
}

.category-boundary .boundary-in::before,
.category-boundary .boundary-out::before {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 13px;
  font-weight: 700;
}

.category-boundary .boundary-in::before {
  content: "含";
  color: var(--c-accent);
}

.category-boundary .boundary-out::before {
  content: "除";
  color: var(--c-warm);
}

/* --------------------------------------------------------------------------
   pages · 专题片单页
   -------------------------------------------------------------------------- */

.playlist-section .playlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.playlist-section .playlist-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.playlist-section .playlist-card:hover {
  border-color: var(--c-primary);
}

.playlist-section .playlist-figure {
  background: var(--c-bg);
}

.playlist-section .playlist-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
}

.playlist-section .playlist-body {
  flex: 1 1 auto;
  min-width: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.playlist-section .playlist-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-text);
}

.playlist-section .playlist-direction,
.playlist-section .playlist-basis,
.playlist-section .playlist-order {
  color: var(--c-text-soft);
  font-size: 14px;
  line-height: 1.7;
}

.playlist-section .playlist-basis,
.playlist-section .playlist-order {
  color: var(--c-text-muted);
  font-size: 13px;
}

.playlist-section .label {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 8px;
  background: #eaf6f4;
  border-radius: var(--radius-sm);
  color: var(--c-accent);
  font-size: 12px;
  font-weight: 600;
}

.reading-method-section .method-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.reading-method-section .method-step {
  min-width: 0;
  padding: 18px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-primary);
  border-radius: var(--radius);
}

.reading-method-section .step-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-text);
}

.reading-method-section .step-desc {
  margin-top: 8px;
  color: var(--c-text-soft);
  font-size: 14px;
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   pages · 浏览顺序页
   -------------------------------------------------------------------------- */

.guide-visual {
  margin-bottom: 36px;
}

.guide-figure {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--c-surface);
}

.guide-figure img {
  width: 100%;
  aspect-ratio: 21 / 9;
  height: auto;
  object-fit: cover;
}

.guide-caption {
  padding: 10px 16px;
  border-top: 1px solid var(--c-border);
  color: var(--c-text-muted);
  font-size: 13px;
  line-height: 1.65;
}

.guide-steps {
  margin-bottom: 36px;
}

.guide-steps .step-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.guide-steps .step-item {
  min-width: 0;
}

.guide-steps .step-card {
  height: 100%;
  padding: 20px 18px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-top: 3px solid var(--c-primary);
  border-radius: var(--radius);
}

.guide-steps .step-index {
  display: inline-block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--c-primary);
}

.guide-steps .step-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-text);
}

.guide-steps .step-text {
  margin-top: 8px;
  color: var(--c-text-soft);
  font-size: 14px;
  line-height: 1.75;
}

.guide-steps .step-check {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--c-border);
  color: var(--c-text-muted);
  font-size: 13px;
  line-height: 1.65;
}

.guide-faq {
  margin-bottom: 36px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item[open] {
  border-color: var(--c-primary);
}

.faq-question {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 44px 12px 16px;
  position: relative;
  color: var(--c-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-primary);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 16px 16px;
  color: var(--c-text-soft);
  font-size: 14px;
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   pages · 字段口径与整理记录页
   -------------------------------------------------------------------------- */

.content-section {
  margin-bottom: 40px;
}

.content-section:last-child {
  margin-bottom: 0;
}

.section-intro {
  margin-bottom: 18px;
  max-width: 820px;
  color: var(--c-text-soft);
  font-size: 15px;
  line-height: 1.75;
}

.entry-figure {
  margin-bottom: 20px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--c-surface);
}

.entry-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
}

.figure-caption {
  padding: 10px 16px;
  border-top: 1px solid var(--c-border);
  color: var(--c-text-muted);
  font-size: 13px;
  line-height: 1.65;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-surface);
}

.table-wrap .field-table {
  border: 0;
  border-radius: 0;
  min-width: 520px;
}

.table-caption {
  padding: 12px 16px;
  background: #fdf1f4;
  color: var(--c-text);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}

.boundary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.boundary-col {
  min-width: 0;
  padding: 18px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
}

.boundary-col.boundary-in {
  border-top: 3px solid var(--c-accent);
}

.boundary-col.boundary-out {
  border-top: 3px solid var(--c-warm);
}

.subsection-title {
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--c-text);
}

.boundary-col .boundary-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.boundary-col .boundary-list li {
  position: relative;
  padding-left: 16px;
  color: var(--c-text-soft);
  font-size: 14px;
  line-height: 1.75;
}

.boundary-col .boundary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-border-strong);
}

.boundary-col.boundary-in .boundary-list li::before {
  background: var(--c-accent);
}

.boundary-col.boundary-out .boundary-list li::before {
  background: var(--c-warm);
}

.record-list {
  display: flex;
  flex-direction: column;
}

.record-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--c-border);
}

.record-item:first-child {
  border-top: 1px solid var(--c-border);
}

.record-month {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--c-primary);
}

.record-entries {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.record-entries li {
  position: relative;
  padding-left: 16px;
  color: var(--c-text-soft);
  font-size: 14px;
  line-height: 1.75;
}

.record-entries li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-border-strong);
}

.record-tag {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 8px;
  background: #eaf6f4;
  border-radius: var(--radius-sm);
  color: var(--c-accent);
  font-size: 12px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */

.error-main {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 64px var(--shell-pad);
}

.error-panel {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 32px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-top: 3px solid var(--c-primary);
  border-radius: var(--radius-lg);
  text-align: center;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  color: var(--c-primary);
}

.error-panel h1 {
  margin-top: 14px;
  font-size: 24px;
  font-weight: 700;
  color: var(--c-text);
}

.error-text {
  margin-top: 12px;
  color: var(--c-text-soft);
  font-size: 15px;
  line-height: 1.75;
}

.error-list {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.error-item a {
  display: block;
  min-height: 44px;
  padding: 10px 14px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  color: var(--c-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.error-item a:hover,
.error-item a:focus-visible {
  border-color: var(--c-primary);
  color: var(--c-primary);
  text-decoration: none;
}

.error-action {
  margin-top: 26px;
}

/* --------------------------------------------------------------------------
   enhance · 滚动出现（不影响初始可见性）
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .section,
  .hero-inner,
  .page-header {
    animation: rise-in 0.5s ease-out both;
  }
}

@keyframes rise-in {
  from {
    transform: translateY(10px);
  }

  to {
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   responsive · 900px 与 600px 断点
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  :root {
    --shell-pad: 18px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-border);
    padding: 8px var(--shell-pad) 16px;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    display: flex;
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border-bottom: 0;
    border-left: 2px solid transparent;
  }

  .nav-link.is-current {
    border-left-color: var(--c-primary);
    background: #fdf1f4;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-title {
    font-size: 28px;
  }

  .cover-update-grid,
  .field-summary-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .page-layout,
  .sidebar-left .page-layout,
  .page-layout.sidebar-left {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .sidebar,
  .inner-sidebar,
  .page-aside {
    position: static;
    order: 2;
  }

  .content-main,
  .page-content {
    order: 1;
  }

  .site-index .index-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ranking-row {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    grid-template-areas:
      "no name cat"
      "no reason reason";
    row-gap: 4px;
  }

  .ranking-no {
    grid-area: no;
  }

  .ranking-name {
    grid-area: name;
  }

  .ranking-cat {
    grid-area: cat;
    justify-self: end;
  }

  .ranking-reason {
    grid-area: reason;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
  }

  .footer-about {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .brand {
    font-size: 16px;
  }

  .brand-text {
    white-space: normal;
  }

  .top-clue-text {
    font-size: 12px;
  }

  .hero-section {
    padding: 28px 0 24px;
  }

  .hero-title {
    font-size: 23px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-points {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-quick-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding: 30px 0;
  }

  .section-title {
    font-size: 19px;
  }

  .category-overview .category-row {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 0;
  }

  .cover-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .playlist-entry .playlist-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .playlist-entry .playlist-card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .browse-steps .step-list,
  .guide-steps .step-list,
  .reading-method-section .method-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-index .index-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-title {
    font-size: 22px;
  }

  .category-index .category-row {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
    padding: 16px 0;
  }

  .category-boundary .boundary-list,
  .playlist-section .playlist-grid,
  .boundary-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .record-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .related-list,
  .link-list,
  .error-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 32px var(--shell-pad) 20px;
  }

  .error-main {
    padding: 40px var(--shell-pad);
  }

  .error-panel {
    padding: 28px 20px;
  }
}
