/* ==========================================================================
   光棍影视 · ysygg.cn 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base · 变量与全局基础
   -------------------------------------------------------------------------- */
:root {
  --bg-page: #f7f8fa;
  --bg-card: #ffffff;
  --bg-soft: #eef1f5;
  --text-main: #1f2329;
  --text-sub: #5a6270;
  --text-mute: #7d8593;
  --brand: #2b5a8c;
  --brand-soft: #e8eff6;
  --brand-deep: #1d4269;
  --line: #dfe3e8;
  --line-strong: #c6ccd4;
  --footer-bg: #1f2329;
  --footer-text: #c9ced6;
  --footer-link: #e8eff6;
  --radius: 6px;
  --radius-sm: 4px;
  --wrap: 1180px;
  --shadow-sm: 0 1px 2px rgba(31, 35, 41, 0.06);
  --shadow-md: 0 4px 12px rgba(31, 35, 41, 0.09);
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-stack);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
figure,
figcaption,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  max-width: 100%;
  border: 0;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease,
    border-color 0.18s ease;
}

a:hover {
  color: var(--brand-deep);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

strong {
  font-weight: 600;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

/* 通用正文段落 */
.section p,
.organize-block p,
.read-body p {
  color: var(--text-sub);
}

/* --------------------------------------------------------------------------
   layout · 骨架：site-body / header / main / footer / 容器
   -------------------------------------------------------------------------- */
.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-page);
}

.site-main {
  flex: 1 0 auto;
  display: block;
}

/* 顶部线索说明条 */
.topline {
  background-color: var(--brand-soft);
  border-bottom: 1px solid var(--line);
}

.topline-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 8px 20px;
}

.topline-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--brand-deep);
}

.topbar {
  background-color: var(--brand-soft);
  border-bottom: 1px solid var(--line);
  padding: 8px 20px;
}

.topbar-text {
  max-width: var(--wrap);
  margin: 0 auto;
  font-size: 13px;
  line-height: 1.6;
  color: var(--brand-deep);
}

/* 页头 */
.site-header {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--text-main);
}

.brand:hover {
  color: var(--text-main);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background-color: var(--brand);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
}

.brand-slogan {
  font-size: 12px;
  color: var(--text-mute);
}

/* 主导航 */
.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 9px 14px;
  font-size: 15px;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.nav-link:hover {
  background-color: var(--brand-soft);
  color: var(--brand-deep);
}

.nav-link.is-current {
  color: var(--brand);
  font-weight: 600;
  background-color: var(--brand-soft);
}

/* 汉堡按钮：桌面隐藏 */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: var(--bg-card);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
}

/* 主体容器 */
.home-main {
  display: block;
}

.inner-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px 48px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 18px 0 0;
  font-size: 13px;
  color: var(--text-mute);
}

.breadcrumb a {
  color: var(--text-sub);
}

.breadcrumb a:hover {
  color: var(--brand);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--text-mute);
}

/* 内页标题区 */
.page-header {
  padding: 14px 0 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}

.page-title {
  font-size: 28px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--text-main);
}

.page-description {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-sub);
  max-width: 900px;
}

/* 页脚 */
.site-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px 20px 26px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 28px;
}

.footer-brand {
  min-width: 0;
}

.footer-brand-name {
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}

.footer-brand-desc {
  font-size: 13px;
  line-height: 1.75;
  color: var(--footer-text);
  max-width: 300px;
}

.footer-group {
  min-width: 0;
}

.footer-group-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link {
  font-size: 13px;
  color: var(--footer-link);
  line-height: 1.6;
}

.footer-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--footer-text);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-copy {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 20px 22px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--footer-text);
}

/* --------------------------------------------------------------------------
   components · 通用组件（按钮 / 文本链接 / 卡片 / 表格 / 折叠 / 图）
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  font-size: 15px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease,
    color 0.18s ease, transform 0.18s ease;
}

.btn-primary {
  background-color: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
}

.btn-primary:hover {
  background-color: var(--brand-deep);
  border-color: var(--brand-deep);
  color: #ffffff;
}

.btn-ghost {
  background-color: var(--bg-card);
  color: var(--brand);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--brand);
  background-color: var(--brand-soft);
  color: var(--brand-deep);
}

.text-link {
  color: var(--brand);
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid transparent;
}

.text-link:hover {
  color: var(--brand-deep);
  border-bottom-color: var(--brand-deep);
}

/* 通用 section 结构 */
.section {
  padding: 34px 0;
}

