/* ============================================================
   抖漫 · 全站样式表
   知识库风：纸白底、墨黑字、青绿强调、珊瑚红榜单
   ============================================================ */

/* ------------------------------------------------
   Base · 基础变量 / 重置 / 字体
   ------------------------------------------------ */
:root {
  --paper: #f5f3ee;
  --ink: #1a1d26;
  --teal: #0f6b6a;
  --coral: #ef6a4a;
  --slate: #3b4252;
  --line: #d8d4ca;
  --card-bg: #fffdf8;
  --muted: #6b7280;
  --serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --sans: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", Consolas, "Courier New", monospace;
  --content-w: 1100px;
  --text-w: 800px;
  --radius: 8px;
  --shadow: 0 1px 4px rgba(26, 29, 38, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-size: 15px;
  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(--teal);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--coral);
}

ul,
ol {
  list-style: none;
}

/* 通用容器 */
.site-header,
.site-main,
.site-footer,
.footer-inner,
.header-inner {
  width: 100%;
  max-width: var(--content-w);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ------------------------------------------------
   Layout · 页头 / 导航 / 页脚 / 面包屑 / 页标题
   ------------------------------------------------ */

/* ---- 页头 ---- */
.site-header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.brand-name::after {
  content: "漫画";
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--teal);
  margin-left: 4px;
}

/* 主导航 */
.site-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li a {
  display: inline-block;
  padding: 6px 16px;
  font-size: 15px;
  color: var(--slate);
  border-radius: 4px;
  line-height: 1.6;
}

.nav-list li a:hover {
  color: var(--teal);
  background: rgba(15, 107, 106, 0.08);
}

.nav-list li a.is-current {
  color: var(--teal);
  font-weight: 600;
  background: rgba(15, 107, 106, 0.1);
}

/* 头部次要入口 */
.header-secondary-link {
  flex-shrink: 0;
  font-size: 14px;
  color: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 4px;
  padding: 4px 14px;
  line-height: 1.6;
  transition: background 0.2s, color 0.2s;
}

.header-secondary-link:hover {
  background: var(--teal);
  color: #fff;
}

/* 汉堡按钮（默认隐藏） */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  margin: 0 auto;
  transition: transform 0.2s, opacity 0.2s;
}

.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);
}

/* 屏幕阅读器文本 */
.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;
}

/* ---- 内页骨架 ---- */
.inner-main {
  padding-top: 32px;
  padding-bottom: 56px;
  min-height: 60vh;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--teal);
}

.breadcrumb a:hover {
  color: var(--coral);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--slate);
}

/* 页面标题区 */
.page-header {
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 8px;
}

.page-description {
  font-size: 15px;
  color: var(--muted);
  max-width: var(--text-w);
}

/* ---- 页脚 ---- */
.site-footer {
  background: var(--ink);
  color: #c9cdd6;
  margin-top: 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-top: 48px;
  padding-bottom: 40px;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #aab0bc;
  margin-bottom: 12px;
}

.footer-link {
  font-size: 14px;
  color: #7fc4c2;
}

.footer-link:hover {
  color: var(--coral);
}

.footer-heading {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.footer-list li {
  margin-bottom: 8px;
}

.footer-list li a {
  font-size: 14px;
  color: #aab0bc;
  line-height: 1.6;
}

.footer-list li a:hover {
  color: #7fc4c2;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 24px;
  text-align: center;
  font-size: 13px;
  color: #8a909e;
  max-width: var(--content-w);
  margin: 0 auto;
}

/* ------------------------------------------------
   Components · 通用组件
   ------------------------------------------------ */

/* 区块标题 */
.section-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}

.section-desc {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}

/* 题材标签 */
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--teal);
  background: rgba(15, 107, 106, 0.08);
  border: 1px solid rgba(15, 107, 106, 0.2);
  border-radius: 3px;
  padding: 2px 8px;
  line-height: 1.5;
  white-space: nowrap;
}

/* 文字链接 */
.text-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--teal);
  border-bottom: 1px solid rgba(15, 107, 106, 0.3);
  padding-bottom: 2px;
  line-height: 1.6;
}

