/* ==========================================================================
   jmtt · 禁漫天堂漫画阅读 — 整站样式
   手工艺目录风：米白底、深炭字、陶土橙强调、鼠尾草绿辅助
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. BASE — 变量、重置、全局基础
   -------------------------------------------------------------------------- */

:root {
  --bg: #faf6f0;
  --bg-soft: #f3ede3;
  --bg-card: #fffdf8;
  --text: #26221c;
  --text-soft: #6b6257;
  --accent: #c25b3a;
  --accent-dark: #a84a2c;
  --accent-soft: #f6e3d8;
  --sage: #7a8a6e;
  --sage-soft: #e7ece2;
  --border: #e5ddd0;
  --border-strong: #d6c9b8;
  --tag-yellow: #f2e3c6;
  --tag-yellow-text: #7a5c2e;
  --tag-urban: #dce8f0;
  --tag-urban-text: #3d5a6e;
  --tag-fantasy: #e8dff0;
  --tag-fantasy-text: #5c4472;
  --tag-sci: #dcefe6;
  --tag-sci-text: #2f6b55;
  --tag-romance: #f6dfe3;
  --tag-romance-text: #8a4352;
  --tag-adventure: #f0e8d5;
  --tag-adventure-text: #6b5a2e;
  --tag-mystery: #e2e2e8;
  --tag-mystery-text: #48485e;
  --tag-daily: #e8ede0;
  --tag-daily-text: #4f5e3a;
  --tag-history: #efe4d8;
  --tag-history-text: #6e4a2e;
  --tag-serial: #e6f0e2;
  --tag-serial-text: #3f6b3a;
  --tag-finished: #e8e2d8;
  --tag-finished-text: #6b5a44;
  --tag-short: #f0e6d8;
  --tag-short-text: #7a5a30;

  --header-h: 64px;
  --shell-w: 1200px;
  --inner-w: 1160px;
  --content-w: 780px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-num: "SF Mono", "Cascadia Code", Consolas, "Liberation Mono", monospace;

  --shadow-sm: 0 1px 2px rgba(38, 34, 28, 0.04);
  --shadow-md: 0 4px 12px rgba(38, 34, 28, 0.06);
  --shadow-lg: 0 8px 24px rgba(38, 34, 28, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-dark);
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

strong {
  font-weight: 700;
}

.sr-only,
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   2. LAYOUT — 外壳、容器、骨架
   -------------------------------------------------------------------------- */

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--bg);
}

/* ---- 页头 ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background-color: rgba(250, 246, 240, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--shell-w);
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
}

.brand-link::before {
  content: "jmtt";
  display: inline-block;
  padding: 2px 10px;
  margin-right: 8px;
  font-family: var(--font-num);
  font-size: 14px;
  font-weight: 700;
  color: var(--bg);
  background-color: var(--accent);
  border-radius: var(--radius-sm);
}

.brand-link:hover {
  color: var(--text);
}

/* ---- 主导航 ---- */

.site-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav .nav-list li {
  position: relative;
}

.site-nav .nav-list a {
  display: block;
  padding: 8px 13px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav .nav-list a:hover {
  color: var(--text);
}

.site-nav .nav-list a.is-current {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* 汉堡按钮 — 默认隐藏 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background-color: var(--text);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---- 主内容 ---- */

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.home-main {
  max-width: var(--shell-w);
  margin: 0 auto;
  padding: 0 20px 60px;
}

.inner-main {
  width: 100%;
  max-width: var(--inner-w);
  margin: 0 auto;
  padding: 0 20px 64px;
}

/* ---- 面包屑 ---- */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 22px 0 0;
  font-size: 13px;
  color: var(--text-soft);
}

.breadcrumb a {
  color: var(--text-soft);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--border-strong);
}

.breadcrumb-current {
  color: var(--text);
  font-weight: 500;
}

/* ---- 页标题区 ---- */

.page-header {
  padding: 18px 0 26px;
}

.page-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
}

.page-description {
  max-width: 640px;
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-soft);
}

/* ---- 页脚 ---- */

.site-footer {
  flex-shrink: 0;
  background-color: var(--bg-soft);
  border-top: 1px solid var(--border);
}

