/* ==========================================================================
   base — 基础变量、重置、全站骨架
   ========================================================================== */
:root {
  --paper: #f8f5f0;
  --paper-deep: #f1ece4;
  --ink: #2e2a27;
  --ink-soft: #4a453f;
  --gray: #77716a;
  --gray-light: #a39c94;
  --accent: #e0704f;
  --accent-deep: #c95c3d;
  --moss: #5d9890;
  --moss-deep: #4a7e77;
  --line: #e7dfd5;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(46, 42, 39, 0.06);
  --shadow-md: 0 4px 14px rgba(46, 42, 39, 0.08);
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --container: 1080px;
  --container-narrow: 860px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-head: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC",
    "SimSun", "STSong", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--moss-deep);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

ul,
ol {
  list-style: none;
}

p {
  margin-bottom: 1em;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  line-height: 1.4;
  color: var(--ink);
  font-weight: 600;
}

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--paper);
}

.site-main {
  flex: 1 0 auto;
}

/* ==========================================================================
   layout — 容器、页头、页脚、面包屑、页面标题
   ========================================================================== */

/* --- 容器 --- */
.header-inner,
.footer-inner,
.home-hero,
.section-block,
.inner-main,
.breadcrumb,
.prev-next-nav .prev-next-inner {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.content-shell {
  max-width: var(--container-narrow);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* --- 页头 --- */
.site-header {
  background-color: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand-link {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}

.brand-link:hover {
  color: inherit;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.brand-tagline {
  font-size: 0.78rem;
  color: var(--gray);
  display: none;
}

/* --- 主导航 --- */
.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover {
  color: var(--accent);
  background-color: rgba(224, 112, 79, 0.08);
}

.nav-link.is-current {
  color: var(--accent-deep);
  font-weight: 600;
  background-color: rgba(224, 112, 79, 0.1);
}

/* 汉堡按钮，桌面隐藏 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* --- 页脚 --- */
.site-footer {
  background-color: #efe9e1;
  border-top: 1px solid var(--line);
  margin-top: auto;
  flex-shrink: 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 40px;
  padding-top: 48px;
  padding-bottom: 40px;
}

.footer-brand-name {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.footer-brand-desc {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.8;
  max-width: 320px;
}

.footer-col-title {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background-color: var(--accent);
  border-radius: 1px;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav-list a {
  font-size: 0.9rem;
  color: var(--ink-soft);
  display: inline-block;
  padding: 2px 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-nav-list a:hover {
  color: var(--accent);
}

.footer-about-text {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.8;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  padding-bottom: 18px;
  text-align: center;
}

.copyright-text {
  font-size: 0.82rem;
  color: var(--gray);
  margin-bottom: 0;
}

/* --- 面包屑 --- */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 18px;
  padding-bottom: 0;
  font-size: 0.85rem;
  color: var(--gray);
}

.breadcrumb a {
  color: var(--gray);
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--gray-light);
  margin: 0 2px;
}

.breadcrumb-current {
  color: var(--ink-soft);
  font-weight: 500;
}

/* --- 页面标题区（内页共用） --- */
.page-header {
  max-width: var(--container);
  margin: 0 auto;
  padding: 36px 24px 28px;
}

.page-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.35;
}

.page-description {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.8;
  max-width: 720px;
  margin-bottom: 0;
}

/* --- 内页主容器 --- */
.inner-main {
  padding-bottom: 60px;
}

/* --- 相关链接行 --- */
.related-links {
  max-width: var(--container);
  margin: 40px auto 0;
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.related-links-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.related-links-item {
  font-size: 0.88rem;
  color: var(--moss-deep);
  border-bottom: 1px dashed rgba(93, 152, 144, 0.4);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.related-links-item:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* --- 分区标题带 --- */
.section-heading {
  margin-bottom: 24px;
}

.section-heading-wrap {
  margin-bottom: 28px;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  position: relative;
  padding-left: 14px;
  line-height: 1.4;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1em;
  bottom: 0.1em;
  width: 4px;
  background-color: var(--accent);
  border-radius: 2px;
}

.section-desc {
  font-size: 0.92rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 0;
  max-width: 640px;
}

/* --- 统一区块间距 --- */
.section-block {
  padding-top: 44px;
  padding-bottom: 44px;
}

/* --- 上一页 / 下一篇导航 --- */
.prev-next-nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 8px 24px 0;
}

.prev-next-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 0;
  padding-bottom: 0;
}

.prev-link,
.next-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  max-width: 46%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.prev-link:hover,
.next-link:hover {
  border-color: var(--moss);
  box-shadow: var(--shadow-sm);
}

.prev-next-label {
  font-size: 0.78rem;
  color: var(--gray);
}

.prev-next-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
}

/* --- 通用文字链接 --- */
.text-link {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--moss-deep);
  border-bottom: 1px solid rgba(93, 152, 144, 0.4);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.text-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* --- 通用标签 --- */
.tag {
  display: inline-block;
  font-size: 0.75rem;
  line-height: 1;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 500;
}

.tag-love {
  background-color: rgba(224, 112, 79, 0.14);
  color: var(--accent-deep);
}

.tag-heal {
  background-color: rgba(93, 152, 144, 0.14);
  color: var(--moss-deep);
}

.tag-mystery {
  background-color: rgba(93, 108, 152, 0.12);
  color: #4a5a80;
}

.tag-life {
  background-color: rgba(152, 138, 93, 0.14);
  color: #6b5c33;
}

.tag-action {
  background-color: rgba(224, 112, 79, 0.1);
  color: var(--accent-deep);
}

/* ==========================================================================
   components — 通用组件
   ========================================================================== */

/* --- 按钮 --- */
.btn {
  display: inline-block;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 22px;
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, transform 0.2s ease;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--white);
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background-color: var(--accent-deep);
  border-color: var(--accent-deep);
  color: var(--white);
}

.btn-secondary {
  background-color: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--gray-light);
}

.btn-secondary:hover {
  border-color: var(--moss);
  color: var(--moss-deep);
}

/* --- 首页 hero 按钮 --- */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-hero {
  display: inline-block;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 20px;
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, transform 0.2s ease;
  background-color: var(--white);
  color: var(--ink-soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.btn-hero:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-hero:first-child {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.btn-hero:first-child:hover {
  background-color: var(--accent-deep);
  border-color: var(--accent-deep);
}

/* --- 图片容器 --- */
figure {
  margin: 0;
}

figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

figcaption {
  font-size: 0.8rem;
  color: var(--gray);
  line-height: 1.6;
  margin-top: 6px;
}

/* --- 首页内容图片 --- */
.content-media {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.content-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-media-primary {
  margin-top: 28px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.content-media-primary img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

.content-media-primary figcaption {
  padding: 6px 0 0;
}

/* --- 首页模块 --- */
.section-more {
  margin-top: 20px;
  text-align: right;
  font-size: 0.88rem;
  margin-bottom: 0;
}

.section-more a {
  font-weight: 600;
  color: var(--moss-deep);
  border-bottom: 1px dashed rgba(93, 152, 144, 0.4);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.section-more a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* --- 首页侧栏布局 --- */
.page-layout {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ==========================================================================
   pages — 各页面专属
   ========================================================================== */

/* ===================== 首页 index.html ===================== */

/* --- 首屏 --- */
.home-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding-top: 52px;
  padding-bottom: 24px;
}

.hero-copy {
  padding-right: 8px;
}

.hero-title {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 14px;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 10px;
}

.hero-note {
  font-size: 0.92rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 20px;
}

.hero-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background-color: var(--paper-deep);
}

.hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* --- 最近更新摘要 --- */
.home-updates {
  border-top: 1px solid var(--line);
}

.update-preview-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.update-preview-item {
  display: grid;
  grid-template-columns: 88px 90px 1fr;
  align-items: baseline;
  gap: 18px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.2s ease;
}

.update-preview-item:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

.update-date {
  font-size: 0.85rem;
  color: var(--gray);
  font-variant-numeric: tabular-nums;
}

.update-text {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 0;
}

.update-text a {
  color: var(--ink-soft);
  border-bottom: 1px dashed rgba(93, 152, 144, 0.4);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.update-text a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* --- 人气榜前三 --- */
.home-ranking {
  border-top: 1px solid var(--line);
  background-color: rgba(255, 255, 255, 0.35);
}

.ranking-preview-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ranking-preview-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.2s ease;
}

.ranking-preview-item:last-child {
  border-bottom: none;
}

.ranking-preview-item:hover {
  background-color: rgba(255, 255, 255, 0.6);
}

.rank-number {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  min-width: 44px;
  text-align: center;
}

.rank-1 .rank-number {
  color: var(--accent);
}

.rank-2 .rank-number {
  color: var(--moss);
}

.rank-3 .rank-number {
  color: var(--gray);
}

.rank-body {
  flex: 1;
}

.rank-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  display: inline-block;
  margin-right: 10px;
}

.rank-note {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.7;
  margin-top: 6px;
  margin-bottom: 0;
}

/* --- 题材入口 --- */
.home-themes {
  border-top: 1px solid var(--line);
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.theme-card {
  display: block;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease,
    transform 0.2s ease;
}

.theme-card:hover {
  border-color: var(--moss);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.theme-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  position: relative;
  display: inline-block;
}

.theme-name::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.theme-card:hover .theme-name::after {
  transform: scaleX(1);
}

.theme-hint {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 0;
}

/* --- 新读者去向 --- */
.home-start {
  border-top: 1px solid var(--line);
  background-color: rgba(255, 255, 255, 0.35);
}

.start-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.start-card {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.start-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.start-step {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 8px;
  letter-spacing: 0.08em;
}

.start-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.start-text {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 14px;
}

.start-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--moss-deep);
  border-bottom: 1px dashed rgba(93, 152, 144, 0.4);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.start-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ===================== 题材书架 ticaishujia.html ===================== */

.page-ticaishujia {
  background-color: var(--paper);
}

/* 书架页布局：左索引 + 右内容 */
.page-ticaishujia .page-layout {
  display: flex;
  align-items: flex-start;
  gap: 36px;
}

.genre-index {
  flex-shrink: 0;
  width: 200px;
  position: sticky;
  top: 90px;
}

.genre-index-inner {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 16px;
}

.genre-index-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.06em;
}

.genre-index-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.genre-index-item a {
  display: block;
  font-size: 0.88rem;
  color: var(--ink-soft);
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.genre-index-item a:hover {
  background-color: rgba(224, 112, 79, 0.08);
  color: var(--accent-deep);
}

.genre-index-tip {
  font-size: 0.8rem;
  color: var(--gray);
  line-height: 1.6;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 10px;
  margin-bottom: 0;
}

.genre-content {
  flex: 1;
  min-width: 0;
}

/* 书架说明 */
.genre-guide {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 36px;
}

.genre-guide .section-title {
  margin-bottom: 10px;
}

.genre-guide .section-desc {
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.genre-guide .section-desc:last-child {
  margin-bottom: 0;
}

/* 单个题材分区 */
.genre-block {
  margin-bottom: 48px;
}

.genre-block-head {
  margin-bottom: 18px;
}

.genre-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.genre-tag {
  display: inline-block;
  background-color: var(--accent);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  line-height: 1.4;
}

.genre-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0;
}

.genre-intro {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 0;
}

.genre-figure {
  margin-bottom: 18px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--paper-deep);
}

.genre-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.work-card-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.work-card {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.work-card:hover {
  border-color: var(--moss);
  box-shadow: var(--shadow-sm);
}

.work-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.45;
}

.work-card-tags {
  font-size: 0.78rem;
  color: var(--moss-deep);
  margin-bottom: 8px;
}

.work-card-desc {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 0;
}

/* 题材交叉参考 */
.genre-cross {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
}

.genre-cross-desc {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 18px;
}

.genre-cross-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.genre-cross-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  background-color: rgba(248, 245, 240, 0.6);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}

.genre-cross-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-soft);
  min-width: 100px;
  flex-shrink: 0;
  margin-bottom: 0;
}

.genre-cross-item p {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 0;
  flex: 1;
}

/* ===================== 更新手账 gengxin-shouzhang.html ===================== */

.page-gengxin-shouzhang {
  background-color: var(--paper);
}

.log-hero-figure {
  max-width: var(--container);
  margin: 0 auto 32px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--paper-deep);
  padding-left: 24px;
  padding-right: 24px;
}

.log-hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 8;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.log-hero-caption {
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 8px;
  text-align: right;
}

/* 手账页布局：左侧栏 + 右侧主内容 */
.page-gengxin-shouzhang .page-layout {
  display: flex;
  align-items: flex-start;
  gap: 36px;
}

.log-aside {
  flex-shrink: 0;
  width: 260px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 90px;
}

.aside-card {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
}

.aside-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 8px;
}

