/* ==========================================================================
   91吃瓜在线观看 · 全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. base — 变量、重置、排版
   -------------------------------------------------------------------------- */

:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --surface-soft: #f1efea;
  --line: #e3e1dc;
  --line-strong: #d3d0c9;
  --text: #1c1f26;
  --text-2: #5a6472;
  --text-3: #8a919d;
  --brand: #1f2a44;
  --accent: #e2453c;
  --accent-soft: #fbeceb;

  --tag-gossip: #cf4f7a;
  --tag-office: #e08b2a;
  --tag-city: #3b7bd4;
  --tag-campus: #4c9a3f;
  --tag-mystery: #7a5cd6;
  --tag-daily: #2b9e8f;

  --radius-s: 4px;
  --radius-m: 6px;
  --radius-l: 8px;

  --shell: 1180px;
  --gutter: 24px;
  --header-h: 68px;
  --header-h-tight: 56px;

  --font: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", sans-serif;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: normal;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

figure {
  margin: 0;
}

figcaption {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-3);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* 深色主题 */
body.theme-dark {
  --bg: #12151c;
  --surface: #1b1f29;
  --surface-soft: #191d26;
  --line: #2b3140;
  --line-strong: #3a4152;
  --text: #e8ebf2;
  --text-2: #a7b0bf;
  --text-3: #7f8896;
  --brand: #cfd8ea;
  --accent: #f2604f;
  --accent-soft: #2a1d1c;
}

@media (prefers-color-scheme: dark) {
  body:not(.theme-light) {
    --bg: #12151c;
    --surface: #1b1f29;
    --surface-soft: #191d26;
    --line: #2b3140;
    --line-strong: #3a4152;
    --text: #e8ebf2;
    --text-2: #a7b0bf;
    --text-3: #7f8896;
    --brand: #cfd8ea;
    --accent: #f2604f;
    --accent-soft: #2a1d1c;
  }
}

/* --------------------------------------------------------------------------
   2. layout — 页头、主容器、页脚骨架
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  top: 0;
  left: 8px;
  z-index: 60;
  padding: 8px 14px;
  background: var(--brand);
  color: #fff;
  border-radius: 0 0 var(--radius-m) var(--radius-m);
  transform: translateY(-120%);
  transition: transform 0.18s ease;
}

.skip-link:focus {
  transform: translateY(0);
  color: #fff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: var(--shell);
  min-height: var(--header-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
  transition: min-height 0.2s ease;
}

.site-header.is-tight .header-inner {
  min-height: var(--header-h-tight);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex: 0 0 auto;
  color: var(--text);
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: normal;
}

.brand-tag {
  font-size: 12px;
  color: var(--text-3);
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}

.nav-link {
  display: block;
  padding: 8px 11px;
  font-size: 15px;
  color: var(--text-2);
  border-radius: var(--radius-s);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text);
  background: var(--surface-soft);
}

.nav-link.is-current {
  color: var(--brand);
  font-weight: 700;
  background: var(--surface-soft);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  background: var(--surface);
  font-size: 13px;
  color: var(--text-2);
  transition: border-color 0.18s ease, color 0.18s ease;
}

.theme-toggle::before {
  content: "跟";
}

body.theme-light .theme-toggle::before {
  content: "浅";
}

body.theme-dark .theme-toggle::before {
  content: "深";
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  background: var(--surface);
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.site-main {
  display: block;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.inner-main {
  padding-top: 20px;
  padding-bottom: 56px;
}

.site-footer {
  margin-top: 40px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 36px var(--gutter) 22px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 24px;
}

.footer-title {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.footer-list li + li {
  margin-top: 6px;
}

.footer-list a {
  font-size: 14px;
  color: var(--text-2);
}

.footer-list a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.footer-note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-3);
}

/* 内页统一外壳 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 6px 0 2px;
  font-size: 13px;
  color: var(--text-3);
}

.breadcrumb a {
  color: var(--text-2);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--text-3);
}

.breadcrumb-current {
  color: var(--text-2);
}

.page-header {
  padding: 14px 0 0;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}

.page-title + .page-lead,
.page-header + .page-title {
  margin-top: 0;
}

.site-main > .page-title,
.site-main > section.page-title {
  padding: 10px 0 0;
  max-width: 760px;
}

.page-lead {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-2);
}

.page-meta {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-3);
}

.page-title,
.page-lead,
.page-meta {
  overflow-wrap: break-word;
}

/* --------------------------------------------------------------------------
   3. components — 通用按钮、标签、卡片、链接、折叠
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-m);
  border: 1px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease,
    border-color 0.18s ease;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.link-inline,
.inline-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  border-bottom: 1px solid transparent;
}

.link-inline:hover,
.inline-link:hover {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.tag {
  display: inline-block;
  padding: 1px 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  border-radius: var(--radius-s);
  background: var(--surface-soft);
  color: var(--text-2);
}

.tag-gossip { background: #fbe9ef; color: #a8305a; }
.tag-office { background: #fbeddc; color: #9c5d11; }
.tag-city   { background: #e6eefb; color: #245195; }
.tag-campus { background: #e6f3e2; color: #2e6b25; }
.tag-mystery{ background: #ece7fb; color: #533ba6; }
.tag-daily  { background: #e0f2ef; color: #1c6f64; }
.tag-blue   { background: #e6eefb; color: #245195; }
.tag-purple { background: #ece7fb; color: #533ba6; }
.tag-rose   { background: #fbe9ef; color: #a8305a; }
.tag-school { background: #e6f3e2; color: #2e6b25; }

body.theme-dark .tag-gossip,
body.theme-dark .tag-rose   { background: #3a1f2a; color: #f2a7c0; }
body.theme-dark .tag-office { background: #3a2c18; color: #f0bd76; }
body.theme-dark .tag-city,
body.theme-dark .tag-blue   { background: #1d2a41; color: #9dbcf0; }
body.theme-dark .tag-campus,
body.theme-dark .tag-school { background: #1e2f1c; color: #a4d69a; }
body.theme-dark .tag-mystery,
body.theme-dark .tag-purple { background: #272141; color: #bcabf0; }
body.theme-dark .tag-daily  { background: #17302d; color: #8fd6cb; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 14px;
}

.section-title {
  font-size: 21px;
  font-weight: 700;
}

.section-note,
.section-lead {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-2);
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.related-links-label {
  font-size: 13px;
  color: var(--text-3);
}

.related-links-item,
.related-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.related-links-item:hover,
.related-link:hover {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}

/* 封面图统一约束 */
.cover-media,
.entry-cover,
.entry-thumb,
.guide-figure,
.field-figure,
.scope-figure,
.hero-visual {
  overflow: hidden;
  border-radius: var(--radius-m);
}

