/* =========================================================
   樱花动漫 · 全站样式表
   结构：base / layout / components / pages / responsive
   ========================================================= */

/* ---------------------------------------------------------
   1. base — 变量、复位、字体与基础元素
   --------------------------------------------------------- */
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-alt: #fbfbfd;
  --text: #1f2430;
  --text-soft: #5b6472;
  --text-mute: #8a93a1;
  --line: #e3e6ec;
  --line-strong: #d2d7e0;
  --accent: #d94f70;
  --accent-soft: #fdeef2;
  --tag-daily: #6b8fd4;
  --tag-fantasy: #7fb08a;
  --tag-mystery: #c99a4e;
  --tag-history: #9a7fc4;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow: 0 1px 2px rgba(31, 36, 48, 0.05);
  --shadow-hover: 0 3px 12px rgba(31, 36, 48, 0.09);
  --shell: 1180px;
  --main-col: 760px;
  --side-col: 340px;
  --gap: 28px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", "WenQuanYi Micro Hei", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}

p {
  margin: 0 0 12px;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd,
dt,
figure,
figcaption {
  margin: 0;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

a:hover {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

time {
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------
   2. layout — 页头、导航、主容器、面包屑、页脚
   --------------------------------------------------------- */

/* 2.1 站内定位条 */
.site-notice {
  background: #eef1f6;
  border-bottom: 1px solid var(--line);
}

.site-notice p {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 8px 24px;
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.6;
}

/* 2.2 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
  flex-shrink: 0;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: #ffffff;
}

.brand-mark::before {
  width: 8px;
  height: 8px;
  top: 9px;
  left: 9px;
}

.brand-mark::after {
  width: 5px;
  height: 5px;
  bottom: 9px;
  right: 9px;
  opacity: 0.75;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.brand-slogan {
  font-size: 12px;
  color: var(--text-mute);
}

/* 2.3 主导航 */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.site-nav {
  display: block;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  height: 68px;
  padding: 0 14px;
  font-size: 15px;
  color: var(--text-soft);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link.is-current {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

/* 2.4 主内容骨架 */
.site-main {
  display: block;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 48px;
}

.home-main {
  padding-top: 24px;
}

.inner-main {
  padding-top: 20px;
}

/* 2.5 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--text-mute);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--text-soft);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--text);
}

/* 2.6 内页标题区 */
.page-header {
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.page-title {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 8px;
}

.page-description {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.7;
  max-width: 860px;
  margin: 0;
}

/* 2.7 内页两栏骨架 */
.page-layout {
  display: block;
}

.layout-shell {
  display: grid;
  grid-template-columns: minmax(0, var(--main-col)) minmax(0, var(--side-col));
  gap: var(--gap);
  align-items: start;
}

/* 2.8 页脚 */
.site-footer {
  margin-top: 12px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 32px 24px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.footer-brand-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.footer-brand-desc {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.7;
  margin: 0;
}

.footer-group-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-list a {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.6;
}

.footer-list a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--line);
}

.footer-copy {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px 24px;
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.6;
}

/* ---------------------------------------------------------
   3. components — 通用组件
   --------------------------------------------------------- */

/* 3.1 section 骨架 */
.section {
  margin-bottom: 40px;
}

.section-head {
  margin-bottom: 18px;
}

.section-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.section-desc,
.section-intro,
.section-lead {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.75;
  margin: 0;
}

.section-desc a,
.section-intro a,
.section-lead a {
  color: var(--accent);
  border-bottom: 1px solid rgba(217, 79, 112, 0.35);
}

.section-desc a:hover,
.section-intro a:hover,
.section-lead a:hover {
  border-bottom-color: var(--accent);
}

/* 3.2 通用卡片面 */
.genre-column,
.cover-card,
.update-log,
.rank-column,
.guide-column,
.side-card,
.aside-block,
.genre-block,
.path-item,
.ranking-item,
.guide-figure,
.updates-media,
.aside-figure,
.error-panel,
.error-path-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* 3.3 站内栏目索引（首页 + 内页通用） */
.site-index {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.index-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.index-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 84px;
}

.index-item:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

.index-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.index-link:hover {
  color: var(--accent);
}

.index-desc {
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.6;
}

/* 3.4 更多链接 */
.more-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
}

.more-link::after {
  content: "›";
  font-size: 16px;
  line-height: 1;
}

.more-link:hover {
  color: #b83c5b;
}

/* 3.5 字段说明列表（dl 通用） */
.term-list,
.basis-list,
.guide-brief,
.genre-meta {
  display: grid;
  grid-template-columns: minmax(96px, auto) minmax(0, 1fr);
  gap: 8px 14px;
  margin: 0;
}

.term-name,
.basis-term,
.guide-term,
.genre-meta dt {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.7;
}

.term-desc,
.basis-desc,
.guide-desc,
.genre-meta dd {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.7;
  margin: 0;
}

/* 3.6 图片容器通用约束 */
figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
}

figcaption {
  font-size: 12px;
  color: var(--text-mute);
  line-height: 1.6;
  margin-top: 8px;
}

/* 3.7 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: #c04264;
  border-color: #c04264;
  color: #ffffff;
}

/* ---------------------------------------------------------
   4. pages — 各页模块
   --------------------------------------------------------- */

/* 4.1 首页 · 首屏索引区 */
.hero-section {
  margin-bottom: 40px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}

.hero-intro {
  padding: 4px 0;
}

.hero-title {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 12px;
}

.hero-summary {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.8;
  margin-bottom: 20px;
}

.hero-paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-path {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.hero-path:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

.hero-path-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  min-height: 88px;
}

.hero-path-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.hero-path-link:hover .hero-path-name {
  color: var(--accent);
}

.hero-path-desc {
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.6;
}

.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-figure {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-figure img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 0;
}

.hero-figure-caption {
  padding: 10px 14px;
  margin: 0;
  font-size: 12px;
  color: var(--text-mute);
  border-top: 1px solid var(--line);
}

.hero-quick,
.hero-latest {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}

.hero-quick-title,
.hero-latest-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 13px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  color: var(--text-soft);
}

.quick-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.hero-latest-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-latest-item {
  border-top: 1px dashed var(--line);
  padding-top: 8px;
}

.hero-latest-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.hero-latest-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.hero-latest-name {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

.hero-latest-link:hover .hero-latest-name {
  color: var(--accent);
}

.hero-latest-genre {
  font-size: 12px;
  color: var(--text-mute);
  white-space: nowrap;
}

/* 4.2 首页 · 题材方向总览 */
.genre-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.genre-column {
  padding: 16px;
  border-top: 3px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.genre-column-daily {
  border-top-color: var(--tag-daily);
}

.genre-column-fantasy {
  border-top-color: var(--tag-fantasy);
}

.genre-column-mystery {
  border-top-color: var(--tag-mystery);
}

.genre-column-history {
  border-top-color: var(--tag-history);
}

.genre-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.genre-trait {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.7;
  margin: 0;
}

.genre-scope {
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.7;
  margin: 0;
}

.genre-rep {
  font-size: 13px;
  color: var(--text-soft);
  margin: 0;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.genre-rep a {
  color: var(--accent);
  font-weight: 500;
}

/* 4.3 首页 · 封面墙 */
.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cover-card {
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.cover-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

.cover-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cover-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
  border-radius: 0;
  background: var(--surface-alt);
}

.cover-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  padding: 12px 14px 4px;
}

.cover-link:hover .cover-name {
  color: var(--accent);
}

.cover-genre {
  font-size: 12px;
  color: var(--text-mute);
  padding: 0 14px;
  margin: 0;
}

.cover-summary {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.65;
  padding: 6px 14px 14px;
  margin: 0;
}

.cover-wall-more {
  margin-top: 16px;
  text-align: right;
}

/* 4.4 首页 · 最近更新记录 */
.update-log {
  padding: 18px 20px;
}

.update-list {
  display: flex;
  flex-direction: column;
}

.update-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) 96px 108px;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.update-row:last-child {
  border-bottom: 0;
}

.update-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-mute);
  white-space: nowrap;
}

.update-name {
  color: var(--text);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.update-genre {
  font-size: 13px;
  color: var(--text-soft);
}

.update-type {
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 2px 10px;
  text-align: center;
  white-space: nowrap;
  justify-self: start;
}

/* 4.5 首页 · 人气榜单与阅读说明摘要 */
.rank-and-guide .section-title {
  margin-bottom: 14px;
}

.rank-guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}

.rank-column,
.guide-column {
  padding: 18px 20px;
}

.column-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.rank-list {
  display: flex;
  flex-direction: column;
}

.rank-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 84px;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-num {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  text-align: center;
}

.rank-row:nth-child(n+4) .rank-num {
  color: var(--text-mute);
}

.rank-name {
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-genre {
  font-size: 12px;
  color: var(--text-mute);
  text-align: right;
}

.rank-more,
.guide-more {
  margin-top: 12px;
  text-align: right;
}

.guide-brief {
  grid-template-columns: minmax(84px, auto) minmax(0, 1fr);
  gap: 8px 12px;
}

/* 4.6 内页 · 题材分类 */
.genre-groups {
  margin-bottom: 32px;
}

.genre-groups > .section-title {
  margin-bottom: 6px;
}

.genre-groups > .section-intro {
  margin-bottom: 20px;
}

.genre-block {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  margin-bottom: 16px;
}

.genre-block:last-child {
  margin-bottom: 0;
}

.genre-block-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
  border-right: 1px dashed var(--line);
}

.genre-block-info .genre-name {
  font-size: 17px;
}

.genre-block-info .genre-trait {
  font-size: 13px;
}

.genre-meta {
  grid-template-columns: minmax(64px, auto) minmax(0, 1fr);
  gap: 6px 10px;
  margin-top: 4px;
}

.genre-entries {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.entry-card {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.entry-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

.entry-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
  border-radius: 0;
  background: var(--surface);
}

.entry-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  padding: 10px 12px 2px;
}

.entry-tag {
  font-size: 12px;
  color: var(--text-mute);
  padding: 0 12px 12px;
  margin: 0;
}

/* 4.7 内页 · 题材之间的关联与切换路径 */
.genre-path {
  margin-bottom: 8px;
}

.genre-path > .section-title {
  margin-bottom: 6px;
}

.genre-path > .section-intro {
  margin-bottom: 16px;
}

.path-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.path-item {
  padding: 14px 16px;
}

.path-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.path-desc {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.7;
  margin: 0;
}

/* 4.8 内页 · 侧栏卡片 */
.side-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.side-card {
  padding: 16px 18px;
}

.side-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.side-card-text {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.7;
  margin: 0 0 10px;
}

.side-stat-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}

.side-stat:last-child {
  border-bottom: 0;
}

.stat-name {
  color: var(--text-soft);
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
}

.side-link-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.side-link-list a {
  font-size: 13px;
  color: var(--accent);
}

.side-step-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-step {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.7;
  padding-left: 14px;
  position: relative;
}

.side-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* 4.9 内页 · 最近更新 */
.updates-main {
  min-width: 0;
}

.updates-main > .section-title {
  margin-bottom: 6px;
}

.updates-main > .section-desc {
  margin-bottom: 18px;
}

.update-group {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 14px;
}

.update-group:last-of-type {
  margin-bottom: 0;
}

.update-group .update-date {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  display: block;
}

.update-group .update-list {
  display: flex;
  flex-direction: column;
}

.update-group .update-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px 108px;
  gap: 12px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.update-group .update-row:last-child {
  border-bottom: 0;
}

.updates-media {
  margin-top: 20px;
  padding: 12px;
  overflow: hidden;
}

.updates-media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.updates-media figcaption {
  margin-top: 10px;
}

.updates-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.aside-block {
  padding: 16px 18px;
}

.aside-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.aside-desc {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.7;
  margin: 0 0 10px;
}

.aside-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.aside-links a {
  font-size: 13px;
  color: var(--accent);
}

.path-row {
  display: block;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.7;
}

.path-row:last-child {
  border-bottom: 0;
}

.path-row a {
  color: var(--accent);
  font-weight: 500;
}

/* 4.10 内页 · 人气榜单 */
.ranking-list-section {
  min-width: 0;
}

.ranking-list-section > .section-title {
  margin-bottom: 6px;
}

.ranking-list-section > .section-lead {
  margin-bottom: 18px;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 16px;
  align-items: start;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.ranking-item:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

.ranking-rank {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.3;
  text-align: center;
}

.ranking-item:nth-child(n+4) .ranking-rank {
  color: var(--text-mute);
  font-size: 19px;
}

.ranking-entry {
  min-width: 0;
}

.ranking-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.ranking-genre {
  font-size: 12px;
  color: var(--text-mute);
  margin: 0 0 6px;
}

.ranking-note {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.7;
  margin: 0;
}

.ranking-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.ranking-aside > .section-title {
  margin-bottom: 0;
}

.aside-lead {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.7;
  margin: 0 0 12px;
}

.aside-figure {
  padding: 12px;
  overflow: hidden;
}

.aside-figure img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.aside-figure figcaption {
  margin-top: 10px;
}

/* 4.11 内页 · 阅读说明 */
.guide-section {
  margin-bottom: 40px;
}

.guide-section > .section-title {
  margin-bottom: 6px;
}

.guide-section > .section-intro {
  margin-bottom: 18px;
}

.guide-figure {
  padding: 12px;
  margin-bottom: 18px;
  overflow: hidden;
}

.guide-figure img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.guide-figure figcaption {
  margin-top: 10px;
}

.field-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.field-table-caption {
  caption-side: top;
  text-align: left;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-soft);
  border-bottom: 1px solid var(--line);
}

.field-table thead th {
  background: var(--surface-alt);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.field-table tbody td {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.7;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.field-table tbody td:first-child {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.guide-note {
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.7;
  margin-top: 14px;
}

.guide-note a {
  color: var(--accent);
  border-bottom: 1px solid rgba(217, 79, 112, 0.35);
}

.guide-note a:hover {
  border-bottom-color: var(--accent);
}

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.boundary-item {
  position: relative;
  padding: 12px 16px 12px 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.75;
}

.boundary-item::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 20px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.feedback-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.feedback-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feedback-step .step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}

.feedback-step .step-text {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.75;
  margin: 0;
}

.feedback-step .step-text a {
  color: var(--accent);
  border-bottom: 1px solid rgba(217, 79, 112, 0.35);
}

.feedback-step .step-text a:hover {
  border-bottom-color: var(--accent);
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
  color: var(--accent);
  flex-shrink: 0;
}

.faq-item[open] .faq-question::after {
  content: "–";
}

.faq-item[open] .faq-question {
  border-bottom: 1px solid var(--line);
}

.faq-answer {
  padding: 12px 16px;
}

.faq-answer p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.8;
}

.column-index {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.column-index-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 84px;
}

.column-index-item:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

.column-index-item a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.column-index-item a:hover {
  color: var(--accent);
}

.column-index-desc {
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.6;
}

/* 4.12 404 页 */
.error-main {
  padding-top: 40px;
  padding-bottom: 60px;
}

.error-panel {
  padding: 32px 28px;
  text-align: center;
  margin-bottom: 32px;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 12px;
}

.error-title {
  font-size: 26px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.error-desc {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.8;
  max-width: 620px;
  margin: 0 auto 22px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.error-paths-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
}

.error-path-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.error-path-item {
  padding: 16px;
}

.error-path-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.error-path-name a {
  color: var(--text);
}

.error-path-name a:hover {
  color: var(--accent);
}

.error-path-desc {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.7;
  margin: 0;
}

/* ---------------------------------------------------------
   5. responsive — 断点适配
   --------------------------------------------------------- */

@media (max-width: 1080px) {
  .layout-shell {
    grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  }

  .genre-block {
    grid-template-columns: minmax(0, 210px) minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
    gap: 22px;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-hover);
    padding: 8px 16px 14px;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    height: auto;
    min-height: 48px;
    padding: 10px 4px;
    border-bottom: 1px solid var(--line);
    border-left: 0;
  }

  .nav-link.is-current {
    border-bottom-color: var(--line);
    border-left: 3px solid var(--accent);
    padding-left: 10px;
  }

  .header-inner {
    position: relative;
    min-height: 60px;
    padding: 0 16px;
  }

  .site-notice p {
    padding: 8px 16px;
  }

  .site-main {
    padding: 0 16px 40px;
  }

  .inner-main {
    padding-top: 16px;
  }

  .hero-layout,
  .rank-guide-layout,
  .layout-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .hero-title,
  .page-title {
    font-size: 24px;
  }

  .section-title {
    font-size: 19px;
  }

  .genre-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .genre-block {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .genre-block-info {
    border-right: 0;
    border-bottom: 1px dashed var(--line);
    padding-right: 0;
    padding-bottom: 12px;
  }

  .genre-entries {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .index-list,
  .column-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .error-path-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    padding: 26px 16px 18px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-copy {
    padding: 14px 16px;
  }

  .update-row {
    grid-template-columns: 96px minmax(0, 1fr) 88px;
  }

  .update-row .update-type {
    grid-column: 3;
  }

  .update-group .update-row {
    grid-template-columns: minmax(0, 1fr) 88px;
  }

  .update-group .update-row .update-type {
    grid-column: 2;
  }

  .field-table thead th,
  .field-table tbody td {
    padding: 10px 12px;
  }
}

@media (max-width: 600px) {
  body.site-body {
    font-size: 14px;
  }

  .site-main {
    padding: 0 14px 32px;
  }

  .hero-title,
  .page-title {
    font-size: 22px;
  }

  .section-title {
    font-size: 18px;
  }

  .hero-paths {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-path-link {
    min-height: 0;
  }

  .genre-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .cover-name {
    font-size: 14px;
    padding: 10px 12px 2px;
  }

  .cover-genre,
  .cover-summary {
    padding-left: 12px;
    padding-right: 12px;
  }

  .update-log {
    padding: 14px;
  }

  .update-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 10px;
    padding: 10px 0;
  }

  .update-row .update-date {
    grid-column: 1;
  }

  .update-row .update-name {
    grid-column: 1 / -1;
    white-space: normal;
  }

  .update-row .update-genre {
    grid-column: 1;
  }

  .update-row .update-type {
    grid-column: 2;
    justify-self: end;
  }

  .update-group {
    padding: 12px 14px;
  }

  .update-group .update-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .update-group .update-row .update-name {
    grid-column: 1 / -1;
    white-space: normal;
  }

  .update-group .update-row .update-genre {
    grid-column: 1;
  }

  .update-group .update-row .update-type {
    grid-column: 2;
    justify-self: end;
  }

  .rank-column,
  .guide-column,
  .side-card,
  .aside-block,
  .genre-block {
    padding: 14px;
  }

  .rank-row {
    grid-template-columns: 28px minmax(0, 1fr) 72px;
    gap: 8px;
  }

  .genre-entries {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .path-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .ranking-item {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .ranking-rank {
    font-size: 19px;
  }

  .ranking-item:nth-child(n+4) .ranking-rank {
    font-size: 17px;
  }

  .term-list,
  .basis-list,
  .guide-brief,
  .genre-meta {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px 0;
  }

  .term-name,
  .basis-term,
  .guide-term,
  .genre-meta dt {
    margin-top: 8px;
  }

  .field-table {
    font-size: 13px;
  }

  .field-table thead th,
  .field-table tbody td {
    padding: 9px 10px;
  }

  .field-table thead th {
    white-space: normal;
  }

  .field-table tbody td:first-child {
    white-space: normal;
  }

  .guide-figure img,
  .updates-media img,
  .aside-figure img {
    height: 170px;
  }

  .index-list,
  .column-index {
    grid-template-columns: minmax(0, 1fr);
  }

  .index-item,
  .column-index-item {
    min-height: 0;
  }

  .error-panel {
    padding: 24px 18px;
  }

  .error-code {
    font-size: 38px;
  }

  .error-title {
    font-size: 21px;
  }

  .error-path-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .footer-brand {
    grid-column: auto;
  }
}

/* 5.1 动效增强（不依赖 JS，不影响初始可见性） */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  a,
  .cover-card,
  .entry-card,
  .ranking-item,
  .hero-path,
  .index-item,
  .column-index-item {
    transition: none;
  }
}