.aside-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24px;
  height: 2px;
  background-color: var(--accent);
  border-radius: 1px;
}

.aside-text {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 12px;
}

.aside-tip-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aside-tip-item {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.7;
  padding-left: 16px;
  position: relative;
}

.aside-tip-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--moss);
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}

.history-item:last-child {
  border-bottom: none;
}

.history-date {
  font-size: 0.78rem;
  color: var(--gray-light);
  font-variant-numeric: tabular-nums;
}

.history-text {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.log-main-content {
  flex: 1;
  min-width: 0;
}

.log-section {
  margin-bottom: 40px;
}

.log-list {
  border-top: 1px solid var(--line);
}

.log-entry {
  display: grid;
  grid-template-columns: 92px 80px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.2s ease;
}

.log-entry:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

.log-date {
  font-size: 0.85rem;
  color: var(--gray);
  font-variant-numeric: tabular-nums;
}

.log-tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 20px;
  background-color: rgba(93, 152, 144, 0.12);
  color: var(--moss-deep);
  line-height: 1.5;
  justify-self: start;
}

.log-text {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 0;
}

.adjust-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.adjust-entry {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}

.adjust-date {
  font-size: 0.85rem;
  color: var(--gray);
  font-variant-numeric: tabular-nums;
}

.adjust-text {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 0;
}

