/* ==========================================================================
   漫漫漫画 · 全站样式表
   视觉方向：文化场馆风 / 漫画美术馆
   ========================================================================== */

/* --------------------------------------------------------------------------
   Base —— 变量、重置、基础元素
   -------------------------------------------------------------------------- */
:root {
  --bg-wall: #f4f1eb;
  --ink: #26241f;
  --accent: #c8432c;
  --line: #d6cebf;
  --card-bg: #fffcf5;
  --ink-soft: #5b564d;
  --ink-faint: #8a8478;
  --white: #fff;
  --serif: "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --header-h: 64px;
  --shell-w: 1200px;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-card: 0 1px 4px rgba(38, 36, 31, 0.06);
  --shadow-hover: 0 6px 18px rgba(38, 36, 31, 0.1);
  --transition: 0.22s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-wall);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent);
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.4;
}

.shell {
  max-width: var(--shell-w);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.visually-hidden,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Layout —— 全站骨架
   -------------------------------------------------------------------------- */
.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1 0 auto;
}

/* ---------- 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background-color: var(--bg-wall);
  border-bottom: 1px solid var(--line);
}

.header-shell {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  flex-shrink: 0;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 26px;
  height: 26px;
  background-color: var(--accent);
  border-radius: 3px;
  display: block;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 8px 16px;
  font-size: 15px;
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background-color var(--transition);
}

.nav-link:hover {
  color: var(--accent);
  background-color: rgba(200, 67, 44, 0.06);
}

.nav-link.is-current {
  color: var(--accent);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 10px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--ink);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ---------- 页脚 ---------- */
.site-footer {
  background-color: #2b2925;
  color: #b8b2a6;
  margin-top: 80px;
}

.footer-shell {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 48px;
  padding-top: 48px;
  padding-bottom: 40px;
}

.footer-heading {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--white);
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-links li + li {
  margin-top: 8px;
}

.footer-links a {
  color: #b8b2a6;
  font-size: 14px;
  line-height: 1.6;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-text {
  font-size: 14px;
  line-height: 1.8;
  color: #b8b2a6;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-bottom .shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.footer-copy {
  font-size: 13px;
  color: #8a8478;
}

.footer-copyright-link {
  font-size: 13px;
  color: #b8b2a6;
}

.footer-copyright-link:hover {
  color: var(--white);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  max-width: var(--shell-w);
  margin: 0 auto;
  padding: 20px 24px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-faint);
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink-faint);
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- 内页标题区 ---------- */
.inner-main {
  flex: 1 0 auto;
}

.page-header {
  max-width: var(--shell-w);
  margin: 0 auto;
  padding: 40px 24px 36px;
}

.page-title {
  font-size: 34px;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.3;
}

.page-description {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 720px;
  line-height: 1.8;
}

/* ---------- 通用标签 ---------- */
.tag {
  display: inline-block;
  font-size: 12px;
  line-height: 1;
  padding: 5px 10px;
  border-radius: 2px;
  background-color: rgba(198, 187, 168, 0.3);
  color: var(--ink-soft);
  font-family: var(--sans);
  white-space: nowrap;
}

.tag-subject {
  background-color: rgba(200, 67, 44, 0.1);
  color: var(--accent);
}

/* ==========================================================================
   Components —— 通用组件
   ========================================================================== */

/* ---------- 题材标签变体（rank 页） ---------- */
.tag-daily {
  background-color: rgba(114, 147, 128, 0.16);
  color: #3f6b59;
}

.tag-adventure {
  background-color: rgba(176, 124, 60, 0.16);
  color: #8a5a1e;
}

.tag-scifi,
.tag-sci {
  background-color: rgba(72, 110, 148, 0.14);
  color: #315e88;
}

.tag-fantasy {
  background-color: rgba(128, 98, 156, 0.14);
  color: #6a4f8a;
}

.tag-mystery {
  background-color: rgba(94, 92, 88, 0.14);
  color: #4d4a44;
}

