/* ==========================================================================
   午夜看片 crnypy.cn — 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* ==========================================================================
   base — 变量、重置、排版基线
   ========================================================================== */

:root {
  --bg: #131a2b;
  --bg-deep: #0b0f1a;
  --bg-panel: #182238;
  --bg-panel-soft: #1c2740;
  --line: #26324b;
  --line-soft: #1f2a41;
  --text: #e8eaf0;
  --text-dim: #b3bacb;
  --text-muted: #8b93a7;
  --accent: #e0a45c;
  --accent-soft: rgba(224, 164, 92, 0.14);
  --accent-line: rgba(224, 164, 92, 0.42);
  --radius: 6px;
  --radius-sm: 4px;
  --wrap: 1120px;
  --wrap-narrow: 760px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, "Courier New", monospace;
  --header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0 0 1em;
  padding: 0;
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: #f0be80;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

table {
  border-collapse: collapse;
  width: 100%;
}

figure {
  margin: 0;
}

figcaption {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
  margin-top: 8px;
}

dl {
  margin: 0;
}

dt {
  color: var(--text-muted);
}

dd {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   layout — 骨架：页头、导航、主容器、面包屑、页脚
   ========================================================================== */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 顶部事实条（首页与说明页） */
.fact-bar,
.top-fact-bar {
  background-color: var(--bg-deep);
  border-bottom: 1px solid var(--line-soft);
  padding: 9px 20px;
}

.fact-bar p,
.top-fact-bar p {
  max-width: var(--wrap);
  margin: 0 auto;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(19, 26, 43, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.2;
  flex: 0 0 auto;
}

.brand:hover,
.brand:focus-visible {
  color: var(--text);
}

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-sm);
  background-color: var(--accent);
  box-shadow: inset 0 0 0 4px var(--bg);
  flex: 0 0 auto;
}

.brand-text {
  white-space: nowrap;
}

/* 主导航 */
.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
}

.nav-link {
  display: inline-block;
  padding: 8px 12px;
  font-size: 15px;
  color: var(--text-dim);
  border-bottom: 2px solid transparent;
  line-height: 1.4;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text);
}

.nav-link.is-current {
  color: var(--accent);
  border-bottom-color: var(--accent-line);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-dim);
  border-radius: 1px;
}

/* 主内容 */
.site-main {
  flex: 1 1 auto;
  width: 100%;
}

.inner-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 28px 20px 64px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--text-dim);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--text-muted);
}

/* 内页标题区 */
.page-header {
  max-width: var(--wrap-narrow);
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 32px;
}

.page-title {
  font-size: 32px;
  line-height: 1.3;
  margin: 0 0 12px;
}

.page-description {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-dim);
  margin: 0;
}

/* 页脚 */
.site-footer {
  background-color: var(--bg-deep);
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 44px 20px 28px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-about {
  min-width: 0;
}

.footer-brand {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 10px;
}

.footer-desc {
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0;
  max-width: 340px;
}

.footer-group {
  min-width: 0;
}

.footer-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  margin: 0 0 12px;
}

.footer-group ul {
  margin: 0;
}

.footer-group li {
  margin-bottom: 8px;
}

.footer-group a {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-group a:hover,
.footer-group a:focus-visible {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--line-soft);
}

.footer-bottom p {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 20px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   components — 通用按钮、卡片、表格、折叠、列表
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn-primary {
  background-color: var(--accent);
  color: #1b1206;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: #f0be80;
  color: #1b1206;
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text-dim);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--accent-line);
  color: var(--accent);
}

.link-more,
.text-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.link-more::after,
.text-link::after {
  content: " →";
  font-weight: 400;
}

.section-head {
  max-width: var(--wrap-narrow);
  margin-bottom: 24px;
}

.section-title {
  font-size: 22px;
  margin: 0 0 10px;
}

.section-desc,
.section-lead,
.section-intro {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-dim);
  margin: 0;
}

.section-lead,
.section-intro {
  margin-bottom: 22px;
  max-width: var(--wrap-narrow);
}

.sub-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 14px;
}

