/* ==========================================================================
   光棍手机影院 · 全站样式表
   结构：base → layout → components → pages → responsive
   ========================================================================== */

/* ==========================================================================
   base · 基础与变量
   ========================================================================== */

:root {
  --ink: #1b1f24;
  --ink-soft: #5a6472;
  --accent: #2f6f6a;
  --accent-deep: #245652;
  --surface: #f5f6f7;
  --card: #ffffff;
  --line: #e2e5e9;
  --radius: 6px;
  --radius-sm: 4px;
  --shell: 1080px;
  --gap: 24px;
  --shadow-soft: 0 1px 2px rgba(27, 31, 36, 0.05);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--accent-deep);
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

h1,
h2,
h3 {
  margin: 0 0 12px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--ink);
}

h1 {
  font-size: 30px;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 18px;
}

p {
  margin: 0 0 14px;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol,
dl {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  text-align: left;
}

time {
  font-variant-numeric: tabular-nums;
}

figure {
  margin: 0;
}

figcaption {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-top: 8px;
}

/* ==========================================================================
   layout · 骨架：页头 / 导航 / 主容器 / 页脚
   ========================================================================== */

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0;
  padding: 14px 0;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.brand:hover,
.brand:focus-visible {
  color: var(--accent-deep);
  text-decoration: none;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 15px;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--ink);
  text-decoration: none;
}

.nav-list a.is-current {
  color: var(--accent-deep);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

.site-main {
  display: block;
}

.home-main,
.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 32px 24px 56px;
}

.error-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 64px 24px 72px;
}

/* 内页统一：面包屑 + 页面标题区 */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--accent-deep);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
}

.page-header {
  padding-bottom: 22px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.page-description {
  margin: 0;
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 760px;
}

/* 页脚 */

.site-footer {
  background: var(--card);
  border-top: 1px solid var(--line);
  margin-top: 8px;
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px 24px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand {
  min-width: 0;
}

.footer-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
}

.footer-desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
  max-width: 300px;
}

.footer-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 12px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  font-size: 14px;
  color: var(--ink-soft);
  display: inline-block;
  padding: 2px 0;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--accent-deep);
}

.footer-bottom {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 16px 24px 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

.footer-boundary,
.footer-copy {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
}

/* 移动端底部任务导航（桌面隐藏） */

.bottom-task-nav {
  display: none;
}

/* ==========================================================================
   components · 通用组件
   ========================================================================== */

/* 按钮 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease,
    border-color 0.18s ease;
}

.btn:hover,
.btn:focus-visible {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-deep);
  color: #ffffff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--accent);
  color: var(--accent-deep);
}

/* 区块标题组 */

.section-head {
  margin-bottom: 20px;
}

.section-head h2 {
  margin: 0 0 8px;
}

.section-desc {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 720px;
}

.section-title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
}

.section-lead,
.section-intro {
  margin: 0 0 20px;
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 760px;
}

/* 图片容器 */

.hero-figure,
.content-media,
.aside-figure,
.collection-media,
.field-figure,
.media-figure {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-figure img,
.content-media img,
.aside-figure img,
.collection-media img,
.field-figure img,
.media-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-figure figcaption,
.content-media figcaption,
.aside-figure figcaption,
.field-figure figcaption,
.media-figure figcaption {
  padding: 10px 14px 12px;
  margin: 0;
  background: var(--card);
}

/* 表格通用形态 */

.field-summary-table,
.channel-table,
.channel-map-table,
.map-table,
.field-table {
  font-size: 15px;
}

.field-summary-table caption,
.channel-table caption,
.map-caption,
.table-caption {
  caption-side: top;
  text-align: left;
  font-size: 14px;
  color: var(--ink-soft);
  padding-bottom: 10px;
}

.field-summary-table th,
.field-summary-table td,
.channel-table th,
.channel-table td,
.channel-map-table th,
.channel-map-table td,
.map-table th,
.map-table td,
.field-table th,
.field-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.65;
}

