/* ==========================================================================
   光棍电影网 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --ink-blue: #1f3a5f;
  --ink-blue-deep: #16293f;
  --accent-orange: #d97706;
  --accent-orange-soft: #fdf3e3;
  --slate-teal: #4b6b7a;
  --bg-page: #f5f6f7;
  --bg-panel: #ffffff;
  --bg-subtle: #eef1f3;
  --text-body: #1c1f23;
  --text-muted: #5b6670;
  --line: #d9dde1;
  --line-strong: #c2c9cf;
  --radius: 6px;
  --radius-sm: 4px;
  --shell: 1120px;
  --reading: 720px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", "WenQuanYi Micro Hei", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, "Courier New", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg-page);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink-blue);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dt,
dd {
  margin: 0;
}

a {
  color: var(--ink-blue);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: var(--accent-orange);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-orange);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

.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 {
  min-height: 100vh;
  background-color: var(--bg-page);
}

.site-header {
  position: relative;
  z-index: 30;
  background-color: var(--bg-panel);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px 24px;
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}

.site-main {
  display: block;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 56px;
}

.inner-main {
  padding-top: 20px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 14px;
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--slate-teal);
}

.page-header {
  max-width: var(--reading);
  margin-bottom: 32px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  margin-bottom: 12px;
  color: var(--ink-blue);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.35;
}

.page-description {
  color: var(--text-muted);
  font-size: 15px;
}

.site-footer {
  background-color: var(--ink-blue-deep);
  color: #c8d3dd;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 32px;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px 24px 28px;
}

.footer-col {
  min-width: 0;
}

.footer-title {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
}

.footer-list li + li {
  margin-top: 8px;
}

.footer-list a {
  color: #c8d3dd;
  font-size: 14px;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--accent-orange);
}

.footer-brand {
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
}

.footer-desc {
  max-width: 360px;
  color: #a9b5c1;
  font-size: 14px;
}

.footer-note {
  margin-top: 14px;
  color: #a9b5c1;
  font-size: 14px;
}

.footer-note a {
  color: var(--accent-orange);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-copy {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 16px 24px 22px;
  color: #8b98a5;
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   components · 页头 / 导航 / 标签栏
   -------------------------------------------------------------------------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--ink-blue);
}

.brand:hover,
.brand:focus-visible {
  color: var(--ink-blue);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  background-color: var(--ink-blue);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
}

.brand-sub {
  color: var(--slate-teal);
  font-size: 13px;
  line-height: 1.3;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: var(--bg-panel);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--ink-blue);
  border-radius: 1px;
}

.nav-link {
  display: block;
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  color: var(--ink-blue);
  font-size: 15px;
  line-height: 1.4;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
  background-color: var(--bg-subtle);
  color: var(--accent-orange);
}

.nav-link.is-current {
  background-color: var(--accent-orange-soft);
  color: var(--accent-orange);
  font-weight: 600;
}

.tag-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 12px;
}

.tag-scroll {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: var(--bg-panel);
  color: var(--slate-teal);
  font-size: 15px;
  line-height: 1;
}

.tag-scroll:hover,
.tag-scroll:focus-visible {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

.tag-list {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.tag-list::-webkit-scrollbar {
  display: none;
}

.tag-item {
  display: block;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background-color: var(--bg-panel);
  color: var(--slate-teal);
  font-size: 13px;
  line-height: 1.5;
  white-space: nowrap;
}

.tag-item:hover,
.tag-item:focus-visible {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

/* --------------------------------------------------------------------------
   components · 通用区块
   -------------------------------------------------------------------------- */

.section {
  margin-top: 48px;
}

.section-head {
  max-width: var(--reading);
  margin-bottom: 22px;
}

.section-title {
  margin-bottom: 10px;
  color: var(--ink-blue);
  font-size: 22px;
  font-weight: 600;
}

.section-desc,
.section-intro {
  color: var(--text-muted);
  font-size: 15px;
}

.section-intro {
  margin-bottom: 20px;
}

.section-foot {
  margin-top: 18px;
  font-size: 14px;
}

.section-foot a {
  color: var(--accent-orange);
  font-weight: 600;
}

/* 频道总表（首页 / 频道分类页共用基础行） */

.channel-table {
  border-top: 1px solid var(--line-strong);
}

.channel-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 4px 18px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.channel-row:hover {
  background-color: var(--bg-panel);
  border-bottom-color: var(--accent-orange);
}

