/* ============================================================
   style.css - 影库 MediaSite 主样式
   复古胶片风格，深暖炭灰为主，支持浅色切换，响应式设计
   ============================================================ */

/* ---------- 主题变量 ---------- */
:root {
  --bg: #1C1814;
  --bg-elevated: #252019;
  --card-bg: #2A231C;
  --card-bg-hover: #332B22;
  --text: #E8DDD0;
  --text-muted: #9A8B7A;
  --border: #3D332A;
  --accent: #C8862E;
  --accent-hover: #D89A42;
  --douban: #7A9A5A;
  --imdb: #D4A548;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --radius: 6px;
  --radius-sm: 4px;
  --max-width: 1280px;
  --header-h: 64px;
  --serif: "Noto Serif SC", "Songti SC", "STSong", SimSun, serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

[data-theme='light'] {
  --bg: #F5EFE3;
  --bg-elevated: #EFE8D7;
  --card-bg: #E8DFC9;
  --card-bg-hover: #DFD4BA;
  --text: #3A2E22;
  --text-muted: #7A6B58;
  --border: #D6CBB3;
  --accent: #A66B1F;
  --accent-hover: #B87A2A;
  --douban: #5E7A3E;
  --imdb: #B8902E;
  --shadow: 0 8px 24px rgba(80, 60, 30, 0.12);
  --shadow-sm: 0 2px 8px rgba(80, 60, 30, 0.08);
}

/* ---------- 基础重置 ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background 0.3s, color 0.3s;
  -webkit-font-smoothing: antialiased;
}

/* 胶片颗粒纹理 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input,
select {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

main {
  flex: 1;
  padding-bottom: 40px;
}

h1, h2, .hero-title, .section-title {
  font-family: var(--serif);
}

/* ---------- 导航栏 ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
}

.brand-logo {
  color: var(--accent);
  font-size: 20px;
}

.brand-text {
  background: linear-gradient(90deg, var(--accent), var(--imdb));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 15px;
  transition: all 0.2s;
}

.nav-link:hover {
  color: var(--text);
  background: var(--card-bg);
}

.nav-link.active {
  color: var(--accent);
  background: rgba(200, 134, 46, 0.12);
}

.nav-link-recent {
  margin-left: 8px;
  padding-left: 16px;
  border-left: 1px solid var(--border);
}

.nav-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 4px 4px 4px 14px;
  width: 260px;
  transition: border-color 0.2s;
}

.nav-search:focus-within {
  border-color: var(--accent);
}

.nav-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 14px;
}

.nav-search-btn {
  padding: 6px 12px;
  border-radius: 50%;
  font-size: 14px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.nav-search-btn:hover {
  opacity: 1;
}

.theme-toggle {
  font-size: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.nav-menu-btn {
  display: none;
  font-size: 22px;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--card-bg);
}

/* ---------- 页脚 ---------- */
.footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: auto;
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
  font-family: var(--serif);
}

.footer-desc {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 10px;
}

.footer-beian {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.8;
}

.footer-beian a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-beian a:hover {
  color: var(--accent);
}

.footer-beian img {
  display: inline-block;
  width: 14px;
  height: 14px;
  vertical-align: middle;
  margin-right: 3px;
}

.footer-beian .sep {
  margin: 0 6px;
  opacity: 0.5;
}

/* ---------- 通用区块 ---------- */
.section {
  margin-top: 36px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 22px;
  background: var(--accent);
  border-radius: 2px;
}

.section-more {
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.2s;
}

.section-more:hover {
  color: var(--accent);
}

/* ---------- 首页 Hero ---------- */
.hero {
  background: linear-gradient(135deg, #252019 0%, #3D2E1E 60%, #1C1814 100%);
  padding: 56px 0;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}

[data-theme='light'] .hero {
  background: linear-gradient(135deg, #F0E8D5 0%, #E5D7BC 60%, #F5EFE3 100%);
}

.hero::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(200, 134, 46, 0.2), transparent 70%);
  border-radius: 50%;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 28px;
}

