/* ==========================================================================
   漫蛙漫画 · 全站样式表
   视觉方向：漫画杂志风 — 黑白线条骨架 + 亮橙点缀 + 米白分层
   ========================================================================== */

/* ==========================================================================
   Base — 基础变量与全局重置
   ========================================================================== */

:root {
  --color-ink: #141414;
  --color-paper: #F6F3EF;
  --color-accent: #FF5A36;
  --color-white: #FFFFFF;
  --color-line: #E5E1DA;
  --color-gray: #6B6B6B;
  --color-gray-light: #8A8A8A;
  --font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --container-width: 1200px;
  --radius-card: 8px;
  --radius-tag: 4px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-paper);
  color: var(--color-ink);
  line-height: 1.7;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-accent);
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  line-height: 1.3;
  font-weight: 700;
}

/* ==========================================================================
   Layout — 骨架布局：页头 / 页脚 / 主容器 / 面包屑
   ========================================================================== */

.site-header {
  background-color: var(--color-white);
  border-bottom: 2px solid var(--color-ink);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-shell {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-text {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-ink);
  letter-spacing: 0;
}

.brand-text::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 24px;
  background-color: var(--color-accent);
  margin-right: 8px;
  vertical-align: -3px;
}

.site-nav .nav-list {
  display: flex;
  gap: 4px;
  align-items: center;
}

.site-nav .nav-list a {
  display: block;
  padding: 6px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-ink);
  border: 2px solid transparent;
  border-radius: var(--radius-tag);
  line-height: 1.4;
}

.site-nav .nav-list a:hover {
  border-color: var(--color-ink);
  color: var(--color-accent);
}

.site-nav .nav-list a.is-current {
  background-color: var(--color-ink);
  color: var(--color-white);
  border-color: var(--color-ink);
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--color-ink);
  border-radius: var(--radius-tag);
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--color-ink);
}

.site-main {
  min-height: 60vh;
}

.home-main {
  background-color: var(--color-paper);
}

.inner-main {
  background-color: var(--color-white);
}

/* 面包屑 */
.breadcrumb {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 20px 24px 0;
  font-size: 14px;
  color: var(--color-gray);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.breadcrumb a {
  color: var(--color-gray);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb-sep {
  color: var(--color-gray-light);
  margin: 0 2px;
}

.breadcrumb-current {
  color: var(--color-ink);
  font-weight: 600;
}

/* 页头标题区 */
.page-header {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 32px 24px 28px;
}

.page-title {
  font-size: 34px;
  font-weight: 800;
  color: var(--color-ink);
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.page-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 6px;
  background-color: var(--color-accent);
}

.page-description {
  font-size: 16px;
  color: var(--color-gray);
  max-width: 720px;
  line-height: 1.8;
}

/* 页脚 */
.site-footer {
  background-color: var(--color-white);
  border-top: 2px solid var(--color-line);
  margin-top: 0;
}

.footer-shell {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.footer-brand-name {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.footer-brand-name::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 18px;
  background-color: var(--color-accent);
  margin-right: 6px;
  vertical-align: -2px;
}

.footer-tagline {
  font-size: 15px;
  color: var(--color-gray);
  line-height: 1.8;
  max-width: 320px;
}

.footer-column h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-ink);
  position: relative;
  padding-bottom: 8px;
}

.footer-column h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24px;
  height: 3px;
  background-color: var(--color-accent);
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul a {
  font-size: 15px;
  color: var(--color-gray);
}

.footer-column ul a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid var(--color-line);
  padding: 16px 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 14px;
  color: var(--color-gray-light);
}

/* ==========================================================================
   Components — 通用组件：按钮 / 卡片 / 表格 / 标签
   ========================================================================== */

/* 通用按钮 */
.btn-back-home,
.hero-cta,
.guide-link,
.guide-banner-link,
.aside-archive-link,
.topic-link,
.archive-entry-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 700;
  background-color: var(--color-accent);
  color: var(--color-white);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-tag);
  line-height: 1.4;
  min-height: 44px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-back-home:hover,
