/* ==========================================================================
   韩漫网 · 整站样式表
   配色：米白底 / 暖橙主色 / 深墨褐文字 / 杏色辅助 / 苔绿点缀
   字体：PingFang SC, Microsoft YaHei
   ========================================================================== */

/* ==========================================================================
   Base —— 基础变量、重置、全局元素
   ========================================================================== */

:root {
  --bg-cream: #F7F2EA;
  --accent-orange: #C94F2D;
  --ink-brown: #3A2A23;
  --apricot: #E9C8A6;
  --moss-green: #7D8C6E;
  --white: #FFFFFF;
  --gray-text: #6B5D55;
  --line-light: #EAE0D5;
  --shadow-soft: 0 4px 16px rgba(58, 42, 35, 0.08);
  --shadow-lift: 0 10px 28px rgba(58, 42, 35, 0.14);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --container-max: 1180px;
  --content-max: 720px;
  --gutter: 20px;
  --header-h: 72px;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-brown);
  background-color: var(--bg-cream);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-orange);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #A63F20;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink-brown);
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 18px;
}

p {
  margin-bottom: 12px;
}

/* ==========================================================================
   Layout —— 全站骨架：页头、页脚、主容器、面包屑、页面标题区
   ========================================================================== */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1 0 auto;
}

.site-header {
  background-color: var(--white);
  border-bottom: 1px solid var(--line-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
  color: var(--ink-brown);
}

.brand-link:hover {
  color: var(--ink-brown);
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-orange);
  letter-spacing: 1px;
}

.brand-slogan {
  font-size: 13px;
  color: var(--gray-text);
  white-space: nowrap;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li a {
  display: block;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-brown);
  border-radius: var(--radius-md);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-list li a:hover {
  background-color: var(--bg-cream);
  color: var(--accent-orange);
}

.nav-list li a.is-current {
  background-color: var(--accent-orange);
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--ink-brown);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* 页脚 */
.site-footer {
  background-color: var(--ink-brown);
  color: #D8CCC2;
  margin-top: 60px;
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 48px var(--gutter) 24px;
}

.footer-brand {
  margin-bottom: 32px;
}

.footer-brand-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  display: block;
  margin-bottom: 6px;
}

.footer-desc {
  font-size: 14px;
  color: #B8A99C;
  max-width: 420px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h3 {
  font-size: 15px;
  color: var(--white);
  margin-bottom: 14px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: 14px;
  color: #B8A99C;
}

.footer-col ul li a:hover {
  color: var(--apricot);
}

.footer-bottom {
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: #9C8C80;
  margin: 0;
}

/* 内页统一骨架 */
.inner-main {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  padding: 20px 0 0;
  color: var(--gray-text);
}

.breadcrumb a {
  color: var(--gray-text);
}

.breadcrumb a:hover {
  color: var(--accent-orange);
}

.breadcrumb-sep {
  color: #B8A99C;
}

.breadcrumb-current {
  color: var(--accent-orange);
  font-weight: 500;
}

.page-header {
  padding: 28px 0 32px;
  border-bottom: 1px solid var(--line-light);
  margin-bottom: 32px;
}

.page-title {
  font-size: 28px;
  color: var(--ink-brown);
  margin-bottom: 10px;
}

.page-description {
  font-size: 16px;
  color: var(--gray-text);
  max-width: var(--content-max);
  margin: 0;
}

/* 内页双栏布局（左侧栏 / 右侧栏） */

.page-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.page-layout.sidebar-left {
  grid-template-columns: 240px minmax(0, 1fr);
}

/* 右侧栏布局（主内容在前，aside 在后） */
.layout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

/* 侧栏通用 */
.toc,
.aside-tips,
.conclusion-panel,
.reading-time {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  background-color: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  padding: 20px;
}

.toc-title,
.aside-inner h2,
.aside-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-brown);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--apricot);
}

.toc-list li,
.aside-inner ul li {
  margin-bottom: 4px;
}

.toc-list li a,
.aside-inner ul li a {
  display: block;
  padding: 8px 10px;
  font-size: 14px;
  color: var(--ink-brown);
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
}

.toc-list li a:hover,
.aside-inner ul li a:hover {
  color: var(--accent-orange);
  background-color: var(--bg-cream);
  border-left-color: var(--accent-orange);
}

