/* ==========================================================================
   极速漫画 - 整站样式表
   视觉方向：专题档案风 · 米白纸感 · 朱红藏青点缀
   ========================================================================== */

/* ==========================================================================
   Base
   ========================================================================== */

:root {
  --paper: #F7F3EA;
  --ink: #2B2B2B;
  --white: #FFFFFF;
  --red: #C8452C;
  --blue: #2A5A6B;
  --gray: #6B6B6B;
  --line: #E2DCCF;
  --line-dark: #C9C2B3;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--red);
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* ==========================================================================
   Layout - 全站骨架
   ========================================================================== */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1 0 auto;
}

/* ---------- 页头 ---------- */

.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--ink);
  position: relative;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  flex-shrink: 0;
}

.brand-name {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 2px;
}

.brand-tagline {
  font-size: 12px;
  color: var(--gray);
  letter-spacing: 1px;
}

.site-nav {
  flex: 1;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  color: var(--ink);
  font-size: 14px;
}

.nav-toggle-icon {
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  display: block;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.nav-list {
  display: flex;
  gap: 4px;
}

.nav-list li a {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  border-radius: 4px;
  border: 1px solid transparent;
}

.nav-list li a:hover {
  color: var(--red);
  border-color: var(--line);
  background: var(--paper);
}

.nav-list li a.is-current {
  color: var(--red);
  border-color: var(--red);
  background: rgba(200, 69, 44, 0.06);
  font-weight: 700;
}

.genre-quick-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.genre-quick-nav a {
  font-size: 13px;
  padding: 4px 12px;
  border: 1px solid var(--line-dark);
  border-radius: 20px;
  color: var(--gray);
  background: var(--paper);
  transition: all 0.2s ease;
}

.genre-quick-nav a:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--white);
}

/* ---------- 页脚 ---------- */

.site-footer {
  background: var(--ink);
  color: #D8D2C5;
  margin-top: 80px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.footer-col h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: #B5AFA1;
  font-size: 14px;
}

.footer-col ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: #8F897D;
  margin-bottom: 4px;
}

.footer-bottom .footer-brand {
  font-size: 16px;
  font-weight: 700;
  color: #D8D2C5;
}

.footer-bottom .footer-copy {
  margin-top: 8px;
  font-size: 12px;
}

/* ---------- 面包屑 ---------- */

.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 0;
  font-size: 14px;
  color: var(--gray);
}

.breadcrumb a {
  color: var(--blue);
}

.breadcrumb-sep {
  margin: 0 8px;
  color: var(--line-dark);
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 500;
}

/* ---------- 内页通用 ---------- */

.inner-main {
  width: 100%;
}

.page-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 8px;
}

.page-description {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--red);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
  display: inline-block;
}

.page-intro,
.page-desc,
.page-lead {
  margin-top: 16px;
  font-size: 16px;
  color: var(--gray);
  max-width: 720px;
}

/* ---------- 相关链接条 ---------- */

.related-links {
  max-width: 1200px;
  margin: 48px auto 0;
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.related-links-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.related-links-item {
  font-size: 14px;
  padding: 6px 16px;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  color: var(--blue);
  background: var(--white);
  transition: all 0.2s ease;
}

.related-links-item:hover {
  border-color: var(--red);
  color: var(--red);
}

/* ==========================================================================
   Components - 通用组件
   ========================================================================== */

/* ---------- 按钮 ---------- */

.btn-primary {
  display: inline-block;
  padding: 10px 28px;
  background: var(--red);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  border-radius: 4px;
  border: 2px solid var(--red);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: #A93A25;
  border-color: #A93A25;
  color: var(--white);
}

.btn-secondary {
  display: inline-block;
  padding: 10px 28px;
  background: transparent;
  color: var(--blue);
  font-size: 15px;
  font-weight: 600;
  border-radius: 4px;
  border: 2px solid var(--blue);
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--blue);
  color: var(--white);
}

/* ---------- 题材标签 ---------- */