.section-note {
  font-size: 0.88rem;
  color: var(--gray);
  margin-top: 16px;
  margin-bottom: 0;
}

/* 手账桥接区 */
.log-bridge-section {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.bridge-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.bridge-card {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bridge-card:hover {
  border-color: var(--moss);
  box-shadow: var(--shadow-sm);
}

.bridge-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.bridge-card-text {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 12px;
}

/* ===================== 人气榜单 renqi-bangdan.html ===================== */

.page-renqi-bangdan {
  background-color: var(--paper);
}

.ranking-rule {
  max-width: var(--container);
  margin: 0 auto 36px;
  padding: 0 24px;
}

.ranking-rule .section-heading {
  margin-bottom: 14px;
}

.ranking-rule-content {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.ranking-rule-content p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 8px;
}

.ranking-rule-content p:last-child {
  margin-bottom: 0;
}

.ranking-list-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.ranking-hero-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 28px;
  background-color: var(--paper-deep);
}

.ranking-hero-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 8;
  object-fit: cover;
}

.ranking-list {
  border-top: 1px solid var(--line);
}

.ranking-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 6px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.2s ease;
}

.ranking-item:hover {
  background-color: rgba(255, 255, 255, 0.55);
}

.ranking-number {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gray);
  text-align: center;
  line-height: 1.2;
}

