/* ==========================================================================
   base — 基础变量、重置、字体、通用元素
   ========================================================================== */

:root {
  --bg: #f7f9fc;
  --bg-soft: #eef2f7;
  --text: #1f2937;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --primary: #0f766e;
  --primary-dark: #115e59;
  --primary-light: #ccfbf1;
  --link: #2563eb;
  --link-hover: #1d4ed8;
  --border: #d1d5db;
  --border-light: #e5e7eb;
  --warning: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --white: #ffffff;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-sm: 0 1px 2px rgba(31, 41, 55, 0.06);
  --shadow-md: 0 4px 12px rgba(31, 41, 55, 0.08);
  --shadow-lg: 0 8px 24px rgba(31, 41, 55, 0.1);
  --font-sans: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", Menlo, Consolas, "Courier New", monospace;
  --container: 1200px;
  --content-max: 860px;
  --header-h: 64px;
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background-color: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--link-hover);
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-mono);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 18px;
}

p {
  margin-bottom: 1em;
}

strong {
  font-weight: 600;
  color: var(--text);
}

figure {
  margin: 0;
}

figcaption {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.6;
}

/* 通用容器 */
.site-header,
.site-footer,
.site-main,
.inner-main,
.footer-inner,
.header-inner {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ==========================================================================
   layout — 全局布局骨架
   ========================================================================== */

/* 页头 */
.site-header {
  background-color: var(--white);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.brand:hover {
  color: var(--primary);
}

.brand-logo {
  display: inline-block;
  width: 28px;
  height: 28px;
  margin-right: 10px;
  background-color: var(--primary);
  border-radius: var(--radius-sm);
  position: relative;
  flex-shrink: 0;
}

.brand-logo::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 2px solid var(--white);
  border-radius: 2px;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-list li a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 15px;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.nav-list li a:hover {
  color: var(--primary);
  background-color: var(--bg-soft);
}

.nav-list li a.is-current {
  color: var(--primary);
  background-color: var(--primary-light);
  font-weight: 600;
}

.header-post-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  background-color: var(--primary);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  transition: background-color var(--transition);
}

.header-post-btn:hover {
  background-color: var(--primary-dark);
  color: var(--white);
}

/* 移动端导航按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-left: auto;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

/* 页脚 */
.site-footer {
  margin-top: auto;
  background-color: var(--white);
  border-top: 1px solid var(--border-light);
  padding-top: 48px;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 40px;
}

.footer-col h2 {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 16px;
  font-family: var(--font-mono);
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links li a {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-links li a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding: 20px 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-light);
  margin: 0;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

/* 主内容区 */
.site-main {
  flex: 1;
  padding-top: 40px;
  padding-bottom: 64px;
}

.home-main {
  padding-top: 0;
}

/* 内页布局 */
.inner-main {
  padding-top: 32px;
  padding-bottom: 64px;
}

/* 面包屑 */
.breadcrumb {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb-sep {
  color: var(--text-light);
}

.breadcrumb-current {
  color: var(--text);
  font-weight: 500;
}

/* 页面标题区 */
.page-header {
  margin-bottom: 32px;
}

.page-title {
  font-size: 28px;
  margin-bottom: 8px;
}

.page-description {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 720px;
}

/* 侧栏布局 */
.sidebar-left {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}

.sidebar-left .inner-main {
  padding-top: 0;
}

/* 内页侧栏（通用） */
.sidebar,
.page-aside,
.sidebar-left-inner,
.sidebar-left-index,
.page-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.sidebar-inner,
.aside-inner,
.sidebar-left-inner,
.sidebar-left-index,
.page-sidebar {
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px;
}

.sidebar-title,
.side-index-title,
.aside-title {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}

.sidebar-list li,
.side-index-list li,
.aside-list li,
.alpha-list li,
.genre-list li {
  margin-bottom: 4px;
}

.sidebar-list li a,
.side-index-list li a,
.aside-list li a,
.alpha-list li a,
.genre-list li a {
  display: block;
  padding: 6px 10px;
  font-size: 14px;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition), color var(--transition);
}

.sidebar-list li a:hover,
.side-index-list li a:hover,
.aside-list li a:hover,
.alpha-list li a:hover,
.genre-list li a:hover {
  background-color: var(--bg-soft);
  color: var(--primary);
}

/* 正文内容区 */
.content-area {
  min-width: 0;
}

.content-section {
  margin-bottom: 48px;
}

.section-title {
  font-size: 22px;
  margin-bottom: 12px;
}

.section-intro {
  color: var(--text-muted);
  margin-bottom: 20px;
  max-width: 720px;
}

/* ==========================================================================
   components — 通用组件
   ========================================================================== */

/* 按钮 */
.btn,
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition), color var(--transition), box-shadow var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary-light);
  color: var(--primary-dark);
}

