/* ============================================================
   无颜之月动漫全集 — 整站样式表
   基础色板：#f5f0e8 / #2c3e50 / #b8860b / #ffffff / #333333
   ============================================================ */

/* ============================================================
   Base — 基础重置、字体、颜色、通用元素
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #333333;
  background-color: #f5f0e8;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  line-height: 1.35;
  color: #2c3e50;
  font-weight: 700;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: #b8860b;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #8b6508;
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul, ol {
  list-style: none;
}

figure {
  margin: 0;
}

/* ============================================================
   Layout — 全站容器、页头、页脚、页面布局骨架
   ============================================================ */

/* 统一容器宽度 */
.header-inner,
.footer-inner,
.site-main,
.page-layout,
.layout-shell {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ---- 页头 ---- */
.site-header {
  background-color: #ffffff;
  border-bottom: 2px solid #b8860b;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo:hover {
  text-decoration: none;
}

.brand-name {
  font-family: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #2c3e50;
  letter-spacing: 0.02em;
}

.brand-slogan {
  font-size: 0.75rem;
  color: #b8860b;
  margin-top: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  align-items: center;
  gap: 6px;
}

.toggle-icon {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #2c3e50;
  position: relative;
}

.toggle-icon::before,
.toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background-color: #2c3e50;
}

.toggle-icon::before {
  top: -7px;
}

.toggle-icon::after {
  top: 7px;
}

.toggle-text {
  font-size: 0.875rem;
  color: #2c3e50;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li a {
  display: block;
  padding: 8px 16px;
  font-size: 0.9375rem;
  color: #2c3e50;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-list li a:hover {
  background-color: #f5f0e8;
  color: #b8860b;
  text-decoration: none;
}

.nav-list li a.is-current {
  background-color: #b8860b;
  color: #ffffff;
}

/* ---- 页脚 ---- */
.site-footer {
  background-color: #2c3e50;
  color: #d0d6dd;
  margin-top: 60px;
  padding: 48px 0 24px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.footer-brand {
  max-width: 260px;
}

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.footer-brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  flex: 1;
  justify-content: flex-end;
}

.footer-group {
  min-width: 140px;
}

.footer-group h3 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-group ul li {
  margin-bottom: 8px;
}

.footer-group ul li a {
  font-size: 0.875rem;
  color: #a9b4bd;
}

.footer-group ul li a:hover {
  color: #ffffff;
  text-decoration: none;
}

.copyright {
  width: 100%;
  text-align: center;
  font-size: 0.8125rem;
  color: #7a8894;
  border-top: 1px solid #3d4d5c;
  padding-top: 20px;
  margin-top: 32px;
}

/* ---- 内页通用布局 ---- */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 40px;
  align-items: start;
}

.main-content {
  min-width: 0;
}

/* 长尾页布局壳 */
.layout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 40px;
  align-items: start;
}

/* ---- 面包屑 ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.875rem;
  margin-bottom: 16px;
  gap: 8px;
}

.breadcrumb a {
  color: #b8860b;
}

.breadcrumb a:hover {
  color: #8b6508;
}

.breadcrumb-sep {
  color: #999999;
}

.breadcrumb-current {
  color: #666666;
}

/* ---- 页面标题区 ---- */
.page-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0d8cc;
}

.page-title {
  font-size: 2rem;
  margin-bottom: 8px;
}

.page-description {
  font-size: 1rem;
  color: #666666;
  max-width: 720px;
  margin-bottom: 0;
}

/* ============================================================
   Components — 通用组件：按钮、卡片、标签、列表、侧栏
   ============================================================ */

/* ---- 按钮 ---- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background-color: #b8860b;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #8b6508;
  color: #ffffff;
}

.btn-secondary {
  background-color: transparent;
  border-color: #b8860b;
  color: #b8860b;
}

.btn-secondary:hover {
  background-color: #b8860b;
  color: #ffffff;
}

.btn-text {
  display: inline-block;
  padding: 8px 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #b8860b;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.btn-text:hover {
  border-bottom-color: #b8860b;
  text-decoration: none;
}

/* ---- 侧栏 ---- */
.sidebar {
  min-width: 0;
}

