/* ============================================================
   香蕉漫画官网 - 全站样式表
   版本：1.0
   说明：本样式表覆盖首页、内页、404页全部语义 class。
   ============================================================ */

/* ============================================================
   Base — 基础变量、重置与全局字体
   ============================================================ */
:root {
  --color-page-bg: #f7faf9;
  --color-card-bg: #ffffff;
  --color-primary: #00a67e;
  --color-primary-hover: #008f6b;
  --color-ongoing: #00b894;
  --color-completed: #64748b;
  --color-irregular: #f59e0b;
  --color-title: #0f172a;
  --color-text: #334155;
  --color-text-light: #64748b;
  --color-border: #e2e8f0;
  --color-border-light: #edf2f1;

  --font-stack: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;

  --container-width: 1200px;
  --gap-card: 24px;
  --radius-card: 8px;
  --radius-small: 6px;

  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-card-hover: 0 6px 18px rgba(15, 23, 42, 0.08);

  --header-height: 64px;
  --announce-height: 40px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-stack);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-page-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary-hover);
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-title);
  font-weight: 600;
  line-height: 1.4;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 17px;
}

p {
  margin-bottom: 0;
}

/* 通用容器 */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* 视觉隐藏，仅供屏幕阅读器 */
.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-page-bg);
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

/* ---- 页头 ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background-color: var(--color-card-bg);
  border-bottom: 1px solid var(--color-border-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-width);
  height: var(--header-height);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-small);
  background-color: var(--color-primary);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-title);
  letter-spacing: 0.5px;
}

/* ---- 导航 ---- */
.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius-small);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-list li a:hover {
  color: var(--color-primary);
  background-color: rgba(0, 166, 126, 0.06);
}

.nav-list li a.is-current {
  color: var(--color-primary);
  font-weight: 600;
  background-color: rgba(0, 166, 126, 0.08);
}

/* 移动端汉堡按钮，默认隐藏 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-title);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---- 公告条 ---- */
.announce-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: var(--announce-height);
  padding: 8px 24px;
  background-color: #eefdf8;
  border-bottom: 1px solid #d8f3ea;
  font-size: 14px;
  color: var(--color-text);
}

.announce-bar p {
  margin: 0;
}

.announce-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  font-size: 18px;
  line-height: 1;
  color: var(--color-text-light);
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.announce-close:hover {
  background-color: rgba(0, 166, 126, 0.1);
  color: var(--color-primary);
}

/* ---- 页脚 ---- */
.site-footer {
  width: 100%;
  background-color: var(--color-card-bg);
  border-top: 1px solid var(--color-border-light);
  margin-top: auto;
}

.footer-inner {
  display: flex;
  gap: 48px;
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 48px 24px 32px;
}

.footer-brand {
  flex: 0 0 260px;
}

.footer-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-title);
  margin-bottom: 8px;
}

.footer-brand p:last-child {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex: 1;
  gap: 48px;
}

.footer-col {
  flex: 1;
}

.footer-col h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-title);
  margin-bottom: 12px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: 14px;
  color: var(--color-text-light);
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid var(--color-border-light);
  padding: 16px 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--color-text-light);
}

/* ---- 内页骨架 ---- */
.inner-main {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 32px 24px 64px;
}

/* ---- 面包屑 ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--color-text-light);
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb-sep {
  color: #cbd5e1;
}

.breadcrumb-current {
  color: var(--color-title);
  font-weight: 500;
}

/* ---- 页面标题区 ---- */
.page-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border-light);
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-title);
  margin-bottom: 8px;
}

.page-description {
  font-size: 16px;
  color: var(--color-text-light);
  max-width: 720px;
}

/* ---- 通用区块标题 ---- */
.section-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-title);
  margin-bottom: 16px;
}

/* ---- 通用图文媒体 ---- */
.content-media {
  display: block;
  margin: 0 0 24px;
}

.content-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  object-fit: cover;
}

.content-media figcaption {
  font-size: 13px;
  color: var(--color-text-light);
  text-align: center;
  margin-top: 8px;
}

.content-media-inline {
  max-width: 640px;
  margin-left: 0;
  margin-right: auto;
}

