/* ==========================================================================
   极速漫画 - 全站样式表
   活动日程风：白底 + 墨黑 + 朱红，细线框分区，日期数字为主视觉
   ========================================================================== */

/* --------------------------------------------------------------------------
   Base / Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: #F7F5F0;
  color: #1A1A1A;
  line-height: 1.7;
  font-size: 1rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #1A1A1A;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #D6451E;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* 字号调整 - 作用于阅读区域 */
html.font-sm .site-main,
html.font-sm .site-footer {
  font-size: 0.875rem;
}

html.font-lg .site-main,
html.font-lg .site-footer {
  font-size: 1.125rem;
}

/* --------------------------------------------------------------------------
   Layout 骨架
   -------------------------------------------------------------------------- */
.site-header {
  background: #FFFFFF;
  border-bottom: 1px solid #E3DFD8;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1A1A1A;
  letter-spacing: 0;
}

.logo-mark::before {
  content: "◆";
  color: #D6451E;
  margin-right: 4px;
  font-size: 0.9em;
}

.logo-slogan {
  font-size: 0.8rem;
  color: #8A8680;
  white-space: nowrap;
}

.site-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-list li a {
  display: block;
  padding: 8px 14px;
  font-size: 0.95rem;
  color: #1A1A1A;
  border-radius: 4px;
  border: 1px solid transparent;
}

.nav-list li a:hover {
  color: #D6451E;
  background: #F7F5F0;
}

.nav-list li a.is-current {
  color: #D6451E;
  font-weight: 600;
  border-color: #D6451E;
  background: #FFF6F2;
}

.font-size-control {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

.font-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #E3DFD8;
  border-radius: 4px;
  font-size: 0.85rem;
  background: #FFFFFF;
  color: #1A1A1A;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.font-btn:hover {
  border-color: #D6451E;
  color: #D6451E;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid #E3DFD8;
  border-radius: 4px;
  background: #FFFFFF;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #1A1A1A;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* 面包屑 */
.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px 0;
  font-size: 0.85rem;
  color: #8A8680;
}

.breadcrumb a {
  color: #8A8680;
}

.breadcrumb a:hover {
  color: #D6451E;
}

.breadcrumb-sep {
  margin: 0 8px;
  color: #C9C4BC;
}

.breadcrumb-current {
  color: #1A1A1A;
}

.breadcrumb-list {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* 主内容区 */
.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  min-height: 60vh;
}

/* 内页布局：侧栏在左，主内容在右 */
.sidebar-left {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}

.sidebar-left .side-panel,
.sidebar-left .side-tree,
.sidebar-left .rank-side,
.sidebar-left .plan-side,
.sidebar-left .page-side {
  position: sticky;
  top: 80px;
}

.sidebar-left .inner-main {
  min-width: 0;
  min-height: 60vh;
}