.sidebar-block {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid #e8e1d5;
}

.sidebar-block h2 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #2c3e50;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0e9dd;
  margin-bottom: 14px;
}

.sidebar-list li {
  margin-bottom: 10px;
  padding-left: 14px;
  position: relative;
}

.sidebar-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background-color: #b8860b;
  border-radius: 50%;
}

.sidebar-list li a {
  font-size: 0.875rem;
  color: #4a4a4a;
}

.sidebar-list li a:hover {
  color: #b8860b;
}

/* ---- 侧栏区域（guide / longtail2 变体） ---- */
.sidebar-area {
  min-width: 0;
}

.side-module {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid #e8e1d5;
}

.side-module h2 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #2c3e50;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0e9dd;
  margin-bottom: 14px;
}

.side-links li {
  margin-bottom: 10px;
  padding-left: 14px;
  position: relative;
}

.side-links li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background-color: #b8860b;
  border-radius: 50%;
}

.side-links li a {
  font-size: 0.875rem;
  color: #4a4a4a;
}

.side-links li a:hover {
  color: #b8860b;
}

/* ---- 侧栏卡片（longtail1 / longtail2） ---- */
.sidebar-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid #e8e1d5;
}

.sidebar-card h3 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #2c3e50;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0e9dd;
  margin-bottom: 14px;
}

.sidebar-card ul li {
  margin-bottom: 10px;
  padding-left: 14px;
  position: relative;
}

.sidebar-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background-color: #b8860b;
  border-radius: 50%;
}

.sidebar-card ul li a {
  font-size: 0.875rem;
  color: #4a4a4a;
}

.sidebar-card ul li a:hover {
  color: #b8860b;
}

.sidebar-card p {
  font-size: 0.875rem;
  color: #666666;
  margin-bottom: 12px;
}

.sidebar-card > a {
  font-size: 0.875rem;
  font-weight: 600;
}

/* ============================================================
   Pages — 首页（index.html）
   ============================================================ */

/* ---- Hero 区 ---- */
.hero-section {
  background-color: #ffffff;
  border-bottom: 1px solid #e8e1d5;
}

.hero-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 48px;
}

.hero-content {
  min-width: 0;
}

.hero-content h1 {
  font-size: 2.25rem;
  line-height: 1.25;
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 1.0625rem;
  color: #555555;
  margin-bottom: 28px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-figure {
  min-width: 0;
}

.hero-figure img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(44, 62, 80, 0.15);
}

/* ---- 题材分类导航 ---- */
.category-nav-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 24px;
}

.category-nav-section h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.category-tags li a {
  display: inline-block;
  padding: 8px 20px;
  background-color: #ffffff;
  border: 1px solid #d8cfc0;
  border-radius: 6px;
  font-size: 0.9375rem;
  color: #2c3e50;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.category-tags li a:hover {
  background-color: #b8860b;
  border-color: #b8860b;
  color: #ffffff;
  text-decoration: none;
}

.category-tip {
  font-size: 0.875rem;
  color: #777777;
}

.category-tip a {
  font-weight: 600;
}

/* ---- 最近更新 ---- */
.recent-updates {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
}

.recent-updates h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.update-group {
  margin-bottom: 28px;
}

.update-date {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #b8860b;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.update-date::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: #e0d8cc;
}

.update-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.update-item {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e8e1d5;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.update-item:hover {
  box-shadow: 0 4px 12px rgba(44, 62, 80, 0.1);
  transform: translateY(-2px);
}

.update-item a {
  display: block;
  text-decoration: none;
}

.update-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.update-item a span {
  display: block;
  padding: 0 14px;
}

.update-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #2c3e50;
  padding-top: 12px;
  padding-bottom: 4px;
}

.update-status {
  font-size: 0.8125rem;
  color: #b8860b;
  padding-bottom: 14px;
}

/* ---- 人气榜单 ---- */
.rankings-preview {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
}

.rankings-preview h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.ranking-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.ranking-item {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 16px;
  border: 1px solid #e8e1d5;
  position: relative;
  transition: box-shadow 0.2s ease;
}