.ranking-item:nth-child(1) .ranking-number {
  color: var(--accent);
}

.ranking-item:nth-child(2) .ranking-number {
  color: var(--moss);
}

.ranking-item:nth-child(3) .ranking-number {
  color: var(--ink-soft);
}

.ranking-info {
  min-width: 0;
}

.ranking-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
  display: inline-block;
  margin-right: 8px;
}

.ranking-tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 20px;
  background-color: rgba(93, 152, 144, 0.12);
  color: var(--moss-deep);
  line-height: 1.5;
}

.ranking-reason {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.7;
  margin-top: 4px;
  margin-bottom: 0;
}

.ranking-beyond {
  max-width: var(--container);
  margin: 40px auto 0;
  padding: 0 24px;
}

.beyond-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.beyond-card {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.beyond-card:hover {
  border-color: var(--moss);
  box-shadow: var(--shadow-sm);
}

.beyond-card h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.beyond-card p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 10px;
}

/* ===================== 阅读路径 yuedu-lujing.html ===================== */

.page-yuedu-lujing {
  background-color: var(--paper);
}

.path-overview {
  max-width: var(--container);
  margin: 0 auto 44px;
  padding: 0 24px;
}

.path-map-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.path-map-item {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.path-map-item:hover {
  border-color: var(--moss);
  box-shadow: var(--shadow-sm);
}

.map-step-num {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  background-color: rgba(224, 112, 79, 0.1);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  line-height: 26px;
  text-align: center;
  margin-bottom: 10px;
}

.map-step-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.map-step-text {
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 0;
}

.path-steps-section {
  max-width: var(--container);
  margin: 0 auto 44px;
  padding: 0 24px;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.step-block {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.step-block:hover {
  border-color: var(--moss);
  box-shadow: var(--shadow-sm);
}

.step-content-wrap {
  min-width: 0;
}

.step-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.step-number {
  display: inline-block;
  background-color: var(--accent);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.step-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0;
}

.step-text {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 10px;
}

.step-text a {
  color: var(--moss-deep);
  border-bottom: 1px dashed rgba(93, 152, 144, 0.4);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.step-text a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.step-entry-link {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--moss-deep);
  border-bottom: 1px solid rgba(93, 152, 144, 0.4);
  padding-bottom: 2px;
  margin-top: 4px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.step-entry-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.step-figure {
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--paper-deep);
}

.step-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.step-caption {
  font-size: 0.78rem;
  color: var(--gray);
  padding: 6px 2px 0;
  text-align: center;
}

.path-tips {
  max-width: var(--container);
  margin: 0 auto 44px;
  padding: 0 24px;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tip-card {
  background-color: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: border-color 0.2s ease;
}

.tip-card:hover {
  border-color: var(--moss);
}

.tip-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.tip-text {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ===================== 常见问题 wenti-jieda.html ===================== */

.page-wenti-jieda {
  background-color: var(--paper);
}

.issue-section {
  max-width: var(--container);
  margin: 0 auto 44px;
  padding: 0 24px;
}

/* 现象选择 */
.symptom-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.symptom-card {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.2s ease,
    transform 0.2s ease;
}

.symptom-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.symptom-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  position: relative;
  padding-left: 14px;
}

.symptom-card-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 3px;
  background-color: var(--accent);
  border-radius: 2px;
}

.symptom-card-text {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 12px;
}

/* 排查分支 */
.branch-detail .section-heading-wrap {
  margin-bottom: 24px;
}

.branch-block {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  align-items: center;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 16px;
  transition: border-color 0.2s ease;
}

.branch-block:hover {
  border-color: var(--moss);
}

.branch-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--paper-deep);
}

.branch-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.branch-content {
  min-width: 0;
}

.branch-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  position: relative;
  padding-left: 14px;
}