.hero-cta:hover,
.guide-link:hover,
.guide-banner-link:hover,
.aside-archive-link:hover,
.topic-link:hover,
.archive-entry-link:hover {
  background-color: var(--color-white);
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* 通用对比表 */
.table-wrapper,
.table-scroll,
.table-wrap,
.schedule-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 12px;
}

.compare-table,
.schedule-table,
.genre-table,
.column-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 560px;
}

.compare-table th,
.compare-table td,
.schedule-table th,
.schedule-table td,
.genre-table th,
.genre-table td,
.column-compare-table th,
.column-compare-table td {
  border: 1px solid var(--color-line);
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
}

.compare-table thead th,
.schedule-table thead th,
.genre-table thead th,
.column-compare-table thead th {
  background-color: var(--color-ink);
  color: var(--color-white);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

.compare-table tbody th,
.genre-table tbody th,
.column-compare-table tbody th {
  background-color: var(--color-paper);
  font-weight: 700;
  white-space: nowrap;
  width: 120px;
}

.compare-table tbody tr:hover,
.schedule-table tbody tr:hover,
.genre-table tbody tr:hover,
.column-compare-table tbody tr:hover {
  background-color: #FDF6F0;
}

/* 通用 section 描述 */
.section-desc,
.section-intro {
  font-size: 15px;
  color: var(--color-gray);
  margin-bottom: 24px;
  max-width: 680px;
}

/* ==========================================================================
   Components — 首页模块
   ========================================================================== */

/* Hero 横幅 */
.hero-banner {
  background-color: var(--color-ink);
  color: var(--color-white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}

.hero-media {
  position: relative;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 40px;
  max-width: 560px;
}

.hero-title {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--color-white);
}

.hero-slogan {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.hero-intro {
  font-size: 16px;
  color: #C9C9C9;
  margin-bottom: 28px;
  line-height: 1.8;
}

.hero-cta {
  align-self: flex-start;
}

/* 首页通用 section 容器 */
.home-section {
  padding: 56px 0;
}

.section-shell {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-shell > h2 {
  font-size: 26px;
  font-weight: 800;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
  margin-bottom: 8px;
}

.section-shell > h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 5px;
  background-color: var(--color-accent);
}

.section-shell > .section-desc {
  margin-top: 12px;
}

/* 三栏并列：热门话题 / 作品分享 / 社区公告 */
.hot-topics-share-announce {
  background-color: var(--color-white);
}

.tri-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.column-card {
  border: 2px solid var(--color-ink);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  background-color: var(--color-white);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.column-card:hover {
  transform: translateY(-4px);
  box-shadow: 6px 6px 0 rgba(20, 20, 20, 0.1);
}

.column-card h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
  position: relative;
  padding-bottom: 8px;
}

.column-card h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 4px;
  background-color: var(--color-accent);
}

.column-card > p {
  font-size: 14px;
  color: var(--color-gray);
  margin-bottom: 16px;
}

.mini-list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--color-line);
  font-size: 15px;
  line-height: 1.6;
}

.mini-list li:last-child {
  border-bottom: none;
}

.mini-list li::before {
  content: "▸";
  color: var(--color-accent);
  margin-right: 8px;
  font-weight: 700;
}

/* 最近更新封面墙 */
.latest-updates {
  background-color: var(--color-paper);
}

.cover-wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.cover-card {
  background-color: var(--color-white);
  border: 2px solid var(--color-line);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.cover-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-ink);
}

.cover-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.cover-card figcaption {
  padding: 12px;
}

.cover-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.4;
}

.genre-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--color-accent);
  background-color: #FFF1EC;
  padding: 2px 8px;
  border-radius: var(--radius-tag);
  font-weight: 600;
}

