/* ============================================================
   歪歪漫画 · 整站样式表
   版本：v1.0
   说明：本样式表覆盖全站所有页面（首页、内页、404），
   按 base / layout / components / pages / responsive 分组。
   ============================================================ */

/* ============================================================
   Base —— 全局基础
   ============================================================ */

:root {
  --color-bg: #f5f7fa;
  --color-surface: #ffffff;
  --color-text: #222b36;
  --color-link: #1a5cb0;
  --color-muted: #6b7686;
  --color-border: #e8ebf0;
  --color-header-bg: #ffffff;
  --color-footer-bg: #222b36;
  --color-footer-text: #c9d2de;
  --color-footer-link: #9fb3c8;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --container-width: 1200px;
  --content-width: 860px;
  --radius-card: 8px;
  --radius-small: 4px;
  --shadow-card: 0 1px 3px rgba(34, 43, 54, 0.06), 0 4px 12px rgba(34, 43, 54, 0.05);
  --shadow-hover: 0 4px 10px rgba(26, 92, 176, 0.10), 0 8px 24px rgba(34, 43, 54, 0.08);
  --transition-speed: 0.2s;
}

*,
*::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(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color var(--transition-speed) ease, background-color var(--transition-speed) ease, border-color var(--transition-speed) ease;
}

a:hover {
  color: #134a8c;
  text-decoration: underline;
}

ul,
ol {
  list-style-position: inside;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.4;
  color: var(--color-text);
  font-weight: 600;
}

h1 {
  font-size: 28px;
  line-height: 1.4;
}

h2 {
  font-size: 22px;
  line-height: 1.5;
}

h3 {
  font-size: 18px;
  line-height: 1.6;
}

p {
  margin-bottom: 0.5rem;
}

time {
  color: var(--color-muted);
  font-size: 0.875rem;
}

button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

/* ============================================================
   Layout —— 全局外壳布局
   ============================================================ */

.site-header {
  background-color: var(--color-header-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  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-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--color-text);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-link:hover {
  text-decoration: none;
  color: var(--color-link);
}

.brand-name {
  display: inline-block;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-list li {
  list-style: none;
}

.nav-list a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--radius-small);
  color: var(--color-text);
  font-size: 0.9375rem;
  line-height: 1.5;
  white-space: nowrap;
}

.nav-list a:hover {
  color: var(--color-link);
  background-color: rgba(26, 92, 176, 0.06);
  text-decoration: none;
}

.nav-list a.is-current {
  color: var(--color-link);
  font-weight: 700;
  background-color: rgba(26, 92, 176, 0.08);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  gap: 5px;
  border-radius: var(--radius-small);
  flex-shrink: 0;
}

.nav-toggle:hover {
  background-color: rgba(26, 92, 176, 0.06);
}

.nav-toggle-line {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: background-color var(--transition-speed) ease;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.inner-main {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 32px 24px 64px;
  width: 100%;
}

.site-footer {
  background-color: var(--color-footer-bg);
  color: var(--color-footer-text);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 48px 24px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer-brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 0.875rem;
  color: var(--color-footer-text);
  line-height: 1.7;
}

.footer-nav-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #e6ebf2;
  margin-bottom: 12px;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li {
  list-style: none;
  margin-bottom: 6px;
}

.footer-nav a {
  color: var(--color-footer-link);
  font-size: 0.875rem;
  line-height: 1.6;
  display: inline-block;
  padding: 2px 0;
}

.footer-nav a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-feedback p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--color-footer-text);
  margin-bottom: 6px;
}

.footer-copy {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 16px 24px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
  color: #8b9bb0;
  text-align: center;
}

/* ============================================================
   Components —— 通用组件
   ============================================================ */