/* 统计卡片 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

[data-theme='light'] .stat-card {
  background: rgba(255, 255, 255, 0.6);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.stat-value {
  font-size: 30px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
}

.stat-label {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 4px;
}

/* 分类入口 */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.category-card {
  position: relative;
  border-radius: var(--radius);
  padding: 30px;
  overflow: hidden;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  transition: transform 0.25s, box-shadow 0.25s;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-card.movie {
  background: linear-gradient(135deg, #8B5E2E, #5C3D1A);
}
.category-card.tv {
  background: linear-gradient(135deg, #6B7A4E, #4A5530);
}
.category-card.anime {
  background: linear-gradient(135deg, #A67632, #6E4E1E);
}

.category-icon {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 6px;
  opacity: 0.9;
  font-family: var(--serif);
}

.category-name {
  font-size: 20px;
  font-weight: 700;
  font-family: var(--serif);
}

.category-count {
  font-size: 13px;
  opacity: 0.85;
  margin-top: 2px;
}

.category-arrow {
  position: absolute;
  right: 20px;
  bottom: 18px;
  font-size: 22px;
  opacity: 0.7;
  transition: transform 0.2s;
}

.category-card:hover .category-arrow {
  transform: translateX(4px);
  opacity: 1;
}

/* ---------- 卡片网格 ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.card-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--bg);
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.card:hover .card-cover img {
  transform: scale(1.05);
}

.card-type {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  backdrop-filter: blur(4px);
}

.card-rating {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.rating-badge {
  font-size: 11px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.55);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.rating-badge.douban {
  border-left: 2px solid var(--douban);
}

.rating-badge.imdb {
  border-left: 2px solid var(--imdb);
}

.card-body {
  padding: 10px 12px 12px;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.card-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-meta .dot {
  opacity: 0.5;
}

.card-genre {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- 列表页筛选面板 ---------- */
.catalog-header {
  padding: 24px 0 0;
}

.catalog-top-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}

.catalog-title {
  font-size: 26px;
  font-weight: 800;
  font-family: var(--serif);
}

.catalog-count {
  color: var(--text-muted);
  font-size: 14px;
}

.filter-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 20px;
  margin-bottom: 22px;
}

.filter-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.filter-row:last-child {
  border-bottom: none;
}

.filter-row-label {
  flex-shrink: 0;
  width: 42px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 30px;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}

.filter-tag {
  padding: 4px 14px;
  border-radius: 16px;
  font-size: 13px;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.filter-tag:hover {
  color: var(--text);
  background: var(--card-bg);
}

.filter-tag.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.search-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(200, 134, 46, 0.1);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  margin-bottom: 18px;
}

.search-banner .clear-search {
  margin-left: auto;
  padding: 5px 14px;
  border-radius: 20px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
}

.catalog-toolbar-bottom {
  display: none;
}

/* ---------- 分页器 ---------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  transition: all 0.2s;
}

.page-btn:hover:not(.disabled):not(.active) {
  border-color: var(--accent);
  color: var(--accent);
}

.page-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

.page-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-ellipsis {
  padding: 0 4px;
  color: var(--text-muted);
}

.page-info {
  margin-left: 12px;
  color: var(--text-muted);
  font-size: 13px;
}

/* ---------- 详情页 ---------- */
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.2s;
}

.detail-back:hover {
  color: var(--accent);
}

.detail-hero {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 36px;
  padding: 24px 0;
}

.detail-cover {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 2 / 3;
  background: var(--card-bg);
}

.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 6px;
  line-height: 1.2;
}

.detail-aka {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 16px;
}

.detail-ratings {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
}

.rating-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 22px;
  border-radius: var(--radius);
  min-width: 96px;
}

.rating-box.douban {
  background: rgba(122, 154, 90, 0.12);
  border: 1px solid rgba(122, 154, 90, 0.35);
}

.rating-box.imdb {
  background: rgba(212, 165, 72, 0.12);
  border: 1px solid rgba(212, 165, 72, 0.35);
}

.rating-box .score {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.rating-box.douban .score {
  color: var(--douban);
}

.rating-box.imdb .score {
  color: var(--imdb);
}

.rating-box .src {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
  margin-bottom: 22px;
}

.info-item {
  font-size: 14px;
  display: flex;
  gap: 8px;
}

.info-item .label {
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.info-item .value {
  color: var(--text);
  word-break: break-word;
}

.info-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.tag {
  display: inline-block;
  padding: 3px 12px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 13px;
  color: var(--text-muted);
  transition: all 0.2s;
}

.tag:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.detail-section {
  margin-top: 30px;
}

.detail-section h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-section h2::before {
  content: '';
  width: 4px;
  height: 18px;
  background: var(--accent);
  border-radius: 2px;
}

.summary-text {
  color: var(--text);
  font-size: 15px;
  line-height: 1.9;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
}

/* ---------- 网盘下载导航 ---------- */
.pan-section {
  margin-top: 30px;
}

.pan-section h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
}

.pan-section h2::before {
  content: '';
  width: 4px;
  height: 18px;
  background: var(--accent);
  border-radius: 2px;
}

.pan-notice {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.pan-disabled-notice {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--text-muted);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.pan-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pan-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  transition: all 0.2s;
}

.pan-btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.pan-arrow {
  font-size: 16px;
  transition: transform 0.2s;
}

.pan-btn:hover .pan-arrow {
  transform: translateX(3px);
}

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  transition: all 0.2s;
}