/* ---- 状态徽标 ---- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 20px;
  line-height: 1.5;
  white-space: nowrap;
}

.status-badge.status-ongoing,
.status-badge.ongoing {
  background-color: rgba(0, 184, 148, 0.12);
  color: var(--color-ongoing);
}

.status-badge.status-finished,
.status-badge.finished {
  background-color: rgba(100, 116, 139, 0.12);
  color: var(--color-completed);
}

.status-badge.status-irregular,
.status-badge.irregular {
  background-color: rgba(245, 158, 11, 0.12);
  color: #d97706;
}

/* ---- 延伸入口（内页通用） ---- */
.extend-section {
  margin-top: 48px;
}

.extend-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-card);
}

.extend-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.extend-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-border);
}

.extend-text h3 {
  font-size: 17px;
  margin-bottom: 4px;
}

.extend-text p {
  font-size: 14px;
  color: var(--color-text-light);
}

.extend-arrow {
  font-size: 22px;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* ---- 相关链接条（内页底部） ---- */
.related-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border-light);
}

.related-links-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-light);
  margin-right: 4px;
}

.related-links-item {
  display: inline-block;
  padding: 6px 14px;
  font-size: 14px;
  color: var(--color-text);
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  transition: all 0.2s ease;
}

.related-links-item:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* ============================================================
   Components — 通用组件
   ============================================================ */

/* ---- 按钮 ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 28px;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  background-color: var(--color-primary);
  border: none;
  border-radius: var(--radius-small);
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  box-shadow: 0 4px 12px rgba(0, 166, 126, 0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 28px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* ---- 封面卡（首页最近更新） ---- */
.cover-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.cover-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.cover-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.cover-card h3 {
  font-size: 16px;
  font-weight: 600;
  padding: 12px 14px 4px;
}

.cover-card .tag {
  display: block;
  font-size: 13px;
  color: var(--color-text-light);
  padding: 0 14px;
}

.cover-card .status-badge {
  margin: 10px 14px 14px;
}

/* ---- 编辑推荐卡（首页横向滚动） ---- */
.pick-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.pick-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.pick-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.pick-card h3 {
  font-size: 16px;
  font-weight: 600;
  padding: 12px 14px 4px;
}

.pick-card p {
  font-size: 13px;
  color: var(--color-text-light);
  padding: 0 14px 14px;
  line-height: 1.6;
}

/* ---- 状态说明卡 ---- */
.status-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-card);
  margin-bottom: 32px;
}

.status-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.status-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-card p {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.7;
}

.status-card.status-serial h3 {
  color: var(--color-ongoing);
}

.status-card.status-completed h3 {
  color: var(--color-completed);
}

.status-card.status-irregular h3 {
  color: #d97706;
}

/* ---- 延伸入口卡（内页通用） ---- */
.extend-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-card);
}

.extend-cards .extend-card {
  display: block;
}

.extend-cards .extend-card h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.extend-cards .extend-card p {
  font-size: 14px;
  color: var(--color-text-light);
}

/* ---- 延伸入口（changelog/faq 用） ---- */
.extend-entry {
  margin-top: 48px;
}

.extend-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-card);
}

.extend-grid .extend-card {
  display: block;
}

.extend-grid .extend-card h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.extend-grid .extend-card p {
  font-size: 14px;
  color: var(--color-text-light);
}

/* 入口卡（changelog 用） */
.entry-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s ease;
}

.entry-card:hover {
  box-shadow: var(--shadow-card-hover);
}

.entry-card h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.entry-card p {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.entry-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
}

/* ---- 题材标签组 ---- */
.genre-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.genre-tabs a {
  display: inline-block;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  transition: all 0.2s ease;
}

.genre-tabs a:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* ---- 分层表格 ---- */
.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.book-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--color-card-bg);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.book-table thead th {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-light);
  text-align: left;
  background-color: #f1f5f4;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.book-table tbody td {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border-light);
  vertical-align: middle;
}

.book-table tbody tr:last-child td {
  border-bottom: none;
}

.book-table tbody tr:hover {
  background-color: #fafcfb;
}

.book-table .cover-thumb {
  width: 56px;
  height: 72px;
  object-fit: cover;
  border-radius: 4px;
}

/* ---- FAQ 手风琴 ---- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-title);
  cursor: pointer;
  list-style: none;
  transition: background-color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--color-text-light);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--color-border-light);
}

.faq-answer {
  padding: 16px 20px;
}

.faq-answer p {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.7;
}

/* ---- 分组标题 ---- */
.group-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-title);
  margin: 28px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border-light);
}