/* 面包屑 */
.breadcrumb {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 16px 24px 0;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.breadcrumb a {
  color: var(--color-muted);
}

.breadcrumb a:hover {
  color: var(--color-link);
  text-decoration: underline;
}

.breadcrumb-sep {
  margin: 0 8px;
  color: #aab3c0;
}

.breadcrumb-current {
  color: var(--color-text);
  font-weight: 500;
}

/* 页面标题区 */
.page-header {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 28px 24px 24px;
}

.page-title {
  font-size: 28px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
}

.page-description {
  font-size: 1rem;
  color: var(--color-muted);
  max-width: var(--content-width);
  line-height: 1.8;
}

.page-description a {
  color: var(--color-link);
  text-decoration: underline;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 22px;
  border-radius: var(--radius-small);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease, box-shadow var(--transition-speed) ease, border-color var(--transition-speed) ease;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-link);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #134a8c;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(26, 92, 176, 0.25);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-link);
  border: 1px solid var(--color-link);
}

.btn-secondary:hover {
  background-color: rgba(26, 92, 176, 0.06);
  color: #134a8c;
  border-color: #134a8c;
}

/* 分段控件 */
.filter-tabs,
.timeline-tabs {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px 24px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tab,
.timeline-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  color: var(--color-text);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.filter-tab:hover,
.timeline-tab:hover {
  border-color: var(--color-link);
  color: var(--color-link);
}

.filter-tab.is-active,
.timeline-tab.is-active {
  background-color: var(--color-link);
  border-color: var(--color-link);
  color: #ffffff;
  font-weight: 600;
}

/* 相关链接 */
.related-links {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.related-links-label {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-right: 4px;
}

.related-links-item {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background-color: rgba(26, 92, 176, 0.08);
  color: var(--color-link);
  font-size: 0.875rem;
  line-height: 1.6;
}

.related-links-item:hover {
  background-color: rgba(26, 92, 176, 0.14);
  text-decoration: none;
}

/* 图片容器 */
figure {
  margin: 0;
}

figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   Pages —— 首页
   ============================================================ */

.home-main {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px 64px;
  width: 100%;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0 40px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.hero-text h1 {
  font-size: 32px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0;
}

.hero-slogan {
  font-size: 1.125rem;
  color: var(--color-link);
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 0;
}

.hero-desc {
  font-size: 1rem;
  color: var(--color-muted);
  line-height: 1.8;
  max-width: 540px;
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero-figure {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 3;
  background-color: #eef1f5;
}

.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 通用 section 标题 */
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.5;
  margin-bottom: 8px;
}

.section-intro {
  font-size: 0.9375rem;
  color: var(--color-muted);
  max-width: var(--content-width);
  margin-bottom: 20px;
}

/* 近期更新预览 */
.guide-summary {
  padding: 32px 0;
  border-top: 1px solid var(--color-border);
}

.guide-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 16px;
}

.update-preview {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.update-preview:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.update-preview h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.update-preview p {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.update-preview a {
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.update-preview a::after {
  content: "→";
  font-size: 0.875rem;
  transition: transform var(--transition-speed) ease;
}

.update-preview a:hover::after {
  transform: translateX(4px);
}

/* 题材索引区 */
.topic-index {
  padding: 32px 0;
  border-top: 1px solid var(--color-border);
}

.topic-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 16px;
}

.topic-group {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 20px;
}

.topic-group h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-border);
}

.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list li {
  list-style: none;
}

.tag-list a {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background-color: rgba(26, 92, 176, 0.06);
  border: 1px solid rgba(26, 92, 176, 0.15);
  color: var(--color-link);
  font-size: 0.875rem;
  line-height: 1.6;
  transition: background-color var(--transition-speed) ease, border-color var(--transition-speed) ease;
}

.tag-list a:hover {
  background-color: rgba(26, 92, 176, 0.12);
  border-color: rgba(26, 92, 176, 0.3);
  text-decoration: none;
}

.topic-more {
  margin-top: 20px;
  text-align: right;
}

.topic-more a {
  font-size: 0.9375rem;
  font-weight: 500;
}

.topic-more a::after {
  content: " →";
}

/* 作品与世界观预览 */
.content-preview {
  padding: 32px 0;
  border-top: 1px solid var(--color-border);
}

.preview-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  margin-top: 16px;
  align-items: start;
}

.works-preview,
.lore-preview {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.works-preview > h3,
.lore-preview > h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-border);
}

.works-preview-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.work-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: box-shadow var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.work-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.works-preview .work-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  background-color: #eef1f5;
}