.genre-label {
  display: inline-block;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--red);
  border: 1px solid rgba(200, 69, 44, 0.4);
  padding: 2px 10px;
  border-radius: 2px;
  background: rgba(200, 69, 44, 0.05);
}

.genre-tag {
  display: inline-block;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--blue);
  border: 1px solid rgba(42, 90, 107, 0.4);
  padding: 2px 10px;
  border-radius: 2px;
  background: rgba(42, 90, 107, 0.05);
}

/* ---------- 档案编号 ---------- */

.archive-label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--red);
  letter-spacing: 2px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.archive-label::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--red);
}

.archive-no,
.rank-no,
.rank-number,
.batch-no,
.step-no {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gray);
}

/* ---------- 区块标题 ---------- */

.section-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.section-intro {
  font-size: 15px;
  color: var(--gray);
  margin-bottom: 24px;
  max-width: 720px;
}

.section-more-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  margin-top: 20px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--blue);
}

.section-more-link:hover {
  color: var(--red);
  border-color: var(--red);
}

/* ==========================================================================
   Components - 首页
   ========================================================================== */

.home-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Hero ---------- */

.hero-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  padding: 56px 0 48px;
  align-items: center;
}

.hero-copy h1 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.3;
  margin: 16px 0 12px;
  color: var(--ink);
}

.hero-description {
  font-size: 17px;
  color: var(--gray);
  margin-bottom: 28px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-figure {
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--white);
  box-shadow: 6px 6px 0 rgba(43, 43, 43, 0.12);
  overflow: hidden;
}

.hero-figure img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.hero-figure figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--gray);
  border-top: 1px solid var(--line);
  background: var(--paper);
}

/* ---------- 快速找作品 ---------- */

.quick-find-section {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.genre-index-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.genre-index-grid .genre-tag {
  font-size: 14px;
  padding: 8px 22px;
  border-radius: 4px;
  background: var(--white);
  border: 1px solid var(--line-dark);
  color: var(--ink);
  transition: all 0.2s ease;
}

.genre-index-grid .genre-tag:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
}

.column-entry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.column-entry {
  display: block;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.column-entry:hover {
  border-color: var(--red);
  border-left-color: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(43, 43, 43, 0.08);
}

.column-entry h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.column-entry p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.5;
}

/* ---------- 编辑网格 ---------- */

.editorial-grid-section {
  padding: 48px 0;
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(43, 43, 43, 0.1);
}

.feature-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-large img {
  height: 260px;
}

.card-body {
  padding: 20px;
}

.card-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 8px 0 6px;
  color: var(--ink);
}

.card-body p:last-child {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
}

.summary-strip {
  grid-column: 1 / -1;
  background: var(--blue);
  color: var(--white);
  padding: 24px 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.strip-title {
  font-size: 18px;
  font-weight: 700;
}

.summary-strip p:nth-child(2) {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  flex: 1;
  max-width: 520px;
}

.summary-strip a {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  padding-bottom: 2px;
  white-space: nowrap;
}

.summary-strip a:hover {
  color: var(--paper);
}

/* ---------- 更新速递存档 ---------- */

.update-archive-section {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.update-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.update-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: border-color 0.2s ease;
}

.update-item:hover {
  border-color: var(--red);
}

.update-item .archive-no {
  min-width: 48px;
  font-size: 20px;
  font-weight: 700;
  color: var(--line-dark);
}

.update-item img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--line);
}

.update-info {
  flex: 1;
}

.update-info h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 4px 0;
  color: var(--ink);
}

.update-info p:last-child {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.5;
}

/* ---------- 热度排行摘要 ---------- */

.ranking-summary-section {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.ranking-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.ranking-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 20px;
  transition: all 0.2s ease;
}

.ranking-item:hover {
  border-color: var(--red);
  transform: translateY(-3px);
}

.rank-no {
  font-size: 24px;
  font-weight: 700;
  color: var(--red);
  display: block;
  margin-bottom: 8px;
}

.rank-info h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 6px 0;
  color: var(--ink);
}