.section-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.section-head {
  margin-bottom: 20px;
  border-left: 3px solid var(--brand);
  padding-left: 12px;
}

.section-title {
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--text-main);
}

.section-desc,
.section-lead,
.section-sub {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-sub);
  max-width: 900px;
}

.section-foot {
  margin-top: 18px;
}

/* 图表容器 */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
}

.field-table {
  width: 100%;
  min-width: 520px;
  font-size: 14px;
}

.field-table caption,
.field-table-caption,
.field-caption {
  caption-side: top;
  text-align: left;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-mute);
  border-bottom: 1px solid var(--line);
}

.field-table th,
.field-table td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  line-height: 1.7;
}

.field-table thead th {
  background-color: var(--bg-soft);
  color: var(--text-main);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.field-table tbody th {
  font-weight: 600;
  color: var(--brand-deep);
  background-color: #fafbfc;
  white-space: nowrap;
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.field-table tbody tr:hover {
  background-color: #fafbfc;
}

/* 图片 / figure 统一约束 */
.media-figure,
.channel-figure,
.records-figure,
.hero-figure,
.collection-cover {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background-color: var(--bg-soft);
}

.media-figure img,
.channel-figure img,
.records-figure img,
.collection-cover img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.media-caption,
.channel-figure-caption,
.records-figure-caption {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-mute);
  background-color: var(--bg-card);
  border-top: 1px solid var(--line);
}

/* 相关推荐列表 */
.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.related-item {
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  min-width: 0;
}

.related-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.related-desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
}

/* 原生 details 折叠 */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  position: relative;
  padding: 14px 44px 14px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "展开";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: 400;
  color: var(--brand);
}

.faq-item[open] .faq-question::after {
  content: "收起";
}

.faq-item[open] .faq-question {
  border-bottom: 1px solid var(--line);
}

.faq-answer {
  padding: 14px 18px 16px;
}

.faq-answer p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-sub);
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */
/* 首屏定位区 */
.hero {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 34px 20px 38px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.hero-lead {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  color: var(--brand-deep);
  background-color: var(--brand-soft);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  margin-bottom: 14px;
}

.hero-title {
  font-size: 28px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--text-main);
}

.hero-desc {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-sub);
  max-width: 640px;
}

.hero-points {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-point {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
}

.hero-point::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--brand);
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background-color: var(--bg-soft);
}

.hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.hero-figcaption {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-mute);
  background-color: var(--bg-card);
  border-top: 1px solid var(--line);
}

.hero-quick {
  background-color: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.hero-quick-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
}

.quick-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-item {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
  padding-left: 14px;
  position: relative;
}

.quick-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--brand);
}

.quick-link {
  font-size: 14px;
}

/* 频道方向索引（首页：单列逐行） */
.channel-index {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.channel-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(0, 240px);
  gap: 16px;
  align-items: start;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease,
    transform 0.18s ease;
}

.channel-row:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.channel-no {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  background-color: var(--brand-soft);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  text-align: center;
  align-self: start;
  white-space: nowrap;
}

.channel-body {
  min-width: 0;
}

.channel-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.5;
}

.channel-desc {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-sub);
}

.channel-adjacent {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-mute);
  border-left: 2px solid var(--line);
  padding-left: 12px;
  min-width: 0;
}

/* 专题片单入口（两张一组） */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.collection-card {
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s ease, box-shadow 0.18s ease,
    transform 0.18s ease;
}

.collection-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.collection-cover {
  border-radius: 0;
  border-bottom: 1px solid var(--line);
}

.collection-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.collection-body {
  padding: 14px 16px 16px;
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.collection-title,
.collection-name {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-main);
}

.collection-desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-sub);
}

.collection-meta {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-mute);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
}

.meta-label {
  color: var(--text-mute);
}

.meta-value {
  color: var(--text-sub);
  margin-right: 6px;
}

.collection-link {
  color: var(--text-main);
}

.collection-link:hover {
  color: var(--brand);
}