.works-preview .work-card h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 10px 12px 4px;
  line-height: 1.4;
}

.work-tags {
  padding: 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--color-link);
  margin-bottom: 4px;
}

.works-preview .work-summary {
  padding: 0 12px 8px;
  font-size: 0.8125rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: 4px;
}

.works-preview .work-card > a {
  display: block;
  padding: 0 12px 12px;
  font-size: 0.8125rem;
  font-weight: 500;
}

.role-preview-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.role-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 12px;
  transition: box-shadow var(--transition-speed) ease;
}

.role-card:hover {
  box-shadow: var(--shadow-hover);
}

.index-role-card .role-card img,
.lore-preview .role-card img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-small);
  flex-shrink: 0;
  background-color: #eef1f5;
}

.lore-preview .role-card h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.lore-preview .role-card p {
  font-size: 0.8125rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: 4px;
}

.lore-preview .role-card a {
  font-size: 0.8125rem;
  font-weight: 500;
}

.preview-link {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
  text-align: right;
}

.preview-link a {
  font-size: 0.875rem;
  font-weight: 500;
}

.preview-link a::after {
  content: " →";
}

/* 版本变化时间线 */
.version-timeline {
  padding: 32px 0;
  border-top: 1px solid var(--color-border);
}

.timeline-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 16px;
}

.timeline-block {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 20px;
}

.timeline-block h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-border);
}

.timeline-block ul {
  list-style: none;
}

.timeline-block li {
  list-style: none;
  padding: 8px 0;
  border-bottom: 1px dashed var(--color-border);
  font-size: 0.875rem;
  line-height: 1.6;
}

.timeline-block li:last-child {
  border-bottom: none;
}

.timeline-block li time {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-muted);
  margin-bottom: 2px;
}

.timeline-more {
  margin-top: 20px;
  text-align: right;
}

.timeline-more a {
  font-size: 0.9375rem;
  font-weight: 500;
}

.timeline-more a::after {
  content: " →";
}

/* 阅读流程引导 */
.reading-howto {
  padding: 32px 0;
  border-top: 1px solid var(--color-border);
}

.howto-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 16px;
}

.step-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(26, 92, 176, 0.1);
  color: var(--color-link);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 0;
}

.howto-help {
  margin-top: 24px;
  text-align: center;
}

/* ============================================================
   Pages —— 作品中心（works.html）
   ============================================================ */

.works-grid {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.page-works .works-grid .work-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  background-color: var(--color-surface);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.page-works .works-grid .work-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.work-cover {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background-color: #eef1f5;
}

.work-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.work-title {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 0;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--color-link);
}

.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background-color: rgba(26, 92, 176, 0.08);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.work-desc {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 0;
  flex: 1;
}

.work-status {
  font-size: 0.8125rem;
  color: var(--color-muted);
  margin-bottom: 0;
  padding-top: 8px;
  border-top: 1px dashed var(--color-border);
}

.page-note {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 24px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
}

.note-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.page-note p {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 0;
}

.page-note a {
  color: var(--color-link);
  text-decoration: underline;
}

/* ============================================================
   Pages —— 题材索引（tags.html）
   ============================================================ */

.layout-shell {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px 32px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}

.layout-shell.sidebar-left {
  grid-template-columns: 240px 1fr;
}

.toc {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 20px;
  position: sticky;
  top: 88px;
}

.toc h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-border);
}

.toc ul {
  list-style: none;
}

.toc li {
  list-style: none;
  margin-bottom: 4px;
}

.toc a {
  display: block;
  padding: 6px 8px;
  border-radius: var(--radius-small);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text);
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

.toc a:hover {
  background-color: rgba(26, 92, 176, 0.06);
  color: var(--color-link);
  text-decoration: none;
}

.category-groups {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.category-group {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 20px;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  box-shadow: var(--shadow-card);
}

.category-media {
  border-radius: var(--radius-small);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background-color: #eef1f5;
}

.category-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-body h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.category-body p {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 8px;
}

.category-body p:last-child {
  margin-bottom: 0;
}

/* 口味与场景入口 */
.taste-scene-entry {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 32px 24px;
}

.taste-scene-entry > h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.taste-scene-entry > p {
  font-size: 0.9375rem;
  color: var(--color-muted);
  max-width: var(--content-width);
  margin-bottom: 20px;
}

.entry-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.entry-column {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 20px;
}

.entry-column h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-border);
}