/* 题材分类标签 */
.category-tags {
  background-color: var(--color-white);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.tag-item {
  display: inline-block;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  background-color: var(--color-paper);
  border: 2px solid var(--color-line);
  border-radius: var(--radius-tag);
  color: var(--color-ink);
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.tag-item:hover {
  border-color: var(--color-accent);
  background-color: var(--color-accent);
  color: var(--color-white);
}

/* 栏目导航卡片 */
.column-nav {
  background-color: var(--color-paper);
}

.column-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.nav-card {
  background-color: var(--color-white);
  border: 2px solid var(--color-line);
  border-radius: var(--radius-card);
  padding: 24px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.nav-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-ink);
}

.nav-card h3 {
  font-size: 17px;
  font-weight: 800;
}

.nav-card p {
  font-size: 14px;
  color: var(--color-gray);
  line-height: 1.6;
  flex-grow: 1;
}

.card-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 2px;
  align-self: center;
}

/* 排行榜 */
.ranking {
  background-color: var(--color-white);
}

.ranking-list {
  margin-top: 32px;
  counter-reset: rank;
}

.ranking-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-line);
}

.ranking-item:last-child {
  border-bottom: none;
}

.rank-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-accent);
  font-style: italic;
  line-height: 1;
  min-width: 48px;
  text-align: center;
}

.rank-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.rank-content p {
  font-size: 15px;
  color: var(--color-gray);
  max-width: 720px;
}

/* 阅读指南横幅（首页） */
.guide-banner {
  background-color: var(--color-ink);
  color: var(--color-white);
}

.guide-banner-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 48px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.guide-text h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--color-white);
}

.guide-text p {
  font-size: 15px;
  color: #C9C9C9;
  max-width: 560px;
}

/* ==========================================================================
   Components — 内页模块
   ========================================================================== */

/* 内页主布局容器 */
.page-layout {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

/* 资讯列表页 */
.news-list .section-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

.news-list .section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 4px;
  background-color: var(--color-accent);
}

.news-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-line);
}

.news-item:last-child {
  border-bottom: none;
}

.news-media img {
  width: 220px;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-line);
}

.news-date {
  display: block;
  font-size: 13px;
  color: var(--color-gray-light);
  margin-bottom: 6px;
}

.news-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.news-title a:hover {
  color: var(--color-accent);
}

.news-summary {
  font-size: 15px;
  color: var(--color-gray);
  line-height: 1.7;
}

/* 资讯右侧栏 */
.news-aside {
  background-color: var(--color-paper);
  border: 2px solid var(--color-line);
  border-radius: var(--radius-card);
  padding: 24px;
}

.aside-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}

.aside-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24px;
  height: 4px;
  background-color: var(--color-accent);
}

.hot-news-list li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--color-line);
}

.hot-news-list li:last-child {
  border-bottom: none;
}

.hot-news-list a {
  font-size: 15px;
  line-height: 1.6;
  display: block;
}

.hot-news-list a:hover {
  color: var(--color-accent);
}

.aside-archive {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 2px solid var(--color-line);
}

.aside-archive-text {
  font-size: 14px;
  color: var(--color-gray);
  margin-bottom: 14px;
  line-height: 1.6;
}

/* 内页底部阅读指南横幅 */
.guide-banner-content {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.guide-banner-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 6px;
}

.guide-banner-text {
  font-size: 15px;
  color: #C9C9C9;
}

/* 作品专题页 */
.featured-topic {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px 40px;
}

.featured-topic > h2,
.topic-list-section > h2,
.topic-table-section > h2,
.related-sections > h2,
.role-comparison > h2,
.recent-character > h2,
.editor-pick > h2,
.topic-link > h2,
.event-schedule > h2,
.event-type > h2,
.event-notice > h2,
.archive-section > h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

.featured-topic > h2::after,
.topic-list-section > h2::after,
.topic-table-section > h2::after,
.related-sections > h2::after,
.role-comparison > h2::after,
.recent-character > h2::after,
.editor-pick > h2::after,
.topic-link > h2::after,
.event-schedule > h2::after,
.event-type > h2::after,
.event-notice > h2::after,
.archive-section > h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 4px;
  background-color: var(--color-accent);
}