.footer-shell {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: var(--shell-w);
  margin: 0 auto;
  padding: 48px 20px 36px;
}

.footer-brand {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}

.footer-tagline {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
}

.footer-col h4 {
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul a {
  display: inline-block;
  padding: 2px 0;
  font-size: 14px;
  color: var(--text-soft);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-col ul a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  max-width: var(--shell-w);
  margin: 0 auto;
  padding: 18px 20px;
  font-size: 13px;
  color: var(--text-soft);
  text-align: center;
}

/* ---- 通用侧栏布局 ---- */

.sidebar-left {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.sidebar-left .page-layout,
.sidebar-left .layout-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

/* 侧栏在左、主内容在右 */
.sidebar-left > aside,
.sidebar-left > .manual-aside,
.sidebar-left > .faq-index,
.sidebar-left > .page-aside {
  grid-column: 1;
}

.sidebar-left > main,
.sidebar-left > .page-content,
.sidebar-left > .faq-content {
  grid-column: 2;
  min-width: 0;
}

/* 侧栏内部卡片 */
.aside-card {
  padding: 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.aside-card h2 {
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 700;
}

.aside-card ul li {
  margin-bottom: 6px;
}

.aside-card ul a {
  font-size: 14px;
  color: var(--text-soft);
}

.aside-card ul a:hover {
  color: var(--accent);
}

/* ---- 通用 section 标题 ---- */

.section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

.section-desc {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-soft);
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-heading h2 {
  font-size: 22px;
  font-weight: 800;
}

.section-note {
  font-size: 13px;
  color: var(--text-soft);
}

/* ---- 更多链接 ---- */

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.more-link::after {
  content: "→";
  font-size: 15px;
  transition: transform 0.2s ease;
}

.more-link:hover::after {
  transform: translateX(3px);
}

/* ---- 通用按钮 ---- */

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  border-radius: var(--radius-md);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  color: #fff;
  background-color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.btn-secondary {
  color: var(--text);
  background-color: transparent;
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---- 滚动出现动画（不影响初始可见性） ---- */

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-section,
  .subject-strip,
  .recent-updates,
  .popular-summary,
  .reading-paths,
  .site-note-strip,
  .subject-groups,
  .update-list,
  .ranking-section,
  .completed-grid,
  .manual-section,
  .faq-group,
  .position-statement,
  .principle-list,
  .boundary-box {
    animation: rise-in 0.5s ease both;
  }
}

/* --------------------------------------------------------------------------
   3. COMPONENTS — 通用组件
   -------------------------------------------------------------------------- */

/* ---- 标签 ---- */

.tag {
  display: inline-block;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  border-radius: 999px;
  white-space: nowrap;
}

.tag-urban {
  color: var(--tag-urban-text);
  background-color: var(--tag-urban);
}

.tag-fantasy {
  color: var(--tag-fantasy-text);
  background-color: var(--tag-fantasy);
}

.tag-sci,
.tag-sci-fi {
  color: var(--tag-sci-text);
  background-color: var(--tag-sci);
}

.tag-romance {
  color: var(--tag-romance-text);
  background-color: var(--tag-romance);
}

.tag-adventure {
  color: var(--tag-adventure-text);
  background-color: var(--tag-adventure);
}

.tag-mystery {
  color: var(--tag-mystery-text);
  background-color: var(--tag-mystery);
}

.tag-daily {
  color: var(--tag-daily-text);
  background-color: var(--tag-daily);
}

.tag-history {
  color: var(--tag-history-text);
  background-color: var(--tag-history);
}

.tag-status {
  display: inline-block;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  border-radius: 999px;
  white-space: nowrap;
}

.tag-status.status-serial {
  color: var(--tag-serial-text);
  background-color: var(--tag-serial);
}

.tag-status.status-finished {
  color: var(--tag-finished-text);
  background-color: var(--tag-finished);
}

.tag-status.status-short {
  color: var(--tag-short-text);
  background-color: var(--tag-short);
}

/* ---- 漫画封面卡（题材导览用） ---- */

.work-card {
  display: block;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.work-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.work-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.work-card figcaption {
  padding: 10px 12px 12px;
}

.work-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-soft);
}

.work-tags .tag {
  padding: 1px 8px;
  font-size: 11px;
}

/* ---- 漫画封面卡（完本归档用） ---- */

.completed-grid .work-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.completed-grid .work-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.completed-grid .work-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.completed-grid .work-info {
  padding: 12px;
}

.completed-grid .work-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}

.completed-grid .work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.completed-grid .work-status {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-soft);
}

