/* ==========================================================================
   虫虫漫画 · 整站样式表
   视觉方向：金融研究风 —— 紧凑、高对比、状态色克制
   ========================================================================== */

/* ==========================================================================
   Base —— 重置、变量、全局基础
   ========================================================================== */

:root {
  --color-bg: #F5F6F8;
  --color-title: #16202E;
  --color-text: #1F2328;
  --color-muted: #4A5568;
  --color-border: #DDE1E6;
  --color-update: #D97706;
  --color-end: #2C3E50;
  --color-accent: #2563EB;

  --font-sans: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;

  --container-width: 1200px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  --header-height: 64px;
  --space-section: 56px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

h1,
h2,
h3,
h4 {
  color: var(--color-title);
  font-weight: 700;
  line-height: 1.3;
}

/* 屏幕阅读器保留文本 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Layout —— 全站骨架（页头、页脚、主容器）
   ========================================================================== */

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--color-bg);
}

/* ---- 页头 ---- */

.site-header {
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-title);
  letter-spacing: 0.02em;
}

.brand-slogan {
  font-size: 13px;
  color: var(--color-muted);
  white-space: nowrap;
}

/* 移动端汉堡按钮（桌面隐藏） */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-title);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---- 主导航 ---- */

.site-nav {
  display: block;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li {
  position: relative;
}

.nav-list a {
  display: block;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease, color 0.15s ease;
  text-decoration: none;
}

.nav-list a:hover {
  background-color: #EEF1F5;
  color: var(--color-title);
}

.nav-list a.is-current {
  background-color: var(--color-title);
  color: #FFFFFF;
}

/* ---- 主内容区 ---- */

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.home-main {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.inner-main {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 32px 24px 56px;
  width: 100%;
}

/* ---- 页脚 ---- */

.site-footer {
  background-color: var(--color-title);
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0;
}

.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 40px 24px 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-brand-name {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  max-width: 320px;
}

.footer-heading {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 14px;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.15s ease;
  text-decoration: none;
}

.footer-links a:hover {
  color: #FFFFFF;
}

.lang-entry {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 24px;
  text-align: center;
}

.footer-bottom p {
  max-width: var(--container-width);
  margin: 0 auto;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

/* ==========================================================================
   Components —— 通用组件（面包屑、按钮、标签、状态点、表格、卡片）
   ========================================================================== */

/* ---- 面包屑 ---- */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--color-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.breadcrumb-sep {
  color: #B0B8C4;
}

.breadcrumb-current {
  color: var(--color-title);
  font-weight: 500;
}

/* ---- 页面标题区 ---- */

.page-header {
  margin-bottom: 36px;
}

.page-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 10px;
}

.page-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-muted);
  max-width: 720px;
}

.page-description a {
  color: var(--color-accent);
}

/* ---- 按钮 ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background-color: var(--color-accent);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: #1D4ED8;
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--color-border);
  color: var(--color-title);
}

.btn-secondary:hover {
  border-color: var(--color-title);
  background-color: #FFFFFF;
}

/* ---- 版式标题 ---- */

.section-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
}

.section-intro {
  font-size: 15px;
  color: var(--color-muted);
  margin-bottom: 24px;
  max-width: 680px;
  line-height: 1.7;
}

.section-intro a {
  color: var(--color-accent);
  text-decoration: none;
}

.section-intro a:hover {
  text-decoration: underline;
}

.section-desc {
  font-size: 15px;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 680px;
}

/* ---- 题材标签 ---- */

.genre-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-accent);
  background-color: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  line-height: 1.5;
}

/* ---- 状态点与状态标记 ---- */

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.status-update {
  background-color: var(--color-update);
}

.status-dot.status-end,
.status-dot.status-done {
  background-color: var(--color-end);
}

.status-dot.status-pause {
  background-color: #9CA3AF;
}

/* ---- 章节列表项 ---- */

.chapter-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.chapter-item {
  border-bottom: 1px solid var(--color-border);
}

.chapter-item:last-child {
  border-bottom: none;
}

.chapter-item a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 8px;
  text-decoration: none;
  transition: background-color 0.15s ease;
  border-radius: var(--radius-sm);
}

.chapter-item a:hover {
  background-color: #EEF1F5;
}