/* 兼容 .page-layout.sidebar-left 与 .layout-shell.sidebar-left */
.page-layout.sidebar-left,
.layout-shell.sidebar-left {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */
.site-footer {
  background: #1A1A1A;
  color: #F7F5F0;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
}

.footer-brand::before {
  content: "◆";
  color: #D6451E;
  margin-right: 4px;
}

.footer-slogan {
  color: #C9C4BC;
  font-size: 0.9rem;
  margin: 8px 0;
}

.footer-desc {
  color: #8A8680;
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-title {
  font-size: 0.95rem;
  color: #FFFFFF;
  margin-bottom: 12px;
  font-weight: 600;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #C9C4BC;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #D6451E;
}

.footer-boundary {
  color: #8A8680;
  font-size: 0.85rem;
  line-height: 1.6;
  border-left: 2px solid #D6451E;
  padding-left: 12px;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding: 16px 20px;
  text-align: center;
}

.footer-bottom p {
  max-width: 1200px;
  margin: 0 auto;
  color: #8A8680;
  font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   组件：状态标签
   -------------------------------------------------------------------------- */
.status-label,
.status-badge,
.status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.6;
  border: 1px solid transparent;
}

.status-serial {
  background: #E8F5EC;
  color: #2E7D43;
  border-color: #C8E6D2;
}

.status-ended,
.status-end {
  background: #EDEDED;
  color: #5B5B5B;
  border-color: #DDDDDD;
}

.status-hiatus {
  background: #F2F0ED;
  color: #8A8680;
  border-color: #E3DFD8;
}

/* --------------------------------------------------------------------------
   组件：封面卡
   -------------------------------------------------------------------------- */
.cover-card {
  background: #FFFFFF;
  border: 1px solid #E3DFD8;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cover-card:hover {
  transform: translateY(-2px);
  border-color: #D6451E;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.cover-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #F0EDE8;
}

.cover-card .cover-title {
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 12px 4px;
  line-height: 1.4;
}

.cover-card .status-label {
  margin: 0 12px 12px;
}

/* --------------------------------------------------------------------------
   组件：统一字段作品行
   -------------------------------------------------------------------------- */
.update-row {
  display: grid;
  grid-template-columns: 64px 1fr auto auto;
  gap: 16px;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid #E3DFD8;
  border-radius: 6px;
  padding: 12px 16px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.update-row:hover {
  border-color: #D6451E;
  transform: translateY(-1px);
}

.update-row img {
  width: 64px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  background: #F0EDE8;
}

.update-info {
  min-width: 0;
}

.update-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.update-title a:hover {
  color: #D6451E;
}

.genre-tag {
  display: inline-block;
  font-size: 0.8rem;
  color: #8A8680;
  background: #F7F5F0;
  border: 1px solid #E3DFD8;
  border-radius: 3px;
  padding: 1px 8px;
}

.update-date {
  font-size: 0.85rem;
  color: #8A8680;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   首页
   -------------------------------------------------------------------------- */
.home-main {
  max-width: 1200px;
}

/* 紧凑首屏 */
.hero-dense {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 24px;
  background: #FFFFFF;
  border: 1px solid #E3DFD8;
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 32px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1.3;
  margin-bottom: 8px;
}

.hero-slogan {
  font-size: 1.1rem;
  color: #D6451E;
  font-weight: 600;
  margin-bottom: 12px;
}

.hero-intro {
  font-size: 0.9rem;
  color: #5B5B5B;
  line-height: 1.7;
  margin-bottom: 20px;
}

.hero-quick-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.quick-link {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid #E3DFD8;
  border-radius: 20px;
  font-size: 0.85rem;
  color: #1A1A1A;
  background: #F7F5F0;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.quick-link:hover {
  border-color: #D6451E;
  color: #D6451E;
  background: #FFF6F2;
}

.hero-feature {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-figure {
  border: 1px solid #E3DFD8;
  border-radius: 8px;
  overflow: hidden;
  background: #F7F5F0;
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-figure figcaption {
  padding: 8px 12px;
  font-size: 0.8rem;
  color: #8A8680;
  border-top: 1px solid #E3DFD8;
}

.hero-mini-rank {
  background: #F7F5F0;
  border: 1px solid #E3DFD8;
  border-radius: 8px;
  padding: 16px;
}

.mini-rank-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #D6451E;
  display: inline-block;
}

.mini-rank-list {
  counter-reset: rank;
}

.mini-rank-list li {
  counter-increment: rank;
  padding: 6px 0;
  border-bottom: 1px dashed #E3DFD8;
}

.mini-rank-list li:last-child {
  border-bottom: none;
}

.mini-rank-list li::before {
  content: counter(rank, decimal-leading-zero);
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  font-weight: 700;
  color: #D6451E;
  margin-right: 8px;
}

.mini-rank-list a {
  font-size: 0.88rem;
}

/* 通用 section 标题 */
.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 4px solid #D6451E;
  line-height: 1.4;
}

/* 今日推荐 */
.today-picks {
  margin-bottom: 36px;
}

.cover-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* 快速标签 */
.quick-tags {
  margin-bottom: 36px;
}

.tag-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px;
  background: #FFFFFF;
  border: 1px solid #E3DFD8;
  border-radius: 8px;
}

.filter-tag {
  display: inline-block;
  padding: 6px 18px;
  border: 1px solid #E3DFD8;
  border-radius: 20px;
  font-size: 0.88rem;
  color: #1A1A1A;
  background: #FFFFFF;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.filter-tag:hover {
  border-color: #D6451E;
  color: #D6451E;
  background: #FFF6F2;
}

/* 最近更新 */
.recent-updates {
  margin-bottom: 36px;
}

.update-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 编辑推荐 */
.editor-choice {
  margin-bottom: 36px;
}

.album-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.album-card {
  background: #FFFFFF;
  border: 1px solid #E3DFD8;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.album-card:hover {
  transform: translateY(-2px);
  border-color: #D6451E;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.album-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #F0EDE8;
}

.album-content {
  padding: 16px 20px 20px;
}

.album-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.album-desc {
  font-size: 0.88rem;
  color: #5B5B5B;
  line-height: 1.6;
  margin-bottom: 12px;
}

.album-link {
  display: inline-block;
  font-size: 0.88rem;
  color: #D6451E;
  font-weight: 600;
}

.album-link::after {
  content: "→";
  margin-left: 6px;
}

/* 指南入口 */
.guide-entry {
  margin-bottom: 20px;
}

.entry-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.entry-card {
  background: #FFFFFF;
  border: 1px solid #E3DFD8;
  border-radius: 8px;
  padding: 20px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.entry-card:hover {
  border-color: #D6451E;
  transform: translateY(-2px);
}

.entry-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.entry-title a:hover {
  color: #D6451E;
}

.entry-desc {
  font-size: 0.85rem;
  color: #5B5B5B;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   内页通用
   -------------------------------------------------------------------------- */
.inner-main {
  min-width: 0;
}

.page-header {
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid #E3DFD8;
}

.page-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1.3;
  margin-bottom: 8px;
}

.page-description {
  font-size: 0.95rem;
  color: #5B5B5B;
  max-width: 75ch;
  line-height: 1.7;
}

/* 侧栏 */
.side-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1A1A1A;
  padding-bottom: 8px;
  border-bottom: 2px solid #D6451E;
  margin-bottom: 12px;
}

.side-list li,
.side-tree li {
  margin-bottom: 4px;
}

.side-list a,
.side-tree a,
.side-link {
  display: block;
  padding: 6px 10px;
  font-size: 0.88rem;
  color: #1A1A1A;
  border-radius: 4px;
  border-left: 2px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.side-list a:hover,
.side-tree a:hover,
.side-link:hover {
  background: #F7F5F0;
  color: #D6451E;
  border-left-color: #D6451E;
}

.side-link.is-active {
  background: #FFF6F2;
  color: #D6451E;
  border-left-color: #D6451E;
  font-weight: 600;
}

.side-note,
.side-tip {
  margin-top: 20px;
  padding: 12px;
  background: #F7F5F0;
  border: 1px solid #E3DFD8;
  border-radius: 6px;
  font-size: 0.8rem;
  color: #8A8680;
  line-height: 1.6;
}

/* 内容区块 */
.content-section,
.content-block,
.rank-block {
  margin-bottom: 40px;
}

.content-section h2,
.content-block h2,
.rank-block .block-title,
.starter-albums .section-title,
.week-tracking .section-title,
.creation-notes .section-title,
.related-entry .section-title,
.guide-path .section-title,
.guide-genre .section-title,
.guide-rule .section-title,
.guide-faq .section-title,
.guide-more .section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 4px solid #D6451E;
  line-height: 1.4;
}

.block-desc,
.block-lead,
.section-desc {
  font-size: 0.9rem;
  color: #5B5B5B;
  margin-bottom: 20px;
  max-width: 75ch;
  line-height: 1.7;
}

.section-more {
  margin-top: 16px;
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
}

.section-more a,
.table-note a,
.section-note a {
  color: #D6451E;
}

.section-more a:hover,
.table-note a:hover,
.section-note a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   连载日志
   -------------------------------------------------------------------------- */
.date-block {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #FFFFFF;
  border: 1px solid #E3DFD8;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 16px;
}

.date-number {
  font-size: 2.8rem;
  font-weight: 700;
  color: #D6451E;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  min-width: 64px;
  text-align: center;
}

.date-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.date-label {
  font-size: 1rem;
  font-weight: 600;
  color: #1A1A1A;
}

.date-week {
  font-size: 0.85rem;
  color: #8A8680;
}

/* 更新行（连载日志） */
.update-list .update-row {
  grid-template-columns: 56px 1fr auto auto auto;
  gap: 14px;
}

.update-list .row-cover {
  width: 56px;
  height: 72px;
  object-fit: cover;
  border-radius: 4px;
  background: #F0EDE8;
}

.row-info {
  min-width: 0;
}

.row-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-title a:hover {
  color: #D6451E;
}

.row-info .tag {
  display: inline-block;
  font-size: 0.78rem;
  color: #8A8680;
  background: #F7F5F0;
  border: 1px solid #E3DFD8;
  border-radius: 3px;
  padding: 0 6px;
}

.row-chapter {
  font-size: 0.85rem;
  color: #5B5B5B;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* 日历 */
.week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid #E3DFD8;
  border-radius: 8px;
  padding: 16px;
}

.day-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 4px;
  border: 1px solid #E3DFD8;
  border-radius: 6px;
  text-align: center;
  background: #FCFBF9;
}

.day-cell.is-today {
  border-color: #D6451E;
  background: #FFF6F2;
}

.day-name {
  font-size: 0.75rem;
  color: #8A8680;
  margin-bottom: 4px;
}

.day-num {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1A1A1A;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.day-cell.is-today .day-num {
  color: #D6451E;
}

.day-count {
  font-size: 0.75rem;
  color: #5B5B5B;
  margin-top: 4px;
}

.section-note {
  margin-top: 12px;
  font-size: 0.85rem;
  color: #8A8680;
}

/* 图例 */
.legend-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.legend-card {
  background: #FFFFFF;
  border: 1px solid #E3DFD8;
  border-radius: 8px;
  padding: 20px;
}

.legend-card p {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #5B5B5B;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   题材档案
   -------------------------------------------------------------------------- */
.filter-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background: #FFFFFF;
  border: 1px solid #E3DFD8;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}

/* 作品行 */
.work-row {
  display: grid;
  grid-template-columns: 72px 1fr auto auto;
  gap: 16px;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid #E3DFD8;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 10px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.work-row:hover {
  border-color: #D6451E;
  transform: translateY(-1px);
}

.work-cover img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 4px;
  background: #F0EDE8;
}

.work-info {
  min-width: 0;
}

.work-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.work-meta {
  font-size: 0.82rem;
  color: #8A8680;
}

.work-status {
  text-align: center;
}

.work-update {
  text-align: right;
  font-size: 0.82rem;
  color: #8A8680;
  white-space: nowrap;
}

.update-label {
  display: block;
  font-size: 0.75rem;
  color: #C9C4BC;
}

.update-date {
  font-variant-numeric: tabular-nums;
}

/* 题材代表网格 */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.genre-grid-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.genre-card {
  background: #FFFFFF;
  border: 1px solid #E3DFD8;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.genre-card:hover {
  transform: translateY(-2px);
  border-color: #D6451E;
}

.genre-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #F0EDE8;
}

.genre-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 12px 12px;
}

.entry-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.entry-name {
  font-size: 0.95rem;
  font-weight: 600;
}

/* 相关入口 */
.related-entry {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #E3DFD8;
}

.entry-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.entry-links a {
  padding: 6px 16px;
  border: 1px solid #E3DFD8;
  border-radius: 20px;
  font-size: 0.85rem;
  background: #FFFFFF;
}

.entry-links a:hover {
  border-color: #D6451E;
  color: #D6451E;
  background: #FFF6F2;
}

/* --------------------------------------------------------------------------
   热度榜单
   -------------------------------------------------------------------------- */
.rank-block {
  margin-bottom: 44px;
}

.block-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 8px;
  padding-left: 12px;
  border-left: 4px solid #D6451E;
}

