/* ==========================================================================
   光棍影院YY · 全站样式表
   base → layout → components → pages → responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. base：变量、重置、排版基准
   -------------------------------------------------------------------------- */
:root {
  --color-navy: #1f3a5f;
  --color-navy-deep: #16293f;
  --color-orange: #e07b39;
  --color-orange-soft: #f6e3d5;
  --color-bg: #f5f6f8;
  --color-surface: #ffffff;
  --color-text: #2b2b2b;
  --color-muted: #666666;
  --color-line: #d9dde3;
  --color-line-soft: #ebeff3;
  --font-head: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Heiti SC", sans-serif;
  --font-body: Georgia, "Songti SC", "SimSun", "Noto Serif SC", serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --shell-width: 1080px;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-card: 0 1px 2px rgba(31, 58, 95, 0.06), 0 6px 18px rgba(31, 58, 95, 0.05);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body.site-body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.4;
}

p {
  margin: 0 0 14px;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--color-navy);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--color-orange);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
}

table {
  border-collapse: collapse;
  width: 100%;
}

code,
.log-date,
.step-index,
.step-no,
.field-name,
.meta-value {
  font-family: var(--font-mono);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   2. layout：页头、导航、主容器、内页骨架、页脚
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--color-navy);
  color: #ffffff;
  border-bottom: 3px solid var(--color-orange);
}

.header-inner {
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  padding: 10px 0;
}

.brand:hover,
.brand:focus-visible {
  color: #ffffff;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: var(--radius-sm);
  background: var(--color-orange);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 9px 8px 9px 11px;
  border-left: 8px solid #ffffff;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.brand-text {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: #ffffff;
}

.nav-toggle-bar:first-child {
  margin-top: 0;
}

.nav-toggle-bar:last-child {
  margin-bottom: 0;
}

.site-nav {
  display: block;
}

.nav-list {
  display: flex;
  align-items: stretch;
  gap: 4px;
}

.nav-link {
  display: block;
  padding: 20px 14px;
  color: #e8edf3;
  font-family: var(--font-head);
  font-size: 15px;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.is-current {
  color: #ffffff;
  border-bottom-color: var(--color-orange);
}

.site-main {
  display: block;
}

.home-main {
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 0 20px 56px;
}

.inner-main {
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 0 20px 56px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 0 0;
  font-family: var(--font-head);
  font-size: 13px;
  color: var(--color-muted);
}

.breadcrumb a {
  color: var(--color-navy);
}

.breadcrumb-sep {
  color: var(--color-line);
}

.breadcrumb-current {
  color: var(--color-muted);
}

/* 内页标题区 */
.page-header {
  padding: 16px 0 22px;
  border-bottom: 1px solid var(--color-line);
  margin-bottom: 32px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-navy);
}

.page-description {
  margin: 10px 0 0;
  max-width: 780px;
  font-size: 15px;
  color: var(--color-muted);
}

/* 页脚 */
.site-footer {
  background: var(--color-navy-deep);
  color: #c8d3de;
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 28px 20px 24px;
}

.footer-top-link {
  display: inline-block;
  color: #ffffff;
  font-family: var(--font-head);
  font-size: 14px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}

.footer-top-link:hover,
.footer-top-link:focus-visible {
  color: #ffffff;
  border-color: var(--color-orange);
  background: rgba(224, 123, 57, 0.18);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 32px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-col-title {
  font-size: 15px;
  color: #ffffff;
  margin-bottom: 10px;
}

.footer-list li {
  margin-bottom: 8px;
}

.footer-list a {
  color: #c8d3de;
  font-size: 14px;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--color-orange);
}

.footer-about {
  margin: 18px 0 0;
  font-size: 13px;
  color: #9dadbd;
  max-width: 760px;
}

.footer-copy {
  margin: 8px 0 0;
  font-size: 13px;
  color: #8496a8;
}

/* --------------------------------------------------------------------------
   3. components：通用标题、卡片、表格、步骤、按钮、图片块
   -------------------------------------------------------------------------- */
.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-navy);
  padding-left: 12px;
  border-left: 4px solid var(--color-orange);
}

.section-lead,
.section-intro,
.section-desc {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--color-muted);
}