.ranking-item:hover {
  box-shadow: 0 4px 12px rgba(44, 62, 80, 0.1);
}

.rank-number {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 28px;
  height: 28px;
  background-color: #b8860b;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  z-index: 1;
}

.ranking-item a {
  display: block;
  text-decoration: none;
}

.ranking-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}

.rank-title {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 4px;
}

.rank-reason {
  display: block;
  font-size: 0.8125rem;
  color: #777777;
  line-height: 1.5;
}

/* ---- 指南入口 ---- */
.guide-entry {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
}

.guide-entry h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.guide-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.guide-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 28px;
  border: 1px solid #e8e1d5;
  border-left: 4px solid #b8860b;
}

.guide-card h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.guide-card p {
  font-size: 0.9375rem;
  color: #666666;
  margin-bottom: 16px;
}

/* ---- 版权与反馈说明 ---- */
.copyright-note {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 16px;
}

.copyright-note h2 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.copyright-note p {
  font-size: 0.875rem;
  color: #777777;
  max-width: 760px;
}

/* ============================================================
   Pages — 分类页（category.html）
   ============================================================ */

/* ---- 分类标签 ---- */
.category-tags .tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.category-tags .tag-list .tag-link {
  display: inline-block;
  padding: 8px 20px;
  background-color: #ffffff;
  border: 1px solid #d8cfc0;
  border-radius: 6px;
  font-size: 0.9375rem;
  color: #2c3e50;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.category-tags .tag-list .tag-link:hover {
  background-color: #b8860b;
  border-color: #b8860b;
  color: #ffffff;
  text-decoration: none;
}

/* ---- 漫画网格 ---- */
.comic-grid-section {
  margin-bottom: 40px;
}

.section-note {
  font-size: 0.9375rem;
  color: #777777;
  margin-bottom: 24px;
}

.genre-block {
  margin-bottom: 36px;
}

.genre-block h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 4px solid #b8860b;
}

.comic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.comic-card {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e8e1d5;
  transition: box-shadow 0.2s ease;
}

.comic-card:hover {
  box-shadow: 0 4px 12px rgba(44, 62, 80, 0.1);
}

.comic-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.comic-card figcaption {
  padding: 14px 16px;
}

.comic-card figcaption h4 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 4px;
}

.comic-meta {
  font-size: 0.8125rem;
  color: #888888;
}

/* ---- 指南推广 ---- */
.guide-promo {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 24px;
  border: 1px solid #e8e1d5;
}

.guide-promo h2 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.guide-promo p {
  font-size: 0.9375rem;
  color: #666666;
  margin-bottom: 12px;
}

.guide-promo a {
  margin-right: 16px;
  font-weight: 600;
}

/* ============================================================
   Pages — 阅读指南页（guide.html）
   ============================================================ */

.guide-section {
  margin-bottom: 40px;
  scroll-margin-top: 80px;
}

.guide-section > p {
  font-size: 0.9375rem;
  color: #666666;
}

/* ---- 方法列表 ---- */
.method-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0;
}

.method-item {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #e8e1d5;
}

.method-item h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: #2c3e50;
}

.method-item p {
  font-size: 0.875rem;
  color: #666666;
  margin-bottom: 0;
}

.guide-figure {
  margin: 24px 0;
}

.guide-figure img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
}

.guide-figure figcaption {
  font-size: 0.8125rem;
  color: #888888;
  text-align: center;
  padding: 8px 0;
}

/* ---- 步骤列表 ---- */
.step-list {
  margin: 20px 0;
}

.step-list li {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 12px;
  border: 1px solid #e8e1d5;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-list li h3 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: #2c3e50;
  flex-shrink: 0;
  min-width: 120px;
}

.step-list li p {
  font-size: 0.875rem;
  color: #666666;
  margin-bottom: 0;
  flex: 1;
}

/* ---- FAQ ---- */
.faq-list {
  margin-top: 20px;
}

.faq-item {
  background-color: #ffffff;
  border-radius: 8px;
  margin-bottom: 12px;
  border: 1px solid #e8e1d5;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #2c3e50;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: #b8860b;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  background-color: #faf6f0;
}

