/* ==========================================================================
   星空无限MV · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. base
   -------------------------------------------------------------------------- */

:root {
  --bg-page: #f4f7f6;
  --bg-paper: #ffffff;
  --ink: #1d2a2a;
  --ink-soft: #5e6f6c;
  --teal: #0f8f7a;
  --teal-soft: #e3f2ee;
  --line: #d8e2df;
  --amber: #b7791f;
  --radius: 6px;
  --shadow-soft: 0 1px 2px rgba(29, 42, 42, 0.04);
  --content-width: 1120px;
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--ink);
  font-family: var(--font-base);
  font-size: 15px;
  line-height: 1.75;
  font-feature-settings: "tnum" 1;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
figcaption,
table {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: #0b6d5d;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}

h1 {
  font-size: 30px;
  line-height: 1.3;
}

h2 {
  font-size: 20px;
}

h3 {
  font-size: 16px;
  line-height: 1.45;
}

strong {
  font-weight: 600;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 60;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

/* --------------------------------------------------------------------------
   2. layout · 全站骨架
   -------------------------------------------------------------------------- */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background: var(--bg-paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  flex-shrink: 0;
  min-height: 44px;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
  position: relative;
  padding-left: 14px;
}

.brand-mark::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 18px;
  transform: translateY(-50%);
  background: var(--teal);
  border-radius: 2px;
}

.brand-slogan {
  font-size: 12px;
  color: var(--ink-soft);
  padding-left: 10px;
  border-left: 1px solid var(--line);
  white-space: nowrap;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  font-size: 14px;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--ink);
}

.nav-link.is-current {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--teal);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-paper);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.menu-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

/* 本页内容目录 */
.page-toc {
  border-top: 1px solid var(--line);
  background: var(--bg-page);
}

.toc-list {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.toc-list li {
  flex-shrink: 0;
}

.toc-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 13px;
  color: var(--ink-soft);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.toc-list a:hover {
  color: var(--teal);
  border-bottom-color: var(--teal-soft);
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.home-main {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 28px 24px 56px;
}

.inner-main {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 20px 24px 56px;
}

/* 内页主栏 + 侧栏 */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
  margin-top: 18px;
}

.layout-shell {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.page-content,
.main-column,
.content-column,
.page-primary {
  min-width: 0;
}

.page-aside,
.related-aside,
.related-column {
  min-width: 0;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-soft);
  padding: 4px 0 2px;
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover {
  color: var(--teal);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.breadcrumb-list li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--line);
}

/* 页标题区 */
.page-header {
  padding: 10px 0 0;
}

.page-title {
  font-size: 30px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--ink);
}

/* 页脚 */
.site-footer {
  background: var(--bg-paper);
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 34px 24px 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 32px;
}

.footer-brand-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.footer-brand-desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 300px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.footer-col-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-col a {
  font-size: 13px;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  min-height: 28px;
}

.footer-col a:hover {
  color: var(--teal);
}

.footer-note {
  border-top: 1px solid var(--line);
}

.footer-note p {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 14px 24px;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   3. components
   -------------------------------------------------------------------------- */

/* 通用按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  font-size: 14px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  background: var(--teal);
  color: #fff;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--teal);
}

.btn-primary:hover {
  background: #0b6d5d;
  color: #fff;
  border-color: #0b6d5d;
}

.btn-ghost {
  background: var(--bg-paper);
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  color: var(--teal);
  border-color: var(--teal);
}

/* 文字内链 */
.link-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--teal);
}

.link-inline::after {
  content: "→";
  font-size: 13px;
}

.link-inline:hover {
  color: #0b6d5d;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--teal);
}

.text-link::after {
  content: "→";
  font-size: 13px;
}

.text-link:hover {
  color: #0b6d5d;
}

/* 状态徽标 */
.tag-genre {
  display: inline-block;
  padding: 1px 8px;
  font-size: 12px;
  color: var(--ink-soft);
  background: var(--bg-page);
  border: 1px solid var(--line);
  border-radius: 4px;
  line-height: 1.6;
}