/* 数据表 */
.data-table,
.field-table {
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.table-caption {
  caption-side: top;
  text-align: left;
  font-size: 13px;
  color: var(--text-muted);
  padding: 10px 0;
}

.data-table th,
.data-table td,
.field-table th,
.field-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
  line-height: 1.7;
}

.data-table thead th,
.field-table thead th {
  background-color: var(--bg-panel);
  color: var(--text-dim);
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}

.data-table tbody tr:last-child td,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover,
.field-table tbody tr:hover {
  background-color: var(--bg-panel-soft);
}

.field-table td:first-child,
.field-table th:first-child {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  white-space: nowrap;
}

/* 边界与说明列表 */
.boundary-list {
  margin: 0;
}

.boundary-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-dim);
}

.boundary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-line);
}

/* 步骤清单 */
.path-steps {
  counter-reset: step;
  margin: 0;
}

.path-step {
  position: relative;
  padding: 0 0 22px 52px;
  border-left: 1px solid var(--line);
  margin-left: 16px;
}

.path-step:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.path-step .step-no {
  position: absolute;
  left: -17px;
  top: 0;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--bg-panel);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 14px;
}

.path-step .step-name {
  font-size: 16px;
  margin: 4px 0 8px;
}

.path-step .step-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-dim);
  margin: 0 0 8px;
}

.path-step .step-link {
  font-size: 14px;
  font-weight: 600;
}

/* FAQ 折叠 */
.faq-list {
  border-top: 1px solid var(--line-soft);
}

.faq-item {
  border-bottom: 1px solid var(--line-soft);
}

.faq-item summary {
  padding: 16px 30px 16px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  position: relative;
  list-style: none;
  line-height: 1.6;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 18px;
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-dim);
  max-width: var(--wrap-narrow);
}

/* ==========================================================================
   pages — 首页
   ========================================================================== */

.home-main {
  width: 100%;
}

/* 首屏 */
.hero {
  border-bottom: 1px solid var(--line-soft);
  padding: 48px 20px 52px;
}

.hero-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 44px;
  align-items: start;
}

.hero-copy {
  min-width: 0;
}

.hero-title {
  font-size: 32px;
  margin: 0 0 16px;
}

.hero-lead {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-dim);
  margin: 0 0 24px;
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

.hero-fact {
  min-width: 0;
}

.hero-fact dt {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.hero-fact dd {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

.hero-media {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--bg-panel);
}

.hero-figure img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.hero-figure figcaption {
  padding: 10px 14px;
  margin: 0;
}

.hero-spotlight {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-panel);
  padding: 18px 20px;
}

.spotlight-title {
  font-size: 15px;
  margin: 0 0 8px;
}

.spotlight-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin: 0 0 8px;
}

.spotlight-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-dim);
  margin: 0 0 12px;
}

.spotlight-list {
  margin: 0 0 14px;
}

.spotlight-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.spotlight-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--accent-line);
}

/* 通用 section 间距 */
.section {
  padding: 52px 20px;
  border-bottom: 1px solid var(--line-soft);
}

.section > .section-head,
.section > .channel-rows,
.section > .list-cards,
.section > .updates-layout,
.section > .path-steps,
.section > .scope-layout,
.section > .sitemap-grid {
  max-width: var(--wrap);
  margin-left: auto;
  margin-right: auto;
}

/* 题材频道总览 */
.channel-rows {
  margin: 0;
  border-top: 1px solid var(--line);
}

.channel-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1.15fr) minmax(0, 1.15fr) minmax(0, 0.9fr) 96px;
  gap: 20px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
}

.channel-row .channel-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.channel-row .channel-trait,
.channel-row .channel-scope,
.channel-row .channel-fit {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-dim);
  margin: 0;
}

.channel-row .channel-link {
  font-size: 14px;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

/* 专题片单速览 */
.list-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.list-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-panel);
  padding: 0 0 20px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: border-color 0.18s ease;
}

.list-card:hover {
  border-color: var(--accent-line);
}

.list-figure {
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}

.list-figure img {
  width: 100%;
  height: 168px;
  object-fit: cover;
}

.list-name {
  font-size: 17px;
  margin: 18px 20px 10px;
}

.list-meta {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 20px 6px;
}

.list-fit {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-dim);
  margin: 8px 20px 16px;
}