/* 章节锚点滚动补偿 */
.content-section,
.doc-chapter,
.week-group {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

/* ==========================================================================
   Components —— 通用组件：封面卡、题材标签、对比表、时间线、折叠、书架
   ========================================================================== */

/* 封面卡（通用） */
.card-figure,
.hero-figure,
.style-compare,
.content-media,
.doc-figure,
.genre-atmosphere {
  overflow: hidden;
  border-radius: var(--radius-md);
  background-color: var(--apricot);
}

.card-figure img,
.hero-figure img,
.style-compare img,
.content-media img,
.doc-figure img,
.genre-atmosphere img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 题材标签（通用） */
.genre-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 999px;
  background-color: var(--apricot);
  color: var(--ink-brown);
  white-space: nowrap;
}

/* 区块标题（通用） */
.section-heading {
  margin-bottom: 24px;
}

.section-heading h2,
.section-title {
  font-size: 22px;
  color: var(--ink-brown);
  margin-bottom: 8px;
}

.section-heading p,
.section-desc {
  font-size: 15px;
  color: var(--gray-text);
  margin: 0;
}

/* 折叠 FAQ */
.faq-item {
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  background-color: var(--white);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-brown);
  cursor: pointer;
  list-style: none;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--accent-orange);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--line-light);
}

.faq-item p {
  padding: 14px 20px 18px;
  font-size: 15px;
  color: var(--gray-text);
  margin: 0;
}

/* 章节链接 */
.section-link,
.note-link,
.verdict-link,
.error-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-orange);
  padding: 8px 0;
}

.section-link::after,
.note-link::after,
.verdict-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.section-link:hover::after,
.note-link:hover::after,
.verdict-link:hover::after {
  transform: translateX(4px);
}

/* ==========================================================================
   Pages —— 首页
   ========================================================================== */

/* 首屏分流区 */
.hero-routes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0 56px;
}

.hero-visual {
  position: relative;
}

.hero-figure {
  aspect-ratio: 4 / 5;
  max-height: 520px;
  box-shadow: var(--shadow-soft);
}

.hero-figure figcaption {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--gray-text);
  background-color: var(--white);
  border-top: 1px solid var(--line-light);
}

.routes-panel {
  padding: 8px 0;
}

.home-title {
  font-size: 28px;
  color: var(--ink-brown);
  margin-bottom: 14px;
  line-height: 1.4;
}

.home-lead {
  font-size: 16px;
  color: var(--gray-text);
  margin-bottom: 28px;
  max-width: 480px;
}

.route-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.route-card {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background-color: var(--white);
  border: 1px solid var(--line-light);
  border-left: 4px solid var(--accent-orange);
  border-radius: var(--radius-md);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.route-card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.route-label {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-brown);
}

.route-desc {
  font-size: 14px;
  color: var(--gray-text);
  margin: 0;
}

.route-more {
  font-size: 14px;
  color: var(--accent-orange);
  font-weight: 600;
  white-space: nowrap;
}

/* 本期对比推荐 */
.compare-decision {
  padding: 48px 0;
  border-top: 1px solid var(--line-light);
}

.compare-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

.compare-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.compare-card {
  background-color: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
}

.compare-card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.compare-card .card-figure {
  aspect-ratio: 16 / 10;
  border-radius: 0;
  margin-bottom: 0;
}

.compare-card h3 {
  font-size: 17px;
  padding: 16px 18px 8px;
}

.dimension-list {
  padding: 0 18px 18px;
}

.dimension-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line-light);
  font-size: 14px;
}

.dimension-row:last-child {
  border-bottom: none;
}

.dimension-row dt {
  color: var(--gray-text);
  flex-shrink: 0;
}

.dimension-row dd {
  color: var(--ink-brown);
  font-weight: 500;
  text-align: right;
}

.compare-verdict {
  background-color: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  padding: 24px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.compare-verdict h3 {
  font-size: 17px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--apricot);
}

.compare-verdict p {
  font-size: 14px;
  color: var(--gray-text);
}

.verdict-link {
  font-size: 14px;
}

/* 最近更新速递 */
.update-list {
  padding: 48px 0;
  border-top: 1px solid var(--line-light);
}

.update-items {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 20px;
}