.tag-status {
  display: inline-block;
  padding: 1px 8px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
  line-height: 1.6;
}

.tag-status-ok {
  color: var(--teal);
  background: var(--teal-soft);
}

.tag-status-check {
  color: var(--amber);
  background: #fdf4e3;
}

.tag-status-partial {
  color: var(--ink-soft);
  background: var(--bg-page);
}

.status-badge {
  display: inline-block;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
  white-space: nowrap;
}

.status-badge--ready {
  color: var(--teal);
  background: var(--teal-soft);
}

.status-badge--check {
  color: var(--amber);
  background: #fdf4e3;
}

.status-badge--partial {
  color: var(--ink-soft);
  background: var(--bg-page);
}

/* 表格 */
.table-scroll,
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-paper);
}

.entry-table,
.flow-table,
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.6;
}

.entry-table th,
.entry-table td,
.flow-table th,
.flow-table td,
.data-table th,
.data-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}

.entry-table thead th,
.flow-table thead th,
.data-table thead th {
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--bg-page);
  white-space: nowrap;
}

.entry-table tbody tr:last-child th,
.entry-table tbody tr:last-child td,
.flow-table tbody tr:last-child th,
.flow-table tbody tr:last-child td,
.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.entry-table tbody tr:hover,
.flow-table tbody tr:hover,
.data-table tbody tr:hover {
  background: #fafcfb;
}

.cell-cover img {
  width: 64px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
}

.cell-title {
  font-weight: 600;
  color: var(--ink);
  font-size: 13px;
}

.cell-num {
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
  white-space: nowrap;
}

.detail-link {
  color: var(--teal);
  white-space: nowrap;
}

.detail-link:hover {
  color: #0b6d5d;
}

/* 图片容器 */
.hero-visual,
.feature-media,
.feature-figure,
.flow-figure,
.media-figure,
.content-figure,
.media-block {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-page);
}

.hero-visual img,
.feature-media img,
.feature-figure img,
.flow-figure img,
.media-figure img,
.content-figure img,
.media-block img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0;
  transition: filter 0.2s ease;
}

.hero-visual:hover img,
.feature-media:hover img,
.feature-figure:hover img,
.flow-figure:hover img,
.media-figure:hover img,
.content-figure:hover img,
.media-block:hover img {
  filter: brightness(1.03);
}

.hero-visual figcaption,
.feature-figure figcaption,
.flow-figure figcaption,
.media-figure figcaption,
.content-figure figcaption,
.media-block figcaption {
  padding: 8px 12px;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.6;
  background: var(--bg-paper);
  border-top: 1px solid var(--line);
}

/* 通用区块标题 */
.module-head {
  margin-bottom: 18px;
}

.module-head h2 {
  font-size: 20px;
  margin-bottom: 6px;
}

.module-desc {
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 720px;
}

.module-foot {
  margin-top: 16px;
}

/* 内页小节 */
.section-note,
.section-intro {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 6px 0 14px;
  max-width: 720px;
}

.page-lead,
.page-lede {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.8;
  max-width: 760px;
}

.page-title-block {
  margin-bottom: 22px;
}

.content-section,
.page-section,
.genre-table-section,
.judge-flow-section,
.visual-diff-section,
.genre-to-entry-section,
.field-notes,
.related-features,
.status-anchors,
.flow-table-section,
.feature-catalog,
.curation-standard,
.feature-links,
.material-section,
.check-section,
.flow-section,
.feedback-section {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.content-section:first-of-type,
.page-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

/* 侧栏 */
.aside-block {
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 18px;
}

.aside-block:last-child {
  margin-bottom: 0;
}

.aside-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--ink);
}

.aside-block p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 10px;
}

.aside-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--teal);
}

.aside-link::after {
  content: "→";
  font-size: 12px;
}

.aside-link-list,
.aside-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aside-link-list li,
.aside-links li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}

.aside-link-list li:last-child,
.aside-links li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.aside-link-list a,
.aside-links a {
  font-size: 13px;
  color: var(--teal);
}

.aside-link-desc,
.aside-links p {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}

.aside-text {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* 相关条目列表 */
.entry-link-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-paper);
  overflow: hidden;
}