/* ---- 内容媒体 ---- */

.content-media {
  margin: 20px 0;
}

.content-media img {
  width: 100%;
  border-radius: var(--radius-md);
}

.content-media figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-soft);
}

.content-media-inline {
  max-width: 640px;
}

/* ---- 手风琴（FAQ） ---- */

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background-color: var(--bg-card);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 400;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 18px 16px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-soft);
}

.faq-item p a {
  font-weight: 600;
}

/* ---- 相邻栏目导航 ---- */

.adjacent-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.adjacent-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.adjacent-nav a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---- 相关链接（通用） ---- */

.related-links {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.related-links-label {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.related-links-item {
  display: inline-block;
  margin-right: 16px;
  font-size: 14px;
  color: var(--text-soft);
}

.related-links-item:hover {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   4. PAGES — 首页
   -------------------------------------------------------------------------- */

/* ---- Hero ---- */

.hero-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0 48px;
}

.hero-copy h1 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
}

.hero-lead {
  max-width: 420px;
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-figure {
  position: relative;
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

/* ---- 题材快捷条 ---- */

.subject-strip {
  padding: 28px 0 8px;
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.strip-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 14px;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.strip-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.strip-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.strip-desc {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-soft);
}

/* ---- 最近更新 ---- */

.recent-updates {
  padding: 40px 0 8px;
}

.update-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.update-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.update-item:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.update-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
}

.update-link img {
  flex-shrink: 0;
  width: 56px;
  height: 74px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.update-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.work-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.update-date {
  font-family: var(--font-num);
  font-size: 12px;
  color: var(--text-soft);
}

/* ---- 人气榜单摘要 ---- */

.popular-summary {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
  padding: 40px 0 8px;
}

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rank-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.rank-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-num);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  background-color: var(--accent-soft);
  border-radius: 50%;
}

.rank-list li a {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-list li a:hover {
  color: var(--accent);
}

.rank-tag {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--text-soft);
}

.editor-pick {
  margin-top: 16px;
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
  background-color: var(--sage-soft);
  border-left: 3px solid var(--sage);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.editor-pick a {
  font-weight: 600;
  color: var(--sage);
}

.editor-pick a:hover {
  color: var(--accent);
}

.popular-copy .more-link {
  margin-top: 16px;
}

/* ---- 阅读路径 ---- */

.reading-paths {
  padding: 40px 0 8px;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.path-card {
  position: relative;
  padding: 24px 20px 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.path-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.path-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  font-family: var(--font-num);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  background-color: var(--accent-soft);
  border-radius: 50%;
}

.path-card h3 {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
}

.path-card p {
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-soft);
}

.path-card a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
}

.path-card a::after {
  content: "→";
  transition: transform 0.2s ease;
}

.path-card a:hover::after {
  transform: translateX(3px);
}

/* ---- 站务说明条 ---- */

.site-note-strip {
  margin-top: 40px;
  padding: 16px 20px;
  background-color: var(--sage-soft);
  border: 1px solid #d5e0cf;
  border-radius: var(--radius-md);
}

.site-note-strip p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
}

.site-note-strip a {
  font-weight: 600;
  color: var(--sage);
}

.site-note-strip a:hover {
  color: var(--accent);
}

/* ---- 首页相关链接 ---- */

.home-main .related-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}

/* --------------------------------------------------------------------------
   5. PAGES — 题材导览
   -------------------------------------------------------------------------- */

.subject-index {
  margin-bottom: 40px;
}

.index-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.index-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.index-list a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.subject-groups {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.subject-group {
  padding: 24px;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  scroll-margin-top: 80px;
}

.group-header {
  margin-bottom: 16px;
}

.group-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
}