.featured-topic-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  background-color: var(--color-paper);
  border: 2px solid var(--color-ink);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.featured-topic-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.featured-topic-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.topic-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent);
  background-color: #FFF1EC;
  padding: 4px 12px;
  border-radius: var(--radius-tag);
  align-self: flex-start;
}

.featured-topic-body h3 {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
}

.featured-topic-body p {
  font-size: 15px;
  color: var(--color-gray);
  line-height: 1.8;
}

.topic-link {
  align-self: flex-start;
  padding: 8px 18px;
  font-size: 14px;
}

/* 专题列表 */
.topic-list-section {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px 48px;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.topic-card {
  background-color: var(--color-white);
  border: 2px solid var(--color-line);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.topic-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-ink);
}

.topic-card-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.topic-card-body {
  padding: 20px;
}

.topic-card-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.topic-card-body p {
  font-size: 14px;
  color: var(--color-gray);
  line-height: 1.7;
  margin-bottom: 12px;
}

.topic-card-body .topic-link {
  padding: 6px 14px;
  font-size: 13px;
  min-height: 36px;
}

/* 专题对比表 */
.topic-table-section {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px 48px;
}

.table-note {
  font-size: 14px;
  color: var(--color-gray-light);
  margin-top: 8px;
}

/* 相关专题推荐 */
.related-sections {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px 48px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.related-card {
  display: block;
  background-color: var(--color-paper);
  border: 2px solid var(--color-line);
  border-radius: var(--radius-card);
  padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.related-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
}

.related-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.related-card h3::before {
  content: "→ ";
  color: var(--color-accent);
}

.related-card p {
  font-size: 14px;
  color: var(--color-gray);
  line-height: 1.6;
}

/* 相关链接行（内页底部） */
.related-links {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px 48px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 2px solid var(--color-line);
  padding-top: 24px;
}

.related-links-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-ink);
}

.related-links-item {
  font-size: 14px;
  color: var(--color-gray);
  padding: 6px 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-tag);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.related-links-item:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* 角色观察页 */
.role-comparison {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px 48px;
}

.role-comparison .section-desc {
  margin-bottom: 20px;
}

/* 角色卡片 */
.recent-character {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px 48px;
}

.character-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.character-card {
  background-color: var(--color-white);
  border: 2px solid var(--color-line);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.character-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-ink);
}

.character-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.character-info {
  padding: 20px;
}

.character-info h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.character-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-accent);
  background-color: #FFF1EC;
  padding: 2px 10px;
  border-radius: var(--radius-tag);
  margin-bottom: 10px;
}

.character-info p {
  font-size: 14px;
  color: var(--color-gray);
  line-height: 1.7;
}

.character-info a {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
}

/* 编辑推荐 */
.editor-pick {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px 48px;
}

.editor-pick-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.pick-item {
  display: flex;
  gap: 20px;
  background-color: var(--color-paper);
  border: 2px solid var(--color-line);
  border-radius: var(--radius-card);
  padding: 24px;
}

.pick-index {
  font-size: 36px;
  font-weight: 800;
  color: var(--color-accent);
  font-style: italic;
  line-height: 1;
  min-width: 40px;
  text-align: center;
}

.pick-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pick-reason {
  font-size: 14px;
  color: var(--color-gray);
  line-height: 1.7;
}

/* 角色页关联专题 */
.topic-link {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px 48px;
}

.topic-link p {
  font-size: 15px;
  color: var(--color-gray);
  line-height: 1.8;
}

.topic-link p a {
  color: var(--color-accent);
  font-weight: 700;
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 2px;
}

/* 活动信息页 */
.event-schedule,
.event-type,
.event-notice {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px 40px;
}

.schedule-table-wrap {
  margin-top: 8px;
}

.schedule-table {
  min-width: 640px;
}

.schedule-table td {
  font-size: 14px;
}