/* ---------- 首页区块通用 ---------- */
.section-block {
  max-width: var(--shell-w);
  margin: 0 auto;
  padding: 64px 24px 0;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-title {
  font-size: 26px;
  color: var(--ink);
  position: relative;
  padding-left: 14px;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 4px;
  background-color: var(--accent);
  border-radius: 2px;
}

.section-more-link {
  font-size: 14px;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  flex-shrink: 0;
}

.section-more-link:hover {
  border-bottom-color: var(--accent);
}

/* ---------- 首页主视觉 ---------- */
.hero-panel {
  max-width: var(--shell-w);
  margin: 0 auto;
  padding: 32px 24px 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-media {
  position: relative;
}

.hero-figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.hero-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-caption {
  padding: 8px 0;
}

.hero-title {
  font-size: 30px;
  line-height: 1.4;
  margin-bottom: 18px;
  color: var(--ink);
}

.hero-lead {
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.hero-cta {
  display: inline-block;
  background-color: var(--accent);
  color: var(--white);
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  transition: background-color var(--transition), transform var(--transition);
}

.hero-cta:hover {
  background-color: #a83521;
  color: var(--white);
  transform: translateY(-1px);
}

/* ---------- 分类快捷入口 ---------- */
.quick-entry {
  padding-top: 48px;
}

.entry-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.entry-card {
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.entry-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(200, 67, 44, 0.3);
}

.entry-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}

.entry-desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
  flex: 1;
}

.entry-arrow {
  font-size: 20px;
  color: var(--accent);
  margin-top: 4px;
  transition: transform var(--transition);
}

.entry-card:hover .entry-arrow {
  transform: translateX(4px);
}

/* ---------- 首页最近更新 ---------- */
.home-update-list {
  display: flex;
  flex-direction: column;
}

.home-update-list .update-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  transition: background-color var(--transition);
}

.home-update-list .update-item:last-child {
  border-bottom: none;
}

.home-update-list .update-item:hover {
  background-color: rgba(255, 252, 245, 0.7);
}

.home-update-list .update-thumb {
  width: 72px;
  height: 48px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
  aspect-ratio: 3 / 2;
}

.home-update-list .update-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.home-update-list .update-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.home-update-list .tag {
  flex-shrink: 0;
}