.faq-item p {
  padding: 0 20px 16px;
  font-size: 0.875rem;
  color: #555555;
  margin-bottom: 0;
}

/* ============================================================
   Pages — 剧情解析页（longtail1.html）
   ============================================================ */

.chapter-summary {
  margin-bottom: 40px;
}

.chapter-summary > p {
  font-size: 0.9375rem;
  color: #666666;
  margin-bottom: 20px;
}

.chapter-item {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 12px;
  border: 1px solid #e8e1d5;
  border-left: 4px solid #b8860b;
}

.chapter-item h3 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: #2c3e50;
}

.chapter-item p {
  font-size: 0.875rem;
  color: #666666;
  margin-bottom: 0;
}

/* ---- 分析区块 ---- */
.analysis {
  margin-bottom: 40px;
}

.analysis > p {
  font-size: 0.9375rem;
  color: #666666;
  margin-bottom: 20px;
}

.analysis-block {
  margin-bottom: 24px;
}

.analysis-block h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
  color: #2c3e50;
}

.analysis-block p {
  font-size: 0.9375rem;
  color: #555555;
  line-height: 1.75;
}

.analysis-media {
  margin: 24px 0;
}

.analysis-media img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 8px;
}

.analysis-media figcaption {
  font-size: 0.8125rem;
  color: #888888;
  text-align: center;
  padding: 8px 0;
}

/* ---- 相关阅读 ---- */
.related-reading {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 24px;
  border: 1px solid #e8e1d5;
  margin-bottom: 40px;
}

.related-reading h2 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.related-reading > p {
  font-size: 0.875rem;
  color: #666666;
  margin-bottom: 16px;
}

.related-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
}

.related-links li a {
  font-size: 0.875rem;
  display: inline-block;
  padding: 4px 0;
}

/* ============================================================
   Pages — 角色介绍页（longtail2.html）
   ============================================================ */

.character-archive {
  margin-bottom: 40px;
}

.section-intro {
  font-size: 0.9375rem;
  color: #666666;
  margin-bottom: 24px;
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.character-card {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e8e1d5;
  transition: box-shadow 0.2s ease;
}

.character-card:hover {
  box-shadow: 0 4px 12px rgba(44, 62, 80, 0.1);
}

.character-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.character-card h3 {
  font-size: 1rem;
  padding: 12px 16px 4px;
  color: #2c3e50;
}

.character-card p {
  font-size: 0.8125rem;
  color: #666666;
  padding: 0 16px 16px;
  margin-bottom: 0;
  line-height: 1.6;
}

/* ---- 人物关系 ---- */
.relationship-section {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 24px;
  border: 1px solid #e8e1d5;
  margin-bottom: 40px;
}

.relationship-section h2 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.relationship-section > p {
  font-size: 0.875rem;
  color: #666666;
  margin-bottom: 16px;
}

.relationship-list {
  margin: 16px 0;
}

.relationship-list li {
  padding: 10px 0;
  border-bottom: 1px solid #f0e9dd;
  font-size: 0.875rem;
  color: #555555;
  display: flex;
  gap: 8px;
}

.relationship-list li:last-child {
  border-bottom: none;
}

.relationship-list li strong {
  color: #2c3e50;
  flex-shrink: 0;
  min-width: 80px;
}

/* ---- 角色页相关阅读 ---- */
.character-archive + .related-links,
.relationship-section + .related-links {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px 24px;
  border: 1px solid #e8e1d5;
  margin-bottom: 40px;
}

.character-archive + .related-links li,
.relationship-section + .related-links li {
  padding: 6px 0;
}

.character-archive + .related-links li a,
.relationship-section + .related-links li a {
  font-size: 0.875rem;
}

.related-links h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: #2c3e50;
}

/* ============================================================
   Pages — 404 页（404.html）
   ============================================================ */

.error-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

.error-section {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 48px 32px;
  border: 1px solid #e8e1d5;
}

.error-code {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4rem;
  font-weight: 700;
  color: #b8860b;
  line-height: 1;
  margin-bottom: 16px;
}

.error-title {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 0.9375rem;
  color: #666666;
  margin-bottom: 24px;
}