.rank-info p:last-child {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.5;
}

/* ---------- 追更指南时间线 ---------- */

.guide-timeline-section {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.timeline-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

.step-item {
  position: relative;
  padding: 24px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: 4px;
}

.step-no {
  font-size: 14px;
  color: var(--red);
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}

.step-content h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
}

.step-content p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.6;
}

/* ---------- 作品特辑提示卡 ---------- */

.featured-topic-section {
  padding: 48px 0;
}

.topic-card {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 0;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 6px;
  overflow: hidden;
}

.topic-card img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}

.topic-content {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.topic-content h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
}

.topic-content p:not(.archive-label) {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.7;
}

.topic-content .btn-primary {
  align-self: flex-start;
  margin-top: 8px;
}

/* ---------- 版权与反馈条 ---------- */

.copyright-feedback-bar {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.copyright-feedback-bar p {
  font-size: 14px;
  color: var(--gray);
}

.copyright-feedback-bar a {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  padding: 8px 20px;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  white-space: nowrap;
}

.copyright-feedback-bar a:hover {
  border-color: var(--red);
  color: var(--red);
}

/* ==========================================================================
   Components - 题材导览页 (tocai)
   ========================================================================== */

.page-layout.sidebar-left {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 0;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}

.genre-anchor-nav {
  position: sticky;
  top: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px 20px;
}

.aside-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
}

.anchor-list li {
  margin-bottom: 4px;
}

.anchor-list li a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--gray);
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
}

.anchor-list li a:hover {
  color: var(--red);
  border-left-color: var(--red);
  background: rgba(200, 69, 44, 0.04);
}

/* 题材分组 */

.genre-group {
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.genre-group:last-of-type {
  border-bottom: none;
}

.genre-group-head {
  margin-bottom: 20px;
}

.genre-group-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
}

.genre-group-title::before {
  content: "";
  width: 6px;
  height: 24px;
  background: var(--red);
  border-radius: 2px;
}

.genre-group-desc {
  font-size: 14px;
  color: var(--gray);
  margin-top: 8px;
}

.genre-series-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.series-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.series-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(43, 43, 43, 0.08);
  border-color: var(--red);
}

.series-cover {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.series-cover img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.series-card .genre-label {
  margin: 16px 16px 0;
}

.series-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 8px 16px;
}

.series-desc {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.6;
  margin: 0 16px 20px;
}

/* 跨题材提示 */

.cross-genre-tip {
  background: rgba(42, 90, 107, 0.06);
  border: 1px solid rgba(42, 90, 107, 0.25);
  border-radius: 6px;
  padding: 28px 32px;
  margin-top: 8px;
}

.tip-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 8px;
}

.tip-desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
}

.tip-desc a {
  font-weight: 600;
}

/* ==========================================================================
   Components - 更新速递页 (gengxin)
   ========================================================================== */

.page-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 0;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.main-content {
  min-width: 0;
}

.update-batch {
  margin-bottom: 48px;
}

.batch-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.batch-no {
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
  border: 1px solid rgba(200, 69, 44, 0.4);
  padding: 2px 10px;
  border-radius: 2px;
}

.batch-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}

.batch-desc {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 20px;
}

.update-list .update-item {
  margin-bottom: 12px;
}

.update-thumb {
  width: 64px;
  height: 84px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--line);
}

.update-info .genre-label {
  margin-bottom: 4px;
}

.update-info h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 4px 0;
}

.update-info p:last-child {
  font-size: 13px;
  color: var(--gray);
}

.update-note {
  font-size: 13px;
  color: var(--gray);
  font-style: italic;
}

/* 侧栏 */

.sidebar-content {
  position: sticky;
  top: 24px;
}

.sidebar-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
}

.sidebar-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--blue);
  border: 1px solid rgba(42, 90, 107, 0.4);
  padding: 2px 10px;
  border-radius: 2px;
  margin-bottom: 12px;
}

.sidebar-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
}

.sidebar-tips li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink);
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}