.group-title::before {
  content: attr(data-index);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background-color: var(--accent-soft);
  border-radius: 50%;
}

.group-desc {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-soft);
}

.group-works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.group-note {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-soft);
}

.related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.related-list a {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.related-list a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   6. PAGES — 更新追踪
   -------------------------------------------------------------------------- */

.legend-module {
  margin-bottom: 36px;
}

.legend-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.legend-item p {
  font-size: 13px;
  color: var(--text-soft);
}

.update-group {
  margin-bottom: 32px;
}

.update-date-heading {
  padding-bottom: 8px;
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  border-bottom: 2px solid var(--border);
}

.update-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.update-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease;
}

.update-row:hover {
  border-color: var(--border-strong);
}

.update-thumb {
  flex-shrink: 0;
  width: 48px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.update-info {
  flex: 1;
  min-width: 0;
}

.update-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.update-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-soft);
}

.update-meta .genre-tag {
  font-size: 12px;
}

.update-time {
  flex-shrink: 0;
  font-family: var(--font-num);
  font-size: 13px;
  color: var(--text-soft);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.related-card {
  display: block;
  padding: 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.related-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.related-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background-color: var(--accent-soft);
  border-radius: 50%;
}

.related-card h3 {
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 700;
}

.related-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-soft);
}

/* --------------------------------------------------------------------------
   7. PAGES — 人气榜单
   -------------------------------------------------------------------------- */

.ranking-section {
  margin-bottom: 40px;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease;
}

.ranking-item:hover {
  border-color: var(--border-strong);
}

.rank-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-num);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  background-color: var(--accent-soft);
  border-radius: 50%;
}

.ranking-item:nth-child(1) .rank-number {
  color: #fff;
  background-color: var(--accent);
}

.rank-cover {
  flex-shrink: 0;
  width: 52px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.rank-info {
  flex: 1;
  min-width: 0;
}

.rank-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.rank-info .genre-tag {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
}

.rank-desc {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-soft);
}

/* 分题材榜单 */
.genre-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.genre-block {
  padding: 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.genre-block-title {
  margin-bottom: 14px;
  font-size: 16px;
  font-weight: 700;
}

.genre-list .ranking-item {
  padding: 10px 12px;
  border-color: transparent;
  background-color: var(--bg);
}

.genre-list .rank-cover {
  width: 44px;
  height: 58px;
}

.genre-list .rank-number {
  width: 26px;
  height: 26px;
  font-size: 13px;
}

/* 榜单说明 */
.ranking-tip {
  margin-top: 40px;
  padding: 20px 24px;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.ranking-tip h2 {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
}

.ranking-tip p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
}

.ranking-tip p a {
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   8. PAGES — 完本归档
   -------------------------------------------------------------------------- */

.notice-bar {
  margin-bottom: 36px;
  padding: 18px 22px;
  background-color: var(--sage-soft);
  border: 1px solid #d5e0cf;
  border-radius: var(--radius-md);
}

.notice-content {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
}

.notice-content strong {
  color: var(--text);
}

.notice-content a {
  font-weight: 600;
  color: var(--sage);
}

.notice-content a:hover {
  color: var(--accent);
}

.genre-group {
  margin-bottom: 40px;
  scroll-margin-top: 80px;
}

.genre-group-head {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

.genre-name {
  font-size: 18px;
  font-weight: 700;
}

.genre-desc {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-soft);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* 归档链接卡片 */
.archive-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.link-card {
  padding: 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.link-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.link-card h3 {
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 700;
}

.link-card p {
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-soft);
}

.link-card a {
  font-size: 14px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   9. PAGES — 阅读手册
   -------------------------------------------------------------------------- */

.page-layout.sidebar-left {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  max-width: var(--inner-w);
  margin: 0 auto;
  padding: 0 20px 64px;
}

.manual-aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.manual-aside h2 {
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 700;
}

.task-nav ul li {
  margin-bottom: 4px;
}

.task-nav ul a {
  display: block;
  padding: 6px 10px;
  font-size: 14px;
  color: var(--text-soft);
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.task-nav ul a:hover {
  color: var(--accent);
  background-color: var(--accent-soft);
}

.manual-section {
  margin-bottom: 40px;
  scroll-margin-top: 80px;
}

.section-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-right: 8px;
  font-family: var(--font-num);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  background-color: var(--accent-soft);
  border-radius: 50%;
  vertical-align: middle;
}

.section-heading h2 {
  display: inline-flex;
  align-items: center;
  font-size: 20px;
  font-weight: 800;
}

.section-lead {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
}

.section-lead a {
  font-weight: 600;
}

.manual-step {
  display: flex;
  gap: 14px;
  margin-top: 16px;
  padding: 16px 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 700;
  color: var(--sage);
  background-color: var(--sage-soft);
  border-radius: 50%;
}

.manual-step h3 {
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 700;
}

.manual-step p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-soft);
}

.manual-step p a {
  font-weight: 600;
}

/* 状态标签说明 */
.status-section {
  margin-top: 40px;
}

.status-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.status-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 12px 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.status-item dt {
  font-size: 14px;
  font-weight: 600;
}

.status-item dd {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-soft);
}

.manual-figure {
  margin-top: 32px;
}

.manual-figure img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.manual-figure figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-soft);
}