.list-link {
  margin: auto 20px 0;
  font-size: 14px;
  font-weight: 600;
}

/* 更新日历与最近上线 */
.updates-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.updates-main {
  min-width: 0;
}

.update-groups {
  margin: 0 0 18px;
}

.update-group {
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}

.update-group:first-child {
  padding-top: 0;
}

.update-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin: 0 0 10px;
}

.update-items {
  margin: 0;
}

.update-item {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.9fr);
  gap: 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dim);
  padding: 6px 0;
}

.update-item .update-name {
  color: var(--text);
}

.update-item .update-channel,
.update-item .update-list-name {
  color: var(--text-muted);
  font-size: 13px;
}

.updates-side {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-panel);
  padding: 20px;
}

.updates-side .sub-title:not(:first-child) {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.month-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 0;
}

.month-index a {
  font-size: 14px;
  color: var(--text-dim);
}

.month-index a:hover,
.month-index a:focus-visible {
  color: var(--accent);
}

.side-text {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-muted);
  margin: 0 0 10px;
}

/* 观影路径指引 */
.section-path .path-steps {
  max-width: var(--wrap);
  margin: 0 auto;
}

/* 字段口径与收录边界摘要 */
.scope-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.scope-fields,
.scope-boundary {
  min-width: 0;
}

.scope-fields .field-table {
  margin-bottom: 16px;
}

.scope-boundary .boundary-list {
  margin-bottom: 16px;
}

/* 站内栏目索引 */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
}

.sitemap-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-panel);
  padding: 18px;
  min-width: 0;
  transition: border-color 0.18s ease;
}

.sitemap-item:hover {
  border-color: var(--accent-line);
}

.sitemap-item a {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.sitemap-item a:hover,
.sitemap-item a:focus-visible {
  color: var(--accent);
}

.sitemap-item p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

/* ==========================================================================
   pages — 内页：题材频道
   ========================================================================== */

.channel-index,
.channel-advice,
.channel-path {
  padding: 0 0 40px;
}

.channel-index .section-title,
.channel-advice .section-title,
.channel-path .section-title {
  margin-bottom: 10px;
}

.channel-index .channel-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
}

.channel-index .channel-row:first-of-type {
  border-top: 1px solid var(--line);
}

.channel-visual {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--bg-panel);
}

.channel-visual img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.channel-body {
  min-width: 0;
}

.channel-body .channel-name {
  font-size: 17px;
  margin: 0 0 10px;
}

.channel-facts {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 4px 14px;
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.75;
}

.channel-facts dt {
  font-size: 13px;
  color: var(--text-muted);
}

.channel-facts dd {
  color: var(--text-dim);
}

.channel-body .channel-link {
  font-size: 14px;
  font-weight: 600;
}

.advice-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
}

.advice-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-panel);
  padding: 18px 20px;
  min-width: 0;
}

.advice-title {
  font-size: 16px;
  margin: 0 0 8px;
}

.advice-item p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-dim);
  margin: 0;
}

.path-list {
  margin: 0 0 16px;
  border-top: 1px solid var(--line);
}

.path-item {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}

.path-from {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.path-link {
  font-size: 14px;
  font-weight: 600;
}

.path-note {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-muted);
  margin: 0;
}

/* ==========================================================================
   pages — 内页：专题片单
   ========================================================================== */

.section-list,
.section-curation,
.section-order,
.section-sample,
.section-usage {
  padding: 0 0 44px;
}

.list-table {
  font-size: 14px;
}

.curation-item {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-soft);
}

.section-curation .curation-item:first-of-type {
  border-top: 1px solid var(--line);
}

.curation-figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--bg-panel);
}

.curation-figure img {
  width: 100%;
  height: 168px;
  object-fit: cover;
}

.curation-figure figcaption {
  padding: 10px 14px;
  margin: 0;
}

.curation-body {
  min-width: 0;
}

.curation-name {
  font-size: 17px;
  margin: 0 0 8px;
}

.curation-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.curation-body p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-dim);
  margin: 0 0 10px;
}

.curation-body p:last-child {
  margin-bottom: 0;
}

.order-list {
  counter-reset: order;
  margin: 0;
  border-top: 1px solid var(--line);
}