/* ---- 筛选标签（picks 用） ---- */
.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-tag:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.filter-tag.is-active {
  color: #fff;
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

/* ---- 适读人群标签 ---- */
.audience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.audience-tag {
  display: inline-block;
  padding: 6px 18px;
  font-size: 14px;
  color: var(--color-text);
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 20px;
}

/* ---- 推荐卡（picks 内页） ---- */
.picks-list {
  display: flex;
  flex-direction: column;
  gap: var(--gap-card);
}

.picks-list .pick-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  overflow: hidden;
}

.pick-cover {
  position: relative;
}

.pick-cover figure {
  width: 100%;
  height: 100%;
}

.pick-cover img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.pick-status {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  background-color: rgba(15, 23, 42, 0.7);
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.pick-info {
  padding: 24px;
}

.pick-name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
}

.pick-genre {
  font-size: 14px;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.pick-reason {
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 12px;
}

.pick-audience {
  font-size: 13px;
  color: var(--color-text-light);
}

/* ---- 相关卡片（library 用） ---- */
.related-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-card);
}

.related-card {
  display: block;
  padding: 20px 24px;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s ease;
}

.related-card:hover {
  box-shadow: var(--shadow-card-hover);
}

.related-card h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.related-card p {
  font-size: 14px;
  color: var(--color-text-light);
}

/* ============================================================
   Pages — 首页
   ============================================================ */

.home-main {
  width: 100%;
}

/* ---- Hero 首屏 ---- */
.hero-section {
  background-color: var(--color-card-bg);
  border-bottom: 1px solid var(--color-border-light);
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 56px 24px 40px;
}

.hero-copy h1 {
  font-size: 34px;
  font-weight: 700;
  color: var(--color-title);
  line-height: 1.3;
  margin-bottom: 12px;
}

.hero-slogan {
  font-size: 18px;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.hero-desc {
  font-size: 16px;
  color: var(--color-text);
  margin-bottom: 24px;
  max-width: 480px;
}

.hero-media {
  display: flex;
  justify-content: center;
}

.hero-figure {
  width: 100%;
  max-width: 420px;
  margin: 0;
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.hero-figure figcaption {
  font-size: 13px;
  color: var(--color-text-light);
  text-align: center;
  margin-top: 8px;
}

/* ---- 最近更新条 ---- */
.recent-strip {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px 48px;
}

.section-subhead {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-title);
  margin-bottom: 16px;
}

.recent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-card);
}

/* ---- 题材分类 ---- */
.genre-section {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 48px 24px;
}

.genre-section h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-title);
  margin-bottom: 24px;
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.genre-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 120px;
  padding: 20px 12px;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.genre-item:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
  border-color: var(--color-primary);
}

.genre-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 24px;
  line-height: 1;
}

/* ---- 编辑精选（首页） ---- */
.picks-section {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 48px 24px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-title);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
  transition: color 0.2s ease;
}

.text-link:hover {
  color: var(--color-primary-hover);
}

.picks-scroll {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-card);
}

/* ---- 更新情报时间轴（首页） ---- */
.timeline-section {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 48px 24px;
}

.timeline-section h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-title);
  margin-bottom: 24px;
}

.timeline-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-card);
  position: relative;
}

.timeline-event {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.timeline-event time {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
}

.timeline-event time::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-primary);
  flex-shrink: 0;
}

.event-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.event-card img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.event-info h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.event-info p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ---- 全站内容索引 ---- */
.site-index {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 48px 24px;
}

.site-index h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-title);
  margin-bottom: 24px;
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.index-card {
  display: block;
  padding: 20px;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.index-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.index-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.index-card p {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ---- 延伸推荐横幅 ---- */
.promo-banners {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-card);
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px 56px;
}

.promo-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 32px;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.promo-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.promo-card-alt {
  background-color: #eefdf8;
  border-color: #d8f3ea;
}

.promo-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-title);
}

.promo-sub {
  font-size: 14px;
  color: var(--color-text-light);
}

/* ============================================================
   Pages — 内页
   ============================================================ */

/* ---- start.html ---- */
.start-steps {
  margin-bottom: 48px;
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-card);
  margin-top: 24px;
}

.step-card {
  padding: 24px 20px;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background-color: var(--color-primary);
  border-radius: 50%;
  margin-bottom: 12px;
}