.section-head {
  margin-bottom: 18px;
}

.section {
  margin-bottom: 40px;
}

.section > .section-title {
  margin-bottom: 4px;
}

.section-intro {
  margin-bottom: 18px;
  max-width: 800px;
}

/* 按钮 */
.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  border: 1px solid transparent;
  min-height: 44px;
  line-height: 20px;
}

.btn-primary {
  background: var(--color-orange);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #c86828;
  color: #ffffff;
}

.btn-ghost {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--color-navy);
  color: #ffffff;
}

/* 图片容器 */
.hero-figure,
.channel-figure,
.section-media,
.media-block,
.media-figure,
.section-figure {
  margin: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-figure img,
.channel-figure img,
.section-media img,
.media-block img,
.media-figure img,
.section-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.hero-figure figcaption,
.channel-figure figcaption,
.media-caption,
.media-figure figcaption,
.section-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--color-muted);
  background: var(--color-surface);
}

/* 表格通用 */
.channel-table,
.field-table {
  background: var(--color-surface);
  font-size: 14px;
}

.channel-table th,
.channel-table td,
.field-table th,
.field-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-line-soft);
}

.channel-table thead th,
.field-table thead th {
  background: #eef2f6;
  color: var(--color-navy);
  font-family: var(--font-head);
  font-size: 14px;
  border-bottom: 1px solid var(--color-line);
  white-space: nowrap;
}

.channel-table tbody th,
.field-table tbody th {
  color: var(--color-navy);
  font-family: var(--font-head);
  font-size: 14px;
}

.channel-table tbody tr:hover,
.field-table tbody tr:hover {
  background: #fbfcfd;
}

.field-table-caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 10px;
  font-size: 13px;
  color: var(--color-muted);
}

/* 步骤清单基础样式 */
.step-list {
  counter-reset: none;
}

.step-item {
  position: relative;
}

.step-index,
.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-orange-soft);
  color: #a9531a;
  font-size: 14px;
  font-weight: 700;
}

.step-name {
  font-size: 16px;
  color: var(--color-navy);
}

.step-desc {
  font-size: 14px;
  color: var(--color-muted);
  margin: 6px 0 0;
}

/* 专题片单卡（首页与片单页共用） */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.topic-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-left: 3px solid transparent;
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: background-color 0.18s ease, border-left-color 0.18s ease;
}

.topic-card:hover {
  background: #fbfcfd;
  border-left-color: var(--color-orange);
}

.topic-card-title,
.topic-name {
  font-size: 16px;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.topic-card-meta,
.topic-meta {
  margin: 0 0 14px;
  font-size: 13px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 12px;
}

.topic-card-meta dt,
.topic-meta dt {
  color: var(--color-muted);
  font-family: var(--font-head);
  white-space: nowrap;
}

.topic-card-meta dd,
.topic-meta dd {
  margin: 0;
  color: var(--color-text);
}

.topic-card-link,
.text-link {
  margin-top: auto;
  font-family: var(--font-head);
  font-size: 14px;
  color: var(--color-orange);
  align-self: flex-start;
}

.topic-card-link:hover,
.text-link:hover,
.topic-card-link:focus-visible,
.text-link:focus-visible {
  color: #a9531a;
  text-decoration: underline;
}

/* 相关链接列表（字段页 / 指引页共用） */
.related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related-item a {
  display: inline-block;
  padding: 9px 16px;
  min-height: 44px;
  line-height: 26px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 14px;
}

.related-item a:hover,
.related-item a:focus-visible {
  border-color: var(--color-orange);
  color: var(--color-orange);
}

/* --------------------------------------------------------------------------
   4. pages：首页
   -------------------------------------------------------------------------- */
/* 首屏 */
.hero {
  padding: 34px 0 40px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 34px;
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-card);
}

.hero-kicker {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 10px;
  background: var(--color-orange-soft);
  color: #a9531a;
  font-family: var(--font-head);
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.hero-title {
  font-size: 28px;
  color: var(--color-navy);
  margin-bottom: 14px;
}

.hero-desc {
  max-width: 560px;
  color: var(--color-muted);
  font-size: 15px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 18px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13px;
  color: var(--color-muted);
}

.hero-points li {
  position: relative;
  padding-left: 14px;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-orange);
}