/* 浏览指引摘要（首页四步横向） */
.guide-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.guide-step {
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guide-step-no {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-step-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.5;
}

.guide-step-field {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
}

.guide-step-next {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-mute);
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

/* 整理记录速览 */
.record-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.record-group {
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  min-width: 0;
}

.record-month {
  font-size: 16px;
  font-weight: 600;
  color: var(--brand-deep);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}

.record-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.record-item {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  font-size: 13px;
  line-height: 1.7;
  min-width: 0;
}

.record-date {
  color: var(--text-mute);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.record-type {
  font-size: 12px;
  color: var(--brand-deep);
  background-color: var(--brand-soft);
  border-radius: var(--radius-sm);
  padding: 1px 7px;
  white-space: nowrap;
}

.record-text {
  color: var(--text-sub);
  min-width: 0;
}

/* 站内栏目索引（五列） */
.sitemap-columns {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.sitemap-column {
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  min-width: 0;
}

.sitemap-column-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.sitemap-link {
  color: var(--text-main);
}

.sitemap-link:hover {
  color: var(--brand);
}

.sitemap-column-desc {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-sub);
}

/* --------------------------------------------------------------------------
   pages · 题材频道（channels）
   -------------------------------------------------------------------------- */
.channel-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.channel-list .channel-row {
  grid-template-columns: 64px minmax(0, 1fr);
}

.channel-list .channel-body {
  min-width: 0;
}

.channel-list .channel-adjacent {
  grid-column: 2;
  border-left: 0;
  padding-left: 0;
  margin-top: 4px;
  color: var(--text-mute);
}

/* 频道方向对照说明（左右两栏） */
.compare-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.compare-col {
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  min-width: 0;
}

.compare-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}

.compare-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.compare-item {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-sub);
  padding-left: 14px;
  position: relative;
}

.compare-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--brand);
}

.compare-key {
  color: var(--text-main);
  font-weight: 600;
}

/* 频道示意图 */
.channel-figure {
  margin: 0 0 26px;
  border: 1px solid var(--line);
}

.channel-figure img {
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   pages · 专题片单（collections）
   -------------------------------------------------------------------------- */
.section-collections-list {
  padding-top: 0;
}

.section-organize {
  padding-top: 0;
}

.organize-block {
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.organize-block p {
  font-size: 14px;
  line-height: 1.85;
}

.section-fields {
  padding-top: 0;
}

.field-name {
  font-weight: 600;
  color: var(--brand-deep);
  white-space: nowrap;
}

.field-desc {
  color: var(--text-sub);
}

.field-sample {
  color: var(--text-mute);
}

/* --------------------------------------------------------------------------
   pages · 浏览指引（guide）
   -------------------------------------------------------------------------- */
.page-layout {
  display: block;
}

.guide-steps-figure {
  margin-bottom: 20px;
}

.guide-steps-figure .media-figure {
  border: 1px solid var(--line);
}

.guide-steps-figure img {
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.step-item {
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.5;
  padding-left: 12px;
  border-left: 3px solid var(--brand);
}

.step-field {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-sub);
}

.step-next {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-mute);
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.field-table-section {
  padding-top: 0;
}

.boundary-section {
  padding-top: 0;
}

.boundary-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.boundary-col {
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  min-width: 0;
}

.boundary-col-in {
  border-top: 3px solid var(--brand);
}

.boundary-col-out {
  border-top: 3px solid var(--line-strong);
}

.boundary-col-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 12px;
}

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.boundary-list li {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-sub);
  padding-left: 14px;
  position: relative;
}

.boundary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--brand);
}

.boundary-note {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-sub);
}

.faq-section {
  padding-top: 0;
}

.related-section {
  padding-top: 0;
}

.related-section .related-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.related-section .related-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--brand);
}

.related-section .related-link:hover {
  color: var(--brand-deep);
}

/* --------------------------------------------------------------------------
   pages · 整理记录（records）
   -------------------------------------------------------------------------- */
.records-section {
  padding-top: 0;
}

.records-figure {
  margin: 0 0 22px;
  border: 1px solid var(--line);
}

.records-figure img {
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.records-month {
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 16px;
}

.records-month-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--brand-deep);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}

.records-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.records-items .record-item {
  display: grid;
  grid-template-columns: 92px auto minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  font-size: 14px;
  line-height: 1.75;
  min-width: 0;
}