/* 表格通用 */
.table-wrap {
  overflow-x: auto;
  margin-bottom: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}

th {
  background-color: var(--bg-soft);
  font-weight: 600;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  white-space: nowrap;
}

td {
  color: var(--text);
}

/* 状态标签 */
.status-tag,
.update-status {
  display: inline-block;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  line-height: 1.6;
  white-space: nowrap;
}

.status-new {
  background-color: #dcfce7;
  color: #166534;
}

.status-sequel {
  background-color: #dbeafe;
  color: #1e40af;
}

.status-finished {
  background-color: #f3f4f6;
  color: #4b5563;
}

/* 更多链接 */
.more-link {
  display: inline-block;
  font-size: 14px;
  color: var(--primary);
  font-weight: 500;
  margin-top: 12px;
}

.more-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* 卡片 */
.entry-card,
.work-card,
.artwork-card,
.recommend-item,
.genre-card,
.notice-item,
.timeline-item {
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.entry-card:hover,
.work-card:hover,
.artwork-card:hover,
.recommend-item:hover,
.genre-card:hover,
.notice-item:hover,
.timeline-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* 图片容器稳定约束 */
figure img,
.work-thumb,
.item-cover img,
.artwork-media img,
.page-banner img,
.page-hero-img,
.hero-figure img,
.content-media img {
  width: 100%;
  object-fit: cover;
}

/* ==========================================================================
   pages — 首页模块
   ========================================================================== */

/* 地图首屏 */
.hero-map {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 48px 0 40px;
  align-items: center;
}

.hero-copy h1 {
  font-size: 28px;
  margin-bottom: 12px;
}

.hero-lead {
  font-size: 18px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 12px;
}

.hero-text {
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-map-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.map-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px;
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.map-cell:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.cell-coord {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-light);
}

.cell-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.cell-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.content-media-primary {
  grid-column: 1 / -1;
  margin-top: 8px;
}

.content-media-primary img {
  height: 320px;
  border-radius: var(--radius);
}

/* 字母索引条 */
.index-bar {
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 40px;
}

.alpha-index {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
}

.index-label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  margin-right: 8px;
  flex-shrink: 0;
}

.alpha-index a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition), color var(--transition);
}

.alpha-index a:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

.topic-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.topic-tags a {
  display: inline-block;
  padding: 3px 12px;
  font-size: 13px;
  color: var(--text-muted);
  background-color: var(--bg-soft);
  border-radius: 20px;
  transition: background-color var(--transition), color var(--transition);
}

.topic-tags a:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

/* 定位说明带 */
.intro-strip {
  background-color: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 40px;
}

.intro-strip p {
  font-size: 15px;
  color: var(--text);
  margin: 0;
}

.intro-strip strong {
  color: var(--primary-dark);
}