.order-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
}

.order-name {
  font-size: 16px;
  margin: 0 0 8px;
}

.order-steps {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--accent);
  margin: 0 0 8px;
}

.order-note {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-dim);
  margin: 0;
}

.sample-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}

.sample-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-panel);
  padding: 16px 18px;
  min-width: 0;
}

.sample-name {
  font-size: 15px;
  margin: 0 0 6px;
}

.sample-meta {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

.usage-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.usage-column {
  min-width: 0;
}

.usage-heading {
  font-size: 15px;
  margin: 0 0 8px;
}

.usage-column p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-dim);
  margin: 0;
}

/* ==========================================================================
   pages — 内页：更新日历
   ========================================================================== */

.section-updates,
.section-month-index,
.section-rhythm {
  padding: 0 0 44px;
}

.update-day {
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}

.section-updates .update-day:first-of-type {
  border-top: 1px solid var(--line);
}

.update-day .update-date {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 12px;
}

.update-list {
  margin: 0;
}

.update-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.8fr) minmax(0, 0.9fr);
  gap: 16px;
  padding: 7px 0;
  font-size: 14px;
  line-height: 1.7;
}

.update-row .update-name {
  color: var(--text);
}

.update-row .update-channel,
.update-row .update-list-name {
  font-size: 13px;
  color: var(--text-muted);
}

.update-note {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-muted);
  margin: 18px 0 0;
}

.update-media {
  margin: 0 0 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--bg-panel);
}

.update-media img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.update-media figcaption {
  padding: 12px 16px;
  margin: 0;
}

.month-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.month-item {
  min-width: 0;
}

.month-item a {
  display: block;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-panel);
  font-size: 14px;
  color: var(--text-dim);
  transition: border-color 0.18s ease, color 0.18s ease;
}

.month-item a:hover,
.month-item a:focus-visible {
  border-color: var(--accent-line);
  color: var(--accent);
}

.rhythm-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.rhythm-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-panel);
  padding: 18px 20px;
  min-width: 0;
}

.rhythm-title {
  font-size: 16px;
  margin: 0 0 8px;
}

.rhythm-item p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-dim);
  margin: 0;
}

/* ==========================================================================
   pages — 内页：字段与说明
   ========================================================================== */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 44px;
  align-items: start;
}

.page-main-column {
  min-width: 0;
}

.page-sidebar {
  min-width: 0;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.sidebar-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-panel);
  padding: 16px 18px;
  margin-bottom: 18px;
}

.sidebar-block:last-child {
  margin-bottom: 0;
}

.sidebar-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  margin: 0 0 12px;
}

.sidebar-links {
  margin: 0;
}

.sidebar-links li {
  margin-bottom: 8px;
}

.sidebar-links li:last-child {
  margin-bottom: 0;
}

.sidebar-links a {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

.sidebar-links a:hover,
.sidebar-links a:focus-visible {
  color: var(--accent);
}

.content-section {
  padding: 0 0 44px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.content-section h2 {
  font-size: 22px;
  margin: 0 0 10px;
}

.section-fields .field-table {
  margin-bottom: 0;
}

.section-boundary .boundary-item {
  border-bottom: 1px solid var(--line-soft);
  padding: 14px 0;
}

.section-boundary .boundary-item:first-child {
  border-top: 1px solid var(--line);
}

.section-boundary .boundary-item h3 {
  font-size: 15px;
  margin: 0 0 6px;
}

.section-boundary .boundary-item p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-dim);
  margin: 0;
}

.section-figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--bg-panel);
  margin: 0 0 26px;
}

.section-figure img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.section-figure figcaption {
  padding: 12px 16px;
  margin: 0;
}

.section-path .path-step {
  padding-bottom: 24px;
}

.section-path .path-step h3 {
  font-size: 16px;
  margin: 4px 0 8px;
}

.section-path .path-step p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-dim);
  margin: 0 0 8px;
}

/* ==========================================================================
   pages — 404
   ========================================================================== */

.error-main {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 64px 20px 72px;
}

.error-panel {
  max-width: var(--wrap-narrow);
}

.error-code {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  margin: 0 0 12px;
}