/* --------------------------------------------------------------------------
   10. PAGES — 常见问题
   -------------------------------------------------------------------------- */

.faq-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.faq-index {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.faq-index h2 {
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 700;
}

.faq-index ul li {
  margin-bottom: 4px;
}

.faq-index ul a {
  display: block;
  padding: 6px 10px;
  font-size: 14px;
  color: var(--text-soft);
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.faq-index ul a:hover {
  color: var(--accent);
  background-color: var(--accent-soft);
}

.index-note {
  margin-top: 16px;
  padding-top: 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-soft);
  border-top: 1px solid var(--border);
}

.faq-group {
  margin-bottom: 36px;
  scroll-margin-top: 80px;
}

.faq-group h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 19px;
  font-weight: 800;
}

.group-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background-color: var(--accent-soft);
  border-radius: 50%;
}

/* --------------------------------------------------------------------------
   11. PAGES — 站务说明
   -------------------------------------------------------------------------- */

.layout-shell.sidebar-left {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.page-content {
  min-width: 0;
}

.position-statement {
  margin-bottom: 36px;
}

.position-statement h2,
.principle-list h2,
.boundary-box h2,
.commitment-note h2 {
  margin-bottom: 14px;
  font-size: 19px;
  font-weight: 800;
}

.position-statement .lead {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.75;
  color: var(--text);
}

.position-statement p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-soft);
}

.principle-list {
  margin-bottom: 36px;
}

.principle-list > p {
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-soft);
}

.principle-item {
  margin-bottom: 14px;
  padding: 16px 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.principle-item h3 {
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 700;
}

.principle-item p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-soft);
}

.boundary-box {
  margin-bottom: 36px;
  padding: 20px 22px;
  background-color: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.boundary-box > p {
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text-soft);
}

.boundary-box ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.boundary-box ul li {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-soft);
}

.boundary-box ul strong {
  color: var(--text);
}

.commitment-note {
  padding: 18px 20px;
  background-color: var(--accent-soft);
  border: 1px solid #eccdbd;
  border-radius: var(--radius-md);
}

.commitment-note p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
}

.commitment-note p a {
  font-weight: 600;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   12. PAGES — 404
   -------------------------------------------------------------------------- */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 60px 20px;
}

.error-panel {
  max-width: 520px;
  text-align: center;
}

.error-code {
  font-family: var(--font-num);
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
}

.error-panel h1 {
  margin-top: 16px;
  font-size: 24px;
  font-weight: 800;
}

.error-desc {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-soft);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

.error-help {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-soft);
}