.block-desc {
  font-size: 0.88rem;
  color: #5B5B5B;
  margin-bottom: 20px;
  max-width: 75ch;
}

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rank-item {
  display: grid;
  grid-template-columns: 44px 56px 1fr auto;
  gap: 14px;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid #E3DFD8;
  border-radius: 6px;
  padding: 10px 16px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  border-color: #D6451E;
  transform: translateY(-1px);
}

.rank-num {
  font-size: 1.4rem;
  font-weight: 700;
  color: #D6451E;
  font-variant-numeric: tabular-nums;
  text-align: center;
  line-height: 1;
}

.rank-item:nth-child(n+4) .rank-num {
  color: #8A8680;
  font-size: 1.2rem;
}

.rank-cover {
  width: 56px;
  height: 72px;
  object-fit: cover;
  border-radius: 4px;
  background: #F0EDE8;
}

.rank-info {
  min-width: 0;
}

.rank-name {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info .tag,
.rank-info .status {
  font-size: 0.78rem;
}

.rank-heat {
  font-size: 0.85rem;
  color: #8A8680;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* 名词解释 */
.term-list {
  background: #FFFFFF;
  border: 1px solid #E3DFD8;
  border-radius: 8px;
  padding: 20px;
}

.term-item {
  padding: 12px 0;
  border-bottom: 1px dashed #E3DFD8;
}

.term-item:last-child {
  border-bottom: none;
}

.term-item dt {
  font-weight: 600;
  color: #1A1A1A;
  margin-bottom: 4px;
}

.term-item dd {
  font-size: 0.88rem;
  color: #5B5B5B;
  line-height: 1.6;
  margin-left: 0;
}

.more-links {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.more-links a,
.rule-links a {
  color: #D6451E;
  font-size: 0.88rem;
}

.more-links a:hover,
.rule-links a:hover {
  text-decoration: underline;
}

/* 相关链接 */
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  background: #F7F5F0;
  border: 1px solid #E3DFD8;
  border-radius: 8px;
  padding: 16px 20px;
  margin-top: 32px;
}

.related-links-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1A1A1A;
}

.related-links-item {
  font-size: 0.85rem;
  color: #D6451E;
}

.related-links-item:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   追更计划
   -------------------------------------------------------------------------- */
.starter-albums {
  margin-bottom: 44px;
}

.starter-albums .album-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  margin-bottom: 20px;
}