.error-panel h1 {
  font-size: 32px;
  margin: 0 0 14px;
}

.error-lead {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-dim);
  margin: 0 0 26px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-guide {
  margin-top: 52px;
  padding-top: 32px;
  border-top: 1px solid var(--line-soft);
  max-width: var(--wrap-narrow);
}

.error-guide h2 {
  font-size: 20px;
  margin: 0 0 10px;
}

.error-guide p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-dim);
  margin: 0 0 18px;
}

.error-list {
  margin: 0;
}

.error-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}

.error-list a {
  font-size: 15px;
  font-weight: 600;
}

/* ==========================================================================
   responsive — 960px 与 640px 断点
   ========================================================================== */

@media (max-width: 960px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex: 1 1 100%;
    justify-content: flex-start;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
    padding: 8px 0 12px;
    border-top: 1px solid var(--line-soft);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    padding: 12px 4px;
    font-size: 16px;
    border-bottom: 0;
    border-left: 2px solid transparent;
    padding-left: 12px;
  }

  .nav-link.is-current {
    border-bottom-color: transparent;
    border-left-color: var(--accent-line);
  }

  .hero {
    padding: 36px 20px 40px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .channel-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px 20px;
  }

  .channel-row .channel-name {
    grid-column: 1 / -1;
    font-size: 17px;
  }

  .channel-row .channel-link {
    grid-column: 1 / -1;
    text-align: left;
  }

  .list-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .updates-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .scope-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .sitemap-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
  }

  /* 内页 */
  .channel-index .channel-row {
    grid-template-columns: 200px minmax(0, 1fr);
  }

  .advice-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .curation-item {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
  }

  .usage-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .month-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rhythm-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .page-sidebar {
    position: static;
  }

  .sidebar-block {
    margin-bottom: 16px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .fact-bar,
  .top-fact-bar {
    padding: 8px 16px;
  }

  .fact-bar p,
  .top-fact-bar p {
    font-size: 12px;
  }

  .header-inner {
    padding: 0 16px;
  }

  .inner-main {
    padding: 22px 16px 48px;
  }

  .page-title {
    font-size: 24px;
  }

  .page-header {
    margin-bottom: 24px;
    padding-bottom: 18px;
  }

  .hero {
    padding: 28px 16px 32px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .hero-facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .hero-figure img {
    height: 200px;
  }

  .section {
    padding: 36px 16px;
  }

  .section-title {
    font-size: 19px;
  }

  .channel-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 16px 0;
  }

  .list-cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .list-figure img {
    height: 180px;
  }

  .update-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .month-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sitemap-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 32px 16px 22px;
    gap: 22px;
  }

  .footer-bottom p {
    padding: 14px 16px;
  }

  /* 内页 */
  .channel-index .channel-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .channel-visual img {
    height: 170px;
  }

  .channel-facts {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .path-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 12px 0;
  }

  .curation-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 22px 0;
  }

  .curation-figure img {
    height: 180px;
  }

  .sample-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .update-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    padding: 10px 0;
  }

  .update-row .update-channel,
  .update-row .update-list-name {
    display: block;
  }

  .update-media img {
    height: 200px;
  }

  .month-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .content-section h2 {
    font-size: 19px;
  }

  .section-figure img {
    height: 190px;
  }

  .path-step {
    padding-left: 44px;
    margin-left: 14px;
  }

  .path-step .step-no {
    left: -15px;
    width: 30px;
    height: 30px;
    font-size: 13px;
  }

  .error-main {
    padding: 44px 16px 56px;
  }

  .error-panel h1 {
    font-size: 24px;
  }

  .error-actions .btn {
    flex: 1 1 auto;
  }

  /* 表格窄屏横向滚动，避免溢出 */
  .data-table,
  .field-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .data-table thead,
  .data-table tbody,
  .data-table tr,
  .field-table thead,
  .field-table tbody,
  .field-table tr {
    display: table;
    width: 100%;
    table-layout: fixed;
  }

  .data-table thead,
  .field-table thead {
    display: table-header-group;
  }

  .data-table tbody,
  .field-table tbody {
    display: table-row-group;
  }

  .data-table thead th,
  .field-table thead th {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}