.error-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-back-home {
  display: inline-block;
  padding: 12px 28px;
  background-color: #b8860b;
  color: #ffffff;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.btn-back-home:hover {
  background-color: #8b6508;
  color: #ffffff;
  text-decoration: none;
}

.btn-browse-category {
  display: inline-block;
  padding: 12px 28px;
  background-color: transparent;
  border: 2px solid #b8860b;
  color: #b8860b;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-browse-category:hover {
  background-color: #b8860b;
  color: #ffffff;
  text-decoration: none;
}

/* ============================================================
   Responsive — 响应式断点
   ============================================================ */

/* ---- 平板断点：1024px ---- */
@media (max-width: 1024px) {
  .page-layout,
  .layout-shell {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 24px;
  }

  .hero-section {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 40px 24px;
  }

  .ranking-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .update-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .character-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- 手机断点：768px ---- */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    min-height: 56px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #ffffff;
    border-top: 1px solid #e8e1d5;
    padding: 8px 0 12px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list li a {
    padding: 12px 16px;
    border-radius: 0;
  }

  .nav-list li a.is-current {
    background-color: #f5f0e8;
    color: #b8860b;
  }

  /* 布局改为单列 */
  .page-layout,
  .layout-shell {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 24px;
  }

  /* 侧栏移到主内容之后 */
  .sidebar,
  .sidebar-area {
    order: 2;
  }

  /* Hero 单列 */
  .hero-section {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 24px;
  }

  .hero-content h1 {
    font-size: 1.75rem;
  }

  .hero-figure img {
    height: 220px;
  }

  /* 更新列表单列 */
  .update-list {
    grid-template-columns: 1fr;
  }

  .update-item {
    display: flex;
    align-items: center;
  }

  .update-item img {
    width: 120px;
    height: 80px;
    flex-shrink: 0;
  }

  .update-item a {
    display: flex;
    align-items: center;
    width: 100%;
  }

  .update-item a span {
    flex: 1;
  }

  /* 榜单两列 */
  .ranking-list {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 指南卡片单列 */
  .guide-cards {
    grid-template-columns: 1fr;
  }

  /* 分类漫画单列 */
  .comic-grid {
    grid-template-columns: 1fr;
  }

  .comic-card {
    display: flex;
    align-items: center;
  }

  .comic-card img {
    width: 120px;
    height: 90px;
    flex-shrink: 0;
  }

  .comic-card figcaption {
    flex: 1;
  }

  /* 方法列表单列 */
  .method-list {
    grid-template-columns: 1fr;
  }

  /* 步骤列表纵向排列 */
  .step-list li {
    flex-direction: column;
    gap: 4px;
  }

  .step-list li h3 {
    min-width: 0;
  }

  /* 角色卡片两列 */
  .character-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 相关链接单列 */
  .related-links {
    grid-template-columns: 1fr;
  }

  /* 页脚 */
  .footer-inner {
    flex-direction: column;
    gap: 24px;
  }

  .footer-links {
    justify-content: flex-start;
    gap: 24px;
  }

  .footer-group {
    min-width: 0;
    flex: 1 1 140px;
  }

  /* 404 */
  .error-main {
    padding: 48px 24px;
  }

  .error-section {
    padding: 32px 20px;
  }
}

/* ---- 小屏手机：390px ---- */
@media (max-width: 480px) {
  .header-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand-name {
    font-size: 1.15rem;
  }

  .brand-slogan {
    font-size: 0.6875rem;
  }

  .hero-section,
  .category-nav-section,
  .recent-updates,
  .rankings-preview,
  .guide-entry,
  .copyright-note {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    text-align: center;
  }

  .ranking-list {
    grid-template-columns: 1fr;
  }

  .character-grid {
    grid-template-columns: 1fr;
  }

  .character-card {
    display: flex;
    align-items: center;
  }

  .character-card img {
    width: 100px;
    height: 80px;
    flex-shrink: 0;
  }

  .character-card h3 {
    padding: 8px 12px 2px;
  }

  .character-card p {
    padding: 0 12px 8px;
  }

  .error-code {
    font-size: 3rem;
  }
}