.album-cover img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #F0EDE8;
}

.album-cover figcaption {
  padding: 6px 12px;
  font-size: 0.78rem;
  color: #8A8680;
  background: #F7F5F0;
  border-top: 1px solid #E3DFD8;
}

.album-info {
  padding: 20px 24px;
}

.album-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.album-meta {
  font-size: 0.82rem;
  color: #8A8680;
  margin-bottom: 10px;
}

.album-desc {
  font-size: 0.88rem;
  color: #5B5B5B;
  line-height: 1.6;
  margin-bottom: 16px;
}

.chapter-list {
  border-top: 1px dashed #E3DFD8;
  padding-top: 12px;
  margin-bottom: 16px;
}

.chapter-list li {
  padding: 4px 0;
  font-size: 0.85rem;
  color: #5B5B5B;
  display: flex;
  gap: 8px;
  align-items: center;
}

.chapter-list li::before {
  content: "▸";
  color: #D6451E;
  font-size: 0.8em;
}

.editor-note {
  background: #FFF6F2;
  border-left: 3px solid #D6451E;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: #5B5B5B;
  line-height: 1.6;
}

.editor-note strong {
  color: #D6451E;
  display: block;
  margin-bottom: 4px;
}

/* 追更表 */
.tracking-table {
  background: #FFFFFF;
  border: 1px solid #E3DFD8;
  border-radius: 8px;
  overflow: hidden;
}