.update-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background-color: var(--white);
  border: 1px solid var(--line-light);
  border-bottom: none;
  transition: background-color 0.2s ease;
}

.update-item:first-child {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.update-item:last-child {
  border-bottom: 1px solid var(--line-light);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.update-item:hover {
  background-color: #FBECDF;
}

.update-item img {
  width: 64px;
  height: 84px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.update-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.update-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-brown);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.update-tag {
  align-self: flex-start;
}

.update-note {
  font-size: 14px;
  color: var(--gray-text);
  white-space: nowrap;
}

/* 热门题材目录 */
.genre-wall {
  padding: 48px 0;
  border-top: 1px solid var(--line-light);
}

.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.genre-tag {
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  gap: 8px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.genre-tag:hover {
  background-color: var(--accent-orange);
  color: var(--white);
  transform: translateY(-2px);
}

.genre-tag:nth-child(3n+1) {
  background-color: #F5D9C8;
}

.genre-tag:nth-child(3n+2) {
  background-color: var(--apricot);
}

.genre-tag:nth-child(3n+3) {
  background-color: #D5DECA;
}

.genre-tag:nth-child(3n+1):hover {
  background-color: var(--accent-orange);
}

.genre-hint {
  font-size: 14px;
  color: var(--gray-text);
  margin: 0;
}

/* 完结书架 */
.completed-shelf {
  padding: 48px 0;
  border-top: 1px solid var(--line-light);
}

.shelf-track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.shelf-card {
  background-color: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.shelf-card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-4px);
}

.shelf-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.shelf-card h3 {
  font-size: 15px;
  padding: 12px 12px 4px;
}

.shelf-meta {
  display: block;
  font-size: 13px;
  color: var(--gray-text);
  padding: 0 12px 14px;
}

/* 阅读说明入口 */
.reading-note-entry {
  padding: 40px 0;
  border-top: 1px solid var(--line-light);
}

.note-content {
  background-color: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.note-content h2 {
  font-size: 20px;
  margin-bottom: 6px;
}

.note-content p {
  font-size: 15px;
  color: var(--gray-text);
  margin: 0;
}

.note-link {
  flex-shrink: 0;
  font-size: 15px;
}

/* ==========================================================================
   Pages —— 入坑指南
   ========================================================================== */

.page-layout.sidebar-left {
  grid-template-columns: 240px minmax(0, 1fr);
}

.steps {
  max-width: var(--content-max);
}

.content-section {
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-light);
}

.content-section:last-of-type {
  border-bottom: none;
}

.content-section h2 {
  font-size: 22px;
  margin-bottom: 12px;
}

.content-section > p {
  font-size: 15px;
  color: var(--gray-text);
  margin-bottom: 20px;
}

/* 题材速览 */
.genre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.genre-card {
  background-color: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.genre-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--accent-orange);
}

.genre-card p {
  font-size: 14px;
  color: var(--gray-text);
  margin: 0;
}

/* 篇幅认识 */
.length-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.length-card {
  background-color: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  text-align: center;
}

.length-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.length-range {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-orange);
  background-color: #F5D9C8;
  padding: 2px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.length-card p:last-child {
  font-size: 14px;
  color: var(--gray-text);
  margin: 0;
}

/* 画风对比图 */
.style-compare {
  aspect-ratio: 16 / 9;
  margin-bottom: 40px;
}

.style-compare figcaption {
  padding: 10px 16px;
  font-size: 14px;
  color: var(--gray-text);
  background-color: var(--white);
  border-top: 1px solid var(--line-light);
}

/* 三步选漫 */
.step-list {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 16px;
}

.step-item {
  counter-increment: step;
  background-color: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  padding: 22px 24px 22px 72px;
  position: relative;
}

.step-item::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 22px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--accent-orange);
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-item h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.step-item p {
  font-size: 15px;
  color: var(--gray-text);
  margin: 0;
}

.section-more {
  font-size: 14px;
  margin-top: 16px;
}

.section-more a {
  font-weight: 600;
  margin-right: 16px;
}

/* 文末入口 */
.note-entry {
  background-color: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 40px;
}

.note-entry p {
  font-size: 15px;
  color: var(--gray-text);
  margin: 0;
}

.note-entry a {
  font-weight: 600;
}

/* ==========================================================================
   Pages —— 追更日历
   ========================================================================== */