.sidebar-tips li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--red);
  border-radius: 50%;
}

.sidebar-tips li:last-child {
  border-bottom: none;
}

.sidebar-note {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.6;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.sidebar-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  border-bottom: 1px solid var(--blue);
  padding-bottom: 2px;
}

.sidebar-link:hover {
  color: var(--red);
  border-color: var(--red);
}

/* ==========================================================================
   Components - 热度排行页 (paihang)
   ========================================================================== */

.layout-with-aside {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 0;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.rank-main {
  min-width: 0;
}

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.rank-item:hover {
  border-color: var(--red);
  transform: translateX(4px);
}

.rank-number {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--red);
  min-width: 40px;
}

.rank-content {
  flex: 1;
  min-width: 0;
}

.rank-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.rank-content .genre-tag {
  margin-bottom: 4px;
}

.rank-desc {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.5;
}

.rank-thumb {
  width: 56px;
  height: 72px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--line);
}

.no-thumb {
  width: 56px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--line-dark);
  border: 1px dashed var(--line-dark);
  border-radius: 3px;
  background: var(--paper);
}

/* 侧栏 */

.rank-aside {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.new-arrivals,
.rank-note {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
}

.new-list li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.new-list li:last-child {
  border-bottom: none;
}

.new-list img {
  width: 48px;
  height: 64px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--line);
}

.new-info h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.rank-note p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 8px;
}

/* ==========================================================================
   Components - 追更指南页 (zhinan)
   ========================================================================== */

.article-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 0;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
}

.guide-article {
  max-width: 720px;
  min-width: 0;
}

.guide-section {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.guide-section:last-of-type {
  border-bottom: none;
}

.guide-section h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.guide-section h2::before {
  content: "";
  width: 6px;
  height: 20px;
  background: var(--red);
  border-radius: 2px;
}

.guide-section > p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 16px;
}

.goal-list li,
.prep-list li,
.step-list li,
.check-list li {
  padding: 10px 0 10px 24px;
  position: relative;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.7;
}

.goal-list li::before,
.prep-list li::before,
.step-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--blue);
  border-radius: 2px;
}

.check-list li {
  padding-left: 32px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--blue);
  border-radius: 3px;
  background: var(--white);
}

/* FAQ */

.faq-item {
  border: 1px solid var(--line);
  border-radius: 4px;
  margin-bottom: 12px;
  background: var(--white);
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 40px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--red);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  background: rgba(200, 69, 44, 0.04);
}

.faq-item .faq-answer {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

/* 侧栏 */

.related-card {
  position: sticky;
  top: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
}

.related-card h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
}

.related-card ul li {
  margin-bottom: 8px;
}

.related-card ul li a {
  font-size: 14px;
  color: var(--blue);
  display: block;
  padding: 8px 12px;
  border-radius: 4px;
  background: rgba(42, 90, 107, 0.05);
  transition: all 0.2s ease;
}

.related-card ul li a:hover {
  color: var(--red);
  background: rgba(200, 69, 44, 0.06);
}

/* 配图 */

.guide-figure {
  max-width: 720px;
  margin: 16px auto 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--white);
}

.guide-figure img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.guide-figure figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--gray);
  border-top: 1px solid var(--line);
}

/* ==========================================================================
   Components - 作品特辑页 (zhuanti)
   ========================================================================== */

.feature-summary {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 0;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.summary-text h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
}

.summary-text p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 12px;
}

.summary-media {
  border: 2px solid var(--ink);
  border-radius: 6px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 6px 6px 0 rgba(43, 43, 43, 0.1);
}

.summary-media img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.summary-media figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--gray);
  border-top: 1px solid var(--line);
}

/* 核心内容 */

.core-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 0;
}

.direction-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.direction-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: 6px;
  padding: 24px;
  transition: all 0.2s ease;
}

.direction-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(43, 43, 43, 0.08);
}

.card-index {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--red);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.direction-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.direction-feature {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 8px;
}