.branch-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 4px;
  background-color: var(--moss);
  border-radius: 2px;
}

.branch-text {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 8px;
}

.branch-text:last-of-type {
  margin-bottom: 12px;
}

.branch-next {
  font-size: 0.88rem;
  margin-bottom: 0;
}

/* 详细问答 */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: var(--moss);
}

.faq-item[open] {
  border-color: var(--moss);
}

.faq-question {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  padding: 16px 20px;
  position: relative;
  list-style: none;
  transition: color 0.2s ease;
  line-height: 1.6;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--accent);
  font-weight: 400;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-item[open] .faq-question {
  color: var(--accent-deep);
  border-bottom: 1px solid var(--line);
}

.faq-answer {
  padding: 14px 20px 18px;
}

.faq-answer p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 8px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* ===================== 版权说明 banquan-shuoming.html ===================== */

.page-banquan-shuoming {
  background-color: var(--paper);
}

.page-intro-figure {
  max-width: var(--container-narrow);
  margin: 0 auto 28px;
  padding: 0 24px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.page-intro-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 8;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.content-section {
  margin-bottom: 44px;
}

.content-section .section-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.section-lead {
  font-size: 0.92rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 18px;
}

.text-block p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.9;
  margin-bottom: 14px;
}

.note-box {
  background-color: rgba(93, 152, 144, 0.08);
  border-left: 4px solid var(--moss);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin-top: 18px;
}

