/* ==========================================================================
   动漫天堂 · 全站样式表
   视觉方向：明亮漫画资料站 · 米白底 · 大留白 · 多色题材样本
   ========================================================================== */

/* ==========================================================================
   Base · 基础变量与全局重置
   ========================================================================== */

:root {
  --bg: #F7F4EE;
  --card: #FFFFFF;
  --text: #2A2A2E;
  --text-secondary: #6B6B70;
  --accent: #F05A28;
  --accent-soft: #F5A623;
  --border: #E7E1D6;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 1px 4px rgba(42, 42, 46, 0.06);
  --shadow-hover: 0 8px 24px rgba(42, 42, 46, 0.1);

  /* 题材样本色 */
  --genre-hot: #E85D3F;
  --genre-love: #E86B8A;
  --genre-suspense: #4A6FA5;
  --genre-comedy: #F2B33D;
  --genre-sci-fi: #3E8E7E;
  --genre-daily: #8B9E6B;
  --genre-fantasy: #7A6FB5;
  --genre-city: #6B7B8C;

  --container: 1200px;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

/* ==========================================================================
   Layout · 全站布局骨架
   ========================================================================== */

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  flex-shrink: 0;
}

.brand-link {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.brand-link::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  vertical-align: 2px;
}

.site-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--text);
  background: var(--bg);
}

.nav-link.is-current {
  color: var(--accent);
  font-weight: 600;
}

.nav-link.is-current::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

/* 公告条 */
.site-notice,
.notice-bar {
  background: var(--accent-soft);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 8px 24px;
  font-size: 13px;
  position: relative;
}

.notice-text {
  max-width: var(--container);
  text-align: center;
}

.notice-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  color: var(--text);
  flex-shrink: 0;
  transition: background 0.2s;
}

.notice-close:hover {
  background: rgba(42, 42, 46, 0.08);
}

/* 主容器 */
.site-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.home-main {
  padding-top: 0;
}

.inner-main {
  padding-top: 32px;
  padding-bottom: 64px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.breadcrumb a {
  color: var(--text-secondary);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--border);
}

.breadcrumb-current {
  color: var(--text);
  font-weight: 500;
}

/* 页面标题区 */
.page-header {
  margin-bottom: 32px;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 8px;
}

.page-description {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 720px;
}

/* 页脚 */
.site-footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  margin-top: 0;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
}

.footer-brand-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.footer-col-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
}

.footer-nav li {
  margin-bottom: 10px;
}

.footer-nav a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--container);
  margin: 0 auto;
}

.footer-lang,
.footer-copy {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ==========================================================================
   Components · 通用组件
   ========================================================================== */

/* 区块标题 */
.section-block {
  padding: 64px 0;
}

.section-header {
  margin-bottom: 32px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}

.section-desc {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 640px;
}

.section-more {
  margin-top: 24px;
  text-align: center;
}

.section-more a {
  display: inline-block;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}

.section-more a:hover {
  background: var(--accent);
  color: #fff;
}

/* 按钮 */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #d84a1d;
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow);
}

/* 封面卡通用 */
.cover-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cover-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* 标签 */
.tag {
  display: inline-block;
  padding: 2px 10px;
  font-size: 12px;
  border-radius: 20px;
  background: var(--bg);
  color: var(--text-secondary);
  margin-right: 6px;
}