/* 活动类型卡片 */
.type-card-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.type-card {
  background-color: var(--color-white);
  border: 2px solid var(--color-line);
  border-radius: var(--radius-card);
  padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.type-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
}

.type-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
  padding-bottom: 8px;
}

.type-card h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24px;
  height: 3px;
  background-color: var(--color-accent);
}

.type-card p {
  font-size: 14px;
  color: var(--color-gray);
  line-height: 1.7;
}

/* 参与注意事项 */
.notice-list {
  background-color: var(--color-paper);
  border: 2px solid var(--color-line);
  border-radius: var(--radius-card);
  padding: 24px 28px;
}

.notice-list li {
  padding: 8px 0;
  font-size: 15px;
  line-height: 1.7;
  position: relative;
  padding-left: 24px;
}

.notice-list li::before {
  content: "!";
  position: absolute;
  left: 0;
  top: 10px;
  width: 18px;
  height: 18px;
  background-color: var(--color-accent);
  color: var(--color-white);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  line-height: 18px;
}

.notice-more {
  margin-top: 16px;
  font-size: 14px;
  color: var(--color-gray);
}

.notice-more a {
  color: var(--color-accent);
  font-weight: 600;
}

/* 归档链接横幅 */
.archive-link {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px 40px;
}

.archive-banner-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.archive-link p {
  font-size: 15px;
  color: var(--color-gray);
  margin-bottom: 16px;
}

/* 活动页相关阅读 */
.event-visual {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px 48px;
}

.event-visual img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: var(--radius-card);
  border: 2px solid var(--color-line);
}

.event-visual figcaption {
  font-size: 14px;
  color: var(--color-gray-light);
  margin-top: 8px;
  text-align: center;
}

/* 内容归档页 */
.archive-section {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px 48px;
}

.content-media-inline {
  margin-bottom: 20px;
}

.content-media-inline img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius-card);
  border: 2px solid var(--color-line);
}

.content-media-inline figcaption {
  font-size: 14px;
  color: var(--color-gray-light);
  margin-top: 8px;
}

/* 年份归档 */
.year-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.year-card {
  background-color: var(--color-paper);
  border: 2px solid var(--color-line);
  border-radius: var(--radius-card);
  padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.year-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-ink);
}

.year-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--color-accent);
}

.year-card p {
  font-size: 14px;
  color: var(--color-gray);
  line-height: 1.7;
  margin-bottom: 12px;
}

.year-card a {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-ink);
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 2px;
}

/* 推荐阅读路径 */
.path-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.path-item {
  display: flex;
  gap: 16px;
  background-color: var(--color-white);
  border: 2px solid var(--color-line);
  border-radius: var(--radius-card);
  padding: 24px;
  transition: border-color 0.2s ease;
}

.path-item:hover {
  border-color: var(--color-accent);
}

.path-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-accent);
  font-style: italic;
  line-height: 1;
  min-width: 32px;
}

.path-content h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.path-content p {
  font-size: 14px;
  color: var(--color-gray);
  line-height: 1.7;
  margin-bottom: 8px;
}

.path-content a {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-accent);
  padding-bottom: 1px;
}

/* 标签列表 */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-list li a {
  display: inline-block;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  background-color: var(--color-paper);
  border: 2px solid var(--color-line);
  border-radius: var(--radius-tag);
  color: var(--color-ink);
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.tag-list li a:hover {
  border-color: var(--color-accent);
  background-color: var(--color-accent);
  color: var(--color-white);
}

/* 阅读指南页 */
.guide-section {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px 48px;
}

.guide-section > h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

.guide-section > h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 4px;
  background-color: var(--color-accent);
}

.column-compare-table {
  min-width: 640px;
}

/* 浏览步骤 */
.reading-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.reading-step {
  display: flex;
  gap: 16px;
  background-color: var(--color-paper);
  border: 2px solid var(--color-line);
  border-radius: var(--radius-card);
  padding: 24px;
  transition: border-color 0.2s ease;
}

.reading-step:hover {
  border-color: var(--color-accent);
}