.chapter-thumb {
  width: 48px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.chapter-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.work-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-title);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chapter-name {
  font-size: 13px;
  color: var(--color-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 首页章节项无缩略图时的布局 */
.chapter-group .chapter-item a {
  align-items: flex-start;
}

.chapter-group .chapter-info {
  gap: 4px;
}

/* ---- 更新日历表格 ---- */

.calendar-table {
  width: 100%;
  font-size: 14px;
  border: 1px solid var(--color-border);
  background-color: #FFFFFF;
}

.calendar-table thead th {
  background-color: var(--color-title);
  color: #FFFFFF;
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.calendar-table tbody td {
  padding: 12px 16px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text);
  vertical-align: middle;
}

.calendar-table tbody tr:nth-child(even) {
  background-color: #FAFBFC;
}

.calendar-table tbody tr:hover {
  background-color: #F0F3F7;
}

.calendar-table .status-dot {
  margin-right: 8px;
  vertical-align: middle;
}

/* ---- 记录表格（收藏页） ---- */

.record-table {
  width: 100%;
  font-size: 14px;
  border: 1px solid var(--color-border);
  background-color: #FFFFFF;
}

.record-table thead th {
  background-color: var(--color-title);
  color: #FFFFFF;
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  font-size: 13px;
}

.record-table tbody td {
  padding: 12px 16px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text);
  vertical-align: middle;
}

.record-table tbody tr:nth-child(even) {
  background-color: #FAFBFC;
}

/* ---- 内部链接区 ---- */

.internal-links,
.inner-links,
.inner-links-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.internal-links .related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.related-links li a,
.link-list a,
.inner-link-list a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-title);
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.related-links li a:hover,
.link-list a:hover,
.inner-link-list a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  text-decoration: none;
}

/* 首页底部链接条 */
.related-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.related-links-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-title);
  margin-right: 4px;
}

.related-links-item {
  display: inline-block;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--color-muted);
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.related-links-item:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  text-decoration: none;
}

/* ---- 滚动出现动画（增强，不影响初始可见性） ---- */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Pages —— 首页
   ========================================================================== */

/* ---- 首屏 hero ---- */

.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 48px 0 40px;
  align-items: center;
}

.hero-content {
  max-width: 520px;
}

.hero-content h1 {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-muted);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(22, 32, 46, 0.1);
}

.hero-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* ---- 题材分类地图 ---- */

.genre-map {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 12px;
  padding: 24px;
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.genre-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 8px;
  background-color: var(--color-bg);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-title);
  text-align: center;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
  min-height: 64px;
}

.genre-item:hover {
  border-color: var(--color-accent);
  background-color: #FFFFFF;
  transform: translateY(-2px);
  text-decoration: none;
}

/* ---- 参观信息条 ---- */

.notice-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0 0 56px;
}

.notice-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.notice-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 16px rgba(22, 32, 46, 0.06);
  text-decoration: none;
}

.notice-icon {
  font-size: 20px;
  line-height: 1;
  margin-bottom: 4px;
}

.notice-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-title);
}

.notice-desc {
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.5;
}

/* ---- 主推漫画展台 ---- */

.featured-section {
  margin-bottom: 56px;
}

.featured-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--color-border);
}

.featured-row:last-child {
  border-bottom: none;
}

.featured-row.reverse {
  direction: rtl;
}

.featured-row.reverse > * {
  direction: ltr;
}

.featured-figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(22, 32, 46, 0.08);
}

.featured-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.featured-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.featured-info .genre-tag {
  margin-bottom: 12px;
}

.featured-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-muted);
  margin-bottom: 16px;
}

.editor-note {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-muted);
  background-color: #FFFFFF;
  border-left: 3px solid var(--color-accent);
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: normal;
}

.text-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

/* ---- 更新日历速览（首页） ---- */

.calendar-preview {
  margin-bottom: 56px;
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.table-scroll {
  overflow-x: auto;
  margin-bottom: 12px;
}

.table-note {
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.6;
}

/* ---- 最近章节预览（首页） ---- */

.latest-preview {
  margin-bottom: 56px;
}

.chapter-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.chapter-group h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-title);
}

.chapter-group .chapter-item a {
  padding: 12px 8px;
}

/* ---- 同类作品推荐 ---- */

.recommend-section {
  margin-bottom: 40px;
}

.recommend-track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.recommend-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.recommend-card:hover {
  box-shadow: 0 4px 16px rgba(22, 32, 46, 0.08);
  transform: translateY(-2px);
  text-decoration: none;
}

.recommend-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-title);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recommend-card .genre-tag {
  align-self: flex-start;
}

/* ==========================================================================
   Pages —— 更新日历页
   ========================================================================== */

.calendar-overview {
  margin-bottom: 40px;
}

.calendar-overview p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-muted);
  max-width: 720px;
  margin-bottom: 12px;
}

.calendar-overview p a {
  color: var(--color-accent);
}

.calendar-sample-figure {
  margin-top: 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
  max-width: 480px;
  border: 1px solid var(--color-border);
}

.calendar-sample-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.calendar-sample-figure figcaption {
  font-size: 12px;
  color: var(--color-muted);
  padding: 8px 12px;
  background-color: #FFFFFF;
  border-top: 1px solid var(--color-border);
}

.calendar-table-section {
  margin-bottom: 40px;
}