.cover-media img,
.entry-cover img,
.entry-thumb img,
.guide-figure img,
.field-figure img,
.scope-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   4. pages — 首页
   -------------------------------------------------------------------------- */

.home-main {
  padding-bottom: 40px;
}

/* 4.1 首屏 */
.hero {
  padding: 32px 0 30px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 32px;
  align-items: start;
}

.hero-copy {
  max-width: 560px;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 2px 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  background: var(--surface-soft);
  border-radius: var(--radius-s);
}

.hero-copy h1 {
  font-size: 32px;
  line-height: 1.3;
}

.hero-lead {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.hero-boundary {
  margin-top: 18px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-s);
}

.hero-visual {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--surface);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.hero-visual figcaption {
  padding: 8px 12px 10px;
  border-top: 1px solid var(--line);
}

/* 4.2 题材索引面板 + 收录流 */
.genre-board {
  padding: 26px 0 30px;
  border-top: 1px solid var(--line);
}

.genre-board .section-title {
  margin-bottom: 16px;
}

.board-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.genre-panel {
  position: sticky;
  top: 84px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
}

.panel-hint {
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--text-3);
}

.genre-anchor-list li + li {
  margin-top: 4px;
}

.genre-anchor {
  display: block;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-2);
  border-radius: var(--radius-s);
  border-left: 3px solid transparent;
}

.genre-anchor:hover {
  background: var(--surface-soft);
  color: var(--text);
}

.genre-anchor.is-active {
  color: var(--brand);
  background: var(--surface-soft);
  border-left-color: var(--accent);
}

.panel-more {
  display: block;
  margin-top: 12px;
  padding-top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  border-top: 1px solid var(--line);
}

.entry-stream {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.stream-group {
  padding: 16px 18px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  scroll-margin-top: 88px;
}

.group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px dashed var(--line-strong);
}

.group-title {
  font-size: 17px;
}

.group-scope {
  font-size: 13px;
  color: var(--text-3);
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 14px;
}

.cover-card {
  min-width: 0;
}

.cover-card a {
  display: block;
  height: 100%;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.cover-card a:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.cover-media {
  aspect-ratio: 3 / 4;
  background: var(--surface-soft);
}

.cover-title {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
}

.cover-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-3);
}

.stream-more {
  margin-top: 14px;
  font-size: 14px;
}