.step-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-accent);
  font-style: italic;
  line-height: 1;
  min-width: 36px;
  text-align: center;
}

.step-content h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-content p {
  font-size: 14px;
  color: var(--color-gray);
  line-height: 1.7;
}

/* 反馈与版权 */
.feedback-content {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  background-color: var(--color-paper);
  border: 2px solid var(--color-line);
  border-radius: var(--radius-card);
  padding: 32px;
}

.feedback-text h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  margin-top: 20px;
}

.feedback-text h3:first-child {
  margin-top: 0;
}

.feedback-text p {
  font-size: 15px;
  color: var(--color-gray);
  line-height: 1.8;
  margin-bottom: 16px;
}

.guide-figure img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  border-radius: var(--radius-card);
  border: 2px solid var(--color-line);
}

.guide-figure figcaption {
  font-size: 14px;
  color: var(--color-gray-light);
  margin-top: 8px;
  text-align: center;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background-color: var(--color-white);
  border: 2px solid var(--color-line);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 48px;
  transition: background-color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-accent);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-item summary:hover {
  background-color: var(--color-paper);
}

.faq-item p {
  padding: 0 20px 16px;
  font-size: 15px;
  color: var(--color-gray);
  line-height: 1.7;
}

/* ==========================================================================
   Pages — 404 页面
   ========================================================================== */

.error-main {
  background-color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 48px 24px;
}

.error-section {
  text-align: center;
  max-width: 560px;
}

.error-code {
  font-size: 80px;
  font-weight: 800;
  color: var(--color-accent);
  font-style: italic;
  line-height: 1;
  margin-bottom: 12px;
}

.error-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
}

.error-desc {
  font-size: 16px;
  color: var(--color-gray);
  margin-bottom: 28px;
  line-height: 1.8;
}

.btn-back-home {
  margin-bottom: 40px;
}

.error-list {
  text-align: left;
  background-color: var(--color-paper);
  border: 2px solid var(--color-line);
  border-radius: var(--radius-card);
  padding: 24px 28px;
}