.note-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--moss-deep);
  margin-bottom: 6px;
}

.note-box p:last-child {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 0;
}

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.boundary-item {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  transition: border-color 0.2s ease;
}

.boundary-item:hover {
  border-color: var(--moss);
}

.boundary-item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.boundary-item p {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 0;
}

.rule-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rule-item {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  transition: border-color 0.2s ease;
}

.rule-item:hover {
  border-color: var(--moss);
}

.rule-item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.rule-item p {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 0;
}

.feedback-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feedback-step {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  position: relative;
}

.feedback-step .step-number {
  display: inline-block;
  background-color: var(--moss);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.8rem;
  width: 26px;
  height: 26px;
  line-height: 26px;
  text-align: center;
  border-radius: 50%;
  margin-bottom: 10px;
}

.feedback-step p {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 0;
}

.feedback-note {
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 16px;
  margin-bottom: 0;
}

/* 版权页关联链接 */
.relation-section {
  margin-top: 12px;
}

.relation-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.relation-link {
  display: block;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: border-color 0.2s ease, color 0.2s ease,
    box-shadow 0.2s ease;
}

.relation-link:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
  box-shadow: var(--shadow-sm);
}

/* ===================== 404.html ===================== */

.site-error {
  background-color: var(--paper);
}

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 48px 24px;
}

.error-section {
  text-align: center;
  max-width: 520px;
  width: 100%;
}

.error-code {
  font-family: var(--font-head);
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 8px;
}

.error-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.error-desc {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 24px;
}

.error-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.error-tip {
  font-size: 0.85rem;
  color: var(--gray);
}