.channel-no,
.channel-code {
  grid-row: span 3;
  align-self: start;
  color: var(--accent-orange);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}

.channel-name {
  font-size: 17px;
  font-weight: 600;
}

.channel-name a:hover,
.channel-name a:focus-visible {
  color: var(--accent-orange);
}

.channel-scope,
.channel-desc {
  color: var(--text-body);
  font-size: 15px;
}

.channel-adjacent {
  color: var(--text-muted);
  font-size: 14px;
  font-family: var(--font-mono);
}

/* 步骤流程 */

.step-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.step-item {
  padding: 18px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent-orange);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.step-item:hover {
  border-color: var(--accent-orange);
  transform: translateY(-2px);
}

.step-no,
.step-index {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-orange);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}

.step-name {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
}

.step-need,
.step-detail {
  color: var(--text-muted);
  font-size: 14px;
}

.step-detail {
  margin-top: 8px;
}

/* 字段表 */

.field-table {
  font-size: 15px;
}

.field-caption {
  padding-bottom: 10px;
  color: var(--text-muted);
  font-size: 13px;
  text-align: left;
}

.field-table th,
.field-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.field-table thead th {
  background-color: var(--bg-subtle);
  color: var(--ink-blue);
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid var(--line-strong);
}

.field-table tbody tr:hover {
  background-color: var(--bg-panel);
}