.entry-column ul {
  list-style: none;
}

.entry-column li {
  list-style: none;
  padding: 4px 0;
}

.entry-column a {
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 0;
}

.entry-column a::before {
  content: "·";
  color: var(--color-link);
  font-weight: 700;
  margin-right: 4px;
}

.entry-more {
  margin-top: 20px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.entry-more a {
  font-size: 0.9375rem;
  font-weight: 500;
}

.entry-more a::after {
  content: " →";
}

/* 分类说明 */
.category-note {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 24px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
}

.category-note h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.category-note p {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ============================================================
   Pages —— 角色与世界观（lore.html）
   ============================================================ */

.role-archive,
.attribute-explainer,
.worldview-list {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 24px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  margin-bottom: 24px;
}

.role-archive > h2,
.attribute-explainer > h2,
.worldview-list > h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.role-archive > p,
.attribute-explainer > p,
.worldview-list > p {
  font-size: 0.9375rem;
  color: var(--color-muted);
  margin-bottom: 20px;
}

.role-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.page-lore .role-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 16px;
  background-color: var(--color-bg);
}

.role-figure {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-small);
  overflow: hidden;
  flex-shrink: 0;
  background-color: #eef1f5;
}

.role-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.role-content {
  flex: 1;
  min-width: 0;
}

.role-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.role-role {
  font-size: 0.8125rem;
  color: var(--color-link);
  font-weight: 500;
  margin-bottom: 6px;
}

.role-content p {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 4px;
}

/* 属性资料定义列表 */
.attribute-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.attribute-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  padding: 16px;
  background-color: var(--color-bg);
}

.attribute-item dt {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.attribute-item dd {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin-left: 0;
}

.attribute-note,
.worldview-note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  font-size: 0.875rem;
  color: var(--color-muted);
}

.attribute-note a,
.worldview-note a {
  color: var(--color-link);
  text-decoration: underline;
}

/* 世界观条目 */
.worldview-block {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  padding: 20px;
  margin-bottom: 16px;
  background-color: var(--color-bg);
}

.worldview-block h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.worldview-block p {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 8px;
}

.worldview-block p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   Pages —— 版本与更新（updates.html）
   ============================================================ */

.updates-latest,
.updates-adjusted,
.updates-history {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px 32px;
}

.updates-latest .section-title,
.updates-adjusted .section-title,
.updates-history .section-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.section-desc {
  font-size: 0.9375rem;
  color: var(--color-muted);
  margin-bottom: 20px;
}

.update-item {
  display: flex;
  gap: 20px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
  align-items: flex-start;
}

.update-media {
  width: 160px;
  height: 100px;
  border-radius: var(--radius-small);
  overflow: hidden;
  flex-shrink: 0;
  background-color: #eef1f5;
}

.update-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.update-content {
  flex: 1;
  min-width: 0;
}

.update-date {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-muted);
  margin-bottom: 4px;
}

.update-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.update-summary {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 8px;
}

.update-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.update-links a {
  font-size: 0.875rem;
  font-weight: 500;
}

.update-links a::after {
  content: " →";
}

/* 历史归档 */
.history-list {
  list-style: none;
}

.history-item {
  list-style: none;
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px dashed var(--color-border);
}

.history-item:last-child {
  border-bottom: none;
}

.history-date {
  font-size: 0.8125rem;
  color: var(--color-muted);
  flex-shrink: 0;
  min-width: 90px;
}

.history-title {
  font-size: 0.9375rem;
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: 0;
}

/* 更新说明 */
.changelog-note {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 24px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
}

.changelog-note .section-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.changelog-note p {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 0;
}

.changelog-note a {
  color: var(--color-link);
  text-decoration: underline;
}

/* ============================================================
   Pages —— 阅读帮助（help.html）
   ============================================================ */

.reading-method,
.faq-accordion,
.feedback-path {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 24px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  margin-bottom: 24px;
}