.error-tip a {
  color: var(--moss-deep);
  border-bottom: 1px dashed rgba(93, 152, 144, 0.4);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.error-tip a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ==========================================================================
   responsive — 响应式
   ========================================================================== */

/* --- 平板及以下 1024px --- */
@media (max-width: 1024px) {
  .genre-index {
    width: 180px;
  }

  .log-aside {
    width: 230px;
  }

  .theme-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .symptom-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- 手机端 768px --- */
@media (max-width: 768px) {
  /* 页头 */
  .header-inner {
    min-height: 60px;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: flex;
    order: 3;
    margin-left: auto;
  }

  .brand-link {
    order: 1;
  }

  .site-nav {
    order: 4;
    width: 100%;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 12px;
    border-top: 1px solid var(--line);
    margin-top: 8px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 12px 8px;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(231, 223, 213, 0.6);
    border-radius: 0;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* 页脚 */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 36px;
    padding-bottom: 28px;
  }

  .footer-brand-desc {
    max-width: 100%;
  }

  /* 首页 */
  .home-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 32px;
  }

  .hero-copy {
    padding-right: 0;
  }

  .hero-title {
    font-size: 1.7rem;
  }

  .update-preview-item {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 2px;
  }

  .update-date {
    font-size: 0.8rem;
  }

  .theme-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .start-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ranking-preview-item {
    padding: 14px 2px;
  }

  .content-media-primary {
    margin-top: 18px;
  }

  /* 内页通用 */
  .page-header {
    padding: 24px 20px 20px;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .page-description {
    font-size: 0.92rem;
  }

  .breadcrumb {
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 14px;
  }

  .inner-main {
    padding-bottom: 40px;
  }

  .related-links {
    margin-top: 28px;
    padding: 16px 20px;
    gap: 6px 14px;
  }

  .section-block {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  /* 题材书架：左索引收为顶部横条 */
  .page-ticaishujia .page-layout {
    flex-direction: column;
    gap: 20px;
  }

  .genre-index {
    width: 100%;
    position: static;
    order: 1;
  }

  .genre-index-inner {
    padding: 14px;
  }

  .genre-index-title {
    display: none;
  }

  .genre-index-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .genre-index-item a {
    font-size: 0.85rem;
    padding: 6px 12px;
    background-color: var(--paper);
    border-radius: 20px;
    border: 1px solid var(--line);
  }

  .genre-index-item a:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--white);
  }

  .genre-index-tip {
    display: none;
  }

  .genre-content {
    order: 2;
  }

  .genre-figure img {
    aspect-ratio: 16 / 9;
  }

  .work-card-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .genre-cross-item {
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
  }

  .genre-cross-name {
    min-width: 0;
  }

  /* 更新手账：侧栏移到主内容之后 */
  .page-gengxin-shouzhang .page-layout {
    flex-direction: column;
    gap: 28px;
  }

  .log-aside {
    width: 100%;
    position: static;
    order: 2;
    flex-direction: column;
  }

  .log-main-content {
    order: 1;
  }

  .log-hero-figure {
    padding-left: 20px;
    padding-right: 20px;
  }

  .log-entry {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px 2px;
  }

  .log-date {
    font-size: 0.8rem;
  }

  .log-tag {
    justify-self: start;
    margin-top: 2px;
  }

  .adjust-entry {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px 2px;
  }

  .bridge-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* 人气榜单 */
  .ranking-item {
    grid-template-columns: 40px 1fr;
    gap: 12px;
    padding: 14px 2px;
  }

  .ranking-item .text-link {
    grid-column: 2;
    justify-self: start;
    margin-top: 2px;
  }

  .beyond-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* 阅读路径 */
  .path-map-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .step-block {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
  }

  .step-figure {
    order: -1;
  }

  .step-figure img {
    aspect-ratio: 16 / 9;
  }

  .tips-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .prev-next-inner {
    flex-direction: column;
    gap: 10px;
  }

  .prev-link,
  .next-link {
    max-width: 100%;
  }

  /* 常见问题 */
  .symptom-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .branch-block {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }

  .branch-media {
    order: -1;
  }

  .branch-media img {
    aspect-ratio: 16 / 9;
  }

  /* 版权页 */
  .feedback-steps {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .relation-links {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .page-intro-figure {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* --- 小屏手机 480px --- */
@media (max-width: 480px) {
  .brand-tagline {
    display: none;
  }

  .theme-grid {
    grid-template-columns: 1fr;
  }

  .symptom-grid {
    grid-template-columns: 1fr;
  }

  .path-map-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-hero {
    text-align: center;
  }

  .ranking-preview-item {
    flex-direction: column;
    gap: 4px;
  }

  .rank-number {
    font-size: 1.3rem;
    min-width: 0;
    text-align: left;
  }

  .work-card-list {
    grid-template-columns: 1fr;
  }

  .ranking-number {
    font-size: 1.1rem;
  }
}