.error-subtitle {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.error-list ul li {
  padding: 6px 0;
}

.error-list ul a {
  font-size: 15px;
  color: var(--color-gray);
}

.error-list ul a:hover {
  color: var(--color-accent);
}

/* ==========================================================================
   Responsive — 响应式断点
   ========================================================================== */

/* 平板：≤1024px */
@media (max-width: 1024px) {
  .header-shell {
    padding: 0 16px;
  }

  .site-nav .nav-list a {
    padding: 6px 10px;
    font-size: 14px;
  }

  .cover-wall {
    grid-template-columns: repeat(3, 1fr);
  }

  .column-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .character-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .topic-grid {
    grid-template-columns: 1fr;
  }

  .page-layout {
    grid-template-columns: 1fr 280px;
    gap: 24px;
  }

  .hero-banner {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 240px;
  }

  .hero-media img {
    position: static;
    height: 240px;
  }

  .hero-content {
    padding: 40px 24px;
  }

  .hero-title {
    font-size: 36px;
  }

  .tri-columns {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feedback-content {
    grid-template-columns: 1fr;
  }

  .guide-figure img {
    min-height: 200px;
  }
}

/* 手机：≤768px */
@media (max-width: 768px) {
  .header-shell {
    height: 56px;
  }

  .brand-text {
    font-size: 20px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    border-bottom: 2px solid var(--color-ink);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  }

  .site-nav .nav-list {
    display: none;
    flex-direction: column;
    padding: 12px 16px;
    gap: 0;
  }

  .site-nav .nav-list.is-open {
    display: flex;
  }

  .site-nav .nav-list li {
    width: 100%;
  }

  .site-nav .nav-list a {
    padding: 14px 12px;
    font-size: 16px;
    border-radius: var(--radius-tag);
    border: none;
  }

  .site-nav .nav-list a.is-current {
    background-color: var(--color-paper);
    color: var(--color-accent);
    border: none;
  }

  /* 页面标题区 */
  .page-header {
    padding: 24px 16px 20px;
  }

  .page-title {
    font-size: 28px;
  }

  .breadcrumb {
    padding: 16px 16px 0;
  }

  /* 页脚 */
  .footer-shell {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 16px 24px;
  }

  .footer-bottom {
    padding: 12px 16px;
  }

  /* 首页模块 */
  .home-section {
    padding: 40px 0;
  }

  .section-shell {
    padding: 0 16px;
  }

  .section-shell > h2 {
    font-size: 22px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-slogan {
    font-size: 18px;
  }

  .hero-intro {
    font-size: 15px;
  }

  .cover-wall {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .column-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .nav-card {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 16px;
    padding: 16px;
  }

  .nav-card p {
    flex-grow: 1;
  }

  .card-link {
    align-self: auto;
  }

  .ranking-item {
    gap: 12px;
    padding: 16px 0;
  }

  .rank-num {
    font-size: 26px;
    min-width: 36px;
  }

  .guide-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 16px;
    gap: 16px;
  }

  /* 内页布局 */
  .page-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 16px 40px;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .news-media img {
    width: 100%;
    height: 180px;
  }

  .news-aside {
    order: 2;
  }

  /* 专题页 */
  .featured-topic,
  .topic-list-section,
  .topic-table-section,
  .related-sections,
  .role-comparison,
  .recent-character,
  .editor-pick,
  .topic-link,
  .event-schedule,
  .event-type,
  .event-notice,
  .archive-link,
  .archive-section,
  .guide-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .featured-topic-card {
    grid-template-columns: 1fr;
  }

  .featured-topic-media img {
    min-height: 200px;
    aspect-ratio: 16 / 9;
  }

  .featured-topic-body {
    padding: 24px;
  }

  .featured-topic-body h3 {
    font-size: 22px;
  }

  .topic-grid {
    gap: 16px;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* 角色页 */
  .character-card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .editor-pick-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pick-item {
    padding: 20px;
  }

  /* 活动页 */
  .type-card-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .notice-list {
    padding: 20px;
  }

  /* 归档页 */
  .year-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .path-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* 阅读指南 */
  .reading-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feedback-content {
    padding: 24px;
  }

  /* 404 */
  .error-code {
    font-size: 60px;
  }

  .error-title {
    font-size: 26px;
  }
}

/* 小手机：≤480px */
@media (max-width: 480px) {
  .cover-wall {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .cover-card h3 {
    font-size: 14px;
  }

  .page-title {
    font-size: 26px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-content {
    padding: 32px 16px;
  }

  .hero-cta {
    width: 100%;
  }

  .btn-back-home,
  .hero-cta,
  .guide-link,
  .guide-banner-link,
  .aside-archive-link,
  .archive-entry-link {
    width: 100%;
  }

  .tri-columns {
    gap: 12px;
  }

  .column-card {
    padding: 20px 16px;
  }

  .rank-content h3 {
    font-size: 16px;
  }

  .guide-banner-inner {
    padding: 28px 16px;
  }

  .guide-text h2 {
    font-size: 22px;
  }

  .compare-table,
  .schedule-table,
  .genre-table,
  .column-compare-table {
    font-size: 14px;
    min-width: 480px;
  }

  .compare-table th,
  .compare-table td,
  .schedule-table th,
  .schedule-table td,
  .genre-table th,
  .genre-table td,
  .column-compare-table th,
  .column-compare-table td {
    padding: 10px 12px;
  }

  .news-title {
    font-size: 18px;
  }

  .featured-topic-body {
    padding: 20px 16px;
  }

  .featured-topic-body h3 {
    font-size: 20px;
  }

  .topic-card-body {
    padding: 16px;
  }

  .pick-index {
    font-size: 30px;
    min-width: 32px;
  }

  .path-item {
    padding: 20px 16px;
  }

  .step-number {
    font-size: 28px;
    min-width: 30px;
  }

  .footer-shell {
    padding: 28px 16px 20px;
  }
}