.reading-method > h2,
.faq-accordion > h2,
.feedback-path > h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.method-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.method-step {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 20px;
  background-color: var(--color-bg);
}

.method-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(26, 92, 176, 0.1);
  color: var(--color-link);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.method-step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.method-step p {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 0;
}

.method-figure {
  border-radius: var(--radius-small);
  overflow: hidden;
  margin-top: 16px;
  background-color: #eef1f5;
  aspect-ratio: 16 / 5;
}

.method-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.method-figure figcaption {
  font-size: 0.8125rem;
  color: var(--color-muted);
  padding: 8px 12px;
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

/* FAQ 折叠面板 */
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  margin-bottom: 12px;
  background-color: var(--color-surface);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  line-height: 1.6;
  transition: background-color var(--transition-speed) ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-link);
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform var(--transition-speed) ease;
}

.faq-item[open] summary {
  background-color: rgba(26, 92, 176, 0.04);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  background-color: rgba(26, 92, 176, 0.04);
}

.faq-item > p {
  padding: 0 20px 16px;
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.7;
}

/* 反馈流程 */
.feedback-flow > p {
  font-size: 0.9375rem;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 16px;
}

.feedback-steps {
  list-style: none;
  margin-bottom: 16px;
}

.feedback-steps li {
  list-style: none;
  position: relative;
  padding: 8px 0 8px 32px;
  font-size: 0.9375rem;
  color: var(--color-text);
  line-height: 1.7;
}

.feedback-steps li::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  left: 0;
  top: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: rgba(26, 92, 176, 0.1);
  color: var(--color-link);
  font-size: 0.8125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feedback-steps {
  counter-reset: step;
}

.feedback-flow > p:last-child {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 0;
}

.feedback-flow a {
  color: var(--color-link);
  text-decoration: underline;
}

/* ============================================================
   Pages —— 404
   ============================================================ */

.error-main {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 64px 24px;
  width: 100%;
  flex: 1 0 auto;
}

.error-content {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 48px 40px;
  box-shadow: var(--shadow-card);
}

.error-code {
  font-size: 4rem;
  font-weight: 700;
  color: var(--color-link);
  line-height: 1.2;
  margin-bottom: 8px;
}