.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

/* ---------- 状态：加载/空/错误 ---------- */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 60px 0;
  color: var(--text-muted);
  grid-column: 1 / -1;
}

.spinner {
  width: 22px;
  height: 22px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 15px;
}

.empty.error {
  color: #A66050;
}

.skeleton-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.skeleton-cover {
  aspect-ratio: 2 / 3;
  background: linear-gradient(90deg, var(--card-bg) 25%, var(--card-bg-hover) 50%, var(--card-bg) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

.skeleton-line {
  height: 12px;
  margin: 10px 12px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--card-bg) 25%, var(--card-bg-hover) 50%, var(--card-bg) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ---------- 提示气泡 ---------- */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: var(--bg);
  padding: 10px 22px;
  border-radius: 24px;
  font-size: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: all 0.3s;
  z-index: 9999;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- prose 排版（about.html） ---------- */
.prose {
  max-width: 760px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
}

.prose h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 32px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 22px 0 10px;
  color: var(--accent);
}

.prose p {
  margin-bottom: 14px;
}

.prose ul,
.prose ol {
  margin: 0 0 14px 22px;
}

.prose li {
  margin-bottom: 6px;
}

.prose ul ul,
.prose ol ul {
  margin: 6px 0 6px 22px;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:hover {
  color: var(--accent-hover);
}

.prose strong {
  color: var(--text);
  font-weight: 700;
}

.prose code {
  font-family: ui-monospace, Consolas, "Courier New", monospace;
  font-size: 13px;
  background: var(--card-bg);
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid var(--border);
}

.prose blockquote {
  margin: 16px 0;
  padding: 8px 16px;
  border-left: 3px solid var(--accent);
  background: var(--card-bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-muted);
  font-style: italic;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 14px;
}

.prose th,
.prose td {
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
}

.prose th {
  background: var(--card-bg);
  font-weight: 700;
}

.prose .about-quote {
  font-style: italic;
  color: var(--text-muted);
  border-left: 3px solid var(--accent);
  padding-left: 14px;
  margin: 16px 0;
}

.about-header {
  text-align: center;
  margin-bottom: 28px;
}

.about-header h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  font-family: var(--serif);
}

.about-header .about-sub {
  color: var(--text-muted);
  font-size: 14px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .card-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .detail-hero {
    grid-template-columns: 220px 1fr;
    gap: 24px;
  }
  .hero-title {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .nav-search {
    width: 180px;
  }
  .nav-link {
    padding: 8px 10px;
    font-size: 14px;
  }
  .brand-text {
    display: none;
  }
}

@media (max-width: 680px) {
  .nav-menu-btn {
    display: block;
    order: 4;
  }
  .nav-search {
    width: 100%;
    order: 5;
    margin: 0;
  }
  .nav-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 20px;
    gap: 10px;
  }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    order: 6;
    padding-bottom: 6px;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-link {
    padding: 12px 14px;
  }
  .nav-link-recent {
    margin-left: 0;
    padding-left: 14px;
    border-left: none;
    border-top: 1px solid var(--border);
  }
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .category-grid {
    grid-template-columns: 1fr;
  }
  .detail-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .detail-cover {
    max-width: 200px;
    margin: 0 auto;
  }
  .detail-ratings {
    justify-content: center;
  }
  .info-list {
    grid-template-columns: 1fr;
  }
  .info-tags {
    justify-content: center;
  }
  .detail-info h1 {
    font-size: 24px;
  }
  .filter-panel {
    padding: 4px 14px;
  }
  .filter-row-label {
    width: 36px;
    font-size: 13px;
  }
  .filter-tag {
    padding: 3px 10px;
    font-size: 12px;
  }
  .page-info {
    width: 100%;
    text-align: center;
    margin-left: 0;
  }
  .pan-btns {
    flex-direction: column;
  }
  .pan-btn {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero {
    padding: 36px 0;
  }
  .hero-title {
    font-size: 22px;
  }
  .catalog-title {
    font-size: 22px;
  }
  .card-title {
    font-size: 13px;
  }
  .prose {
    font-size: 14px;
  }
  .prose h2 {
    font-size: 19px;
  }
}