.hero-figure {
  border: 1px solid var(--color-line);
}

.hero-figure img {
  aspect-ratio: 4 / 3;
}

/* 双通道入口 */
.dual-entry {
  margin-bottom: 40px;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.entry-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-top: 3px solid var(--color-navy);
  border-radius: var(--radius);
  padding: 20px;
}

.entry-card-new {
  border-top-color: var(--color-navy);
}

.entry-card-familiar {
  border-top-color: var(--color-orange);
}

.entry-card-title {
  font-size: 16px;
  margin-bottom: 8px;
}

.entry-card-desc {
  font-size: 14px;
  color: var(--color-muted);
}

.entry-card-list {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.entry-card-list a {
  display: inline-block;
  padding: 8px 0 8px 16px;
  min-height: 44px;
  line-height: 28px;
  font-family: var(--font-head);
  font-size: 14px;
  border-bottom: 1px dashed var(--color-line);
  position: relative;
}

.entry-card-list a::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--color-orange);
}

.entry-card-list a:hover,
.entry-card-list a:focus-visible {
  color: var(--color-orange);
}

/* 频道方向总览 */
.channel-overview {
  margin-bottom: 40px;
}

.channel-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.channel-table {
  min-width: 720px;
}

.channel-table tbody th {
  white-space: nowrap;
}

.channel-figure {
  margin-top: 20px;
}

/* 专题片单速览 */
.topic-overview {
  margin-bottom: 40px;
}

.topic-overview .topic-grid {
  margin-top: 18px;
}

/* 字段摘要 */
.field-summary {
  margin-bottom: 40px;
}

.field-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.field-table {
  min-width: 620px;
}

.field-summary .field-table tbody th {
  white-space: nowrap;
}

.field-note {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--color-muted);
}

.field-note a {
  color: var(--color-orange);
  font-family: var(--font-head);
}

.field-note a:hover,
.field-note a:focus-visible {
  text-decoration: underline;
}

/* 查阅路径三步概览 */
.guide-overview {
  margin-bottom: 40px;
}