.text-link:hover {
  color: var(--coral);
  border-bottom-color: var(--coral);
}

/* 通用 section-head 行 */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.section-more {
  font-size: 14px;
  color: var(--teal);
  flex-shrink: 0;
}

/* 横向滚动容器（首页 hero） */
.feature-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.feature-scroll::-webkit-scrollbar {
  height: 6px;
}

.feature-scroll::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 3px;
}

/* 图片容器稳定约束 */
.feature-media,
.update-media,
.genre-media,
.archive-figure,
.curation-figure,
.guide-figure,
.feedback-figure,
.index-figure {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--line);
}

.feature-media img,
.update-media img,
.genre-media img,
.archive-figure img,
.curation-figure img,
.guide-figure img,
.feedback-figure img,
.index-figure img,
.recommend-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 流程步骤条（首页 / 内页通用结构） */
.flow-steps,
.steps-row,
.process-steps,
.revision-steps,
.method-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.flow-step,
.step-card,
.process-step {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
}

.step-num,
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}

.step-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.step-text,
.step-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* 编号榜单 */
.rank-list {
  counter-reset: rank;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.rank-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.rank-num,
.rank-number {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--coral);
  flex-shrink: 0;
  min-width: 28px;
}

/* 相关链接组 */
.related-links,
.rank-related-links,
.related-list,
.curation-links ul,
.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.related-links a,
.rank-related-links a,
.curation-links a,
.error-links a {
  font-size: 14px;
  color: var(--teal);
  border: 1px solid rgba(15, 107, 106, 0.25);
  border-radius: 4px;
  padding: 6px 16px;
  line-height: 1.6;
  transition: background 0.2s, color 0.2s;
}

.related-links a:hover,
.rank-related-links a:hover,
.curation-links a:hover,
.error-links a:hover {
  background: var(--teal);
  color: #fff;
}

/* ------------------------------------------------
   Pages · 首页
   ------------------------------------------------ */
.home-main {
  padding-top: 0;
  padding-bottom: 0;
  max-width: none;
}

/* Hero 横向主推作品带 */
.hero-feature {
  background: var(--card-bg);
  border-bottom: 1px solid var(--line);
  padding: 36px 24px 32px;
  max-width: var(--content-w);
  margin: 0 auto;
}

.hero-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}

.hero-desc {
  font-size: 15px;
  color: var(--muted);
  margin-top: 4px;
  max-width: 640px;
}

.feature-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.feature-card:hover {
  box-shadow: 0 4px 16px rgba(26, 29, 38, 0.1);
}

.feature-card a {
  display: block;
  color: inherit;
}

.feature-media {
  aspect-ratio: 3 / 4;
}

.feature-info {
  padding: 14px 16px 16px;
}

.feature-name {
  font-size: 16px;
  font-weight: 600;
  margin: 8px 0 6px;
  color: var(--ink);
}