.layout-shell .inner-main {
  max-width: none;
  padding: 0;
}

/* 星期轨道 */
.week-strip {
  margin-bottom: 36px;
}

.week-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
}

.week-chip {
  flex-shrink: 0;
  min-width: 72px;
  text-align: center;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-brown);
  background-color: var(--white);
  border: 1px solid var(--line-light);
  border-radius: 999px;
  transition: all 0.2s ease;
}

.week-chip:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

.week-chip.is-active {
  background-color: var(--accent-orange);
  color: var(--white);
  border-color: var(--accent-orange);
}

.content-media-inline {
  aspect-ratio: 21 / 9;
  margin-top: 16px;
}

.content-media-inline figcaption {
  padding: 10px 16px;
  font-size: 14px;
  color: var(--gray-text);
  background-color: var(--white);
  border-top: 1px solid var(--line-light);
}

/* 时间线 */
.timeline {
  margin-bottom: 48px;
}

.timeline h2 {
  font-size: 22px;
  margin-bottom: 24px;
}

.week-group {
  margin-bottom: 28px;
  padding-left: 20px;
  border-left: 3px solid var(--apricot);
}

.week-head h3 {
  font-size: 18px;
  color: var(--accent-orange);
  margin-bottom: 12px;
}

.genre-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.genre-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background-color: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.genre-list li .genre-tag {
  flex-shrink: 0;
  margin-top: 2px;
}

.genre-list li p {
  font-size: 14px;
  color: var(--gray-text);
  margin: 0;
}

/* 更新提示 */
.update-tips {
  background-color: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 40px;
}

.update-tips h2 {
  font-size: 20px;
  margin-bottom: 12px;
}

.update-tips p {
  font-size: 15px;
  color: var(--gray-text);
  margin-bottom: 10px;
}

.update-tips p:last-child {
  margin-bottom: 0;
}

/* 应季阅读 */
.seasonal-reading {
  margin-bottom: 40px;
}

.seasonal-reading h2 {
  font-size: 22px;
  margin-bottom: 20px;
}

.season-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.season-card {
  background-color: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  padding: 20px;
}

.season-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--accent-orange);
}

.season-card p {
  font-size: 14px;
  color: var(--gray-text);
  margin: 0;
}

/* 互链区 */
.cross-link {
  background-color: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  padding: 24px 28px;
}

.cross-link h2 {
  font-size: 18px;
  margin-bottom: 12px;
}

.cross-link p {
  font-size: 15px;
  color: var(--gray-text);
  margin: 0;
}

.cross-link a {
  font-weight: 600;
  margin-right: 16px;
}

/* 右侧提示栏 */
.aside-tips .aside-inner p {
  font-size: 14px;
  color: var(--gray-text);
  margin-bottom: 14px;
}

.aside-tips .aside-inner p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Pages —— 完结书库
   ========================================================================== */

.shelf-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
}

.layout-main {
  min-width: 0;
}

.archive-section {
  margin-bottom: 32px;
}

.filter-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 24px;
}

.filter-chip {
  flex-shrink: 0;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-brown);
  background-color: var(--white);
  border: 1px solid var(--line-light);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}

.filter-chip:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

.filter-chip.is-active {
  background-color: var(--accent-orange);
  color: var(--white);
  border-color: var(--accent-orange);
}

/* 书架网格 */
.shelf-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* 右栏结论 */
.conclusion-panel {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.conclusion-block {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line-light);
}

.conclusion-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.conclusion-block h3 {
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--accent-orange);
}

.conclusion-block p {
  font-size: 14px;
  color: var(--gray-text);
  margin: 0;
}

/* 对比说明 */
.compare-note {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line-light);
}

.compare-note .section-title {
  margin-bottom: 20px;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.compare-item {
  background-color: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  padding: 20px;
}

.compare-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.compare-item p {
  font-size: 14px;
  color: var(--gray-text);
  margin: 0;
}

/* ==========================================================================
   Pages —— 题材书单
   ========================================================================== */

.selector {
  margin-bottom: 32px;
}

.selector-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.selector-item {
  flex-shrink: 0;
  padding: 10px 28px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-brown);
  background-color: var(--white);
  border: 1px solid var(--line-light);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}

.selector-item:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

.selector-item.is-active {
  background-color: var(--accent-orange);
  color: var(--white);
  border-color: var(--accent-orange);
}