.step-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 12px;
}

.step-card a {
  font-size: 14px;
  font-weight: 500;
}

/* 状态说明（start 页） */
.status-guide {
  margin-bottom: 48px;
}

.status-guide > p {
  font-size: 15px;
  color: var(--color-text);
  margin-bottom: 24px;
}

/* 追更方式 */
.follow-guide {
  margin-bottom: 48px;
}

.follow-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-card);
}

.follow-method {
  padding: 24px;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.follow-method h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.follow-method p {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 12px;
}

.follow-method a {
  font-size: 14px;
  font-weight: 500;
}

/* ---- library.html ---- */
.genre-nav {
  margin-bottom: 40px;
}

.genre-nav h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-title);
  margin-bottom: 8px;
}

.genre-nav > p {
  font-size: 15px;
  color: var(--color-text);
  margin-bottom: 16px;
}

.library-table-section {
  margin-bottom: 48px;
}

.library-table-section > h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-title);
  margin-bottom: 8px;
}

.library-table-section > p {
  font-size: 15px;
  color: var(--color-text);
  margin-bottom: 24px;
}

.genre-group {
  margin-bottom: 32px;
}

.genre-group > h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-title);
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 3px solid var(--color-primary);
}

/* ---- changelog.html ---- */
.timeline-track {
  margin-bottom: 40px;
}

.track-dates {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 32px;
  position: relative;
}

.track-date {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 8px;
  text-align: center;
  position: relative;
}

.track-date::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-border);
  z-index: 0;
}

.track-date::after {
  content: '';
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--color-primary);
  border: 3px solid var(--color-card-bg);
  box-shadow: 0 0 0 1px var(--color-primary);
}

.track-date:first-child::before {
  left: 50%;
}

.track-date:last-child::before {
  right: 50%;
}

.date-month {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-light);
}

.date-day {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-title);
}

.changelog-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 48px;
}

.changelog-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s ease;
}

.changelog-item:hover {
  box-shadow: var(--shadow-card-hover);
}

.item-cover {
  width: 56px;
  height: 72px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.item-info {
  flex: 1;
}

.item-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.item-meta {
  font-size: 14px;
  color: var(--color-text);
  margin-bottom: 2px;
}

.item-date {
  font-size: 13px;
  color: var(--color-text-light);
}

.update-rhythm {
  margin-bottom: 48px;
}

.rhythm-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-card);
}