.feature-brief {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 最近更新 */
.recent-updates,
.genre-section,
.rank-section,
.guide-cta,
.feedback-flow {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 44px 24px;
}

.update-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.update-item {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.update-item:hover {
  box-shadow: var(--shadow);
}

.update-item a {
  display: block;
  color: inherit;
}

.update-media {
  aspect-ratio: 16 / 10;
}

.update-info {
  padding: 12px 14px 14px;
}

.update-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}

/* 题材分类（首页） */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.genre-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.genre-card a {
  display: block;
  color: inherit;
}

.genre-body {
  padding: 16px 16px 10px;
}

.genre-label {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}

.genre-tip {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.genre-media {
  aspect-ratio: 16 / 9;
  margin: 0 16px 16px;
}

/* 人气榜单（首页） */
.rank-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

.rank-aside {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.aside-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.aside-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.aside-link {
  font-size: 14px;
  color: var(--teal);
  border-bottom: 1px solid var(--teal);
  padding-bottom: 2px;
}

/* 阅读须知（首页） */
.guide-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.guide-col {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.guide-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin: 12px 0 16px;
}

/* 反馈流程（首页） */
.feedback-flow {
  background: var(--card-bg);
  border-top: 1px solid var(--line);
  max-width: none;
  margin-top: 0;
}

.feedback-flow .section-head {
  max-width: var(--content-w);
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}

.feedback-flow .flow-steps {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 24px;
}

.flow-link {
  display: block;
  max-width: var(--content-w);
  margin: 24px auto 0;
  padding: 0 24px;
}

/* ------------------------------------------------
   Pages · 题材分类页
   ------------------------------------------------ */

.layout-shell.sidebar-left {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}

/* 左侧题材索引 */
.genre-index {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: 80px;
}

.index-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.index-list li {
  margin-bottom: 4px;
}

.index-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 14px;
  color: var(--slate);
  line-height: 1.6;
}

.index-list li a:hover {
  background: rgba(15, 107, 106, 0.08);
  color: var(--teal);
}

.index-tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.index-figure {
  margin-top: 16px;
  aspect-ratio: 4 / 3;
}

.index-figure figcaption {
  padding: 8px 10px;
  font-size: 12px;
  color: var(--muted);
  background: var(--paper);
  line-height: 1.5;
}

/* 右侧题材列表 */
.genre-section {
  padding: 0;
  margin-bottom: 40px;
}

.genre-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--teal);
  display: inline-block;
}

.genre-summary {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.genre-works {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.work-card {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  padding-bottom: 12px;
}

.work-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.work-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  padding: 10px 12px 4px;
  line-height: 1.5;
}

.work-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--teal);
  margin: 0 12px;
}

/* 底部相关题材 */
.related-genres {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.related-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

/* ------------------------------------------------
   Pages · 更新动态页
   ------------------------------------------------ */

.archive {
  max-width: var(--text-w);
}

.archive-month {
  margin-bottom: 48px;
}

.archive-month-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--teal);
  display: inline-block;
}

.archive-media {
  margin-bottom: 16px;
}

.archive-figure {
  aspect-ratio: 16 / 7;
}

.archive-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archive-summary {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.update-cards {
  display: grid;
  gap: 12px;
}

.update-card {
  display: flex;
  gap: 16px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  align-items: flex-start;
}

.update-date {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--coral);
  flex-shrink: 0;
  padding-top: 2px;
}

.update-body {
  flex: 1;
}

.update-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.update-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 6px;
}

/* 重点收录作品 */
.featured-additions {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.featured-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.featured-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.featured-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--teal);
  margin-bottom: 8px;
}

.featured-reason {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* 月度回顾 */
.monthly-review {
  margin-top: 48px;
  padding: 24px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.review-text {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.8;
}

.review-text a {
  color: var(--teal);
}

/* 更新标签变体 */
.tag-add {
  color: var(--teal);
  border-color: rgba(15, 107, 106, 0.3);
  background: rgba(15, 107, 106, 0.08);
}

.tag-adjust {
  color: #8a6d3b;
  border-color: rgba(138, 109, 59, 0.3);
  background: rgba(138, 109, 59, 0.08);
}

.tag-edit {
  color: #5b7a9d;
  border-color: rgba(91, 122, 157, 0.3);
  background: rgba(91, 122, 157, 0.08);
}

.tag-guide {
  color: var(--coral);
  border-color: rgba(239, 106, 74, 0.3);
  background: rgba(239, 106, 74, 0.08);
}

/* ------------------------------------------------
   Pages · 人气榜单页
   ------------------------------------------------ */

.rank-intro,
.rank-list-section,
.rank-recommend,
.rank-related {
  max-width: var(--text-w);
  margin-bottom: 40px;
}

.rank-intro p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 8px;
}

.rank-list-section .rank-list {
  margin-top: 16px;
}

.rank-item-content {
  flex: 1;
  min-width: 0;
}

.rank-item-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.genre-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--teal);
  margin-bottom: 4px;
}

.rank-item-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 4px;
}

/* 推荐阅读 */
.rank-recommend-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 16px;
}