/* 对比表 */
.compare-table {
  margin-bottom: 48px;
}

.compare-panel {
  display: none;
}

.compare-panel.is-active {
  display: block;
}

.genre-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.genre-table th,
.genre-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line-light);
  font-size: 15px;
}

.genre-table thead th {
  background-color: var(--ink-brown);
  color: var(--white);
  font-weight: 600;
}

.genre-table tbody th {
  background-color: var(--bg-cream);
  font-weight: 600;
  color: var(--ink-brown);
  width: 140px;
  white-space: nowrap;
}

.genre-table tbody td {
  color: var(--gray-text);
}

.genre-table tbody tr:last-child th,
.genre-table tbody tr:last-child td {
  border-bottom: none;
}

/* 右侧双栏 */
.sidebar-right .page-layout {
  grid-template-columns: minmax(0, 1fr) 280px;
}

.verdict-card {
  background-color: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 14px;
}

.verdict-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--accent-orange);
}

.verdict-card p {
  font-size: 14px;
  color: var(--gray-text);
  margin: 0;
}

.reading-time {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.time-list {
  margin: 16px 0;
}

.time-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line-light);
  font-size: 14px;
}

.time-list li:last-child {
  border-bottom: none;
}

.time-genre {
  font-weight: 600;
  color: var(--ink-brown);
}

.time-note {
  color: var(--gray-text);
}

.time-summary {
  font-size: 14px;
  color: var(--gray-text);
  background-color: var(--bg-cream);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 0;
}

/* 选漫思路 */
.genre-notes {
  margin-bottom: 40px;
}

.note-item {
  background-color: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-bottom: 16px;
}

.note-item h3 {
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--accent-orange);
}

.note-item p {
  font-size: 15px;
  color: var(--gray-text);
  margin: 0;
}

.notes-footer {
  font-size: 14px;
  margin-top: 20px;
}

.notes-footer a {
  font-weight: 600;
}

.genre-atmosphere {
  aspect-ratio: 21 / 8;
  margin-bottom: 40px;
}

.genre-atmosphere figcaption {
  padding: 10px 16px;
  font-size: 14px;
  color: var(--gray-text);
  background-color: var(--white);
  border-top: 1px solid var(--line-light);
}

/* ==========================================================================
   Pages —— 阅读说明
   ========================================================================== */

.chapters {
  max-width: var(--content-max);
}

.doc-chapter {
  margin-bottom: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line-light);
}

.doc-chapter:last-child {
  border-bottom: none;
}

.doc-chapter h2 {
  font-size: 22px;
  margin-bottom: 14px;
}

.doc-chapter p {
  font-size: 15px;
  color: var(--gray-text);
  margin-bottom: 14px;
}

.doc-figure {
  aspect-ratio: 16 / 7;
  margin: 20px 0;
}

.doc-figure figcaption {
  padding: 10px 16px;
  font-size: 14px;
  color: var(--gray-text);
  background-color: var(--white);
  border-top: 1px solid var(--line-light);
}

.column-guide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 20px 0;
}

.guide-item {
  background-color: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  padding: 18px;
}

.guide-item h3 {
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--accent-orange);
}

.guide-item p {
  font-size: 14px;
  color: var(--gray-text);
  margin: 0;
}

/* 右侧目录 */
.toc-note {
  font-size: 13px;
  color: var(--gray-text);
  padding: 12px 0;
  margin: 12px 0;
  border-top: 1px dashed var(--line-light);
  border-bottom: 1px dashed var(--line-light);
}

.toc-links li {
  margin-bottom: 4px;
}

.toc-links li a {
  display: block;
  padding: 6px 10px;
  font-size: 14px;
  color: var(--ink-brown);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.toc-links li a:hover {
  color: var(--accent-orange);
  background-color: var(--bg-cream);
}

/* ==========================================================================
   Pages —— 404
   ========================================================================== */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  flex: 1 0 auto;
}

.error-panel {
  text-align: center;
  max-width: 520px;
  background-color: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
}

.error-code {
  font-size: 72px;
  font-weight: 700;
  color: var(--accent-orange);
  line-height: 1;
  margin-bottom: 16px;
}

.error-panel h1 {
  font-size: 24px;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: var(--gray-text);
  margin-bottom: 24px;
}