.error-help a {
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   13. RESPONSIVE — 响应式
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .strip-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .genre-blocks {
    grid-template-columns: repeat(2, 1fr);
  }

  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* ---- 页头 ---- */

  .header-shell {
    padding: 0 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 99;
    background-color: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }

  .site-nav .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 8px 16px 16px;
  }

  .site-nav .nav-list.is-open {
    display: flex;
  }

  .site-nav .nav-list li {
    border-bottom: 1px solid var(--border);
  }

  .site-nav .nav-list li:last-child {
    border-bottom: none;
  }

  .site-nav .nav-list a {
    padding: 14px 12px;
    font-size: 15px;
    border-bottom: none;
    border-left: 3px solid transparent;
  }

  .site-nav .nav-list a.is-current {
    color: var(--accent);
    border-left-color: var(--accent);
  }

  /* ---- 首页 ---- */

  .hero-section {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 0 32px;
  }

  .hero-copy h1 {
    font-size: 28px;
  }

  .hero-figure img {
    aspect-ratio: 16 / 10;
  }

  .strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .popular-summary {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .path-grid {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .archive-links {
    grid-template-columns: 1fr;
  }

  /* ---- 侧栏布局：手机端侧栏后置 ---- */

  .sidebar-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .sidebar-left > aside,
  .sidebar-left > .manual-aside,
  .sidebar-left > .faq-index,
  .sidebar-left > .page-aside {
    order: 2;
    grid-column: auto;
  }

  .sidebar-left > main,
  .sidebar-left > .page-content,
  .sidebar-left > .faq-content {
    order: 1;
    grid-column: auto;
    width: 100%;
  }

  .sidebar-left .page-layout,
  .sidebar-left .layout-shell {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .sidebar-left .page-layout > aside,
  .sidebar-left .page-layout > main,
  .sidebar-left .layout-shell > aside,
  .sidebar-left .layout-shell > .page-content {
    order: 0;
    width: 100%;
  }

  /* 阅读手册侧栏 */
  .page-layout.sidebar-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0 16px 48px;
  }

  .page-layout.sidebar-left > .manual-aside {
    order: 2;
    position: static;
    width: 100%;
  }

  .page-layout.sidebar-left > .site-main {
    order: 1;
    width: 100%;
  }

  /* FAQ 布局 */
  .faq-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .faq-layout > .faq-index {
    order: 2;
    position: static;
    width: 100%;
  }

  .faq-layout > .faq-content {
    order: 1;
    width: 100%;
  }

  /* 站务说明布局 */
  .layout-shell.sidebar-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .layout-shell.sidebar-left > .page-aside {
    order: 2;
    position: static;
    width: 100%;
  }

  .layout-shell.sidebar-left > .page-content {
    order: 1;
    width: 100%;
  }

  /* ---- 内页 ---- */

  .inner-main {
    padding: 0 16px 48px;
  }

  .page-header {
    padding: 14px 0 20px;
  }

  .page-title {
    font-size: 26px;
  }

  .breadcrumb {
    padding-top: 16px;
  }

  .group-works {
    grid-template-columns: repeat(2, 1fr);
  }

  .work-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .genre-blocks {
    grid-template-columns: 1fr;
  }

  .status-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  /* 更新行 */
  .update-row {
    flex-wrap: wrap;
  }

  .update-time {
    width: 100%;
    padding-left: 62px;
  }

  /* 页脚 */
  .footer-shell {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding: 36px 16px 28px;
  }

  .footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .strip-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .strip-item {
    padding: 12px 10px;
  }

  .group-works {
    grid-template-columns: 1fr;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .footer-shell {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-about {
    grid-column: auto;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
  }

  .update-link {
    flex-wrap: wrap;
  }

  .update-link img {
    width: 48px;
    height: 64px;
  }

  .update-info {
    flex: 1;
  }

  .update-date {
    width: 100%;
    padding-left: 64px;
  }

  .ranking-item {
    flex-wrap: wrap;
    gap: 10px;
  }

  .rank-cover {
    width: 44px;
    height: 58px;
  }

  .rank-info {
    flex: 1;
    min-width: 0;
  }

  .rank-desc {
    width: 100%;
    padding-left: 48px;
  }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 程序验收反馈：移动端正文优先 */
@media (max-width: 768px) {
  .site-main :is(.page-content, .main-content, .content-main) {
    order: 1;
  }

  .site-main :is(aside, .sidebar) {
    order: 2;
  }
}