/* 最新讨论区 */
.latest-discussion {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  margin-bottom: 48px;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 16px;
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.post-item:hover {
  border-color: var(--primary);
}

.post-tag {
  flex-shrink: 0;
  display: inline-block;
  padding: 1px 10px;
  font-size: 12px;
  color: var(--primary);
  background-color: var(--primary-light);
  border-radius: 20px;
  font-weight: 500;
}

.post-item a {
  color: var(--text);
  font-size: 15px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-item a:hover {
  color: var(--primary);
}

.post-meta {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--text-light);
}

.announce-sidebar {
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px;
}

.sidebar-title {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}

.announce-list li {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.announce-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.announce-list li a {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

.announce-list li a:hover {
  color: var(--primary);
}

/* 同人作品精选 */
.tongren-wall {
  margin-bottom: 48px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.work-card img {
  height: 200px;
}

.work-card figcaption {
  padding: 14px 16px;
}

.work-type {
  display: inline-block;
  font-size: 12px;
  color: var(--primary);
  background-color: var(--primary-light);
  padding: 1px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
}

.work-card figcaption a {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.work-card figcaption a:hover {
  color: var(--primary);
}

.work-author {
  font-size: 13px;
  color: var(--text-muted);
}

/* 番剧更新与剧情介绍双栏 */
.dual-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.update-list,
.juqing-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.update-item {
  padding: 14px 16px;
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}

.update-item a {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 6px 0;
}

.update-item a:hover {
  color: var(--primary);
}

.update-meta {
  font-size: 13px;
  color: var(--text-light);
}

.juqing-item {
  padding: 14px 16px;
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}

.juqing-item a {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.juqing-item a:hover {
  color: var(--primary);
}

.juqing-meta {
  font-size: 13px;
  color: var(--text-muted);
}

/* 入口条 */
.entry-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.entry-card {
  display: block;
  padding: 24px;
}

.entry-title {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 8px;
}

.entry-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.entry-link {
  font-size: 14px;
  color: var(--primary);
  font-weight: 500;
}

.entry-card:hover .entry-link {
  text-decoration: underline;
}

/* 发帖引导条 */
.post-guide {
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 0;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 20px;
}

.guide-step {
  padding: 20px;
  background-color: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: var(--primary);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  border-radius: 50%;
  margin-bottom: 12px;
}

.guide-step h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.guide-step p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.guide-step a {
  font-size: 14px;
  font-weight: 500;
}

/* ==========================================================================
   pages — 内页模块
   ========================================================================== */

/* 版块总览页 */
.page-banner {
  margin-bottom: 32px;
}

.page-banner img {
  height: 240px;
  border-radius: var(--radius);
}

.board-table th,
.board-table td {
  min-width: 120px;
}

.board-table td:first-child {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.duty-group {
  margin-bottom: 24px;
  padding: 20px;
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}

.group-title {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--primary);
}

.duty-group p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.notice-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.notice-item {
  padding: 20px;
}

.notice-title {
  font-size: 16px;
  margin-bottom: 6px;
}

.notice-text {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* 作品大全页 */
.alpha-nav-section {
  margin-bottom: 40px;
}

.inline-alpha-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 16px;
}

.inline-alpha-nav li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
}

.inline-alpha-nav li a:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

.work-group {
  margin-bottom: 40px;
}

.work-group .group-title {
  font-size: 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
  margin-bottom: 16px;
}

.work-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.work-item {
  display: flex;
  gap: 16px;
  padding: 14px;
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  align-items: center;
}

.work-thumb {
  width: 80px;
  height: 60px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.work-info {
  min-width: 0;
  flex: 1;
}

.work-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.work-name a {
  color: inherit;
}

.work-name a:hover {
  color: var(--primary);
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-block;
  padding: 1px 10px;
  font-size: 12px;
  color: var(--text-muted);
  background-color: var(--bg-soft);
  border-radius: 20px;
}

.work-links {
  margin-top: 6px;
}

.work-links a {
  font-size: 13px;
  margin-right: 12px;
}

.genre-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.genre-card {
  padding: 20px;
}

.genre-name {
  font-size: 16px;
  margin-bottom: 6px;
}

.genre-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.genre-card a {
  font-size: 14px;
  font-weight: 500;
}

.related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.related-list li a {
  display: inline-block;
  padding: 6px 16px;
  font-size: 14px;
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  color: var(--text-muted);
}

.related-list li a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* 番剧更新页 */
.filter-list {
  margin-bottom: 16px;
}

.filter-list li {
  margin-bottom: 4px;
}

.filter-list li a {
  display: block;
  padding: 6px 10px;
  font-size: 14px;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
}

.filter-list li a:hover {
  background-color: var(--bg-soft);
  color: var(--primary);
}

.aside-note {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.timeline-section {
  position: relative;
  margin-bottom: 48px;
}

.timeline-item {
  position: relative;
  padding: 24px;
  margin-bottom: 20px;
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.timeline-meta time {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

.timeline-item h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.timeline-item p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.timeline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.timeline-links a {
  font-size: 14px;
  font-weight: 500;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.entry-grid .entry-card {
  padding: 20px;
}

.entry-grid .entry-card h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.entry-grid .entry-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.status-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
}

.status-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.hero-figure {
  margin-top: 40px;
}

.hero-figure img {
  height: 280px;
  border-radius: var(--radius);
}

/* 热门推荐页 */
.compare-table th,
.compare-table td {
  min-width: 140px;
}

.compare-table td:first-child {
  font-weight: 600;
  white-space: nowrap;
}

.recommend-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
}

.item-cover img {
  height: 140px;
  border-radius: var(--radius-sm);
}

.item-info h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.item-info p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.reason-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

.reason-list li {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
}

.reason-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--primary);
}

.reason-list strong {
  color: var(--text);
}

/* 剧情介绍页 */
.page-hero-figure {
  margin-bottom: 32px;
}

.page-hero-img {
  height: 260px;
  border-radius: var(--radius);
}

.story-block {
  margin-bottom: 48px;
}

.story-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}

.story-title {
  font-size: 20px;
}

.story-tag {
  display: inline-block;
  padding: 1px 10px;
  font-size: 12px;
  color: var(--primary);
  background-color: var(--primary-light);
  border-radius: 20px;
}

.story-subtitle {
  font-size: 16px;
  margin: 20px 0 8px;
  color: var(--primary-dark);
}

.story-text {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 12px;
}

.story-points {
  margin: 12px 0;
}

.story-points li {
  font-size: 14px;
  color: var(--text-muted);
  padding: 6px 0 6px 20px;
  position: relative;
  border-bottom: 1px solid var(--border-light);
}

.story-points li::before {
  content: "◆";
  position: absolute;
  left: 0;
  font-size: 10px;
  color: var(--primary);
  top: 10px;
}

.story-discuss {
  margin-top: 16px;
  padding: 16px;
  background-color: var(--bg-soft);
  border-radius: var(--radius);
}

.story-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.story-topics li a {
  display: inline-block;
  padding: 4px 14px;
  font-size: 13px;
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  color: var(--text-muted);
}

.story-topics li a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.story-more {
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
}

.story-more-title {
  font-size: 18px;
  margin-bottom: 12px;
}

.story-more-text {
  font-size: 14px;
  color: var(--text-muted);
}

.story-more-text a {
  font-weight: 500;
}

.aside-link-block {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aside-link {
  font-size: 14px;
  color: var(--primary);
}

/* 同人创作页 */
.artwork-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.artwork-card {
  overflow: hidden;
}

.artwork-media img {
  height: 200px;
}

.artwork-info {
  padding: 14px 16px;
}

.artwork-type {
  display: inline-block;
  font-size: 12px;
  color: var(--primary);
  background-color: var(--primary-light);
  padding: 1px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
}

.artwork-title {
  font-size: 15px;
  margin-bottom: 4px;
}

.artwork-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.filter-item {
  display: inline-block;
  padding: 6px 20px;
  font-size: 14px;
  color: var(--text-muted);
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  margin-right: 8px;
  margin-bottom: 8px;
}

.filter-item:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-block {
  margin-top: 20px;
  padding: 20px;
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}

.filter-block h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.filter-block p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.quote-rule {
  background-color: var(--bg-soft);
  border-left: 4px solid var(--warning);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 40px;
}

.quote-rule p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
}

.related-links-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-right: 8px;
}

.related-links-item {
  font-size: 14px;
  font-weight: 500;
}

/* 社区手册页 */
.rule-list,
.quote-list {
  margin: 16px 0;
}

.rule-list li,
.quote-list li {
  font-size: 14px;
  color: var(--text-muted);
  padding: 8px 0 8px 20px;
  position: relative;
  border-bottom: 1px solid var(--border-light);
}

.rule-list li::before,
.quote-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--primary);
}

.rule-list strong {
  color: var(--text);
}

.content-block {
  margin-bottom: 48px;
}

.content-block h2 {
  font-size: 20px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}

.content-block p {
  font-size: 14px;
  color: var(--text-muted);
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0;
}

.guide-steps h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.guide-steps p {
  font-size: 13px;
  margin-bottom: 8px;
}

.guide-steps a {
  font-size: 13px;
  font-weight: 500;
}

.faq-item {
  margin-bottom: 16px;
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 40px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--primary);
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  background-color: var(--bg-soft);
}

.faq-item p {
  padding: 0 20px 16px;
  margin: 0;
}

.post-cta {
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
}

.post-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

.post-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.post-cta p a {
  font-weight: 500;
  margin-right: 16px;
}

/* 404 页 */
.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 64px 24px;
}