.error-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--accent-orange);
  color: var(--white);
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
  transition: background-color 0.2s ease;
}

.error-btn:hover {
  background-color: #A63F20;
  color: var(--white);
}

.error-btn::after {
  content: "→";
}

.error-help {
  font-size: 14px;
  color: var(--gray-text);
  margin: 0;
}

/* ==========================================================================
   Responsive —— 响应式断点
   ========================================================================== */

/* 平板以下 1024px */
@media (max-width: 1024px) {
  .hero-routes {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-visual {
    max-width: 480px;
  }

  .compare-layout {
    grid-template-columns: 1fr;
  }

  .compare-verdict {
    position: static;
  }

  .shelf-track {
    grid-template-columns: repeat(3, 1fr);
  }

  .shelf-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .layout-shell,
  .shelf-layout,
  .sidebar-right .page-layout {
    grid-template-columns: 1fr;
  }

  .conclusion-panel,
  .aside-tips,
  .reading-time {
    position: static;
  }

  .page-layout,
  .page-layout.sidebar-left {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
    order: 2;
  }

  .page-layout.sidebar-left .steps {
    order: 1;
  }

  .page-layout.sidebar-left .toc {
    order: 2;
    margin-top: 24px;
  }

  /* 追更日历：右侧栏在正文后 */
  .layout-shell .inner-main {
    order: 1;
  }

  .layout-shell > .aside-tips {
    order: 2;
  }
}

/* 手机端 768px */
@media (max-width: 768px) {
  :root {
    --header-h: 60px;
  }

  .header-inner {
    height: var(--header-h);
  }

  .brand-slogan {
    display: none;
  }

  /* 导航切换 */
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--line-light);
    box-shadow: var(--shadow-soft);
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    padding: 12px 20px;
    gap: 2px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li a {
    padding: 12px 16px;
    font-size: 16px;
  }

  .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);
  }

  /* 首页 */
  .hero-routes {
    padding: 32px 0;
  }

  .route-card {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 18px;
  }

  .route-more {
    margin-top: 6px;
  }

  .compare-cards {
    grid-template-columns: 1fr;
  }

  .update-item {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
  }

  .update-item img {
    width: 52px;
    height: 70px;
  }

  .update-note {
    grid-column: 2;
    white-space: normal;
  }

  .shelf-track {
    grid-template-columns: repeat(2, 1fr);
  }

  .note-content {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }

  /* 内页 */
  .page-header {
    padding: 20px 0 24px;
    margin-bottom: 24px;
  }

  .page-title {
    font-size: 24px;
  }

  .genre-grid,
  .length-cards,
  .season-cards,
  .compare-grid,
  .column-guide {
    grid-template-columns: 1fr;
  }

  .step-item {
    padding: 18px 18px 18px 60px;
  }

  .step-item::before {
    left: 14px;
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .week-chip {
    min-width: 64px;
    padding: 8px 14px;
    font-size: 14px;
  }

  .genre-list li {
    flex-direction: column;
    gap: 6px;
  }

  .shelf-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .compare-item {
    padding: 16px;
  }

  .genre-table th,
  .genre-table td {
    padding: 12px 14px;
    font-size: 14px;
  }

  .genre-table tbody th {
    width: 90px;
    font-size: 13px;
  }

  .error-panel {
    padding: 32px 20px;
  }

  .error-code {
    font-size: 56px;
  }

  /* 页脚 */
  .footer-links {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-inner {
    padding: 32px 20px 20px;
  }
}

/* 小屏 480px */
@media (max-width: 480px) {
  .shelf-track,
  .shelf-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .brand-name {
    font-size: 20px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .route-cards {
    gap: 10px;
  }

  .genre-tags {
    gap: 10px;
  }

  .genre-tag {
    padding: 8px 16px;
    font-size: 14px;
  }

  .update-item {
    padding: 10px 12px;
  }

  .dimension-row {
    flex-direction: column;
    gap: 2px;
  }

  .dimension-row dd {
    text-align: left;
  }

  .compare-verdict,
  .conclusion-panel,
  .aside-tips,
  .reading-time {
    padding: 16px;
  }

  .content-section {
    margin-bottom: 36px;
    padding-bottom: 28px;
  }

  .genre-list li {
    padding: 12px;
  }
}