.home-update-list .update-time {
  font-size: 13px;
  color: var(--ink-faint);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---------- 横向分隔信息带 ---------- */
.info-strip {
  margin: 72px 0 0;
  background-color: #2b2925;
  padding: 28px 24px;
}

.strip-text {
  max-width: var(--shell-w);
  margin: 0 auto;
  color: #e8e2d6;
  font-size: 15px;
  line-height: 1.8;
  text-align: center;
  font-family: var(--serif);
  letter-spacing: 0.04em;
}

/* ---------- 首页题材分区预览 ---------- */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.subject-card {
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.subject-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.subject-card .card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.subject-card .card-caption {
  padding: 20px 22px 22px;
}

.subject-card .card-title {
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 6px;
}

.subject-card .card-excerpt {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 12px;
}

.subject-card .card-link {
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
}

.subject-card .card-link:hover {
  text-decoration: underline;
}

/* ---------- 首页人气榜单摘要 ---------- */
.rank-highlight {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.rank-top-card {
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.rank-top-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.rank-top-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.rank-top-info {
  position: relative;
}

.rank-badge {
  display: inline-block;
  background-color: var(--accent);
  color: var(--white);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 2px;
  margin-bottom: 8px;
}

.rank-top-info .rank-title {
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 4px;
}

.rank-top-info .rank-desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 10px;
}

.rank-compact-list {
  border-top: 1px solid var(--line);
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}

.rank-item:last-child {
  border-bottom: none;
}

.rank-num {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  width: 32px;
  text-align: center;
  flex-shrink: 0;
}

.rank-item .rank-link {
  flex: 1;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-item .rank-link:hover {
  color: var(--accent);
}

/* ---------- 首页新读者引导区 ---------- */
.reader-guide {
  padding-top: 56px;
}

.guide-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.guide-card {
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.guide-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.guide-card-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
}

.guide-card-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ==========================================================================
   Pages —— 首页
   ========================================================================== */
.home-main .section-block:last-of-type {
  padding-bottom: 64px;
}

/* ==========================================================================
   Pages —— 题材分类页 (subject.html)
   ========================================================================== */
.page-subject .page-header {
  padding-bottom: 28px;
}

.page-layout {
  max-width: var(--shell-w);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}

.sidebar-left .page-layout {
  grid-template-columns: 240px 1fr;
}

.subject-aside {
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 18px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.aside-title {
  font-size: 16px;
  color: var(--ink);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
  font-weight: 600;
}

.subject-nav-list li + li {
  border-top: 1px solid rgba(214, 206, 191, 0.5);
}

.subject-nav-link {
  display: block;
  padding: 10px 12px;
  font-size: 15px;
  color: var(--ink-soft);
  border-left: 3px solid transparent;
  transition: color var(--transition), border-color var(--transition), background-color var(--transition);
}

.subject-nav-link:hover {
  color: var(--accent);
  background-color: rgba(200, 67, 44, 0.04);
}

.subject-nav-link.is-active {
  color: var(--accent);
  border-left-color: var(--accent);
  background-color: rgba(200, 67, 44, 0.04);
  font-weight: 600;
}

.subject-content {
  min-width: 0;
}

.subject-block + .subject-block {
  margin-top: 48px;
}

.subject-head {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.subject-name {
  font-size: 24px;
  color: var(--ink);
  margin-bottom: 6px;
  position: relative;
  padding-left: 14px;
}

.subject-name::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 4px;
  background-color: var(--accent);
  border-radius: 2px;
}

.subject-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.subject-works {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.work-item {
  display: flex;
  gap: 14px;
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.work-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.work-cover {
  width: 84px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
}

.work-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.work-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}

.work-note {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
  flex: 1;
}

.work-info .tag {
  align-self: flex-start;
}

.subject-more {
  margin-top: 48px;
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
}

.more-title {
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 10px;
}

.more-text {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.more-text a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
}

.more-text a:hover {
  border-bottom-color: var(--accent);
}

/* ==========================================================================
   Pages —— 最近更新页 (latest.html)
   ========================================================================== */
.page-latest .page-header {
  padding-bottom: 28px;
}

.latest-section {
  max-width: var(--shell-w);
  margin: 0 auto;
  padding: 0 24px;
}

.latest-section .section-heading {
  margin-bottom: 20px;
}

.latest-section .section-title {
  font-size: 22px;
}

.update-group {
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 20px;
  overflow: hidden;
}

.update-date {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
  background-color: rgba(200, 67, 44, 0.05);
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
}

.update-list {
  padding: 0 22px;
}

.update-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(214, 206, 191, 0.6);
}

.update-item:last-child {
  border-bottom: none;
}

.update-thumb {
  width: 64px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
}

.update-info {
  flex: 1;
  min-width: 0;
}

.update-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.4;
}

.update-note {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.update-item .update-time {
  font-size: 13px;
  color: var(--ink-faint);
  white-space: nowrap;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 4px;
}

.reading-note {
  max-width: var(--shell-w);
  margin: 40px auto 0;
  padding: 0 24px;
}

.note-content {
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 28px;
}

.note-content p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.9;
}

.note-content a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
}

.note-content a:hover {
  border-bottom-color: var(--accent);
}

.quick-links {
  max-width: var(--shell-w);
  margin: 48px auto 0;
  padding: 0 24px;
}

.quick-links-title {
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 16px;
  font-family: var(--serif);
}

.quick-links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.quick-links-list a {
  display: inline-block;
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-size: 14px;
  color: var(--ink-soft);
  transition: color var(--transition), border-color var(--transition), transform var(--transition);
}

.quick-links-list a:hover {
  color: var(--accent);
  border-color: rgba(200, 67, 44, 0.4);
  transform: translateY(-1px);
}

/* ==========================================================================
   Pages —— 人气榜单页 (rank.html)
   ========================================================================== */
.page-rank .page-header {
  padding-bottom: 28px;
}

.rank-section {
  max-width: var(--shell-w);
  margin: 0 auto;
  padding: 0 24px 48px;
}

.rank-section + .rank-section {
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.rank-section-head {
  margin-bottom: 28px;
}

.rank-section-head .section-title {
  font-size: 24px;
  margin-bottom: 8px;
}

.rank-section-head .section-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.heat-list {
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 24px;
}

.heat-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(214, 206, 191, 0.6);
}

.heat-row:last-child {
  border-bottom: none;
}

.heat-rank {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  width: 30px;
  text-align: center;
  flex-shrink: 0;
}

.heat-name {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  width: 100px;
  flex-shrink: 0;
}

.heat-track {
  flex: 1;
  height: 8px;
  background-color: rgba(214, 206, 191, 0.4);
  border-radius: 4px;
  overflow: hidden;
  min-width: 60px;
}

.heat-fill {
  display: block;
  height: 100%;
  border-radius: 4px;
  background-color: rgba(200, 67, 44, 0.45);
}

.heat-fill-strong {
  background-color: var(--accent);
}

.heat-note {
  font-size: 12px;
  color: var(--ink-faint);
  width: 90px;
  text-align: right;
  flex-shrink: 0;
}

.rank-meta-note {
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: 16px;
  line-height: 1.7;
}

.rank-guide-note {
  max-width: var(--shell-w);
  margin: 0 auto;
  padding: 0 24px 48px;
}

.rank-guide-note .section-title {
  font-size: 24px;
  margin-bottom: 20px;
}

.guide-note-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.guide-note-card {
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.guide-note-title {
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 8px;
  font-family: var(--serif);
}

.guide-note-card p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.rank-outro {
  max-width: var(--shell-w);
  margin: 0 auto;
  padding: 0 24px 24px;
}

.rank-outro .section-title {
  font-size: 24px;
  margin-bottom: 12px;
}

.rank-outro p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.inline-link {
  color: var(--accent);
  border-bottom: 1px solid transparent;
}

.inline-link:hover {
  border-bottom-color: var(--accent);
}

/* ==========================================================================
   Pages —— 阅读指南页 (guide.html)
   ========================================================================== */
.page-guide .page-header {
  padding-bottom: 24px;
}

.guide-section {
  max-width: var(--shell-w);
  margin: 0 auto;
  padding: 0 24px 56px;
}

.guide-text-block {
  max-width: 680px;
}

.guide-text-block .section-title {
  font-size: 24px;
  margin-bottom: 14px;
}

.guide-text-block p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.9;
  margin-bottom: 10px;
}

.guide-steps .guide-text-block {
  margin-bottom: 32px;
}

.section-note {
  font-size: 14px;
  color: var(--ink-faint);
}

.guide-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

.guide-step:first-of-type {
  border-top: none;
  padding-top: 0;
}

.step-copy {
  min-width: 0;
}

.step-number {
  display: inline-block;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  line-height: 32px;
  text-align: center;
  margin-bottom: 12px;
}

.step-title {
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 10px;
}

.step-copy p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 8px;
}

.step-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.step-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.step-media figcaption {
  font-size: 13px;
  color: var(--ink-faint);
  padding: 10px 14px;
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  border-top: none;
  line-height: 1.6;
}

.checklist-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 680px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.checklist-item:last-child {
  border-bottom: none;
}

.check-box {
  width: 18px;
  height: 18px;
  border: 2px solid var(--line);
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 4px;
}

.check-text {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.7;
}

.next-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.next-card {
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.next-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(200, 67, 44, 0.35);
}

.next-card-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

.next-card-text {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ==========================================================================
   Pages —— 版权说明页 (copyright.html)
   ========================================================================== */
.page-copyright .page-header {
  padding-bottom: 32px;
}

.copyright-hero-figure,
.copyright-mid-figure {
  max-width: var(--shell-w);
  margin: 0 auto 48px;
  padding: 0 24px;
}

.copyright-hero-image,
.copyright-mid-image {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.copyright-mid-image {
  aspect-ratio: 16 / 6;
}

.figure-caption {
  font-size: 13px;
  color: var(--ink-faint);
  padding: 10px 2px 0;
  line-height: 1.6;
  text-align: right;
}

.copyright-statement-section {
  max-width: var(--shell-w);
  margin: 0 auto 48px;
  padding: 0 24px;
}

.copyright-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.copyright-col {
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
}

.copyright-col-title {
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 16px;
  position: relative;
  padding-left: 14px;
}

.copyright-col-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 4px;
  background-color: var(--accent);
  border-radius: 2px;
}

.copyright-col-text {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.9;
  margin-bottom: 12px;
}

.copyright-col-text:last-child {
  margin-bottom: 0;
}

.copyright-boundary-note {
  max-width: var(--shell-w);
  margin: 0 auto 48px;
  padding: 0 24px;
}

.boundary-text {
  background-color: #2b2925;
  color: #e8e2d6;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.9;
  text-align: center;
  padding: 24px 32px;
  border-radius: var(--radius);
}

.copyright-links {
  max-width: var(--shell-w);
  margin: 0 auto 24px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.copyright-link-card {
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.copyright-link-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(200, 67, 44, 0.3);
}

.copyright-link-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.copyright-link-desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ==========================================================================
   Pages —— 404 页
   ========================================================================== */
.error-main {
  display: flex;
  align-items: center;
}

.error-shell {
  max-width: var(--shell-w);
  margin: 0 auto;
  padding: 80px 24px;
  width: 100%;
}

.error-panel {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 48px;
}

.error-code {
  font-family: var(--serif);
  font-size: 72px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 12px;
}

.error-title {
  font-size: 26px;
  color: var(--ink);
  margin-bottom: 14px;
}

.error-desc {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 28px;
}

.error-button {
  display: inline-block;
  background-color: var(--accent);
  color: var(--white);
  padding: 12px 32px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  transition: background-color var(--transition);
}

.error-button:hover {
  background-color: #a83521;
  color: var(--white);
}

.error-suggest {
  max-width: 520px;
  margin: 0 auto;
}

.error-suggest-label {
  font-size: 14px;
  color: var(--ink-faint);
  margin-bottom: 16px;
  text-align: center;
}

.error-suggest-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.error-suggest-list a {
  display: inline-block;
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 20px;
  font-size: 14px;
  color: var(--ink-soft);
  transition: color var(--transition), border-color var(--transition);
}

.error-suggest-list a:hover {
  color: var(--accent);
  border-color: rgba(200, 67, 44, 0.4);
}

/* ==========================================================================
   Responsive —— 响应式断点
   ========================================================================== */

/* ---------- 移动端导航 ---------- */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background-color: var(--bg-wall);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 20px rgba(38, 36, 31, 0.08);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 16px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-item {
    border-bottom: 1px solid rgba(214, 206, 191, 0.5);
  }

  .nav-item:last-child {
    border-bottom: none;
  }

  .nav-link {
    padding: 14px 8px;
    font-size: 16px;
    border-radius: 0;
  }
}

/* ---------- 平板与手机通用 ---------- */
@media (max-width: 900px) {
  .shell,
  .page-header,
  .breadcrumb,
  .section-block,
  .hero-panel,
  .page-layout,
  .latest-section,
  .reading-note,
  .quick-links,
  .rank-section,
  .rank-guide-note,
  .rank-outro,
  .guide-section,
  .copyright-hero-figure,
  .copyright-mid-figure,
  .copyright-statement-section,
  .copyright-boundary-note,
  .copyright-links,
  .error-shell {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-caption {
    order: 2;
  }

  .hero-media {
    order: 1;
  }

  .entry-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .preview-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .rank-highlight {
    grid-template-columns: repeat(2, 1fr);
  }

  .rank-highlight .rank-top-card:last-child {
    grid-column: 1 / -1;
  }

  .guide-cards {
    grid-template-columns: 1fr;
  }

  .footer-shell {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-column.footer-about {
    grid-column: 1 / -1;
  }

  .page-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .sidebar-left .page-layout {
    grid-template-columns: 1fr;
  }

  .subject-aside {
    position: static;
    order: 2;
  }

  .subject-content {
    order: 1;
  }

  .subject-works {
    grid-template-columns: 1fr;
  }

  .guide-note-grid {
    grid-template-columns: 1fr;
  }

  .copyright-cols {
    grid-template-columns: 1fr;
  }

  .copyright-links {
    grid-template-columns: 1fr;
  }

  .next-links {
    grid-template-columns: 1fr;
  }

  .guide-step {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ---------- 手机窄屏 ---------- */
@media (max-width: 600px) {
  :root {
    --header-h: 56px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-mark {
    width: 22px;
    height: 22px;
  }

  .page-title {
    font-size: 26px;
  }

  .section-block {
    padding-top: 48px;
  }

  .section-title {
    font-size: 22px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-panel {
    padding-top: 20px;
  }

  .entry-row {
    grid-template-columns: 1fr;
  }

  .rank-highlight {
    grid-template-columns: 1fr;
  }

  .rank-highlight .rank-top-card:last-child {
    grid-column: auto;
  }

  .home-update-list .update-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .home-update-list .update-title {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .home-update-list .update-time {
    align-self: flex-start;
  }

  .update-item {
    flex-wrap: wrap;
  }

  .update-thumb {
    width: 56px;
  }

  .update-item .update-time {
    width: 100%;
    padding-left: 72px;
    margin-top: -8px;
  }

  .footer-shell {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 36px;
    padding-bottom: 28px;
  }

  .footer-column.footer-about {
    grid-column: auto;
  }

  .footer-bottom .shell {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .heat-row {
    flex-wrap: wrap;
    gap: 6px 12px;
  }

  .heat-rank {
    width: 22px;
    font-size: 18px;
  }

  .heat-name {
    width: auto;
    flex: 1;
  }

  .heat-track {
    order: 3;
    flex-basis: 100%;
    min-width: 0;
  }

  .heat-note {
    width: auto;
    text-align: left;
  }

  .work-item {
    flex-direction: row;
  }

  .work-cover {
    width: 72px;
  }

  .copyright-hero-image {
    aspect-ratio: 4 / 3;
  }

  .copyright-mid-image {
    aspect-ratio: 4 / 3;
  }

  .error-code {
    font-size: 56px;
  }
}