.guide-overview .step-list {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.guide-overview .step-item {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 18px;
}

.guide-overview .step-item .step-index {
  margin-bottom: 12px;
}

.guide-more {
  margin: 16px 0 0;
  font-size: 14px;
}

.guide-more a {
  color: var(--color-orange);
  font-family: var(--font-head);
}

.guide-more a:hover,
.guide-more a:focus-visible {
  text-decoration: underline;
}

/* 站内页面索引 */
.page-index {
  margin-bottom: 8px;
}

.index-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.index-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.index-card-title {
  font-size: 16px;
  margin-bottom: 8px;
}

.index-card-desc {
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: 14px;
}

.index-card-link {
  margin-top: auto;
  align-self: flex-start;
  font-family: var(--font-head);
  font-size: 14px;
  color: var(--color-orange);
}

.index-card-link:hover,
.index-card-link:focus-visible {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   5. pages：频道分类
   -------------------------------------------------------------------------- */
.channel-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.channel-row {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-left: 3px solid transparent;
  border-radius: var(--radius);
  transition: background-color 0.18s ease, border-left-color 0.18s ease;
}

.channel-row:hover {
  background: #fbfcfd;
  border-left-color: var(--color-orange);
}

.channel-item {
  padding: 16px 18px;
}

.channel-name {
  font-size: 16px;
  margin-bottom: 10px;
}

.channel-meta {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 6px 14px;
  margin: 0;
  font-size: 14px;
}

.meta-label {
  color: var(--color-muted);
  font-family: var(--font-head);
  font-size: 13px;
  white-space: nowrap;
}

.meta-value {
  margin: 0;
  color: var(--color-text);
}

.section-media {
  margin-top: 22px;
}

.section-media img {
  aspect-ratio: 21 / 9;
}

.prose-block {
  max-width: 820px;
}

.prose-block p {
  margin-bottom: 14px;
  font-size: 15px;
}

.advice-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.advice-item {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-top: 3px solid var(--color-navy);
  border-radius: var(--radius);
  padding: 18px;
}

.advice-title {
  font-size: 16px;
  margin-bottom: 8px;
}

.advice-text {
  font-size: 14px;
  color: var(--color-muted);
}

/* --------------------------------------------------------------------------
   6. pages：专题片单
   -------------------------------------------------------------------------- */
.section-topics .section-head {
  margin-bottom: 20px;
}

.media-block {
  margin-bottom: 22px;
}

.media-block-wide img {
  aspect-ratio: 21 / 9;
}

.section-topics .topic-grid {
  margin-top: 0;
}

.topic-foot {
  margin: 0;
  font-size: 14px;
}

.order-text,
.relation-body {
  max-width: 820px;
}

.order-para,
.relation-para {
  font-size: 15px;
  margin-bottom: 14px;
}

/* --------------------------------------------------------------------------
   7. pages：条目字段说明
   -------------------------------------------------------------------------- */
.section-intro .section-figure {
  margin: 18px 0;
}

.section-figure img {
  aspect-ratio: 21 / 9;
}

.section-fields .section-desc {
  margin-bottom: 18px;
}

.section-fields .field-table {
  min-width: 640px;
}

.section-fields .field-table td.field-name {
  white-space: nowrap;
  color: var(--color-navy);
  font-weight: 700;
}

.usage-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.usage-col {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 18px;
}

.usage-col-title {
  font-size: 16px;
  margin-bottom: 10px;
}

.usage-col p {
  font-size: 14px;
  color: var(--color-muted);
  margin-bottom: 10px;
}

.boundary-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.boundary-item {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-left: 3px solid var(--color-orange);
  border-radius: var(--radius);
  padding: 18px;
}

.boundary-item-title {
  font-size: 16px;
  margin-bottom: 8px;
}

.boundary-item p {
  font-size: 14px;
  color: var(--color-muted);
}

.section-related .related-list {
  margin-top: 18px;
}

/* --------------------------------------------------------------------------
   8. pages：查阅路径指引
   -------------------------------------------------------------------------- */
.guide-steps .media-figure {
  margin: 18px 0 22px;
}

.media-figure img {
  aspect-ratio: 21 / 9;
}

.guide-steps .step-list {
  display: grid;
  gap: 14px;
}

.guide-steps .step-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.guide-steps .step-item .step-no {
  margin-top: 2px;
}

.step-body {
  min-width: 0;
}

.step-body .step-name {
  margin-bottom: 6px;
}

.step-body .step-desc a {
  color: var(--color-orange);
  font-family: var(--font-head);
}

.step-body .step-desc a:hover,
.step-body .step-desc a:focus-visible {
  text-decoration: underline;
}

.purpose-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.purpose-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-top: 3px solid var(--color-navy);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.purpose-name {
  font-size: 16px;
  margin-bottom: 8px;
}

.purpose-desc {
  font-size: 14px;
  color: var(--color-muted);
}

.purpose-entry {
  margin: 14px 0 0;
  font-family: var(--font-head);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.purpose-entry a {
  color: var(--color-orange);
}

.purpose-entry a:hover,
.purpose-entry a:focus-visible {
  text-decoration: underline;
}

.log-list {
  display: grid;
  gap: 0;
  margin-top: 18px;
  border-left: 2px solid var(--color-line);
  padding-left: 20px;
}

.log-item {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-line-soft);
  position: relative;
}

.log-item::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 22px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-orange);
  border: 2px solid var(--color-bg);
}

.log-item:last-child {
  border-bottom: 0;
}

.log-date {
  font-size: 13px;
  color: var(--color-muted);
  padding-top: 2px;
}

.log-body {
  min-width: 0;
}

.log-name {
  font-size: 16px;
  margin-bottom: 6px;
}

.log-desc {
  font-size: 14px;
  color: var(--color-muted);
  margin: 0;
}

.feedback-note {
  margin-top: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-left: 3px solid var(--color-orange);
  border-radius: var(--radius);
  padding: 18px 20px;
  max-width: 820px;
}

.feedback-title {
  font-size: 16px;
  margin-bottom: 8px;
}

.feedback-desc {
  font-size: 14px;
  color: var(--color-muted);
}