.direction-point {
  font-size: 13px;
  color: var(--blue);
  border-left: 3px solid var(--blue);
  padding-left: 12px;
  line-height: 1.6;
}

/* 过程说明 */

.process-guide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 0;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.process-step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px 20px;
  position: relative;
}

.step-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--blue);
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: block;
}

.process-step h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.process-step p:last-child {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.6;
}

/* 相关资料 */

.related-resources {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 0;
}

.resource-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.resource-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 20px;
  transition: all 0.2s ease;
}

.resource-list li:hover {
  border-color: var(--red);
}

.resource-list a {
  font-size: 16px;
  font-weight: 700;
  color: var(--blue);
  display: block;
  margin-bottom: 6px;
}

.resource-list p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.5;
}

/* 返回主站 */

.back-home-entry {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
  text-align: center;
}

.back-home-entry p {
  font-size: 15px;
  color: var(--gray);
  margin-bottom: 20px;
}

.back-home-link {
  display: inline-block;
  padding: 12px 36px;
  background: var(--ink);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.back-home-link:hover {
  background: var(--red);
  color: var(--white);
}

/* ==========================================================================
   Components - 版权声明页 (banquan)
   ========================================================================== */

.content-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 0;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
}

.content-main {
  max-width: 720px;
  min-width: 0;
}

.content-block {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.content-block:last-of-type {
  border-bottom: none;
}

.content-block h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.content-block h2::before {
  content: "";
  width: 6px;
  height: 20px;
  background: var(--blue);
  border-radius: 2px;
}

.content-block p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 12px;
}

.content-figure {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--white);
  margin: 16px 0;
}

.content-figure img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.content-figure figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--gray);
  border-top: 1px solid var(--line);
}

.boundary-list li,
.quote-list li,
.feedback-list li {
  padding: 10px 0 10px 24px;
  position: relative;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.7;
}

.boundary-list li::before,
.quote-list li::before,
.feedback-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--red);
  border-radius: 2px;
}

/* 相关区块 */

.related-block {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
}

.related-block h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
}

.related-list {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.related-list li a {
  display: block;
  padding: 12px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  transition: all 0.2s ease;
}

.related-list li a:hover {
  border-color: var(--red);
  color: var(--red);
}

/* ==========================================================================
   Components - 404 页
   ========================================================================== */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
}

.error-content {
  text-align: center;
  max-width: 480px;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 80px;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  margin-bottom: 16px;
}

.error-content h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: var(--gray);
  margin-bottom: 28px;
}