.recommend-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.recommend-card img {
  aspect-ratio: 3 / 4;
  width: 100%;
}

.recommend-card figcaption {
  padding: 14px 16px 16px;
}

.recommend-card figcaption h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.recommend-card figcaption p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.rank-related {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.rank-related p {
  font-size: 14px;
  color: var(--muted);
  margin: 8px 0 16px;
}

/* ------------------------------------------------
   Pages · 阅读说明页
   ------------------------------------------------ */

.guide-section {
  max-width: var(--text-w);
  margin-bottom: 48px;
}

.guide-section .section-desc {
  margin-bottom: 20px;
}

.guide-figure {
  margin-top: 24px;
}

.guide-figure {
  aspect-ratio: 16 / 7;
}

.guide-figure figcaption {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--muted);
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  line-height: 1.6;
}

/* 章节顺序规则 */
.rule-list {
  display: grid;
  gap: 12px;
}

.rule-list li {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 14px;
  color: var(--slate);
  line-height: 1.7;
}

/* 追更方法 */
.follow-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 16px;
}

.method-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.method-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.method-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.action-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  color: var(--teal);
  border-bottom: 1px solid var(--teal);
  padding-bottom: 2px;
}

/* 反馈入口 */
.feedback-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.feedback-step {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.feedback-step-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--coral);
  display: block;
  margin-bottom: 4px;
}

.feedback-step-text {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.6;
}

.feedback-entry-links {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.section-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--card-bg);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  line-height: 1.6;
}

/* ------------------------------------------------
   Pages · 收录理念页
   ------------------------------------------------ */

.curation-content {
  max-width: var(--text-w);
}

.curation-section {
  margin-bottom: 44px;
}

.curation-section h2 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--teal);
  display: inline-block;
}

.curation-section p {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.8;
  margin-bottom: 12px;
}

.curation-figure {
  aspect-ratio: 16 / 7;
  margin: 16px 0;
}

.curation-figure figcaption {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--muted);
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  line-height: 1.6;
}

.scope-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.scope-tags li {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--teal);
  background: rgba(15, 107, 106, 0.08);
  border: 1px solid rgba(15, 107, 106, 0.2);
  border-radius: 4px;
  padding: 4px 12px;
  line-height: 1.6;
}

.method-steps li,
.revision-steps li {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 14px;
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: 8px;
}

.method-steps strong,
.revision-steps strong {
  color: var(--ink);
  font-weight: 600;
}

.boundary-list {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.boundary-list li {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--coral);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--slate);
  line-height: 1.7;
}

.curation-links {
  margin-top: 48px;
  padding: 24px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.curation-links h2 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.curation-links p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

/* ------------------------------------------------
   Pages · 反馈说明页
   ------------------------------------------------ */

.page-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
}

.feedback-article {
  min-width: 0;
}

.feedback-section {
  margin-bottom: 44px;
}

.feedback-section .section-desc {
  margin-bottom: 16px;
}

.feedback-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.feedback-type-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.card-desc {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: 8px;
}

.card-example {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  padding: 10px 12px;
  background: var(--paper);
  border-radius: 4px;
  border-left: 3px solid var(--teal);
}

.process-steps {
  margin-bottom: 20px;
}

.process-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.step-content {
  flex: 1;
}

.step-content h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.step-content p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.feedback-figure {
  aspect-ratio: 16 / 6;
  margin-top: 16px;
}

.feedback-figure figcaption {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--muted);
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  line-height: 1.6;
}

.tips-list {
  display: grid;
  gap: 10px;
}

.tips-list li {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--slate);
  line-height: 1.7;
}

.tips-list strong {
  color: var(--ink);
  font-weight: 600;
}

.progress-list {
  display: grid;
  gap: 10px;
}

.progress-list li {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.7;
  padding-left: 20px;
  position: relative;
}

.progress-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

/* 反馈页右侧相关 */
.related-links {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: 80px;
  flex-direction: column;
  gap: 0;
}

.related-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.related-list li {
  margin-bottom: 16px;
}