.records-items .record-date {
  color: var(--text-mute);
  font-variant-numeric: tabular-nums;
}

.records-items .record-type {
  font-size: 12px;
  border-radius: var(--radius-sm);
  padding: 1px 8px;
  white-space: nowrap;
  background-color: var(--brand-soft);
  color: var(--brand-deep);
}

.record-type-adjust {
  background-color: #fdf3e3;
  color: #8a5a12;
}

.record-type-merge {
  background-color: #eaf3ea;
  color: #2f6b3a;
}

.records-items .record-summary {
  color: var(--text-sub);
  min-width: 0;
}

.type-section {
  padding-top: 0;
}

.type-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.type-column {
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  min-width: 0;
}

.column-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.type-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.type-item {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-sub);
  padding-left: 14px;
  position: relative;
}

.type-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--brand);
}

.type-desc {
  color: var(--text-main);
  font-weight: 600;
}

.type-note {
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-sub);
}

.type-note + .type-note {
  margin-top: 12px;
}

.read-section {
  padding-top: 0;
}

.read-body {
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.read-body p {
  font-size: 14px;
  line-height: 1.85;
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */
.error-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 48px 20px 56px;
  width: 100%;
}

.error-panel {
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px 32px;
  max-width: 720px;
}

.error-code {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--brand);
}

.error-title {
  margin-top: 10px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-main);
}

.error-desc {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-sub);
}

.error-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.error-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius);
  background-color: var(--brand);
  color: #ffffff;
  font-size: 15px;
}

.error-button:hover {
  background-color: var(--brand-deep);
  color: #ffffff;
}

.error-link {
  font-size: 15px;
  color: var(--brand);
  border-bottom: 1px solid transparent;
}

.error-link:hover {
  border-bottom-color: var(--brand-deep);
  color: var(--brand-deep);
}

.error-hints {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.error-hint {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-sub);
  padding-left: 14px;
  position: relative;
}

.error-hint::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--brand);
}

.error-hint-link {
  font-size: 14px;
}

/* 内容区块滚动出现增强（不影响初始可见性） */
@media (prefers-reduced-motion: no-preference) {
  .section.is-visible {
    animation: section-rise 0.42s ease-out both;
  }
}

@keyframes section-rise {
  from {
    transform: translateY(10px);
  }
  to {
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   responsive · 1024 / 768 / 480
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 26px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .record-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sitemap-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .guide-steps,
  .step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .related-section .related-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .header-inner {
    min-height: 58px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex: 1 1 100%;
    display: block;
    order: 3;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 12px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    padding: 12px 10px;
    border-radius: var(--radius-sm);
    font-size: 15px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 26px 20px 30px;
  }

  .hero-title {
    font-size: 22px;
  }

  .page-title {
    font-size: 22px;
  }

  .section-title {
    font-size: 18px;
  }

  .channel-name,
  .collection-title,
  .collection-name,
  .guide-step-name,
  .step-name,
  .sitemap-column-title,
  .compare-title,
  .boundary-col-title,
  .column-title,
  .record-month,
  .records-month-title,
  .hero-quick-title {
    font-size: 16px;
  }

  .channel-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .channel-list .channel-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-list .channel-adjacent {
    grid-column: 1;
  }

  .channel-no {
    justify-self: start;
  }

  .channel-adjacent {
    border-left: 0;
    border-top: 1px dashed var(--line);
    padding-left: 0;
    padding-top: 10px;
  }

  .collection-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .compare-layout,
  .boundary-columns,
  .type-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .record-groups {
    grid-template-columns: minmax(0, 1fr);
  }

  .sitemap-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .related-section .related-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .records-items .record-item {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 4px;
  }

  .records-items .record-summary {
    grid-column: 1 / -1;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 32px 20px 22px;
  }

  .error-panel {
    padding: 26px 22px 24px;
  }

  .error-title {
    font-size: 21px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .topline-inner,
  .topbar,
  .header-inner,
  .section-inner,
  .inner-main,
  .footer-inner,
  .footer-copy,
  .error-main {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-inner {
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand-slogan {
    display: none;
  }

  .guide-steps,
  .step-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .sitemap-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-actions {
    gap: 10px;
  }

  .btn {
    flex: 1 1 auto;
  }

  .field-table {
    min-width: 460px;
  }
}