.tracking-table th {
  background: #F7F5F0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1A1A1A;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid #E3DFD8;
}

.tracking-table td {
  padding: 12px 16px;
  font-size: 0.88rem;
  color: #5B5B5B;
  border-bottom: 1px solid #F0EDE8;
}

.tracking-table tr:last-child td {
  border-bottom: none;
}

.tracking-table tr:hover td {
  background: #FCFBF9;
}

.table-note {
  margin-top: 12px;
  font-size: 0.82rem;
  color: #8A8680;
}

/* 创作侧记 */
.note-item {
  background: #FFFFFF;
  border: 1px solid #E3DFD8;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 12px;
  transition: border-color 0.2s ease;
}

.note-item:hover {
  border-color: #D6451E;
}

.note-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.note-excerpt {
  font-size: 0.88rem;
  color: #5B5B5B;
  line-height: 1.6;
  margin-bottom: 10px;
}

.note-link {
  font-size: 0.85rem;
  color: #D6451E;
  font-weight: 500;
}

.note-link::after {
  content: "→";
  margin-left: 4px;
}

/* --------------------------------------------------------------------------
   阅读指南
   -------------------------------------------------------------------------- */
.side-card {
  margin-top: 24px;
  background: #FFF6F2;
  border: 1px solid #F0D9CE;
  border-radius: 8px;
  padding: 16px;
}