.related-list li a {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--teal);
  margin-bottom: 2px;
  border: none;
  padding: 0;
}

.related-list li a:hover {
  color: var(--coral);
  background: none;
}

.related-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ------------------------------------------------
   Pages · 404 页
   ------------------------------------------------ */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding-top: 40px;
  padding-bottom: 40px;
}

.error-panel {
  text-align: center;
  max-width: 480px;
  padding: 40px 32px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-code {
  font-family: var(--mono);
  font-size: 72px;
  font-weight: 700;
  color: var(--coral);
  line-height: 1;
  margin-bottom: 12px;
}

.error-panel h1 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.error-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.error-home-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: var(--teal);
  border-radius: 4px;
  padding: 8px 24px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.error-home-link:hover {
  background: var(--coral);
  color: #fff;
}

.error-links {
  justify-content: center;
}

/* ------------------------------------------------
   Responsive · 响应式断点
   ------------------------------------------------ */

/* 平板及以下 */
@media (max-width: 900px) {
  .update-list,
  .genre-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rank-layout {
    grid-template-columns: 1fr;
  }

  .rank-aside {
    margin-top: 0;
  }

  .layout-shell.sidebar-left {
    grid-template-columns: 200px 1fr;
    gap: 24px;
  }

  .page-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .related-links {
    position: static;
  }

  .featured-grid,
  .rank-recommend-wall {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 手机断点 768px */
@media (max-width: 768px) {
  .site-header,
  .site-main,
  .site-footer,
  .footer-inner,
  .header-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .header-inner {
    min-height: 56px;
    flex-wrap: wrap;
  }

  /* 汉堡按钮显示 */
  .nav-toggle {
    display: flex;
    order: 3;
  }

  .site-nav {
    order: 4;
    flex-basis: 100%;
    justify-content: flex-start;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 8px 0 12px;
    gap: 2px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li a {
    display: block;
    padding: 10px 12px;
    font-size: 15px;
  }

  .header-secondary-link {
    order: 2;
    margin-left: auto;
  }

  .brand {
    order: 1;
  }

  /* 首页 hero */
  .hero-feature {
    padding: 24px 16px;
  }

  .hero-title {
    font-size: 22px;
  }

  .feature-card {
    flex-basis: 260px;
  }

  /* 首页模块 */
  .recent-updates,
  .genre-section,
  .rank-section,
  .guide-cta,
  .feedback-flow {
    padding: 32px 16px;
  }

  .update-list,
  .genre-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .guide-columns {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .flow-steps,
  .steps-row,
  .process-steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* 内页 */
  .inner-main {
    padding-top: 24px;
    padding-bottom: 40px;
  }

  .page-title {
    font-size: 22px;
  }

  .page-header {
    margin-bottom: 28px;
  }

  /* 题材分类页 */
  .layout-shell.sidebar-left {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .genre-index {
    position: static;
    order: 1;
  }

  .genre-list {
    order: 2;
  }

  .index-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  .index-list li {
    margin-bottom: 0;
  }

  .index-list li a {
    padding: 4px 10px;
  }

  .index-figure {
    display: none;
  }

  .genre-works {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  /* 更新动态 */
  .archive-month-title {
    font-size: 18px;
  }

  .update-card {
    flex-direction: column;
    gap: 6px;
  }

  .featured-grid,
  .rank-recommend-wall {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .follow-methods {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feedback-type-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feedback-steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* 页脚 */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 40px;
    padding-bottom: 32px;
  }
}

/* 小屏手机 512px */
@media (max-width: 512px) {
  .update-list,
  .genre-grid,
  .genre-works {
    grid-template-columns: 1fr;
  }

  .rank-item {
    flex-wrap: wrap;
    gap: 8px;
  }

  .rank-item-content {
    flex-basis: 100%;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .feature-card {
    flex-basis: 220px;
  }

  .feature-scroll {
    gap: 12px;
  }

  .error-code {
    font-size: 56px;
  }

  .error-panel {
    padding: 32px 20px;
  }
}