.error-content h1 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 0.9375rem;
  color: var(--color-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

.error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.btn-home,
.btn-works {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 24px;
  border-radius: var(--radius-small);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease, border-color var(--transition-speed) ease;
  text-decoration: none;
}

.btn-home {
  background-color: var(--color-link);
  color: #ffffff;
}

.btn-home:hover {
  background-color: #134a8c;
  color: #ffffff;
  text-decoration: none;
}

.btn-works {
  background-color: transparent;
  border: 1px solid var(--color-link);
  color: var(--color-link);
}

.btn-works:hover {
  background-color: rgba(26, 92, 176, 0.06);
  color: #134a8c;
  border-color: #134a8c;
  text-decoration: none;
}

.error-help {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 0;
}

.error-help a {
  color: var(--color-link);
  text-decoration: underline;
}

/* ============================================================
   Responsive —— 响应式
   ============================================================ */

/* 平板：≤960px 切换汉堡导航 */
@media (max-width: 960px) {
  .header-inner {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .nav-toggle {
    display: flex;
    order: 3;
  }

  .site-nav {
    order: 4;
    width: 100%;
    flex-basis: 100%;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 8px 0;
    gap: 2px;
    border-top: 1px solid var(--color-border);
    margin-top: 8px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    display: block;
    padding: 12px 12px;
    font-size: 1rem;
    border-radius: var(--radius-small);
  }

  .nav-list a.is-current {
    background-color: rgba(26, 92, 176, 0.08);
  }

  /* 页脚 */
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  /* 首页 */
  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 0;
  }

  .hero-figure {
    max-width: 480px;
  }

  /* 内页布局 */
  .layout-shell,
  .layout-shell.sidebar-left {
    grid-template-columns: 200px 1fr;
    gap: 20px;
  }

  .category-group {
    grid-template-columns: 120px 1fr;
    gap: 16px;
  }
}

/* 手机：≤720px 切单栏 */
@media (max-width: 720px) {
  .header-inner {
    padding: 8px 16px;
  }

  .brand-link {
    font-size: 1.125rem;
  }

  .inner-main {
    padding: 24px 16px 48px;
  }

  .breadcrumb {
    padding: 12px 16px 0;
  }

  .page-header {
    padding: 20px 16px 20px;
  }

  .page-title {
    font-size: 24px;
  }

  /* 页脚 */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 16px 16px;
  }

  .footer-copy {
    padding: 12px 16px 16px;
  }

  /* 首页 */
  .home-main {
    padding: 0 16px 48px;
  }

  .hero {
    padding: 24px 0;
  }

  .hero-text h1 {
    font-size: 26px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .guide-summary-grid,
  .topic-columns,
  .timeline-preview,
  .howto-steps {
    grid-template-columns: 1fr;
  }

  .preview-layout {
    grid-template-columns: 1fr;
  }

  .works-preview-list {
    grid-template-columns: 1fr;
  }

  .role-preview-list {
    grid-template-columns: 1fr;
  }

  .role-card {
    flex-direction: row;
  }

  /* 作品中心 */
  .filter-tabs,
  .timeline-tabs {
    padding: 0 16px 20px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .filter-tab,
  .timeline-tab {
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 0.875rem;
  }

  .works-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 16px 24px;
  }

  .work-cover {
    height: 200px;
  }

  /* 题材索引 */
  .layout-shell,
  .layout-shell.sidebar-left {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 16px 24px;
  }

  .toc {
    position: static;
    order: 2;
  }

  .category-groups {
    order: 1;
  }

  .category-group {
    grid-template-columns: 1fr;
  }

  .category-media {
    max-width: 200px;
  }

  .entry-columns {
    grid-template-columns: 1fr;
  }

  .taste-scene-entry {
    padding: 24px 16px;
  }

  .category-note {
    margin: 0 16px 24px;
  }

  /* 角色与世界观 */
  .role-card-grid {
    grid-template-columns: 1fr;
  }

  .attribute-list {
    grid-template-columns: 1fr;
  }

  .role-archive,
  .attribute-explainer,
  .worldview-list {
    padding: 16px;
    margin-bottom: 16px;
  }

  .page-lore .role-card {
    flex-direction: row;
  }

  /* 版本更新 */
  .update-item {
    flex-direction: column;
  }

  .update-media {
    width: 100%;
    height: 160px;
  }

  .updates-latest,
  .updates-adjusted,
  .updates-history {
    padding: 0 16px 24px;
  }

  .history-item {
    flex-direction: column;
    gap: 4px;
  }

  .history-date {
    min-width: 0;
  }

  /* 阅读帮助 */
  .method-steps {
    grid-template-columns: 1fr;
  }

  .reading-method,
  .faq-accordion,
  .feedback-path {
    padding: 16px;
    margin-bottom: 16px;
  }

  .method-figure {
    aspect-ratio: 16 / 9;
  }

  .faq-item summary {
    padding: 14px 16px;
    font-size: 0.875rem;
  }

  .faq-item > p {
    padding: 0 16px 14px;
  }

  /* 404 */
  .error-main {
    padding: 40px 16px;
  }

  .error-content {
    padding: 32px 24px;
  }

  .error-code {
    font-size: 3rem;
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-home,
  .btn-works {
    width: 100%;
  }
}

/* 超小屏：≤400px 进一步收紧 */
@media (max-width: 400px) {
  .header-inner {
    padding: 8px 12px;
  }

  .brand-link {
    font-size: 1rem;
  }

  .home-main,
  .inner-main {
    padding-left: 12px;
    padding-right: 12px;
  }

  .breadcrumb {
    padding-left: 12px;
    padding-right: 12px;
  }

  .page-header {
    padding-left: 12px;
    padding-right: 12px;
  }

  .works-grid {
    padding-left: 12px;
    padding-right: 12px;
  }

  .layout-shell,
  .layout-shell.sidebar-left {
    padding-left: 12px;
    padding-right: 12px;
  }

  .footer-inner {
    padding-left: 12px;
    padding-right: 12px;
  }

  .footer-copy {
    padding-left: 12px;
    padding-right: 12px;
  }
}