.side-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #D6451E;
  margin-bottom: 8px;
}

.side-card-text {
  font-size: 0.82rem;
  color: #5B5B5B;
  line-height: 1.6;
  margin-bottom: 12px;
}

.side-card-link {
  display: inline-block;
  font-size: 0.82rem;
  color: #D6451E;
  margin-right: 12px;
}

.side-card-link:hover {
  text-decoration: underline;
}

/* 结构图 */
.guide-figure {
  margin-bottom: 40px;
}

.guide-figure-block {
  background: #FFFFFF;
  border: 1px solid #E3DFD8;
  border-radius: 8px;
  overflow: hidden;
}

.guide-figure-img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  background: #F0EDE8;
}

.guide-figure-caption {
  padding: 10px 16px;
  font-size: 0.82rem;
  color: #8A8680;
  border-top: 1px solid #E3DFD8;
  background: #FCFBF9;
}

/* 路径步骤 */
.path-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.path-step {
  background: #FFFFFF;
  border: 1px solid #E3DFD8;
  border-radius: 8px;
  padding: 20px;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.path-step:hover {
  transform: translateY(-2px);
  border-color: #D6451E;
}

.step-num {
  display: inline-block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #D6451E;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}

.step-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.step-text {
  font-size: 0.82rem;
  color: #5B5B5B;
  line-height: 1.6;
  margin-bottom: 10px;
}

.step-link {
  font-size: 0.82rem;
  color: #D6451E;
}

.step-link:hover {
  text-decoration: underline;
}

/* 题材表 */
.table-scroll {
  overflow-x: auto;
  background: #FFFFFF;
  border: 1px solid #E3DFD8;
  border-radius: 8px;
}

.genre-table {
  min-width: 560px;
}

.genre-table th {
  background: #F7F5F0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1A1A1A;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid #E3DFD8;
}

.genre-table td {
  padding: 12px 16px;
  font-size: 0.85rem;
  color: #5B5B5B;
  border-bottom: 1px solid #F0EDE8;
  line-height: 1.6;
}

.genre-table tr:last-child td {
  border-bottom: none;
}

.genre-table tr:hover td {
  background: #FCFBF9;
}

/* 规则卡 */
.rule-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.rule-card {
  background: #FFFFFF;
  border: 1px solid #E3DFD8;
  border-radius: 8px;
  padding: 20px;
}

.rule-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1A1A1A;
}

.rule-text {
  font-size: 0.85rem;
  color: #5B5B5B;
  line-height: 1.6;
}

.rule-links {
  margin-top: 16px;
  display: flex;
  gap: 16px;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid #E3DFD8;
  border-radius: 6px;
  overflow: hidden;
}

.faq-item[open] {
  border-color: #D6451E;
}

.faq-question {
  padding: 14px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1A1A1A;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  font-size: 1.2rem;
  color: #8A8680;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
  color: #D6451E;
}

.faq-answer {
  padding: 0 20px 16px;
  font-size: 0.88rem;
  color: #5B5B5B;
  line-height: 1.7;
  border-top: 1px dashed #E3DFD8;
  padding-top: 12px;
}

/* 更多链接 */
.more-links a {
  display: inline-block;
  margin-right: 16px;
  color: #D6451E;
  font-size: 0.88rem;
}

.more-links a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   版权与反馈
   -------------------------------------------------------------------------- */
.stance-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stance-item {
  background: #FFFFFF;
  border: 1px solid #E3DFD8;
  border-radius: 8px;
  padding: 20px 24px;
}

.item-heading {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1A1A1A;
  margin-bottom: 6px;
}

.stance-item p,
.process-step p,
.cycle-card p {
  font-size: 0.88rem;
  color: #5B5B5B;
  line-height: 1.7;
}

.source-list {
  background: #FFFFFF;
  border: 1px solid #E3DFD8;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 20px;
}

.source-list li {
  padding: 8px 0;
  border-bottom: 1px dashed #F0EDE8;
  font-size: 0.88rem;
  color: #5B5B5B;
  line-height: 1.6;
}

.source-list li:last-child {
  border-bottom: none;
}

.source-list strong {
  color: #1A1A1A;
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

.info-figure {
  background: #F7F5F0;
  border: 1px solid #E3DFD8;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 16px;
}

.info-figure img {
  width: 100%;
  aspect-ratio: 16 / 6;
  object-fit: cover;
  background: #F0EDE8;
}

.info-figure figcaption {
  padding: 10px 16px;
  font-size: 0.82rem;
  color: #8A8680;
  border-top: 1px solid #E3DFD8;
}

/* 流程步骤 */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.process-step {
  background: #FFFFFF;
  border: 1px solid #E3DFD8;
  border-radius: 8px;
  padding: 20px;
  position: relative;
}

.process-step .item-heading::before {
  content: "0" counter(step);
  counter-increment: step;
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: #D6451E;
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
  line-height: 1;
}

.process-steps {
  counter-reset: step;
}

/* 周期卡 */
.cycle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cycle-card {
  background: #F7F5F0;
  border: 1px solid #E3DFD8;
  border-radius: 8px;
  padding: 20px;
}

.block-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: #8A8680;
  background: #F7F5F0;
  border-left: 3px solid #D6451E;
  padding: 10px 16px;
  border-radius: 0 6px 6px 0;
}

/* 相关列表 */
.related-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.related-list a {
  display: block;
  padding: 10px 16px;
  background: #FFFFFF;
  border: 1px solid #E3DFD8;
  border-radius: 6px;
  font-size: 0.88rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.related-list a:hover {
  border-color: #D6451E;
  color: #D6451E;
}

/* --------------------------------------------------------------------------
   404 页面
   -------------------------------------------------------------------------- */
.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 40px 20px;
}

.error-section {
  text-align: center;
  max-width: 560px;
}

.error-code {
  font-size: 5rem;
  font-weight: 700;
  color: #D6451E;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 16px;
}

.error-section h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 0.95rem;
  color: #5B5B5B;
  margin-bottom: 24px;
  line-height: 1.7;
}