/* 4.3 更新动态三档速览 */
.updates-strip {
  padding: 26px 0 30px;
  border-top: 1px solid var(--line);
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.strip-card {
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
}

.strip-title {
  font-size: 17px;
}

.strip-desc {
  flex: 1 1 auto;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-2);
}

.strip-link {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

/* 4.4 编辑精选横条 */
.picks-rail {
  padding: 26px 0 30px;
  border-top: 1px solid var(--line);
}

.rail-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.rail-item {
  min-width: 0;
}

.rail-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  min-height: 44px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--tag-mystery);
  border-radius: var(--radius-m);
  transition: border-color 0.18s ease;
}

.rail-item:nth-child(2) .rail-link { border-left-color: var(--tag-office); }
.rail-item:nth-child(3) .rail-link { border-left-color: var(--tag-city); }
.rail-item:nth-child(4) .rail-link { border-left-color: var(--tag-campus); }
.rail-item:nth-child(5) .rail-link { border-left-color: var(--tag-daily); }

.rail-link:hover {
  border-color: var(--accent);
  border-left-color: var(--accent);
}

.rail-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.rail-basis {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
}

.rail-order {
  font-size: 12px;
  color: var(--text-3);
}

/* 4.5 阅读指南入口 */
.reading-entry {
  padding: 26px 0 30px;
  border-top: 1px solid var(--line);
}

.entry-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.entry-point {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
}

.point-title {
  font-size: 16px;
}

.point-desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-2);
}

/* 4.6 阅读边界说明 */
.boundary-note {
  padding: 26px 0 10px;
  border-top: 1px solid var(--line);
}

.boundary-note .section-title {
  margin-bottom: 14px;
}

.boundary-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.boundary-item {
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}

.boundary-more {
  margin-top: 14px;
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   5. pages — 内页
   -------------------------------------------------------------------------- */

/* 5.1 题材分类 */
.genre-jump {
  margin: 20px 0 22px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
}

.genre-jump-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.genre-jump-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-2);
  background: var(--surface-soft);
  border-radius: 20px;
}

.genre-jump-link:hover {
  color: #fff;
  background: var(--brand);
}

.genre-section {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 88px;
}

.genre-section-body {
  display: grid;
  grid-template-columns: minmax(0, 62fr) minmax(0, 38fr);
  gap: 24px;
  align-items: start;
}

.genre-info {
  min-width: 0;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
}

.genre-info h2 {
  font-size: 20px;
}

.genre-scope {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-2);
}

.genre-method {
  margin-top: 10px;
  padding-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-2);
  border-top: 1px dashed var(--line-strong);
}

.genre-entries {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.entry-card {
  min-width: 0;
}

.entry-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.entry-card-link:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.entry-cover {
  width: 100%;
  aspect-ratio: 96 / 132;
  background: var(--surface-soft);
}

.entry-card-link .entry-title {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
}

.entry-card-link .entry-tag {
  align-self: flex-start;
  margin-top: 6px;
}

.entry-order {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-3);
}

.entry-tag {
  display: inline-block;
  padding: 1px 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  border-radius: var(--radius-s);
}

.entry-tag-gossip { background: #fbe9ef; color: #a8305a; }
.entry-tag-office { background: #fbeddc; color: #9c5d11; }
.entry-tag-city   { background: #e6eefb; color: #245195; }
.entry-tag-campus { background: #e6f3e2; color: #2e6b25; }
.entry-tag-mystery{ background: #ece7fb; color: #533ba6; }
.entry-tag-daily  { background: #e0f2ef; color: #1c6f64; }

.method-block,
.exclude-block {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.method-block h2,
.exclude-block h2 {
  font-size: 20px;
}

.method-lead,
.exclude-lead {
  max-width: 760px;
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-2);
}

.method-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 16px;
  counter-reset: method;
}

.method-item {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  counter-increment: method;
}

.method-item h3 {
  font-size: 16px;
}

.method-item h3::before {
  content: counter(method) ". ";
  color: var(--accent);
}

.method-item p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-2);
}

.exclude-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.exclude-item {
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-s);
}

.exclude-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-3);
}

.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.related-item {
  padding: 12px 14px;
  font-size: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}

/* 5.2 更新动态 */
.anchor-bar {
  margin: 20px 0 22px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
}

.anchor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.anchor-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-2);
  background: var(--surface-soft);
  border-radius: 20px;
}

.anchor-link:hover {
  color: #fff;
  background: var(--brand);
}

.update-section {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 88px;
}