.feedback-desc a,
.feedback-more a {
  color: var(--color-orange);
  font-family: var(--font-head);
}

.feedback-desc a:hover,
.feedback-desc a:focus-visible,
.feedback-more a:hover,
.feedback-more a:focus-visible {
  text-decoration: underline;
}

.feedback-more {
  margin: 10px 0 0;
  font-size: 14px;
}

.related-links .related-list {
  margin-top: 18px;
}

/* --------------------------------------------------------------------------
   9. pages：404
   -------------------------------------------------------------------------- */
.error-main {
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 56px 20px 72px;
}

.error-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-top: 4px solid var(--color-orange);
  border-radius: var(--radius);
  padding: 40px 32px;
  max-width: 720px;
}

.error-code {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 700;
  color: var(--color-orange);
  line-height: 1;
}

.error-title {
  font-size: 28px;
  margin-bottom: 12px;
}

.error-text {
  font-size: 15px;
  color: var(--color-muted);
  max-width: 560px;
}

.error-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-btn {
  display: inline-block;
  padding: 11px 22px;
  min-height: 44px;
  line-height: 20px;
  border: 1px solid var(--color-navy);
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 15px;
  color: var(--color-navy);
}

.error-btn:hover,
.error-btn:focus-visible {
  background: var(--color-navy);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   10. responsive：900px / 600px 断点
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    min-height: 60px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    flex-basis: 100%;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 6px 0 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    padding: 12px 4px;
    margin-bottom: 0;
    border-bottom: 0;
    border-left: 3px solid transparent;
  }

  .nav-link.is-current {
    border-left-color: var(--color-orange);
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 24px;
  }

  .hero-figure img {
    aspect-ratio: 16 / 9;
  }

  .topic-grid,
  .guide-overview .step-list,
  .advice-list,
  .boundary-list,
  .purpose-grid,
  .index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .usage-cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  body.site-body {
    font-size: 15px;
  }

  .header-inner,
  .home-main,
  .inner-main,
  .footer-inner,
  .error-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand-text {
    font-size: 17px;
  }

  .page-title,
  .hero-title,
  .error-title {
    font-size: 22px;
  }

  .section-title {
    font-size: 18px;
  }

  .page-header {
    margin-bottom: 24px;
  }

  .hero {
    padding: 22px 0 30px;
  }

  .hero-inner {
    padding: 20px;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .entry-grid,
  .topic-grid,
  .guide-overview .step-list,
  .advice-list,
  .boundary-list,
  .purpose-grid,
  .index-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    margin-bottom: 30px;
  }

  /* 表格转为卡片视图，字段顺序保持一致 */
  .channel-table-wrap,
  .field-table-wrap {
    overflow-x: visible;
    border: 0;
    border-radius: 0;
  }

  .channel-table,
  .field-table {
    min-width: 0;
    background: transparent;
  }

  .channel-table thead,
  .field-table thead {
    display: none;
  }

  .channel-table tbody tr,
  .field-table tbody tr {
    display: block;
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    padding: 6px 14px 12px;
    margin-bottom: 12px;
  }

  .channel-table tbody tr:hover,
  .field-table tbody tr:hover {
    background: var(--color-surface);
  }

  .channel-table tbody th,
  .channel-table tbody td,
  .field-table tbody th,
  .field-table tbody td {
    display: block;
    border-bottom: 0;
    padding: 8px 0;
    white-space: normal;
  }

  .channel-table tbody th,
  .field-table tbody th {
    border-bottom: 1px dashed var(--color-line);
    margin-bottom: 4px;
  }

  .channel-table tbody td::before,
  .field-table tbody td::before {
    display: block;
    font-family: var(--font-head);
    font-size: 12px;
    color: var(--color-muted);
    margin-bottom: 2px;
  }

  .channel-meta {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .meta-label {
    margin-top: 6px;
  }

  .guide-steps .step-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .log-list {
    padding-left: 16px;
  }

  .log-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .log-item::before {
    left: -22px;
  }

  .error-panel {
    padding: 28px 20px;
  }

  .error-actions .error-btn {
    width: 100%;
    text-align: center;
  }

  .footer-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}