.error-home-btn {
  display: inline-block;
  padding: 10px 32px;
  background: #D6451E;
  color: #FFFFFF;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 24px;
  transition: background 0.2s ease;
}

.error-home-btn:hover {
  background: #B83A16;
  color: #FFFFFF;
}

.error-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.error-links a {
  font-size: 0.88rem;
  color: #D6451E;
}

.error-links a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-dense {
    grid-template-columns: 1fr 1fr;
  }

  .hero-feature {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .cover-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .sidebar-left,
  .page-layout.sidebar-left,
  .layout-shell.sidebar-left {
    grid-template-columns: 200px 1fr;
    gap: 24px;
  }

  .path-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .cycle-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* 导航切换 */
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-bottom: 1px solid #E3DFD8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 99;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    padding: 12px 20px;
    gap: 0;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li a {
    padding: 12px 8px;
    font-size: 1rem;
    border-radius: 0;
    border-bottom: 1px solid #F0EDE8;
  }

  .nav-list li:last-child a {
    border-bottom: none;
  }

  .nav-list li a.is-current {
    background: #FFF6F2;
  }

  .font-size-control {
    margin-left: auto;
  }

  .logo-slogan {
    display: none;
  }

  /* 布局切换 */
  .sidebar-left,
  .page-layout.sidebar-left,
  .layout-shell.sidebar-left {
    display: flex;
    flex-direction: column;
    padding: 16px 16px 40px;
  }

  .sidebar-left .side-panel,
  .sidebar-left .side-tree,
  .sidebar-left .rank-side,
  .sidebar-left .plan-side,
  .sidebar-left .page-side {
    order: 2;
    position: static;
    margin-top: 32px;
    border-top: 1px solid #E3DFD8;
    padding-top: 16px;
  }

  .sidebar-left .inner-main {
    order: 1;
    width: 100%;
  }

  /* 首页 */
  .site-main {
    padding: 16px 16px 48px;
  }

  .hero-dense {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 20px;
  }

  .hero-feature {
    grid-column: auto;
    display: flex;
    flex-direction: column;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .cover-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .album-grid {
    grid-template-columns: 1fr;
  }

  .entry-cards {
    grid-template-columns: 1fr;
  }

  /* 内页 */
  .page-header {
    margin-bottom: 24px;
  }

  .page-title {
    font-size: 1.5rem;
  }

  /* 更新行 */
  .update-row {
    grid-template-columns: 56px 1fr auto;
    gap: 10px;
    padding: 10px 12px;
  }

  .update-row .update-date {
    grid-column: 2 / -1;
    padding-left: 0;
  }

  .update-list .update-row {
    grid-template-columns: 48px 1fr auto;
    gap: 10px;
  }

  .update-list .row-cover {
    width: 48px;
    height: 62px;
  }

  .update-list .row-chapter {
    display: none;
  }

  /* 日历 */
  .week-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .day-cell:nth-child(n+5) {
    display: none;
  }

  /* 图例 */
  .legend-grid {
    grid-template-columns: 1fr;
  }

  /* 作品行 */
  .work-row {
    grid-template-columns: 56px 1fr auto;
    gap: 10px;
  }

  .work-cover img {
    width: 56px;
    height: 74px;
  }

  .work-update {
    grid-column: 2 / -1;
    text-align: left;
    padding-left: 0;
  }

  .work-status {
    grid-column: 3;
    grid-row: 1;
  }

  /* 榜单 */
  .rank-item {
    grid-template-columns: 32px 48px 1fr;
    gap: 10px;
    padding: 8px 12px;
  }

  .rank-cover {
    width: 48px;
    height: 62px;
  }

  .rank-heat {
    grid-column: 3;
    font-size: 0.8rem;
  }

  .rank-num {
    font-size: 1.1rem;
  }

  /* 追更 */
  .starter-albums .album-card {
    grid-template-columns: 1fr;
  }

  .album-cover img {
    aspect-ratio: 16 / 9;
  }

  .album-info {
    padding: 16px;
  }

  .tracking-table {
    font-size: 0.82rem;
  }

  .tracking-table th,
  .tracking-table td {
    padding: 10px 12px;
  }

  /* 阅读指南 */
  .path-steps {
    grid-template-columns: 1fr;
  }

  .rule-grid {
    grid-template-columns: 1fr;
  }

  .related-list {
    grid-template-columns: 1fr;
  }

  /* 页脚 */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 16px 16px;
  }
}

@media (max-width: 480px) {
  .cover-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .cover-card .cover-title {
    font-size: 0.85rem;
    padding: 8px 8px 2px;
  }

  .cover-card .status-label {
    margin: 0 8px 8px;
    font-size: 0.7rem;
    padding: 1px 8px;
  }

  .filter-tag-row {
    padding: 12px;
    gap: 8px;
  }

  .filter-tag {
    padding: 5px 14px;
    font-size: 0.82rem;
  }

  .update-row {
    grid-template-columns: 48px 1fr;
    gap: 8px;
  }

  .update-row img {
    width: 48px;
    height: 62px;
  }

  .update-row .status-label {
    grid-column: 2;
    justify-self: start;
  }

  .update-row .update-date {
    grid-column: 2;
  }

  .date-number {
    font-size: 2.2rem;
    min-width: 52px;
  }

  .week-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .day-cell:nth-child(n+3) {
    display: none;
  }

  .rank-item {
    grid-template-columns: 28px 44px 1fr;
    gap: 8px;
  }

  .rank-cover {
    width: 44px;
    height: 56px;
  }

  .rank-name {
    font-size: 0.88rem;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .cycle-grid {
    grid-template-columns: 1fr;
  }
}