.calendar-table-section .section-title {
  margin-bottom: 8px;
}

.calendar-table-section > p {
  font-size: 14px;
  color: var(--color-muted);
  margin-bottom: 16px;
}

.calendar-table-wrap {
  overflow-x: auto;
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.calendar-table-wrap .calendar-table {
  border: none;
  border-radius: var(--radius-md);
}

.table-caption {
  font-size: 13px;
  color: var(--color-muted);
  margin-top: 12px;
  line-height: 1.6;
}

.calendar-notes {
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}

.calendar-notes p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-muted);
  margin-bottom: 10px;
  padding-left: 16px;
  position: relative;
}

.calendar-notes p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent);
}

.calendar-notes p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Pages —— 最近章节页
   ========================================================================== */

.latest-grouped-list {
  margin-bottom: 48px;
}

.update-group {
  margin-bottom: 32px;
}

.update-group:last-child {
  margin-bottom: 0;
}

.group-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-title);
}

.latest-grouped-list .chapter-list {
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.latest-grouped-list .chapter-item {
  padding: 0 16px;
}

.latest-grouped-list .chapter-item a {
  padding: 14px 4px;
  gap: 16px;
}

.latest-grouped-list .chapter-item .status-dot {
  margin-left: auto;
}

/* ---- 状态图例 ---- */

.status-legend {
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 32px;
}

.legend-intro {
  font-size: 14px;
  color: var(--color-muted);
  margin-bottom: 16px;
}

.legend-list {
  display: flex;
  gap: 32px;
  margin-bottom: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-text {
  font-size: 14px;
  color: var(--color-text);
}

.legend-text strong {
  font-weight: 600;
}

.legend-note {
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.6;
}

.legend-note a {
  color: var(--color-accent);
}

/* ==========================================================================
   Pages —— 作品目录页
   ========================================================================== */

/* 分类锚点导航 */

.category-nav {
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 40px;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-tags li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-title);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.category-tags li a:hover {
  border-color: var(--color-accent);
  background-color: #FFFFFF;
  text-decoration: none;
}

.tag-count {
  font-size: 12px;
  color: var(--color-muted);
  background-color: rgba(0, 0, 0, 0.05);
  padding: 1px 8px;
  border-radius: 999px;
}

/* 题材区块 */

.genre-blocks {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.genre-block {
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.genre-heading {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--color-title);
}

.genre-heading h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.genre-heading p {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.6;
}

/* 作品条目 */

.work-entry {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.work-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  align-items: start;
}

.work-cover {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(22, 32, 46, 0.08);
}

.work-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.work-info h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.work-summary {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-muted);
  margin-bottom: 10px;
}

.work-status {
  font-size: 13px;
  color: var(--color-title);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.work-info > p:last-child {
  font-size: 13px;
}

.work-info > p:last-child a {
  color: var(--color-accent);
  font-weight: 500;
  text-decoration: none;
}

.work-info > p:last-child a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Pages —— 收藏说明页
   ========================================================================== */

.favorites-method {
  margin-bottom: 48px;
}

.favorites-method .section-desc {
  max-width: 680px;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.step-item {
  display: flex;
  gap: 20px;
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background-color: var(--color-title);
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.step-content h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.step-content p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-muted);
}

/* ---- 追更进度记录建议 ---- */

.progress-tips {
  margin-bottom: 48px;
}

.progress-tips p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-muted);
  max-width: 720px;
  margin-bottom: 12px;
}

.progress-figure {
  margin: 20px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  max-width: 560px;
  border: 1px solid var(--color-border);
}

.progress-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.progress-figure figcaption {
  font-size: 12px;
  color: var(--color-muted);
  padding: 8px 12px;
  background-color: #FFFFFF;
  border-top: 1px solid var(--color-border);
}

/* ---- 记录模板 ---- */

.record-template {
  margin-bottom: 24px;
}

.template-table-wrap {
  overflow-x: auto;
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

.template-table-wrap .record-table {
  border: none;
}

.template-note {
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Pages —— 问题反馈页
   ========================================================================== */

.faq-section {
  margin-bottom: 48px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-title);
  cursor: pointer;
  list-style: none;
  transition: background-color 0.15s ease;
  min-height: 44px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--color-muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  background-color: #FAFBFC;
}

.faq-answer {
  padding: 0 20px 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--color-muted);
}

.faq-answer p {
  margin-bottom: 8px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* ---- 反馈处理说明 ---- */

.feedback-guide-section {
  margin-bottom: 24px;
}

.guide-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

.guide-text p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-muted);
  margin-bottom: 12px;
  max-width: 680px;
}