.entry-link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.entry-link-item:last-child {
  border-bottom: 0;
}

.entry-link-name,
.entry-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  flex: 1 1 200px;
  min-width: 0;
}

.entry-link-genre,
.entry-genre {
  font-size: 12px;
  color: var(--ink-soft);
  padding: 1px 8px;
  background: var(--bg-page);
  border: 1px solid var(--line);
  border-radius: 4px;
  white-space: nowrap;
}

.entry-note {
  font-size: 12px;
  color: var(--ink-soft);
  flex-basis: 100%;
}

/* 步骤 / 编号列表 */
.flow-steps,
.step-list,
.standard-list,
.rule-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.flow-step,
.step-item,
.standard-item {
  position: relative;
  padding: 14px 16px 14px 54px;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-index,
.standard-index {
  position: absolute;
  left: 14px;
  top: 14px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  background: var(--teal-soft);
  border-radius: 50%;
}

.flow-step h3,
.step-item h3,
.standard-item h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.flow-step p,
.step-item p,
.standard-item p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.rule-list li {
  position: relative;
  padding: 10px 0 10px 20px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
  border-bottom: 1px dashed var(--line);
}

.rule-list li:last-child {
  border-bottom: 0;
}

.rule-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 20px;
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
}

.rule-list strong {
  color: var(--ink);
  margin-right: 6px;
}

/* 字段说明列表 */
.field-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-paper);
  overflow: hidden;
}

.field-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.field-item:last-child {
  border-bottom: 0;
}

.field-item dt {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}

.field-item dd {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* 锚点条 */
.anchor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.anchor-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.anchor-link:hover {
  color: var(--teal);
  border-color: var(--teal);
}

/* 相关专题条目（内页） */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-item {
  padding: 14px 16px;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature-item h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.feature-item p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 8px;
}

.feature-link {
  font-size: 13px;
  color: var(--teal);
}

.feature-link:hover {
  color: #0b6d5d;
}

/* 常见问题 */
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-paper);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-item summary {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 40px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--line);
  background: var(--bg-page);
}

.faq-item p {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
}

/* 离线提示条 */
.offline-note,
.inline-note {
  margin-top: 16px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--amber);
  background: #fdf4e3;
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   4. pages
   -------------------------------------------------------------------------- */

/* ---- 首页 ---- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 26px;
  align-items: start;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.hero-lead {
  min-width: 0;
  padding-top: 6px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  color: var(--teal);
  background: var(--teal-soft);
  padding: 2px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.hero-lead h1 {
  font-size: 30px;
  line-height: 1.32;
  margin-bottom: 12px;
}

.hero-intro {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-visual {
  min-width: 0;
  border: 1px solid var(--line);
}

.hero-visual img {
  aspect-ratio: 4 / 3;
}

.hero-flow {
  min-width: 0;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.mini-heading {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.mini-flow-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mini-flow-item {
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}

.mini-flow-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.mini-flow-title {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.5;
}

.mini-flow-title:hover {
  color: var(--teal);
}

.mini-flow-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.hero-flow-note {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* 首页模块通用间距 */
.module {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.module:last-of-type {
  border-bottom: 0;
}

/* 近期作品流总表 */
.flow-table-module .entry-table th,
.flow-table-module .entry-table td {
  padding: 10px 12px;
  font-size: 13px;
}

/* 题材索引 */
.genre-index-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
}