.tag-action { background: rgba(232, 93, 63, 0.12); color: var(--genre-hot); }
.tag-romance { background: rgba(232, 107, 138, 0.12); color: var(--genre-love); }
.tag-fantasy { background: rgba(122, 111, 181, 0.12); color: var(--genre-fantasy); }
.tag-daily { background: rgba(139, 158, 107, 0.12); color: var(--genre-daily); }
.tag-sci { background: rgba(62, 142, 126, 0.12); color: var(--genre-sci-fi); }
.tag-mystery { background: rgba(74, 111, 165, 0.12); color: var(--genre-suspense); }
.tag-comedy { background: rgba(242, 179, 61, 0.12); color: #b07d14; }
.tag-urban { background: rgba(107, 123, 140, 0.12); color: var(--genre-city); }
.tag-hot { background: rgba(232, 93, 63, 0.12); color: var(--genre-hot); }
.tag-love { background: rgba(232, 107, 138, 0.12); color: var(--genre-love); }
.tag-scifi { background: rgba(62, 142, 126, 0.12); color: var(--genre-sci-fi); }
.tag-thriller { background: rgba(74, 111, 165, 0.12); color: var(--genre-suspense); }
.tag-sports { background: rgba(139, 158, 107, 0.12); color: var(--genre-daily); }
.tag-space { background: rgba(62, 142, 126, 0.12); color: var(--genre-sci-fi); }
.tag-adventure { background: rgba(242, 179, 61, 0.12); color: #b07d14; }
.tag-reason { background: rgba(240, 90, 40, 0.1); color: var(--accent); }

/* FAQ 折叠 */
.faq-list {
  max-width: 800px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  font-size: 20px;
  color: var(--text-secondary);
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-question:hover {
  color: var(--accent);
}

.faq-answer {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.faq-answer p {
  margin-bottom: 8px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* 相关入口卡 */
.entry-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.entry-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.entry-card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.entry-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* 相关链接行 */
.related-links {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.related-links-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.related-links-item {
  font-size: 13px;
  color: var(--accent);
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: border-color 0.2s, background 0.2s;
}

.related-links-item:hover {
  border-color: var(--accent);
  background: rgba(240, 90, 40, 0.04);
}

/* ==========================================================================
   Pages · 首页
   ========================================================================== */

/* Hero 时间入口 */
.hero-section {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 64px 0 56px;
}

.hero-media {
  order: 1;
}

.hero-figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-figure img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.hero-content {
  order: 2;
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 12px;
  color: var(--text);
}

.hero-slogan {
  font-size: 18px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 12px;
}

.hero-description {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.hero-genre-dots {
  display: flex;
  gap: 10px;
  align-items: center;
}

.genre-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--card);
  box-shadow: 0 0 0 1px var(--border);
  transition: transform 0.2s;
}

.genre-dot:hover {
  transform: scale(1.3);
}

.genre-dot-hot { background: var(--genre-hot); }
.genre-dot-love { background: var(--genre-love); }
.genre-dot-suspense { background: var(--genre-suspense); }
.genre-dot-comedy { background: var(--genre-comedy); }
.genre-dot-sci-fi { background: var(--genre-sci-fi); }
.genre-dot-daily { background: var(--genre-daily); }
.genre-dot-fantasy { background: var(--genre-fantasy); }
.genre-dot-city { background: var(--genre-city); }

/* 最近更新时间线 */
.timeline-section {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.timeline-list {
  position: relative;
  padding-left: 24px;
}

.timeline-list::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  align-items: start;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--card);
  box-shadow: 0 0 0 1px var(--border);
}

.timeline-date {
  font-size: 13px;
  color: var(--text-secondary);
  padding-top: 8px;
  white-space: nowrap;
}

.timeline-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 12px;
  transition: background 0.2s, transform 0.2s;
}

.timeline-card:hover {
  background: #f0ece4;
  transform: translateX(4px);
}

.timeline-thumb {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.timeline-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.timeline-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}

.timeline-tags {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.timeline-meta {
  font-size: 12px;
  color: var(--accent);
}

/* 题材色板 */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.genre-item {
  border-radius: var(--radius);
  padding: 24px;
  color: #fff;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.2s, box-shadow 0.2s;
}

.genre-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.genre-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.genre-desc {
  font-size: 13px;
  opacity: 0.92;
  line-height: 1.6;
}

.genre-item-hot { background: var(--genre-hot); }
.genre-item-love { background: var(--genre-love); }
.genre-item-suspense { background: var(--genre-suspense); }
.genre-item-comedy { background: var(--genre-comedy); color: #3a2e0a; }
.genre-item-sci-fi { background: var(--genre-sci-fi); }
.genre-item-daily { background: var(--genre-daily); }
.genre-item-fantasy { background: var(--genre-fantasy); }
.genre-item-city { background: var(--genre-city); }

/* 阅读路径 */
.path-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.path-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.path-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.path-name {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
  position: relative;
  padding-left: 16px;
}

.path-name::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: var(--accent);
}

.path-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.path-link a {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}

.path-link a:hover {
  gap: 8px;
}

/* 人气榜单摘要 */
.ranking-summary-section {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ranking-item {
  display: grid;
  grid-template-columns: 40px 56px 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.ranking-item:last-child {
  border-bottom: none;
}

.ranking-item:hover {
  background: var(--bg);
}

.rank {
  font-size: 20px;
  font-weight: 700;
  color: var(--border);
  text-align: center;
}

.ranking-item:nth-child(1) .rank { color: var(--accent); }
.ranking-item:nth-child(2) .rank { color: var(--accent-soft); }
.ranking-item:nth-child(3) .rank { color: #c0a062; }

.rank-thumb {
  width: 56px;
  height: 74px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.rank-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.rank-tag {
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg);
  padding: 2px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.rank-heat {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  white-space: nowrap;
}

/* 专题品鉴入口 */
.special-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.special-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.special-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.special-name {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.special-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.special-link a {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}

.special-link a:hover {
  gap: 8px;
}

/* 首页 FAQ */
.faq-section {
  background: var(--card);
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   Pages · 内页通用
   ========================================================================== */

/* 相关入口通用 */
.related-entry {
  margin-top: 48px;
}

.related-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.entry-card-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.related-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.related-card-title,
.related-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.related-card-desc,
.related-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==========================================================================
   Pages · 近期书单
   ========================================================================== */

.time-entry-bar {
  margin-bottom: 32px;
}

.time-entry-list {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.time-entry-item {
  display: inline-block;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--card);
  color: var(--text-secondary);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.time-entry-item:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.time-entry-item.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* 更新列表 */
.update-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.update-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.update-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.item-cover {
  width: 80px;
  height: 106px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.item-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.item-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.item-tags {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.item-specs {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.item-specs li {
  font-size: 13px;
  color: var(--text-secondary);
  position: relative;
}

.item-specs li::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border);
  margin-right: 8px;
  vertical-align: 2px;
}

.spec-label {
  color: var(--text-secondary);
}

.spec-value {
  color: var(--text);
  font-weight: 500;
}

/* 本月摘要 */
.month-section {
  margin-top: 48px;
}

.month-summary-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.month-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.month-item-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.month-item-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==========================================================================
   Pages · 过往归档
   ========================================================================== */

.era-nav-section {
  margin-bottom: 40px;
}

.era-nav-list {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.era-nav-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.era-nav-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.era-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.era-range {
  font-size: 12px;
  color: var(--text-secondary);
}

.archive-group {
  margin-bottom: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.group-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
  scroll-margin-top: 80px;
}

.group-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.archive-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.archive-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.archive-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.archive-cover {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.archive-info {
  min-width: 0;
}

.archive-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.archive-tags {
  margin-bottom: 6px;
}

.archive-status {
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 4px;
}

.archive-note {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Pages · 题材漫游
   ========================================================================== */

.genre-section {
  margin-bottom: 48px;
}

.section-intro {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  max-width: 640px;
}

.palette-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.palette-card {
  border-radius: var(--radius);
  padding: 24px;
  color: #fff;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.2s, box-shadow 0.2s;
}

.palette-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.palette-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.palette-desc {
  font-size: 13px;
  opacity: 0.92;
  line-height: 1.6;
}

.palette-hot { background: var(--genre-hot); }
.palette-love { background: var(--genre-love); }
.palette-mystery { background: var(--genre-suspense); }
.palette-comedy { background: var(--genre-comedy); color: #3a2e0a; }
.palette-scifi { background: var(--genre-sci-fi); }
.palette-daily { background: var(--genre-daily); }
.palette-fantasy { background: var(--genre-fantasy); }
.palette-urban { background: var(--genre-city); }

/* 题材代表作品 */
.genre-group {
  margin-bottom: 32px;
}

.genre-group-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
  padding-left: 12px;
  border-left: 4px solid var(--accent);
  line-height: 1.4;
}

.work-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.work-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.work-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.work-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.work-info {
  padding: 16px;
}

.work-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.work-tags {
  margin-bottom: 8px;
}

.work-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.work-link a {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}

/* ==========================================================================
   Pages · 人气榜单
   ========================================================================== */

.rank-tabs {
  margin-bottom: 24px;
}

.tab-list {
  display: flex;
  gap: 12px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}

.tab-item {
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}

.tab-item:hover {
  color: var(--text);
}

.tab-item.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.rank-section {
  margin-bottom: 48px;
}

.rank-list {
  counter-reset: rank;
}

.rank-item {
  display: grid;
  grid-template-columns: 44px 72px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.rank-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.rank-number {
  font-size: 22px;
  font-weight: 700;
  color: var(--border);
  text-align: center;
}

.rank-item:nth-child(1) .rank-number { color: var(--accent); }
.rank-item:nth-child(2) .rank-number { color: var(--accent-soft); }
.rank-item:nth-child(3) .rank-number { color: #c0a062; }

.rank-cover {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.rank-info {
  min-width: 0;
}

.rank-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}

.rank-meta {
  font-size: 12px;
  color: var(--text-secondary);
}

.rank-tag {
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg);
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

/* 趋势分析 */
.trend-analysis {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 48px;
}

.trend-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trend-item {
  padding: 20px;
  background: var(--bg);
  border-radius: var(--radius);
}

.trend-item h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.trend-item p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==========================================================================
   Pages · 专题品鉴
   ========================================================================== */

.article-hero {
  margin-bottom: 32px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.article-hero img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.article-hero figcaption {
  padding: 12px 16px;
  background: var(--card);
  font-size: 13px;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
}

.chapter-toc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
}

.toc-list {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.toc-list li {
  margin-bottom: 4px;
}

.toc-list a {
  display: inline-block;
  padding: 8px 18px;
  font-size: 14px;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: border-color 0.2s, color 0.2s;
}

.toc-list a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.article-body {
  max-width: 800px;
}

.article-section {
  margin-bottom: 40px;
}

.article-section h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 80px;
}

.article-section p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 16px;
}

.article-section p:last-child {
  margin-bottom: 0;
}

.article-source {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 48px;
}

.article-source h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.article-source p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* 相关专题 */
.related-specials {
  margin-top: 48px;
}

.related-specials .related-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text);
}

.special-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.special-cards .special-card {
  display: flex;
  flex-direction: column;
}

.special-cards .special-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.special-cards .special-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
  flex: 1;
}

.card-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}

.card-link:hover {
  gap: 8px;
}

/* ==========================================================================
   Pages · 阅读指引
   ========================================================================== */

.content-section {
  margin-bottom: 56px;
}

.steps-section {
  margin-bottom: 48px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.step-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.step-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}

.step-link:hover {
  gap: 8px;
}

.steps-figure {
  margin-top: 32px;
}

.steps-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
}

.figure-caption {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  padding: 12px 0;
}

/* FAQ 分组 */
.faq-group-title {
  font-size: 17px;
  font-weight: 600;
  margin: 32px 0 16px;
  color: var(--text);
  padding-left: 12px;
  border-left: 4px solid var(--accent-soft);
  line-height: 1.4;
}

/* 相关帮助 */
.related-section .related-cards {
  grid-template-columns: repeat(2, 1fr);
}

.related-section .related-card {
  display: flex;
  flex-direction: column;
}

.related-section .related-card .related-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.related-section .related-card .related-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
  flex: 1;
}

.related-section .related-card .related-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}

.related-section .related-card .related-link:hover {
  gap: 8px;
}

/* ==========================================================================
   Pages · 版权与反馈
   ========================================================================== */

.rule-section {
  margin-bottom: 48px;
}

.intro-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.intro-media img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
}

.intro-copy p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 16px;
}

.intro-copy p:last-child {
  margin-bottom: 0;
}

/* 内容边界 */
.boundary-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.boundary-section .section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.boundary-section .section-intro {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.boundary-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.boundary-item {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 20px;
}

.boundary-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.boundary-title::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.boundary-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* 反馈流程 */
.feedback-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.feedback-section .section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.feedback-section .section-intro {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.feedback-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.feedback-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.step-content p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.feedback-note {
  font-size: 13px;
  color: var(--text-secondary);
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.feedback-note a {
  color: var(--accent);
  font-weight: 500;
}

.feedback-note a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Pages · 404
   ========================================================================== */

.error-main {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
}

.error-panel {
  text-align: center;
  max-width: 560px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
}

.error-code {
  font-size: 72px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
}

.error-panel h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.error-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.8;
}

.error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.error-btn {
  display: inline-block;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  transition: background 0.2s;
}

.error-btn:hover {
  background: #d84a1d;
}

.error-btn-secondary {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
}

.error-btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--card);
}

.error-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.error-links a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.error-links a:hover {
  color: var(--accent);
}

/* ==========================================================================
   Responsive · 响应式
   ========================================================================== */

/* 1024px 平板 */
@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-media {
    order: 2;
  }

  .hero-content {
    order: 1;
  }

  .hero-figure img {
    height: 280px;
  }

  .genre-grid,
  .palette-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trend-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .intro-layout {
    grid-template-columns: 1fr;
  }

  .boundary-list {
    grid-template-columns: 1fr;
  }
}

/* 768px 手机 */
@media (max-width: 768px) {
  .header-inner {
    height: 56px;
    padding: 0 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: block;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px;
    gap: 0;
  }

  .nav-list.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-item {
    border-bottom: 1px solid var(--border);
  }

  .nav-item:last-child {
    border-bottom: none;
  }

  .nav-link {
    padding: 14px 8px;
    font-size: 15px;
    border-radius: 0;
  }

  .nav-link.is-current::after {
    display: none;
  }

  .nav-link.is-current {
    color: var(--accent);
    background: rgba(240, 90, 40, 0.04);
    border-radius: var(--radius-sm);
  }

  .site-main,
  .inner-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .inner-main {
    padding-top: 24px;
    padding-bottom: 48px;
  }

  .breadcrumb {
    margin-bottom: 16px;
    padding-bottom: 12px;
    flex-wrap: wrap;
  }

  .page-title {
    font-size: 24px;
  }

  .section-block {
    padding: 48px 0;
  }

  .hero-section {
    padding: 40px 0;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    text-align: center;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .timeline-date {
    padding-top: 0;
    font-size: 12px;
  }

  .timeline-card {
    grid-template-columns: 56px 1fr;
    padding: 10px;
  }

  .timeline-thumb {
    width: 56px;
    height: 74px;
  }

  .genre-grid,
  .palette-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .genre-item,
  .palette-card {
    padding: 16px;
    min-height: 100px;
  }

  .path-grid,
  .special-grid,
  .related-entry-grid,
  .entry-card-list,
  .month-summary-list,
  .archive-list,
  .work-list,
  .special-cards,
  .feedback-steps {
    grid-template-columns: 1fr;
  }

  .related-cards {
    grid-template-columns: 1fr;
  }

  .ranking-item {
    grid-template-columns: 32px 48px 1fr auto;
    gap: 12px;
    padding: 10px 12px;
  }

  .rank {
    font-size: 18px;
  }

  .rank-thumb {
    width: 48px;
    height: 64px;
  }

  .rank-tag {
    display: none;
  }

  .rank-title {
    font-size: 14px;
  }

  .rank-heat {
    font-size: 12px;
  }

  .update-item {
    grid-template-columns: 64px 1fr;
    gap: 14px;
    padding: 12px;
  }

  .item-cover {
    width: 64px;
    height: 84px;
  }

  .item-title {
    font-size: 14px;
  }

  .item-specs {
    flex-direction: column;
    gap: 4px;
  }

  .time-entry-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .time-entry-item {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .era-nav-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .era-nav-item {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .rank-item {
    grid-template-columns: 32px 56px 1fr auto;
  }

  .rank-cover {
    width: 56px;
    height: 74px;
  }

  .trend-grid {
    grid-template-columns: 1fr;
  }

  .tab-list {
    overflow-x: auto;
  }

  .tab-item {
    white-space: nowrap;
    padding: 12px 20px;
  }

  .article-hero img {
    height: 200px;
  }

  .article-body {
    font-size: 14px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .steps-image {
    height: 200px;
  }

  .intro-layout {
    padding: 20px;
  }

  .intro-media img {
    height: 180px;
  }

  .boundary-section,
  .feedback-section {
    padding: 20px;
  }

  .boundary-list {
    grid-template-columns: 1fr;
  }

  .feedback-steps {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 16px 24px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px;
  }

  .error-panel {
    padding: 32px 24px;
  }

  .error-code {
    font-size: 56px;
  }

  .notice-text {
    font-size: 12px;
    padding-right: 28px;
  }

  .notice-close {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
  }
}

/* 480px 小屏手机 */
@media (max-width: 480px) {
  .genre-item,
  .palette-card {
    min-height: 90px;
    padding: 14px;
  }

  .genre-name,
  .palette-name {
    font-size: 16px;
  }

  .genre-desc,
  .palette-desc {
    font-size: 12px;
  }

  .ranking-item {
    grid-template-columns: 28px 44px 1fr auto;
    gap: 10px;
    padding: 8px 10px;
  }

  .rank-thumb {
    width: 44px;
    height: 58px;
  }

  .rank {
    font-size: 16px;
  }

  .rank-title {
    font-size: 13px;
  }

  .rank-heat {
    font-size: 11px;
  }

  .update-item {
    grid-template-columns: 56px 1fr;
    gap: 12px;
  }

  .item-cover {
    width: 56px;
    height: 74px;
  }

  .item-title {
    font-size: 13px;
  }

  .item-tags {
    font-size: 11px;
  }

  .item-specs li {
    font-size: 12px;
  }

  .archive-item {
    grid-template-columns: 56px 1fr;
    gap: 12px;
    padding: 12px;
  }

  .archive-cover {
    width: 56px;
    height: 74px;
  }

  .archive-title {
    font-size: 14px;
  }

  .work-card img {
    height: 140px;
  }

  .rank-item {
    grid-template-columns: 24px 48px 1fr;
  }

  .rank-cover {
    width: 48px;
    height: 64px;
  }

  .rank-tag {
    display: none;
  }

  .hero-figure img {
    height: 200px;
  }

  .hero-title {
    font-size: 22px;
  }

  .hero-slogan {
    font-size: 15px;
  }

  .hero-description {
    font-size: 14px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .timeline-card {
    grid-template-columns: 48px 1fr;
  }

  .timeline-thumb {
    width: 48px;
    height: 64px;
  }

  .timeline-title {
    font-size: 14px;
  }

  .timeline-tags {
    font-size: 11px;
  }

  .timeline-meta {
    font-size: 11px;
  }

  .section-title {
    font-size: 20px;
  }

  .page-description {
    font-size: 14px;
  }

  .article-hero img {
    height: 160px;
  }

  .toc-list {
    flex-direction: column;
    gap: 8px;
  }

  .toc-list a {
    display: block;
    text-align: center;
  }

  .steps-image {
    height: 160px;
  }

  .intro-media img {
    height: 150px;
  }
}