.guide-figure {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.guide-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.guide-figure figcaption {
  font-size: 12px;
  color: var(--color-muted);
  padding: 8px 12px;
  background-color: #FFFFFF;
  border-top: 1px solid var(--color-border);
}

/* ==========================================================================
   Pages —— 404 页
   ========================================================================== */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  flex: 1 0 auto;
}

.error-section {
  text-align: center;
  max-width: 560px;
}

.error-code {
  font-size: 72px;
  font-weight: 800;
  color: var(--color-title);
  line-height: 1;
  margin-bottom: 16px;
}

.error-section h1 {
  font-size: 24px;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.btn-home,
.btn-latest {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn-home {
  background-color: var(--color-accent);
  color: #FFFFFF;
}

.btn-home:hover {
  background-color: #1D4ED8;
  text-decoration: none;
}

.btn-latest {
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  color: var(--color-title);
}

.btn-latest:hover {
  border-color: var(--color-title);
  text-decoration: none;
}

.error-help {
  font-size: 13px;
  color: var(--color-muted);
}

/* ==========================================================================
   Responsive —— 响应式规则
   ========================================================================== */

/* ---- 平板（≤1024px） ---- */

@media (max-width: 1024px) {
  .genre-map {
    grid-template-columns: repeat(3, 1fr);
  }

  .recommend-track {
    grid-template-columns: repeat(3, 1fr);
  }

  .notice-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .chapter-groups {
    grid-template-columns: 1fr;
  }

  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-figure {
    max-width: 480px;
  }
}

/* ---- 手机（≤768px） ---- */

@media (max-width: 768px) {
  :root {
    --space-section: 40px;
  }

  .header-inner {
    padding: 0 16px;
    gap: 12px;
  }

  .brand-slogan {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: #FFFFFF;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 8px 16px rgba(22, 32, 46, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px;
  }

  .nav-list li {
    border-bottom: 1px solid var(--color-border);
  }

  .nav-list li:last-child {
    border-bottom: none;
  }

  .nav-list a {
    padding: 14px 16px;
    font-size: 16px;
    border-radius: var(--radius-sm);
  }

  .nav-list.is-open {
    display: block;
  }

  .site-nav.is-open {
    max-height: 420px;
  }

  .inner-main {
    padding: 24px 16px 40px;
  }

  .home-main {
    padding: 0 16px;
  }

  .page-title {
    font-size: 22px;
  }

  .section-title {
    font-size: 19px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 16px 20px;
  }

  .footer-bottom {
    padding: 14px 16px;
  }

  /* 首页 hero */
  .hero-section {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 0 32px;
  }

  .hero-content h1 {
    font-size: 26px;
  }

  .hero-figure {
    order: 2;
  }

  .genre-map {
    grid-column: 1;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 16px;
  }

  .genre-item {
    padding: 12px 6px;
    min-height: 56px;
    font-size: 13px;
  }

  .notice-strip {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 40px;
  }

  .notice-card {
    padding: 16px;
  }

  /* 主推展台 */
  .featured-row,
  .featured-row.reverse {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 0;
  }

  .featured-row.reverse {
    direction: ltr;
  }

  .featured-figure img {
    aspect-ratio: 16 / 10;
  }

  .featured-info h3 {
    font-size: 19px;
  }

  /* 日历速览 */
  .calendar-preview {
    padding: 20px 16px;
  }

  /* 推荐 */
  .recommend-track {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* 章节列表 */
  .chapter-groups {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* 作品目录 */
  .genre-block {
    padding: 20px 16px;
  }

  .work-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .work-cover {
    max-width: 140px;
  }

  .category-nav {
    padding: 12px 16px;
  }

  .category-tags {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .category-tags li {
    flex-shrink: 0;
  }

  /* 收藏说明 */
  .step-item {
    flex-direction: column;
    gap: 12px;
    padding: 20px 16px;
  }

  .step-number {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  /* 反馈页 */
  .faq-item summary {
    padding: 16px;
    font-size: 14px;
  }

  .faq-answer {
    padding: 0 16px 16px;
  }

  .guide-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* 内部链接 */
  .internal-links,
  .inner-links,
  .inner-links-section {
    margin-top: 32px;
    padding-top: 24px;
  }

  .related-links {
    gap: 8px;
  }

  /* 404 */
  .error-main {
    padding: 48px 16px;
  }

  .error-code {
    font-size: 56px;
  }

  .error-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-home,
  .btn-latest {
    width: 100%;
    max-width: 280px;
  }
}

/* ---- 小屏手机（≤390px） ---- */

@media (max-width: 390px) {
  .brand-name {
    font-size: 19px;
  }

  .notice-strip {
    grid-template-columns: 1fr;
  }

  .recommend-track {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .genre-map {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .legend-list {
    flex-direction: column;
    gap: 12px;
  }

  .calendar-table thead th,
  .calendar-table tbody td {
    padding: 10px 12px;
    font-size: 13px;
  }
}