.rhythm-card {
  padding: 24px;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.rhythm-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.rhythm-card p {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.7;
}

.rhythm-card p a {
  font-size: 14px;
  font-weight: 500;
}

/* ---- faq.html ---- */
.faq-section {
  margin-bottom: 48px;
}

.faq-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.faq-tab {
  display: inline-block;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.faq-tab:hover,
.faq-tab.is-active {
  color: #fff;
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.copyright-block {
  margin-bottom: 48px;
}

.copyright-card {
  padding: 24px;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.copyright-card p {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 8px;
}

.copyright-card p:last-child {
  margin-bottom: 0;
}

/* ---- 404.html ---- */
.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 48px 24px;
}

.error-panel {
  max-width: 560px;
  width: 100%;
  text-align: center;
  padding: 48px 32px;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.error-code {
  font-size: 72px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 16px;
}

.error-panel h1 {
  font-size: 24px;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: var(--color-text);
  margin-bottom: 24px;
}

.error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.error-tip {
  font-size: 13px;
  color: var(--color-text-light);
}

/* ============================================================
   Responsive — 响应式（断点 768px）
   ============================================================ */

@media (max-width: 1024px) {
  /* 首页题材网格 6->3 */
  .genre-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* 首页编辑精选 4->2 */
  .picks-scroll {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 首页内容索引 5->3 */
  .index-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* start 步骤 4->2 */
  .steps-row {
    grid-template-columns: repeat(2, 1fr);
  }

  /* picks 推荐卡 图片列缩小 */
  .picks-list .pick-card {
    grid-template-columns: 180px 1fr;
  }
}

@media (max-width: 768px) {
  /* ---- 全局 ---- */
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  h1 {
    font-size: 22px;
  }

  h2 {
    font-size: 19px;
  }

  .inner-main {
    padding: 24px 16px 48px;
  }

  .page-header {
    margin-bottom: 24px;
  }

  .page-title {
    font-size: 22px;
  }

  /* ---- 页头 ---- */
  .header-inner {
    height: 56px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .logo-mark {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  .logo-text {
    font-size: 18px;
  }

  /* 汉堡按钮显示 */
  .nav-toggle {
    display: flex;
  }

  /* 导航列表默认收起 */
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-card-bg);
    border-bottom: 1px solid var(--color-border-light);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li a {
    display: block;
    padding: 12px 16px;
    font-size: 15px;
    border-radius: var(--radius-small);
  }

  /* ---- 公告条 ---- */
  .announce-bar {
    padding: 6px 16px;
    font-size: 13px;
    min-height: 36px;
  }

  /* ---- 页脚 ---- */
  .footer-inner {
    flex-direction: column;
    gap: 24px;
    padding: 32px 16px 24px;
  }

  .footer-brand {
    flex: 0 0 auto;
  }

  .footer-links {
    gap: 24px;
  }

  .footer-col h3 {
    margin-bottom: 8px;
  }

  /* ---- 首页 ---- */
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 16px 24px;
  }

  .hero-copy h1 {
    font-size: 26px;
  }

  .hero-slogan {
    font-size: 16px;
  }

  .hero-figure {
    max-width: 100%;
  }

  .recent-strip {
    padding: 0 16px 32px;
  }

  .recent-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .genre-section {
    padding: 32px 16px;
  }

  .genre-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .genre-item {
    min-height: 100px;
  }

  .picks-section {
    padding: 32px 16px;
  }

  .picks-scroll {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .timeline-section {
    padding: 32px 16px;
  }

  .timeline-track {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .site-index {
    padding: 32px 16px;
  }

  .index-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .promo-banners {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 16px 40px;
  }

  .promo-card {
    padding: 24px;
  }

  /* ---- 内页通用 ---- */
  .breadcrumb {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .status-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .extend-row,
  .extend-cards,
  .extend-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .related-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .rhythm-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .follow-methods {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* ---- start 页 ---- */
  .steps-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .step-card {
    padding: 20px;
  }

  /* ---- library 页 ---- */
  .genre-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .genre-tabs a {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .table-wrap {
    overflow-x: auto;
  }

  .book-table {
    min-width: 640px;
  }

  /* ---- picks 页 ---- */
  .filter-tags {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .filter-tag {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .picks-list .pick-card {
    grid-template-columns: 1fr;
  }

  .pick-cover img {
    aspect-ratio: 16 / 9;
  }

  .pick-info {
    padding: 16px;
  }

  .pick-name {
    font-size: 18px;
  }

  .audience-tags {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .audience-tag {
    flex-shrink: 0;
    white-space: nowrap;
  }

  /* ---- changelog 页 ---- */
  .track-dates {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-left: 8px;
  }

  .track-date {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    padding: 8px 0;
  }

  .track-date::before {
    display: none;
  }

  .track-date::after {
    order: -1;
    flex-shrink: 0;
  }

  .date-month {
    font-size: 13px;
  }

  .date-day {
    font-size: 18px;
  }

  .changelog-item {
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 16px;
  }

  .item-cover {
    width: 48px;
    height: 64px;
  }

  /* ---- faq 页 ---- */
  .faq-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .faq-tab {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .faq-item summary {
    padding: 14px 16px;
    font-size: 14px;
  }

  .faq-answer {
    padding: 14px 16px;
  }

  /* ---- 404 ---- */
  .error-panel {
    padding: 32px 20px;
  }

  .error-code {
    font-size: 56px;
  }

  .error-actions {
    flex-direction: column;
  }

  .error-actions .btn-primary,
  .error-actions .btn-secondary {
    width: 100%;
  }
}

@media (max-width: 480px) {
  /* 小屏手机额外微调 */
  .genre-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .genre-item {
    min-height: 90px;
    padding: 16px 8px;
  }

  .genre-icon {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .hero-copy h1 {
    font-size: 24px;
  }

  .hero-desc {
    font-size: 15px;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer-links {
    flex-direction: column;
    gap: 20px;
  }

  .footer-col {
    flex: 0 0 auto;
  }

  .pick-card h3 {
    font-size: 15px;
  }

  .event-card {
    flex-direction: row;
    padding: 12px;
  }

  .event-card img {
    width: 60px;
    height: 80px;
  }
}