.error-home-link {
  display: inline-block;
  padding: 12px 32px;
  background: var(--ink);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.error-home-link:hover {
  background: var(--red);
  color: var(--white);
}

/* ==========================================================================
   Responsive - 断点
   ========================================================================== */

/* ---------- ≤ 1024px ---------- */

@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-figure img {
    height: 300px;
  }

  .column-entry-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .editorial-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ranking-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .timeline-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-layout.sidebar-left {
    grid-template-columns: 180px 1fr;
    gap: 24px;
  }

  .genre-series-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-layout,
  .layout-with-aside {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .sidebar-content,
  .rank-aside {
    position: static;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .related-card {
    position: static;
  }

  .content-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature-summary {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .direction-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .resource-list {
    grid-template-columns: 1fr;
  }

  .topic-card {
    grid-template-columns: 1fr;
  }

  .topic-card img {
    height: 220px;
  }
}

/* ---------- ≤ 768px ---------- */

@media (max-width: 768px) {
  .header-inner {
    gap: 16px;
    padding: 12px 16px;
  }

  .site-nav {
    order: 3;
    width: 100%;
  }

  .nav-toggle {
    display: flex;
    width: 100%;
    justify-content: space-between;
    border: 1px solid var(--line-dark);
    border-radius: 4px;
    padding: 10px 16px;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    gap: 0;
    margin-top: 8px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 8px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li a {
    padding: 12px 16px;
    border-radius: 4px;
    border: none;
    border-bottom: 1px solid var(--line);
  }

  .nav-list li:last-child a {
    border-bottom: none;
  }

  .genre-quick-nav {
    order: 2;
    width: 100%;
    justify-content: flex-start;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 16px 24px;
  }

  .home-main {
    padding: 0 16px;
  }

  .hero-section {
    padding: 32px 0;
  }

  .hero-copy h1 {
    font-size: 30px;
  }

  .hero-figure img {
    height: 220px;
  }

  .page-header {
    padding: 24px 16px 8px;
  }

  .page-title {
    font-size: 26px;
  }

  .breadcrumb {
    padding: 16px 16px 0;
  }

  .page-layout.sidebar-left {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 16px 0;
  }

  .genre-anchor-nav {
    position: static;
    order: 2;
  }

  .anchor-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .anchor-list li {
    margin: 0;
  }

  .anchor-list li a {
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 13px;
    border-left: 1px solid var(--line);
  }

  .anchor-list li a:hover {
    border-color: var(--red);
    border-left-color: var(--red);
  }

  .genre-series-grid {
    grid-template-columns: 1fr;
  }

  .page-layout,
  .layout-with-aside,
  .article-layout,
  .content-layout {
    padding: 24px 16px 0;
  }

  .rank-item {
    flex-wrap: wrap;
  }

  .rank-thumb,
  .no-thumb {
    order: 3;
  }

  .related-links {
    padding: 16px;
  }

  .feature-summary {
    padding: 24px 16px 0;
  }

  .core-content,
  .process-guide,
  .related-resources {
    padding: 32px 16px 0;
  }

  .back-home-entry {
    padding: 32px 16px;
  }
}

/* ---------- ≤ 480px ---------- */

@media (max-width: 480px) {
  .brand-name {
    font-size: 22px;
  }

  .brand-tagline {
    font-size: 11px;
  }

  .column-entry-grid {
    grid-template-columns: 1fr;
  }

  .editorial-grid {
    grid-template-columns: 1fr;
  }

  .summary-strip {
    grid-column: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .ranking-list {
    grid-template-columns: 1fr;
  }

  .timeline-steps {
    grid-template-columns: 1fr;
  }

  .direction-grid {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .update-item {
    flex-wrap: wrap;
  }

  .update-item img {
    width: 56px;
    height: 72px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .topic-content {
    padding: 24px;
  }

  .copyright-feedback-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .copyright-feedback-bar a {
    width: 100%;
    text-align: center;
  }

  .genre-index-grid {
    gap: 8px;
  }

  .genre-index-grid .genre-tag {
    padding: 6px 16px;
    font-size: 13px;
  }

  .column-entry {
    padding: 16px;
  }

  .card-body {
    padding: 16px;
  }

  .rank-item {
    padding: 14px;
    gap: 12px;
  }

  .rank-number {
    min-width: 32px;
    font-size: 18px;
  }

  .resource-list li {
    padding: 16px;
  }

  .process-step {
    padding: 20px 16px;
  }

  .direction-card {
    padding: 20px 16px;
  }

  .sidebar-card,
  .new-arrivals,
  .rank-note,
  .related-card {
    padding: 20px 16px;
  }

  .faq-item summary {
    padding: 14px 16px;
    padding-right: 36px;
  }

  .faq-item .faq-answer {
    padding: 12px 16px 14px;
  }

  .guide-figure img {
    height: 200px;
  }

  .summary-media img {
    height: 220px;
  }

  .content-figure img {
    height: 180px;
  }

  .error-code {
    font-size: 64px;
  }
}

/* ---------- 滚动淡入（增强，不影响初始可见性） ---------- */

@media (prefers-reduced-motion: no-preference) {
  .feature-card,
  .series-card,
  .direction-card,
  .process-step,
  .update-item,
  .rank-item,
  .ranking-item,
  .step-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  }
}

/* 程序验收反馈：移动端正文优先 */
@media (max-width: 768px) {
  .site-main :is(.page-content, .main-content, .content-main) {
    order: 1;
  }

  .site-main :is(aside, .sidebar) {
    order: 2;
  }
}