.genre-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "name link"
    "rule rule";
  gap: 2px 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.genre-name {
  grid-area: name;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.genre-rule {
  grid-area: rule;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.genre-row .link-inline {
  grid-area: link;
  font-size: 13px;
  white-space: nowrap;
}

/* 专题片单带 */
.feature-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-media {
  border-radius: 0;
  border-bottom: 1px solid var(--line);
}

.feature-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
}

.feature-card .feature-name {
  font-size: 15px;
  margin: 12px 14px 6px;
}

.feature-text {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0 14px 10px;
}

.feature-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 14px 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.feature-links a {
  font-size: 13px;
  color: var(--teal);
  line-height: 1.6;
}

.feature-links a:hover {
  color: #0b6d5d;
}

.feature-card .link-inline {
  margin: auto 14px 14px;
  font-size: 13px;
}

/* 条目解剖三区 */
.anatomy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.anatomy-col {
  min-width: 0;
  padding: 16px 18px;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.anatomy-title {
  font-size: 15px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.anatomy-text {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 10px;
}

.anatomy-example {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.anatomy-example a {
  color: var(--teal);
}

/* 观看条件摘要 */
.check-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.check-item {
  min-width: 0;
  padding: 14px 16px;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.check-title {
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--ink);
}

.check-text {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* 投稿辅助区 */
.submit-aid-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.submit-aid-item {
  min-width: 0;
  padding: 14px 16px;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.submit-aid-title {
  font-size: 14px;
  margin-bottom: 6px;
}

.submit-aid-text {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ---- 精选作品流 selections ---- */

.status-anchors {
  margin-top: 22px;
}

.status-anchors h2 {
  font-size: 17px;
  margin-bottom: 4px;
}

.flow-figure {
  margin: 0 0 16px;
  border: 1px solid var(--line);
}

.flow-figure img {
  aspect-ratio: 16 / 7;
}

.flow-table-section .flow-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.flow-table th,
.flow-table td {
  font-size: 13px;
}

.flow-table .status-ready {
  color: var(--teal);
  background: var(--teal-soft);
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
}

.flow-table .status-pending {
  color: var(--amber);
  background: #fdf4e3;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
}

.flow-table .status-incomplete {
  color: var(--ink-soft);
  background: var(--bg-page);
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
}

/* ---- 题材分类 genres ---- */

.genre-table-section .data-table th,
.genre-table-section .data-table td {
  font-size: 13px;
  line-height: 1.6;
}

.genre-table-section .data-table td:first-child {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.diff-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.diff-note {
  min-width: 0;
  padding: 14px 16px;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.diff-note h3 {
  font-size: 14px;
  margin-bottom: 6px;
}

.diff-note p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.entry-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.entry-group {
  min-width: 0;
  padding: 14px 16px;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.entry-group h3 {
  font-size: 14px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.entry-group ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.entry-group a {
  font-size: 13px;
  color: var(--teal);
  line-height: 1.6;
}

.entry-group a:hover {
  color: #0b6d5d;
}

.section-tail {
  margin-top: 16px;
  font-size: 14px;
}

.section-tail a {
  color: var(--teal);
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.related-item {
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}

.related-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.related-item a {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 2px;
}

.related-item a:hover {
  color: var(--teal);
}

.related-item p {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ---- 专题片单 features ---- */

.page-head {
  margin-bottom: 22px;
}

.feature-catalog {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.feature-catalog .feature-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  padding: 0;
  overflow: hidden;
  margin-bottom: 20px;
}

.feature-catalog .feature-item:last-child {
  margin-bottom: 0;
}

.feature-figure {
  border-radius: 0;
  border-right: 1px solid var(--line);
  background: var(--bg-page);
}

.feature-figure img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.feature-figure figcaption {
  padding: 6px 10px;
  font-size: 12px;
  color: var(--ink-soft);
  background: var(--bg-paper);
  border-top: 1px solid var(--line);
}

.feature-body {
  min-width: 0;
  padding: 16px 18px 16px 0;
  display: flex;
  flex-direction: column;
}

.feature-body .feature-name {
  font-size: 16px;
  margin-bottom: 6px;
}

.feature-curation {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 8px;
}

.feature-meta {
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.feature-body .text-link {
  margin-top: auto;
  align-self: flex-start;
}

.curation-standard .standard-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.standard-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-soft);
}

.standard-note a {
  color: var(--teal);
}

.feature-links .link-group {
  margin-bottom: 18px;
}

.feature-links .link-group:last-of-type {
  margin-bottom: 0;
}

.link-group-title {
  font-size: 15px;
  margin-bottom: 8px;
  padding-left: 10px;
  border-left: 3px solid var(--teal);
}

.feature-cross-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.feature-cross-note a {
  color: var(--teal);
  margin-right: 10px;
}

/* ---- 创作手记 process ---- */

.step-list .step-item {
  padding-left: 56px;
}

.content-figure {
  margin: 0 0 16px;
  border: 1px solid var(--line);
}

.content-figure img {
  width: 100%;
  aspect-ratio: 16 / 7;
}

.note-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.note-item {
  padding: 14px 16px;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.note-title {
  font-size: 15px;
  margin-bottom: 6px;
}

.note-body {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 6px;
}

.note-meta {
  font-size: 12px;
  color: var(--ink-soft);
  padding-top: 6px;
  border-top: 1px dashed var(--line);
}

/* ---- 署名说明 credits ---- */

.credit-order-table .field-name {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.credit-order-table .field-value {
  color: var(--ink-soft);
  font-size: 13px;
}

.credit-order-table .field-missing {
  color: var(--amber);
  font-size: 12px;
}

.sample-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.sample-card {
  min-width: 0;
  padding: 16px 18px;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.sample-card h3 {
  font-size: 14px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.sample-field-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sample-field-list li {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.sample-field-list li::before {
  content: "·";
  color: var(--teal);
  font-weight: 700;
}

/* ---- 观看条件 viewing-guide ---- */

.page-primary .page-head {
  margin-bottom: 22px;
}

.page-primary .page-section h2 {
  font-size: 18px;
  margin-bottom: 6px;
}

.page-primary .page-section > p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 14px;
  max-width: 720px;
}

.media-block {
  margin: 0 0 16px;
  border: 1px solid var(--line);
}

.media-block img {
  width: 100%;
  aspect-ratio: 16 / 7;
}

.page-section .data-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-section .note-list li {
  position: relative;
  padding: 10px 0 10px 20px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
  border-bottom: 1px dashed var(--line);
}

.page-section .note-list li:last-child {
  border-bottom: 0;
}

.page-section .note-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 20px;
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
}

.page-section .note-list strong {
  color: var(--ink);
  margin-right: 6px;
}

.status-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.status-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.status-item p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0;
}

/* ---- 投稿规范 submission ---- */

.page-intro {
  margin-bottom: 22px;
}

.material-section {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.material-table th,
.material-table td {
  font-size: 13px;
  line-height: 1.65;
}

.material-table td:first-child {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.check-section .check-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check-section .check-item {
  position: relative;
  padding: 12px 16px 12px 44px;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.check-section .check-item::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 12px;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--teal);
  background: var(--teal-soft);
  border-radius: 50%;
}

.check-section .check-item h3 {
  font-size: 14px;
  margin-bottom: 4px;
}

.check-section .check-item p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.check-section .check-item a {
  color: var(--teal);
}

.feedback-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feedback-list li {
  padding: 12px 16px;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feedback-list li h3 {
  font-size: 14px;
  margin-bottom: 4px;
}

.feedback-list li p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.feedback-list li a {
  color: var(--teal);
}

/* ---- 404 ---- */

.error-main {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 60px 24px 70px;
}

.error-panel {
  max-width: 620px;
  padding: 30px 32px;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.error-code {
  font-size: 13px;
  color: var(--teal);
  background: var(--teal-soft);
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.error-panel h1 {
  font-size: 28px;
  margin-bottom: 12px;
}

.error-lead {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 20px;
}

.error-guide {
  margin-top: 30px;
  max-width: 620px;
}

.error-guide h2 {
  font-size: 17px;
  margin-bottom: 12px;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.error-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-links a:hover {
  color: var(--teal);
  border-color: var(--teal);
}

/* --------------------------------------------------------------------------
   5. responsive
   -------------------------------------------------------------------------- */

/* 960px 以下：收起主导航为汉堡菜单 */
@media (max-width: 960px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 0 20px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    order: 3;
    flex-basis: 100%;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 10px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    min-height: 44px;
    padding: 0 4px;
    border-bottom: 1px solid var(--line);
  }

  .nav-link.is-current {
    border-bottom-color: var(--line);
  }

  .toc-list {
    padding: 0 20px;
    gap: 14px;
  }

  .home-main,
  .inner-main {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "lead visual"
      "flow flow";
  }

  .hero-lead {
    grid-area: lead;
  }

  .hero-visual {
    grid-area: visual;
  }

  .hero-flow {
    grid-area: flow;
  }

  .page-layout,
  .layout-shell {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 24px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 28px 20px 22px;
  }

  .footer-note p {
    padding: 14px 20px;
  }

  .feature-catalog .feature-item {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .genre-index-list {
    gap: 0 24px;
  }

  .feature-band,
  .anatomy-grid,
  .check-list,
  .entry-groups {
    gap: 16px;
  }
}

/* 900px 以下：内页侧栏下移 */
@media (max-width: 900px) {
  .page-layout,
  .layout-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .page-aside,
  .related-aside,
  .related-column {
    border-top: 1px solid var(--line);
    padding-top: 22px;
  }
}

/* 640px 以下：全部双栏改单列 */
@media (max-width: 640px) {
  h1,
  .page-title,
  .hero-lead h1 {
    font-size: 24px;
  }

  h2,
  .module-head h2 {
    font-size: 18px;
  }

  .header-inner {
    padding: 0 16px;
    min-height: 56px;
    gap: 12px;
  }

  .brand-mark {
    font-size: 16px;
  }

  .brand-slogan {
    display: none;
  }

  .toc-list {
    padding: 0 16px;
    gap: 12px;
  }

  .home-main,
  .inner-main {
    padding: 18px 16px 40px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "lead"
      "visual"
      "flow";
    gap: 20px;
    padding-bottom: 24px;
  }

  .hero-lead h1 {
    margin-bottom: 10px;
  }

  .hero-actions {
    gap: 8px;
  }

  .btn,
  .btn-primary,
  .btn-ghost {
    flex: 1 1 auto;
    min-height: 44px;
    padding: 0 14px;
  }

  .module {
    padding: 24px 0;
  }

  .genre-index-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .feature-band,
  .anatomy-grid,
  .check-list,
  .submit-aid-list,
  .diff-notes,
  .entry-groups,
  .sample-card-grid,
  .curation-standard .standard-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-catalog .feature-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-figure {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature-body {
    padding: 14px 16px;
  }

  .field-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 12px 14px;
  }

  .entry-link-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .entry-link-name,
  .entry-name {
    flex-basis: auto;
  }

  .entry-link-list {
    border-radius: var(--radius);
  }

  .flow-step,
  .step-item,
  .standard-item {
    padding: 14px 14px 14px 50px;
  }

  .check-section .check-item {
    padding: 12px 14px 12px 42px;
  }

  .status-item {
    flex-direction: column;
    gap: 6px;
  }

  .footer-inner {
    padding: 24px 16px 18px;
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .footer-note p {
    padding: 12px 16px;
  }

  .error-main {
    padding: 40px 16px 50px;
  }

  .error-panel {
    padding: 22px 20px;
  }

  .error-panel h1 {
    font-size: 24px;
  }

  .error-links a {
    flex: 1 1 auto;
    justify-content: center;
  }

  .hero-visual figcaption,
  .feature-figure figcaption,
  .flow-figure figcaption,
  .media-figure figcaption,
  .content-figure figcaption,
  .media-block figcaption {
    font-size: 12px;
  }
}

/* 390px 及以下：进一步压缩留白 */
@media (max-width: 390px) {
  .home-main,
  .inner-main {
    padding-left: 14px;
    padding-right: 14px;
  }

  .header-inner {
    padding: 0 14px;
  }

  .toc-list {
    padding: 0 14px;
  }

  .footer-inner {
    padding-left: 14px;
    padding-right: 14px;
  }

  .footer-note p {
    padding-left: 14px;
    padding-right: 14px;
  }

  .cell-cover img {
    width: 52px;
    height: 34px;
  }

  .entry-table th,
  .entry-table td,
  .flow-table th,
  .flow-table td,
  .data-table th,
  .data-table td {
    padding: 8px 10px;
  }

  .btn,
  .btn-primary,
  .btn-ghost {
    flex: 1 1 100%;
  }
}

/* 尊重减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