.error-content {
  text-align: center;
  max-width: 480px;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 72px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 8px;
}

.error-content h1 {
  font-size: 24px;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   responsive — 响应式
   ========================================================================== */

@media (max-width: 1024px) {
  .sidebar-left {
    grid-template-columns: 200px 1fr;
    gap: 24px;
  }

  .nav-list li a {
    padding: 8px 10px;
    font-size: 14px;
  }

  .header-post-btn {
    padding: 8px 14px;
    font-size: 13px;
  }

  .hero-map {
    gap: 32px;
  }

  .artwork-grid,
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 12px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    width: 100%;
    order: 3;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background-color: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 8px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li a {
    display: block;
    padding: 10px 12px;
    font-size: 15px;
  }

  .header-post-btn {
    margin-left: auto;
  }

  .sidebar-left {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .sidebar,
  .page-aside,
  .sidebar-left-inner,
  .sidebar-left-index,
  .page-sidebar {
    position: static;
    order: 2;
  }

  .sidebar-left .inner-main {
    order: 1;
  }

  .hero-map {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 32px;
  }

  .latest-discussion {
    grid-template-columns: 1fr;
  }

  .announce-sidebar {
    order: 2;
  }

  .dual-column {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .entry-cards {
    grid-template-columns: 1fr;
  }

  .guide-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .genre-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .entry-grid {
    grid-template-columns: 1fr;
  }

  .recommend-item {
    grid-template-columns: 1fr;
  }

  .item-cover img {
    height: 180px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .site-header,
  .site-footer,
  .site-main,
  .inner-main,
  .footer-inner,
  .header-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand {
    font-size: 17px;
  }

  .brand-logo {
    width: 24px;
    height: 24px;
    margin-right: 8px;
  }

  .brand-logo::before {
    inset: 5px;
  }

  .header-post-btn {
    padding: 8px 12px;
    font-size: 13px;
  }

  .hero-map {
    padding-top: 24px;
  }

  .hero-copy h1 {
    font-size: 24px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-map-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .map-cell {
    padding: 12px;
  }

  .cell-desc {
    font-size: 12px;
  }

  .content-media-primary img {
    height: 200px;
  }

  .alpha-index {
    gap: 2px;
  }

  .alpha-index a {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-card img {
    height: 220px;
  }

  .artwork-grid {
    grid-template-columns: 1fr;
  }

  .artwork-media img {
    height: 220px;
  }

  .genre-cards {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    padding: 16px;
  }

  .timeline-links {
    flex-direction: column;
    gap: 8px;
  }

  .post-item {
    flex-wrap: wrap;
    gap: 6px;
  }

  .post-item a {
    width: 100%;
    white-space: normal;
    overflow: visible;
  }

  .post-meta {
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 24px;
  }

  .footer-col h2 {
    margin-bottom: 10px;
  }

  .footer-links li {
    margin-bottom: 6px;
  }

  .guide-steps {
    grid-template-columns: 1fr;
  }

  .work-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .work-thumb {
    width: 100%;
    height: 160px;
  }

  .error-code {
    font-size: 48px;
  }

  .error-content h1 {
    font-size: 20px;
  }

  .error-actions {
    flex-direction: column;
    align-items: center;
  }

  .error-actions .btn-primary,
  .error-actions .btn-secondary {
    width: 100%;
  }

  .page-title {
    font-size: 24px;
  }

  .story-head {
    flex-wrap: wrap;
  }

  .story-points li {
    padding-left: 16px;
  }

  .breadcrumb {
    font-size: 13px;
  }

  .table-wrap {
    margin-bottom: 16px;
  }

  th,
  td {
    padding: 10px 12px;
    font-size: 13px;
  }
}

@media (max-width: 390px) {
  .hero-map-grid {
    grid-template-columns: 1fr;
  }

  .map-cell {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .cell-coord {
    min-width: 24px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
  }

  .entry-cards {
    gap: 12px;
  }

  .entry-card {
    padding: 16px;
  }

  .post-guide {
    padding: 20px;
  }

  .inline-alpha-nav li a {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }
}