.field-summary-table thead th,
.channel-table thead th,
.channel-map-table thead th,
.map-table thead th,
.field-table thead th {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.field-summary-table tbody th,
.map-table tbody th {
  font-weight: 600;
  color: var(--ink);
  width: 22%;
}

.field-summary-table tbody tr:hover,
.channel-table tbody tr:hover,
.channel-map-table tbody tr:hover,
.map-table tbody tr:hover,
.field-table tbody tr:hover {
  background: var(--surface);
}

/* 步骤清单（首页 / 查阅路径共用容器，作用域分开写） */

.step-list {
  counter-reset: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-index {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.step-body {
  min-width: 0;
  flex: 1 1 auto;
}

.step-body h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.step-body p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
}

/* ==========================================================================
   pages · 首页
   ========================================================================== */

/* 首屏：左文右图 */

.hero-compare {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 32px;
  align-items: start;
  padding-bottom: 36px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.hero-text {
  min-width: 0;
}

.hero-eyebrow {
  font-size: 14px;
  color: var(--accent-deep);
  font-weight: 600;
  margin: 0 0 12px;
}

.home-title {
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.35;
}

.hero-lead {
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0 0 22px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-figure {
  min-width: 0;
}

.hero-figure img {
  aspect-ratio: 4 / 3;
}

.content-media-primary {
  grid-column: 1 / -1;
  margin-top: 8px;
}

.content-media-primary img {
  aspect-ratio: 21 / 9;
}

/* 题材频道方向总览 */

.channel-overview {
  padding-bottom: 36px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.channel-rows {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.channel-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(0, 1.6fr) minmax(0, 1.4fr) auto;
  gap: 20px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.18s ease;
}

.channel-row:hover {
  background: var(--card);
}

.channel-name {
  min-width: 0;
}

.channel-name h3 {
  margin: 0;
  font-size: 18px;
}

.channel-focus,
.channel-audience {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
  min-width: 0;
}

.channel-link {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  align-self: center;
}

/* 本期专题片单速览 */

.collection-overview {
  padding-bottom: 36px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.collection-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.collection-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.collection-card:hover,
.collection-card:focus-within {
  border-color: var(--accent);
  box-shadow: var(--shadow-soft);
}

.collection-card h3 {
  margin: 0;
  font-size: 18px;
}

.collection-scope,
.collection-channels {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
}

.card-link {
  margin-top: auto;
  font-size: 15px;
  font-weight: 600;
  padding-top: 8px;
}

/* 条目字段与收录边界摘要 */

.field-table {
  padding-bottom: 36px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.field-summary-table {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.field-note {
  margin: 14px 0 0;
  font-size: 15px;
  color: var(--ink-soft);
}

/* 查阅路径三步概览 */

.path-steps {
  padding-bottom: 36px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.steps-more {
  margin: 20px 0 0;
  font-size: 15px;
  font-weight: 600;
}

/* 站内更新与反馈 */

.update-feedback {
  padding-bottom: 36px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.update-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  margin-bottom: 24px;
}

.update-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.update-item time {
  font-size: 14px;
  color: var(--ink-soft);
}

.update-item p {
  margin: 0;
  font-size: 15px;
}

.feedback-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.feedback-block h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.feedback-block p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
}

/* 边界声明 */

.boundary-note {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px;
}

.boundary-note h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.boundary-note p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
}

/* ==========================================================================
   pages · 题材频道（channels）
   ========================================================================== */

.page-layout {
  display: grid;
  gap: 32px;
  align-items: start;
}

.sidebar-left {
  grid-template-columns: 260px minmax(0, 1fr);
}

.channel-index-aside {
  position: sticky;
  top: 88px;
  min-width: 0;
}

.aside-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.channel-index-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 2px solid var(--line);
  margin-bottom: 20px;
}

.channel-index-list a {
  display: block;
  padding: 8px 12px;
  font-size: 15px;
  color: var(--ink-soft);
  border-left: 2px solid transparent;
  margin-left: -2px;
}

.channel-index-list a:hover,
.channel-index-list a:focus-visible {
  color: var(--accent-deep);
  border-left-color: var(--accent);
  background: var(--card);
  text-decoration: none;
}

.aside-figure img {
  aspect-ratio: 4 / 3;
}

.channel-detail-list {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.channel-overview {
  min-width: 0;
}

.channel-table {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.channel-table tbody th {
  font-weight: 600;
  width: 18%;
}

.channel-detail {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  min-width: 0;
}

.channel-detail > p {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 16px;
}

.channel-spec {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 8px 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-bottom: 16px;
}

.channel-spec dt {
  font-size: 14px;
  color: var(--ink-soft);
}

.channel-spec dd {
  margin: 0;
  font-size: 15px;
  color: var(--ink);
  min-width: 0;
}

.channel-link {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.channel-map,
.channel-fields {
  margin-top: 36px;
  min-width: 0;
}

.channel-map-table,
.map-table {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.channel-map-note,
.map-note,
.scope-note {
  margin: 14px 0 0;
  font-size: 15px;
  color: var(--ink-soft);
}

.field-brief-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field-brief-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  min-width: 0;
}

.field-brief-name {
  margin: 0 0 6px;
  font-size: 16px;
}

.field-brief-item p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
}

/* ==========================================================================
   pages · 专题片单（collections）
   ========================================================================== */

.section {
  min-width: 0;
}

.collection-overview {
  margin-bottom: 36px;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.collection-grid .collection-card {
  padding: 0;
  gap: 0;
  overflow: hidden;
}

.collection-media {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.collection-media img {
  aspect-ratio: 16 / 9;
}

.collection-name {
  margin: 16px 20px 8px;
  font-size: 18px;
}

.collection-theme,
.collection-scope,
.collection-channel {
  margin: 0 20px 8px;
  font-size: 15px;
  color: var(--ink-soft);
}

.collection-channel {
  margin-bottom: 20px;
}

.collection-scope {
  margin-bottom: 32px;
}

.scope-list {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 10px 20px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.scope-term {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.scope-desc {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
  min-width: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.collection-channel-map {
  margin-bottom: 36px;
}

.map-table tbody th {
  font-weight: 600;
  width: 30%;
}

.collection-order {
  margin-bottom: 36px;
}

.order-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.order-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  min-width: 0;
}

.order-name {
  margin: 0 0 6px;
  font-size: 16px;
}

.order-text {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
}

.collection-next {
  min-width: 0;
}

.next-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.next-item a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--ink);
}

.next-item a:hover,
.next-item a:focus-visible {
  border-color: var(--accent);
  color: var(--accent-deep);
  text-decoration: none;
}

/* ==========================================================================
   pages · 条目字段说明（fields）
   ========================================================================== */

.field-table-section,
.field-range-section,
.field-misread-section,
.field-path-section {
  min-width: 0;
  margin-bottom: 36px;
}

.field-table-section h2,
.field-range-section h2,
.field-misread-section h2,
.field-path-section h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.field-figure {
  margin-bottom: 20px;
}

.field-figure img {
  aspect-ratio: 21 / 9;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.field-table {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 640px;
}

.field-table tbody td:first-child {
  font-weight: 600;
  color: var(--ink);
  width: 18%;
}

.range-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.range-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  min-width: 0;
}

.range-item h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.range-item p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
}

.misread-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.misread-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 20px;
  min-width: 0;
}

.misread-item h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.misread-item p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
}

.field-path-section p {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 760px;
}

.path-links {
  margin-top: 16px;
}

.path-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.path-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--ink);
}

.path-links a:hover,
.path-links a:focus-visible {
  border-color: var(--accent);
  color: var(--accent-deep);
  text-decoration: none;
}

/* ==========================================================================
   pages · 查阅路径（guide）
   ========================================================================== */

.guide-layout {
  display: block;
}

.guide-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.guide-steps .step-list {
  gap: 18px;
}

.guide-steps .step-item {
  align-items: stretch;
}

.guide-steps .step-index {
  align-self: flex-start;
  margin-top: 4px;
}

.step-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  min-width: 0;
  width: 100%;
}

.step-title {
  margin: 0 0 8px;
  font-size: 17px;
}

.step-desc {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--ink-soft);
}

.step-meta {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.tips-figure {
  margin-bottom: 20px;
}

.tips-figure img {
  aspect-ratio: 21 / 9;
}

.tips-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
}

.tips-item {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  color: var(--ink-soft);
  min-width: 0;
}

.tips-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.advice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.advice-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  min-width: 0;
}

.advice-title {
  margin: 0 0 6px;
  font-size: 16px;
}

.advice-desc {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
}

.next-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.guide-next .next-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  min-width: 0;
}

.next-link {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.next-desc {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
}

/* ==========================================================================
   pages · 404
   ========================================================================== */

.error-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 32px;
  max-width: 720px;
}

.error-code {
  font-size: 44px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.1;
  margin: 0 0 8px;
}

.error-block h1 {
  margin: 0 0 12px;
  font-size: 26px;
}

.error-desc {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 560px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 24px;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.error-links a {
  font-size: 15px;
}

/* ==========================================================================
   responsive · 平板与手机
   ========================================================================== */

@media (max-width: 960px) {
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar-left {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .channel-row {
    grid-template-columns: minmax(120px, 1fr) minmax(0, 1.5fr) minmax(0, 1.3fr) auto;
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
    gap: 12px;
    min-height: 58px;
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .brand {
    font-size: 17px;
    padding: 8px 0;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    flex-basis: 100%;
    width: 100%;
    margin-left: 0;
    order: 3;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--line);
    padding: 6px 0 10px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    min-height: 46px;
    padding: 0 4px;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }

  .nav-list a.is-current {
    border-bottom-color: var(--accent);
  }

  .home-main,
  .inner-main {
    padding: 24px 16px 40px;
  }

  .error-main {
    padding: 40px 16px 56px;
  }

  .page-title,
  h1 {
    font-size: 24px;
  }

  h2,
  .section-title {
    font-size: 20px;
  }

  .hero-compare {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-bottom: 28px;
    margin-bottom: 28px;
  }

  .home-title {
    font-size: 24px;
  }

  .content-media-primary img {
    aspect-ratio: 16 / 9;
  }

  .channel-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 14px 0;
  }

  .channel-link {
    white-space: normal;
    margin-top: 4px;
  }

  .collection-cards,
  .collection-grid,
  .order-list,
  .range-list,
  .advice-grid,
  .field-brief-list,
  .tips-list,
  .next-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-summary-table,
  .channel-table,
  .channel-map-table,
  .map-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .field-summary-table thead,
  .field-summary-table tbody,
  .field-summary-table tr,
  .field-summary-table th,
  .field-summary-table td,
  .channel-table thead,
  .channel-table tbody,
  .channel-table tr,
  .channel-table th,
  .channel-table td,
  .channel-map-table thead,
  .channel-map-table tbody,
  .channel-map-table tr,
  .channel-map-table th,
  .channel-map-table td,
  .map-table thead,
  .map-table tbody,
  .map-table tr,
  .map-table th,
  .map-table td {
    display: block;
    width: auto;
  }

  .field-summary-table thead,
  .channel-table thead,
  .channel-map-table thead,
  .map-table thead {
    display: none;
  }

  .field-summary-table tbody tr,
  .channel-table tbody tr,
  .channel-map-table tbody tr,
  .map-table tbody tr {
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
  }

  .field-summary-table tbody th,
  .field-summary-table tbody td,
  .channel-table tbody th,
  .channel-table tbody td,
  .channel-map-table tbody th,
  .channel-map-table tbody td,
  .map-table tbody th,
  .map-table tbody td {
    border-bottom: 0;
    padding: 4px 14px;
  }

  .field-summary-table tbody th,
  .map-table tbody th {
    width: auto;
  }

  .update-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .sidebar-left {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .channel-index-aside {
    position: static;
    order: 2;
  }

  .channel-detail-list {
    order: 1;
  }

  .channel-detail {
    padding: 20px 16px;
  }

  .channel-spec {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .channel-spec dd {
    margin-bottom: 8px;
  }

  .scope-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .scope-desc {
    margin-bottom: 10px;
  }

  .step-item {
    gap: 12px;
  }

  .step-card {
    padding: 16px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 32px 16px 20px;
  }

  .footer-bottom {
    padding: 14px 16px 88px;
    flex-direction: column;
    gap: 6px;
  }

  .footer-desc {
    max-width: none;
  }

  /* 移动端底部任务导航 */

  .bottom-task-nav {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--card);
    border-top: 1px solid var(--line);
    z-index: 50;
  }

  .bottom-task-nav ul,
  .task-nav-list {
    display: flex;
    align-items: stretch;
  }

  .bottom-task-nav li,
  .task-nav-item {
    flex: 1 1 0;
    min-width: 0;
  }

  .bottom-task-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 4px;
    font-size: 13px;
    color: var(--ink-soft);
    text-align: center;
    line-height: 1.3;
  }

  .bottom-task-nav a:hover,
  .bottom-task-nav a:focus-visible {
    text-decoration: none;
    color: var(--ink);
  }

  .bottom-task-nav a.is-current {
    color: var(--accent-deep);
    font-weight: 600;
    box-shadow: inset 0 2px 0 var(--accent);
  }
}

@media (max-width: 480px) {
  .hero-actions {
    gap: 10px;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .error-block {
    padding: 28px 20px;
  }

  .error-code {
    font-size: 36px;
  }

  .footer-bottom {
    padding-bottom: 92px;
  }
}

/* 尊重系统减少动效偏好 */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .channel-row,
  .collection-card {
    transition: none;
  }
}