.update-section .section-head {
  display: block;
  margin-bottom: 16px;
}

.update-section .section-head h2 {
  font-size: 20px;
}

.update-section .section-note {
  margin-top: 6px;
}

.entry-rows {
  display: grid;
  gap: 12px;
}

.entry-row {
  min-width: 0;
}

.entry-row-link {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.entry-row-link:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.entry-thumb {
  width: 84px;
  aspect-ratio: 3 / 4;
  background: var(--surface-soft);
}

.entry-row-body {
  min-width: 0;
}

.entry-row-title {
  font-size: 16px;
  color: var(--text);
}

.entry-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-3);
}

.entry-row-desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-2);
}

.record-note {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.record-note h2 {
  font-size: 20px;
}

.record-note-lead {
  max-width: 760px;
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-2);
}

.record-note-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.record-note-item {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}

.record-note-item h3 {
  font-size: 16px;
}

.record-note-item p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-2);
}

.record-note-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}

/* 5.3 编辑精选 */
.taste-entries {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.taste-entries .section-title {
  margin-bottom: 8px;
}

.taste-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.taste-card {
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
}

.taste-name {
  font-size: 17px;
}

.taste-desc {
  flex: 1 1 auto;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-2);
}

.taste-link {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.album-section {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 88px;
}

.album-head {
  max-width: 760px;
}

.album-title {
  font-size: 20px;
}

.album-basis {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-2);
}

.album-order {
  margin-top: 8px;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-2);
  background: var(--surface-soft);
  border-radius: var(--radius-s);
}

.album-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.album-section .entry-card {
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}

.album-section .entry-cover {
  aspect-ratio: 3 / 4;
  background: var(--surface-soft);
}

.entry-index {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

.album-section .entry-title {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.5;
}

.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.basis-note {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.basis-note .section-title {
  margin-bottom: 10px;
}

.basis-lead {
  max-width: 760px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-2);
}

.basis-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.basis-item {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}

.basis-name {
  font-size: 16px;
}

.basis-item p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-2);
}

/* 5.4 阅读指南 */
.inner-main > .page-title,
.inner-main > section.page-title,
.inner-main > .breadcrumb,
.inner-main > .page-header {
  max-width: 760px;
}

.step-list,
.mobile-read,
.faq-block,
.entry-links {
  max-width: 760px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.step-list h2,
.mobile-read h2,
.faq-block h2,
.entry-links h2 {
  font-size: 20px;
}

.section-lead {
  margin-top: 10px;
}

.step-items {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  counter-reset: step;
}

.step-item {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  counter-increment: step;
}

.step-name {
  font-size: 16px;
}

.step-name::before {
  content: counter(step) ". ";
  color: var(--accent);
}

.step-item p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-2);
}

.mobile-read-body {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 16px;
}

.guide-figure {
  border: 1px solid var(--line);
  background: var(--surface);
}

.guide-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.guide-figure figcaption {
  padding: 8px 12px 10px;
  border-top: 1px solid var(--line);
}

.mobile-notes {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.mobile-note {
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}

.note-name {
  font-size: 15px;
}

.mobile-note p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-2);
}

.faq-item {
  margin-top: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}

.faq-item summary {
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}

.faq-item summary::marker {
  color: var(--accent);
}

.faq-item p {
  padding: 0 16px 14px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-2);
}

.entry-link-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.entry-link-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}

.entry-link-list a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* 5.5 收录规范 */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
  margin-top: 22px;
}

.main-column {
  min-width: 0;
}

.rule-block {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.rule-block h2 {
  font-size: 20px;
}

.rule-block > p {
  max-width: 760px;
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-2);
}

.rule-sub {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}

.rule-sub h3 {
  font-size: 16px;
}

.rule-sub p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-2);
}

.rule-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.rule-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-2);
}

.rule-list li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 2px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.field-figure {
  margin-top: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.field-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.field-figure figcaption {
  padding: 8px 12px 10px;
  border-top: 1px solid var(--line);
}

.field-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.field-item {
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}

.field-item h3 {
  font-size: 15px;
}

.field-item p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-2);
}

.process-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  counter-reset: process;
}

.process-step {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  counter-increment: process;
}

.process-step h3 {
  font-size: 16px;
}

.process-step h3::before {
  content: counter(process) ". ";
  color: var(--accent);
}

.process-step p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-2);
}

.boundary-block {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.boundary-block h2 {
  font-size: 20px;
}

.boundary-block > p {
  max-width: 760px;
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-2);
}

.boundary-block .boundary-list {
  margin-top: 16px;
}