.field-name {
  color: var(--ink-blue);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.field-required,
.field-optional {
  color: var(--slate-teal);
  font-size: 13px;
  white-space: nowrap;
}

.field-required {
  color: var(--accent-orange);
}

/* 收录边界列表 */

.boundary-list {
  display: grid;
  gap: 12px;
}

.boundary-item {
  padding: 14px 16px;
  background-color: var(--bg-panel);
  border-left: 3px solid var(--slate-teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.boundary-name {
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 600;
}

.boundary-text,
.boundary-desc {
  color: var(--text-muted);
  font-size: 14px;
}

/* 整理记录 */

.log-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.log-group {
  padding: 18px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.log-month {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-blue);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
}

.log-list {
  display: grid;
  gap: 10px;
}

.log-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  padding-left: 12px;
  border-left: 2px solid var(--accent-orange);
}

.log-object {
  font-size: 15px;
}

.log-type {
  color: var(--accent-orange);
  font-family: var(--font-mono);
  font-size: 13px;
}

.log-impact {
  color: var(--text-muted);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */

.top-hint {
  background-color: var(--ink-blue);
}

.top-hint p {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 7px 24px;
  color: #d7e0e9;
  font-size: 13px;
  line-height: 1.6;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: center;
  padding: 44px 0 8px;
}

.hero-col {
  min-width: 0;
}

.hero-eyebrow {
  margin-bottom: 12px;
  color: var(--accent-orange);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}

.hero-title {
  margin-bottom: 16px;
  color: var(--ink-blue);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.3;
}

.hero-lead {
  max-width: 560px;
  margin-bottom: 20px;
  color: var(--text-body);
  font-size: 16px;
}

.hero-points {
  display: grid;
  gap: 8px;
  margin-bottom: 26px;
}

.hero-points li {
  position: relative;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 15px;
}

.hero-points li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 7px;
  height: 7px;
  background-color: var(--accent-orange);
  border-radius: 1px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.btn-primary {
  background-color: var(--ink-blue);
  border: 1px solid var(--ink-blue);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #ffffff;
}

.btn-ghost {
  background-color: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink-blue);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

.hero-figure {
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-figure figcaption {
  padding: 12px 16px;
  color: var(--text-muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

/* 专题片单入口 */

.playlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.playlist-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.playlist-card:hover {
  border-color: var(--accent-orange);
  transform: translateY(-2px);
}

.playlist-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.playlist-body {
  padding: 16px 18px 18px;
}

.playlist-name {
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 600;
}

.playlist-name a:hover,
.playlist-name a:focus-visible {
  color: var(--accent-orange);
}

.playlist-cover {
  margin-bottom: 6px;
  color: var(--slate-teal);
  font-family: var(--font-mono);
  font-size: 13px;
}

.playlist-range {
  color: var(--text-muted);
  font-size: 14px;
}

/* 字段说明与收录边界摘要 */

.fields-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: start;
}

.fields-col {
  min-width: 0;
}

.fields-subtitle {
  margin-bottom: 14px;
  font-size: 16px;
  font-weight: 600;
}

.fields-more {
  margin-top: 14px;
  font-size: 14px;
}

.fields-more a {
  color: var(--accent-orange);
  font-weight: 600;
}

/* 站内栏目索引 */

.index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.index-item {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink-blue);
  border-radius: var(--radius-sm);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.index-item:hover,
.index-item:focus-visible {
  border-left-color: var(--accent-orange);
  transform: translateY(-2px);
}

.index-no {
  color: var(--accent-orange);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}

.index-name {
  color: var(--ink-blue);
  font-size: 16px;
  font-weight: 600;
}

.index-desc {
  color: var(--text-muted);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   pages · 频道分类
   -------------------------------------------------------------------------- */

.page-pindao .channel-table-section,
.page-pindao .channel-visual-section,
.page-pindao .channel-boundary-section,
.page-pindao .next-step-section {
  margin-top: 40px;
}

.page-pindao .channel-table-section {
  margin-top: 0;
}

.page-pindao .channel-table {
  list-style: none;
}

.page-pindao .channel-row {
  grid-template-columns: 64px minmax(0, 1fr);
}

.channel-body {
  min-width: 0;
}

.page-pindao .channel-body .channel-name {
  margin-bottom: 6px;
}

.page-pindao .channel-body .channel-desc {
  margin-bottom: 6px;
}

.channel-visual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.channel-figure {
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.channel-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.channel-figure figcaption {
  padding: 12px 16px;
  color: var(--text-muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

.next-step-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.next-step-list li a {
  display: block;
  padding: 16px 18px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-blue);
  font-size: 15px;
  font-weight: 600;
}

.next-step-list li a:hover,
.next-step-list li a:focus-visible {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

/* --------------------------------------------------------------------------
   pages · 专题片单
   -------------------------------------------------------------------------- */

.piandan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.piandan-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.piandan-card:hover {
  border-color: var(--accent-orange);
  transform: translateY(-2px);
}

.piandan-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.piandan-body {
  padding: 16px 18px 18px;
}

.piandan-code {
  margin-bottom: 6px;
  color: var(--accent-orange);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}

.piandan-name {
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 600;
}

.piandan-desc {
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 14px;
}

.piandan-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.piandan-meta dt {
  color: var(--slate-teal);
  white-space: nowrap;
}

.piandan-meta dd {
  color: var(--text-body);
}

.page-piandan .piandan-advice-section,
.page-piandan .piandan-next-section {
  margin-top: 40px;
}

.advice-list {
  display: grid;
  gap: 16px;
}

.advice-item {
  padding: 16px 18px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.advice-title {
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 600;
}

.advice-text {
  color: var(--text-muted);
  font-size: 14px;
}

.next-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.next-link-item a {
  display: block;
  padding: 16px 18px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-blue);
  font-size: 15px;
  font-weight: 600;
}

.next-link-item a:hover,
.next-link-item a:focus-visible {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

/* --------------------------------------------------------------------------
   pages · 浏览指引
   -------------------------------------------------------------------------- */

.page-zhiyin .guide-steps,
.page-zhiyin .guide-pitfalls,
.page-zhiyin .guide-next {
  margin-top: 40px;
}

.page-zhiyin .guide-steps {
  margin-top: 0;
}

.guide-figure {
  margin-bottom: 24px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.guide-figure img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.guide-figure figcaption {
  padding: 12px 16px;
  color: var(--text-muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

.pitfall-list {
  display: grid;
  gap: 14px;
}

.pitfall-item {
  padding: 16px 18px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.pitfall-name {
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 600;
}

.pitfall-desc {
  color: var(--text-body);
  font-size: 15px;
}

.pitfall-exception {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 14px;
}

.next-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.next-card {
  display: flex;
  flex-direction: column;
  padding: 18px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.next-name {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
}

.next-desc {
  flex: 1 1 auto;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 14px;
}

.next-link {
  align-self: flex-start;
  color: var(--accent-orange);
  font-size: 14px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   pages · 字段说明
   -------------------------------------------------------------------------- */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 32px;
  align-items: start;
}

.field-table-section,
.boundary-section {
  min-width: 0;
}

.field-figure {
  margin-bottom: 20px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.field-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.figure-caption {
  padding: 12px 16px;
  color: var(--text-muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

.page-zidian .field-table {
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-zidian .field-table th,
.page-zidian .field-table td {
  padding: 12px 14px;
}

.page-zidian .field-table th:first-child,
.page-zidian .field-table td:first-child {
  width: 30%;
}

.page-zidian .field-table th:last-child,
.page-zidian .field-table td:last-child {
  width: 84px;
}

/* --------------------------------------------------------------------------
   pages · 整理记录
   -------------------------------------------------------------------------- */

.page-media {
  margin-bottom: 32px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-media img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.page-media figcaption {
  padding: 12px 16px;
  color: var(--text-muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

.record-section,
.record-type-section,
.record-next {
  margin-top: 40px;
}

.record-section {
  margin-top: 0;
}

.record-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-panel);
}

.record-group + .record-group {
  margin-top: 16px;
}

.record-month {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.record-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  color: var(--ink-blue);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
}

.record-toggle::after {
  content: "收起";
  flex: 0 0 auto;
  margin-left: 12px;
  color: var(--accent-orange);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
}

.record-toggle[aria-expanded="false"]::after {
  content: "展开";
}

.record-toggle:hover,
.record-toggle:focus-visible {
  color: var(--accent-orange);
}

.record-list {
  display: grid;
  gap: 14px;
  padding: 0 18px 18px;
}

.record-toggle[aria-expanded="false"] + .record-list {
  display: none;
}

.record-item {
  padding: 14px 16px;
  background-color: var(--bg-page);
  border-left: 3px solid var(--accent-orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.record-object {
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
}

.record-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  font-size: 13px;
}

.record-meta dt {
  color: var(--slate-teal);
  white-space: nowrap;
}

.record-meta dd {
  color: var(--text-muted);
}

.record-type-list {
  display: grid;
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
  gap: 0;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.record-type-list dt,
.record-type-list dd {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.record-type-list dt {
  background-color: var(--bg-subtle);
  color: var(--ink-blue);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
}

.record-type-list dd {
  color: var(--text-muted);
  font-size: 14px;
}

.record-type-list dt:last-of-type,
.record-type-list dd:last-of-type {
  border-bottom: 0;
}

.record-next p {
  color: var(--text-muted);
  font-size: 15px;
}

.record-next p a {
  color: var(--accent-orange);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */

.error-main {
  padding-top: 56px;
  padding-bottom: 72px;
}

.error-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 36px 32px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.error-code {
  margin-bottom: 10px;
  color: var(--accent-orange);
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
}

.error-title {
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 600;
}

.error-desc {
  margin-bottom: 22px;
  color: var(--text-muted);
  font-size: 15px;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.error-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-blue);
  font-size: 14px;
  font-weight: 600;
}

.error-links a:hover,
.error-links a:focus-visible {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

.error-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  background-color: var(--ink-blue);
  border: 1px solid var(--ink-blue);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
}

.error-home:hover,
.error-home:focus-visible {
  background-color: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .site-main {
    padding: 0 20px 48px;
  }

  .header-inner,
  .tag-bar,
  .footer-inner,
  .footer-copy,
  .top-hint p {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 32px;
  }

  .hero-title {
    font-size: 28px;
  }

  .fields-layout,
  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .site-main {
    padding: 0 16px 40px;
  }

  .header-inner,
  .tag-bar,
  .footer-inner,
  .footer-copy,
  .top-hint p {
    padding-left: 16px;
    padding-right: 16px;
  }

  .header-inner {
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex: 1 1 100%;
    order: 3;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin-top: 6px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    padding: 13px 10px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 15px;
    white-space: normal;
  }

  .brand-sub {
    display: none;
  }

  .hero {
    padding-top: 24px;
  }

  .hero-title {
    font-size: 24px;
  }

  .page-title {
    font-size: 24px;
  }

  .section {
    margin-top: 36px;
  }

  .section-title {
    font-size: 19px;
  }

  .channel-row,
  .page-pindao .channel-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 16px 2px;
  }

  .channel-no,
  .channel-code {
    grid-row: auto;
    line-height: 1.5;
  }

  .step-list,
  .playlist-grid,
  .piandan-grid,
  .channel-visual-grid,
  .next-grid,
  .next-step-list,
  .next-links,
  .log-groups,
  .index-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .page-zidian .field-table {
    display: block;
  }

  .record-type-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .record-type-list dt {
    padding-bottom: 4px;
    border-bottom: 0;
  }

  .record-type-list dd {
    padding-top: 0;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 32px;
  }

  .footer-about {
    grid-column: auto;
  }

  .error-inner {
    padding: 28px 20px;
  }
}