.field-aside {
  position: sticky;
  top: 84px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
}

.field-aside h2 {
  font-size: 17px;
}

.aside-lead {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-3);
}

.aside-list {
  margin-top: 14px;
}

.aside-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.aside-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.aside-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
}

.aside-note {
  margin-top: 12px;
  padding-top: 12px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-3);
  border-top: 1px solid var(--line);
}

.entry-links {
  margin-top: 8px;
}

.entry-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.entry-item a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}

.entry-item a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* 5.6 站点声明 */
.content-narrow {
  max-width: 720px;
}

.scope-block,
.not-doing,
.privacy-note {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.scope-block h2,
.not-doing h2,
.privacy-note h2 {
  font-size: 20px;
}

.scope-block p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-2);
}

.scope-figure {
  margin-top: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.scope-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.scope-figure figcaption {
  padding: 8px 12px 10px;
  border-top: 1px solid var(--line);
}

.not-doing > p,
.privacy-note > p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-2);
}

.not-doing-list,
.privacy-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.not-doing-list li,
.privacy-list li {
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}

.not-doing-list strong,
.privacy-list strong {
  display: block;
  margin-bottom: 2px;
  font-size: 15px;
  color: var(--text);
}

.not-doing .boundary-note {
  margin-top: 14px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-2);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
}

.content-narrow .entry-links {
  max-width: none;
}

/* 5.7 404 */
.error-main {
  padding-top: 40px;
  padding-bottom: 60px;
}

.error-block {
  max-width: 640px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
}

.error-code {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.error-block h1 {
  margin-top: 10px;
  font-size: 26px;
}

.error-text {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-2);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.error-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.error-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  background: var(--surface-soft);
  border-radius: var(--radius-m);
}

.error-links a:hover {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   6. responsive — 断点 1024 / 768 / 480
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  :root {
    --gutter: 20px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
    gap: 24px;
  }

  .hero-copy h1 {
    font-size: 28px;
  }

  .board-layout {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 20px;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 22px;
  }

  .genre-section-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .genre-entries {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 72px;
  }

  .header-inner {
    gap: 10px;
    min-height: 60px;
  }

  .brand-tag {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex: 0 0 auto;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(20, 24, 32, 0.08);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 14px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 12px 10px;
    font-size: 16px;
    border-radius: var(--radius-s);
  }

  .site-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    padding: 22px 0 24px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-copy h1 {
    font-size: 24px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-actions .btn {
    flex: 1 1 160px;
  }

  .board-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .genre-panel {
    position: static;
    padding: 12px;
  }

  .panel-hint {
    margin-bottom: 8px;
  }

  .genre-anchor-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .genre-anchor-list li + li {
    margin-top: 0;
  }

  .genre-anchor {
    min-height: 40px;
    padding: 8px 14px;
    white-space: nowrap;
    background: var(--surface-soft);
    border-left: 0;
    border-radius: 20px;
  }

  .genre-anchor.is-active {
    color: #fff;
    background: var(--brand);
  }

  .strip-grid,
  .entry-points,
  .taste-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .cover-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
  }

  .genre-entries {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .genre-jump-list,
  .anchor-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .genre-jump-link,
  .anchor-link {
    white-space: nowrap;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .field-aside {
    position: static;
  }

  .mobile-read-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .step-list,
  .mobile-read,
  .faq-block,
  .entry-links {
    max-width: none;
  }

  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 18px;
  }

  .footer-inner {
    padding: 28px 16px 18px;
  }

  .page-title {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .hero-copy h1 {
    font-size: 22px;
  }

  .section-title,
  .genre-info h2,
  .method-block h2,
  .exclude-block h2,
  .update-section .section-head h2,
  .record-note h2,
  .album-title,
  .step-list h2,
  .mobile-read h2,
  .faq-block h2,
  .entry-links h2,
  .rule-block h2,
  .boundary-block h2,
  .scope-block h2,
  .not-doing h2,
  .privacy-note h2 {
    font-size: 18px;
  }

  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .genre-entries {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .entry-row-link {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
  }

  .entry-thumb {
    width: 72px;
  }

  .footer-cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .error-block {
    padding: 20px;
  }

  .error-block h1 {
    font-size: 22px;
  }
}

/* 触摸设备不触发悬停位移 */
@media (hover: none) {
  .cover-card a:hover,
  .entry-card-link:hover,
  .entry-row-link:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .cover-card a,
  .entry-card-link,
  .entry-row-link,
  .skip-link,
  .header-inner {
    transition: none;
  }
}
