/* ============================================================
   韩漫网 ninmwo.com 整站样式表
   视觉方向：黑白影像风 / 编辑式内容站
   分组：base / layout / components / pages / responsive
   ============================================================ */

/* ============================================================
   Base — 重置、变量、全局基础
   ============================================================ */
:root {
  --ink: #0a0a0a;
  --paper: #f5f1ea;
  --gray-100: #e9e5df;
  --gray-300: #bcb7af;
  --gray-500: #77716a;
  --gray-700: #403d39;
  --white: #ffffff;
  --mark: #161616;

  --font-sans: system-ui, -apple-system, "PingFang SC", "Noto Sans SC",
    "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;

  --header-h: 64px;
  --container-w: 1200px;
  --content-max: 720px;
  --radius: 4px;
}

*,
*::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.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--gray-500);
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

h1 {
  font-size: 2.25rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.0625rem;
}

p {
  margin-bottom: 1em;
}

p:last-child {
  margin-bottom: 0;
}

figure {
  margin: 0;
}

figcaption {
  font-size: 0.75rem;
  color: var(--gray-500);
  line-height: 1.5;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   Layout — 全站共享布局骨架
   ============================================================ */

/* ---- 页头 ---- */
.site-header {
  background: var(--ink);
  color: var(--white);
  border-bottom: 1px solid var(--gray-700);
}

.header-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
  color: var(--white);
}

.brand-link:hover {
  color: var(--white);
}

.brand-name {
  font-size: 1.375rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.brand-tag {
  font-size: 0.75rem;
  color: var(--gray-300);
  letter-spacing: 0.08em;
}

/* ---- 主导航 ---- */
.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li a {
  display: block;
  padding: 6px 14px;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  color: var(--gray-300);
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-list li a:hover {
  color: var(--ink);
  background: var(--white);
}

.nav-list li a.is-current {
  color: var(--white);
  background: var(--gray-700);
  border-color: var(--gray-500);
}

/* 移动端汉堡按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--gray-500);
  cursor: pointer;
  margin-left: auto;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---- 页脚 ---- */
.site-footer {
  background: var(--ink);
  color: var(--gray-300);
  margin-top: 0;
}

.footer-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-col h2 {
  font-size: 0.875rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: 0.08em;
}

.footer-col p {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--gray-300);
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: 0.8125rem;
  color: var(--gray-300);
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding: 20px 24px;
}

.footer-bottom p {
  max-width: var(--container-w);
  margin: 0 auto;
  font-size: 0.75rem;
  color: var(--gray-500);
  text-align: center;
}

/* ---- 站点主体容器 ---- */
.site-main {
  min-height: 60vh;
}

.inner-main {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 32px 24px 64px;
}

/* ---- 面包屑 ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--gray-500);
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--ink);
}

.breadcrumb-sep {
  color: var(--gray-300);
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 700;
}

/* ---- 内页标题区 ---- */
.page-header {
  border-bottom: 3px solid var(--ink);
  padding-bottom: 28px;
  margin-bottom: 32px;
}

.page-title {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 12px;
}

.page-description {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--gray-700);
  max-width: var(--content-max);
}

/* ---- 通用主栏 + 侧栏布局 ---- */
.layout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 48px;
  align-items: start;
}

.layout-shell .main-column {
  min-width: 0;
}

/* ============================================================
   Components — 通用组件
   ============================================================ */

/* ---- 文本链接 ---- */
.text-link {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.text-link:hover {
  color: var(--gray-500);
  border-color: var(--gray-500);
}

/* ---- 按钮 ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
}

.btn-light {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.btn-light:hover {
  background: var(--gray-100);
  color: var(--ink);
  border-color: var(--gray-100);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--ink);
}

.btn-outline-dark {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-outline-dark:hover {
  background: var(--ink);
  color: var(--white);
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.btn-primary:hover {
  background: var(--gray-700);
  color: var(--white);
  border-color: var(--gray-700);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-secondary:hover {
  background: var(--gray-100);
  color: var(--ink);
}

/* ---- 区块标题 ---- */
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: 1.375rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.section-note {
  font-size: 0.8125rem;
  color: var(--gray-500);
  line-height: 1.6;
  max-width: 60%;
  text-align: right;
}

.section-heading-row {
  border-bottom: 1px solid var(--ink);
  padding-bottom: 12px;
  margin-bottom: 28px;
}

.section-title {
  font-size: 1.375rem;
  font-weight: 900;
}

.section-heading-row .section-note {
  margin-top: 6px;
  font-size: 0.875rem;
  color: var(--gray-500);
  max-width: 640px;
}

.section-desc {
  font-size: 0.9375rem;
  color: var(--gray-700);
  margin-bottom: 28px;
}

.section-intro {
  font-size: 0.9375rem;
  color: var(--gray-700);
  max-width: 640px;
}

/* ============================================================
   Pages — Index 首页
   ============================================================ */

/* ---- 首屏全宽主视觉 ---- */
.hero-section {
  position: relative;
  background: var(--ink);
  min-height: 520px;
  display: flex;
  align-items: stretch;
}

.hero-visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  background: linear-gradient(
    90deg,
    rgba(10, 10, 10, 0.92) 0%,
    rgba(10, 10, 10, 0.72) 55%,
    rgba(10, 10, 10, 0.45) 100%
  );
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 64px 24px;
}

.hero-copy {
  flex: 0 0 62%;
  max-width: 680px;
  color: var(--white);
  padding-left: max(24px, calc((100vw - var(--container-w)) / 2));
}

.hero-kicker {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray-300);
  border: 1px solid var(--gray-500);
  padding: 4px 12px;
  margin-bottom: 24px;
}

.hero-copy h1 {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--white);
}

.hero-lead {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--gray-100);
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-note {
  flex: 1;
  align-self: flex-end;
  padding: 16px 20px;
  border-left: 2px solid var(--gray-500);
  margin-right: max(24px, calc((100vw - var(--container-w)) / 2));
}

.hero-note p {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--gray-300);
  margin: 0;
}

/* ---- 站内路标条 ---- */
.wayfinding-strip {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
}

.wayfinding-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.waypoint {
  padding: 12px 20px;
  border-left: 1px solid var(--gray-100);
  min-width: 0;
}

.waypoint:first-child {
  border-left: none;
  padding-left: 0;
}

.waypoint-index {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-bottom: 6px;
}

.waypoint a {
  display: block;
  font-size: 1.0625rem;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 4px;
  transition: color 0.2s ease;
}

.waypoint a:hover {
  color: var(--gray-500);
}

.waypoint p {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--gray-500);
  margin: 0;
}

/* ---- 首页主体双栏 ---- */
.home-layout {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: start;
}

.main-column {
  min-width: 0;
}

/* ---- 封面墙展示段 ---- */
.cover-preview-section {
  margin-bottom: 56px;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cover-card {
  border: 1px solid var(--gray-100);
  background: var(--white);
  transition: box-shadow 0.25s ease;
}

.cover-card:hover {
  box-shadow: 0 4px 16px rgba(10, 10, 10, 0.08);
}

.cover-figure {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--gray-100);
}

.cover-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-info {
  padding: 16px 16px 20px;
}

.cover-info h3 {
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.cover-info p {
  font-size: 0.8125rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin: 0;
}

.cover-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--white);
  background: var(--ink);
  padding: 2px 8px;
  margin-bottom: 8px;
}

/* ---- 分类速览横向条 ---- */
.category-strip-section {
  margin-bottom: 56px;
}

.category-strip-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid var(--gray-100);
  background: var(--white);
}

.category-strip-item {
  padding: 16px;
  border-left: 1px solid var(--gray-100);
  min-width: 0;
}

.category-strip-item:first-child {
  border-left: none;
}

.category-strip-item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  margin-bottom: 12px;
  background: var(--gray-100);
}

.category-strip-item h3 {
  font-size: 0.9375rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.category-strip-item p {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--gray-500);
  margin: 0;
}

.inline-link-line {
  margin-top: 16px;
  text-align: right;
}

/* ---- 编辑手记章节预告 ---- */
.picks-preview-section {
  margin-bottom: 16px;
}

.chapter-preview-list {
  border-top: 1px solid var(--gray-100);
}

.chapter-preview-item {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 18px 8px;
  border-bottom: 1px solid var(--gray-100);
}

.chapter-number {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--gray-500);
  flex-shrink: 0;
}

.chapter-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

/* ---- 首页侧栏 ---- */
.home-sidebar {
  min-width: 0;
}

.sidebar-block {
  background: var(--white);
  border: 1px solid var(--gray-100);
  padding: 24px;
}

.sidebar-block h2 {
  font-size: 1.125rem;
  font-weight: 900;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.sidebar-intro {
  font-size: 0.8125rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 20px;
}

.trend-mini-list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  counter-reset: trend;
}

.trend-mini-list li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}

.trend-mini-list li:last-child {
  border-bottom: none;
}

.trend-rank {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-300);
  line-height: 1;
  flex-shrink: 0;
}

.trend-mini-info h3 {
  font-size: 0.9375rem;
  font-weight: 900;
  margin-bottom: 2px;
}

.trend-mini-info p {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--gray-500);
  margin: 0;
}

.sidebar-block .btn-outline-dark {
  width: 100%;
}

/* ---- 首页底部阅读指南预告 ---- */
.guide-preview-strip {
  background: var(--ink);
  color: var(--white);
}

.guide-preview-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 48px 24px;
}

.guide-preview-inner h2 {
  font-size: 1.375rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.guide-preview-inner > p {
  font-size: 0.9375rem;
  color: var(--gray-300);
  max-width: 640px;
  margin-bottom: 28px;
}

.guide-quick-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.guide-quick-item {
  border-left: 2px solid var(--gray-500);
  padding-left: 16px;
}

.guide-q {
  display: block;
  font-size: 0.9375rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.guide-quick-item p {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--gray-300);
  margin: 0;
}

/* ---- 通用相关内容导航条 ---- */
.related-links {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  border-top: 1px solid var(--gray-100);
  background: var(--white);
}

.related-links-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.08em;
}

.related-links-item {
  font-size: 0.875rem;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-300);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.related-links-item:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* ============================================================
   Pages — 题材库 comics
   ============================================================ */

/* 编辑结论条 */
.editorial-note {
  background: var(--ink);
  color: var(--white);
  padding: 20px 24px;
  margin-bottom: 40px;
}

.note-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--gray-100);
}

/* 题材大类索引 */
.index-section {
  margin-bottom: 56px;
}

.index-section .section-intro {
  margin-bottom: 24px;
}

.genre-index-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.genre-index-item {
  padding: 20px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--white);
}

.genre-index-item h3 {
  font-size: 1.0625rem;
  font-weight: 900;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-100);
}

.genre-index-item p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--gray-700);
  margin: 0;
}

/* 封面大图行 */
.visual-pair {
  margin-bottom: 56px;
}

.visual-pair .section-title {
  margin-bottom: 20px;
}

.media-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 32px;
  background: var(--white);
  border: 1px solid var(--gray-100);
}

.media-block-reverse {
  direction: rtl;
}

.media-block-reverse > * {
  direction: ltr;
}

.media-figure {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--gray-100);
}

.media-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-caption {
  padding: 24px 24px 24px 0;
}

.media-block-reverse .media-caption {
  padding: 24px 0 24px 24px;
}

.media-caption h3 {
  font-size: 1.125rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.media-caption p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--gray-700);
  margin: 0;
}

/* 题材标签云 */
.tag-cloud {
  margin-bottom: 56px;
}

.tag-cloud .section-intro {
  margin-bottom: 20px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--gray-100);
}

.tag-item {
  display: inline-block;
  font-size: 0.8125rem;
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
  padding: 4px 14px;
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
}

.tag-item:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

/* 交叉阅读法 */
.cross-reading {
  margin-bottom: 48px;
}

.cross-reading .section-intro {
  margin-bottom: 20px;
}

.cross-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-100);
}

.cross-item h3 {
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.cross-item p {
  font-size: 0.875rem;
  color: var(--gray-700);
  margin: 0;
}

/* 题材库侧栏注解 */
.aside-notes {
  background: var(--white);
  border: 1px solid var(--gray-100);
  padding: 24px;
}

.aside-notes h2 {
  font-size: 1rem;
  font-weight: 900;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.aside-note {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--gray-700);
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
  margin: 0;
}

.aside-note:last-child {
  border-bottom: none;
}

/* 题材库相关阅读 */
.related-title {
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 16px;
}

.related-links ul li {
  margin-bottom: 8px;
}

.related-links ul li a {
  font-size: 0.875rem;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-300);
  padding-bottom: 2px;
}

.related-links ul li a:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* ============================================================
   Pages — 编辑手记 picks
   ============================================================ */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 48px;
  align-items: start;
}

.layout-main {
  min-width: 0;
}

/* 文章主体 */
.article-body {
  background: var(--white);
  border: 1px solid var(--gray-100);
  padding: 40px;
}

/* 章节目录横条 */
.toc-strip {
  background: var(--ink);
  color: var(--white);
  padding: 16px 20px;
  margin-bottom: 40px;
}

.toc-title {
  font-size: 0.8125rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-300);
  margin-bottom: 12px;
}

.toc-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.toc-list li {
  font-size: 0.875rem;
}

.toc-list li a {
  color: var(--gray-100);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.toc-list li a:hover {
  color: var(--white);
  border-color: var(--white);
}

/* 章节 */
.article-chapter {
  margin-bottom: 40px;
}

.chapter-heading {
  display: flex;
  align-items: baseline;
  gap: 16px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.chapter-heading .chapter-number {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-500);
}

.chapter-title {
  font-size: 1.375rem;
  font-weight: 900;
}

.chapter-lead {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-700);
  border-left: 3px solid var(--ink);
  padding-left: 16px;
  margin-bottom: 20px;
}

.article-chapter p {
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--gray-700);
  margin-bottom: 16px;
}

/* 章节插图 */
.chapter-figure {
  margin: 32px 0;
}

.chapter-figure img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  background: var(--gray-100);
}

.chapter-figure figcaption {
  margin-top: 8px;
  text-align: right;
}

/* 章节底部导航 */
.chapter-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--gray-100);
  padding-top: 20px;
  margin-top: 8px;
}

.chapter-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 20px;
  font-size: 0.875rem;
  font-weight: 700;
  border: 1px solid var(--ink);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.chapter-prev {
  background: transparent;
  color: var(--ink);
}

.chapter-prev:hover {
  background: var(--gray-100);
  color: var(--ink);
}

.chapter-toc {
  background: var(--ink);
  color: var(--white);
}

.chapter-toc:hover {
  background: var(--gray-700);
  color: var(--white);
  border-color: var(--gray-700);
}

.chapter-next {
  background: transparent;
  color: var(--ink);
}

.chapter-next:hover {
  background: var(--gray-100);
  color: var(--ink);
}

/* 编辑手记侧栏 */
.layout-aside {
  min-width: 0;
}

.aside-block {
  background: var(--white);
  border: 1px solid var(--gray-100);
  padding: 20px;
  margin-bottom: 20px;
}

.aside-block h2 {
  font-size: 0.9375rem;
  font-weight: 900;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.aside-block p {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--gray-700);
  margin: 0;
}

/* 返回题材库入口 */
.back-entry {
  background: var(--ink);
  color: var(--white);
  padding: 24px;
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.back-entry p {
  font-size: 0.9375rem;
  color: var(--gray-100);
  margin: 0;
}

.entry-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 24px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 700;
  border: 1px solid var(--white);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.entry-link:hover {
  background: var(--gray-100);
  color: var(--ink);
  border-color: var(--gray-100);
}

/* ============================================================
   Pages — 人气榜 trend
   ============================================================ */

.page-summary {
  font-size: 0.9375rem;
  color: var(--gray-500);
  margin-top: 8px;
}

/* 榜首声明 */
.rank-notice {
  background: var(--ink);
  color: var(--white);
  padding: 20px 24px;
  margin-bottom: 48px;
}

.rank-notice p {
  max-width: var(--container-w);
  margin: 0 auto;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--gray-100);
}

/* 榜单 */
.rank-list-section {
  margin-bottom: 56px;
}

.rank-list-section .section-desc {
  font-size: 0.9375rem;
  color: var(--gray-700);
}

.rank-list {
  border-top: 3px solid var(--ink);
}

.rank-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--ink);
}

.rank-item:nth-child(even) {
  direction: rtl;
}

.rank-item:nth-child(even) > * {
  direction: ltr;
}

.rank-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--gray-100);
}

.rank-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-content {
  min-width: 0;
}

.rank-number {
  display: block;
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gray-300);
  margin-bottom: 12px;
}

.rank-content h3 {
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.rank-reason {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--gray-700);
  margin-bottom: 12px;
}

.rank-fit {
  font-size: 0.8125rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* 变化摘要 */
.trend-change-section {
  margin-bottom: 56px;
}

.change-entry-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.change-entry {
  background: var(--white);
  border: 1px solid var(--gray-100);
  padding: 24px;
}

.entry-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gray-500);
  border: 1px solid var(--gray-300);
  padding: 2px 10px;
  margin-bottom: 12px;
}

.change-entry h3 {
  font-size: 1.0625rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.change-entry p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--gray-700);
  margin-bottom: 12px;
}

/* 转向题材库 */
.rank-to-comics {
  background: var(--ink);
  color: var(--white);
  padding: 32px 24px;
  text-align: center;
  margin-bottom: 40px;
}

.rank-to-comics h2 {
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.rank-to-comics p {
  font-size: 0.9375rem;
  color: var(--gray-300);
  max-width: 560px;
  margin: 0 auto 20px;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 32px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 700;
  border: 1px solid var(--white);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cta-link:hover {
  background: var(--gray-100);
  color: var(--ink);
  border-color: var(--gray-100);
}

/* ============================================================
   Pages — 阅读指南 guide
   ============================================================ */

.guide-shell {
  max-width: 860px;
  margin: 0 auto;
}

/* 快速提示 */
.guide-quick {
  margin-bottom: 56px;
}

.quick-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.quick-item {
  background: var(--white);
  border: 1px solid var(--gray-100);
  padding: 20px;
  border-top: 3px solid var(--ink);
}

.quick-index {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gray-500);
  margin-bottom: 10px;
}

.quick-content h3 {
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.quick-content p {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--gray-700);
  margin: 0;
}

/* 详细步骤 */
.guide-steps {
  margin-bottom: 56px;
}

.step-block {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-100);
  align-items: start;
}

.step-number-wrap {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--white);
}

.step-number {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
}

.step-body {
  min-width: 0;
}

.step-body h3 {
  font-size: 1.125rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.step-body p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--gray-700);
  margin-bottom: 12px;
}

.step-body p:last-child {
  margin-bottom: 0;
}

/* 阅读指南插图 */
.guide-media-break {
  margin: 40px 0;
}

.guide-media-break img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  background: var(--gray-100);
}

.guide-media-break figcaption {
  margin-top: 8px;
  text-align: right;
}

/* FAQ 折叠 */
.guide-faq {
  margin-bottom: 56px;
}

.faq-accordion {
  border-top: 1px solid var(--ink);
}

.faq-item {
  border-bottom: 1px solid var(--gray-100);
  background: var(--white);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  min-height: 44px;
  transition: background-color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--gray-500);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  background: var(--gray-100);
}

.faq-answer {
  padding: 0 20px 20px;
}

.faq-answer p {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--gray-700);
  margin: 0;
}

/* 相关阅读 */
.guide-related {
  margin-bottom: 24px;
}

.related-strip {
  background: var(--ink);
  color: var(--white);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.related-intro {
  font-size: 0.9375rem;
  color: var(--gray-100);
  margin: 0;
  max-width: 480px;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.related-links .text-link {
  color: var(--white);
  border-color: var(--white);
}

.related-links .text-link:hover {
  color: var(--gray-300);
  border-color: var(--gray-300);
}

/* ============================================================
   Pages — 版权与反馈 notice
   ============================================================ */

.notice-section {
  margin-bottom: 48px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  padding: 32px;
}

.notice-section .section-heading {
  margin-bottom: 20px;
}

.notice-section .section-heading h2 {
  font-size: 1.25rem;
}

.heading-note {
  font-size: 0.8125rem;
  color: var(--gray-500);
  max-width: 60%;
  text-align: right;
}

.notice-body p {
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--gray-700);
  margin-bottom: 16px;
}

.notice-body p:last-child {
  margin-bottom: 0;
}

.content-media {
  margin: 24px 0 0;
}

.content-media-inline {
  max-width: 680px;
}

.content-media img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  background: var(--gray-100);
}

.content-media figcaption {
  margin-top: 8px;
  text-align: right;
}

/* 更多链接 */
.notice-links {
  margin-top: 48px;
}

.more-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.more-link-item {
  background: var(--white);
  border: 1px solid var(--gray-100);
  padding: 24px;
}

.more-link-item h3 {
  font-size: 1.0625rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.more-link-item p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--gray-700);
  margin-bottom: 12px;
}

.more-link-item a {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

.more-link-item a:hover {
  color: var(--gray-500);
  border-color: var(--gray-500);
}

/* ============================================================
   Pages — 404
   ============================================================ */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 48px 24px;
}

.error-panel {
  max-width: 560px;
  text-align: center;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gray-300);
  margin-bottom: 16px;
}

.error-panel h1 {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 16px;
}

.error-lead {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.error-desc {
  font-size: 0.9375rem;
  color: var(--gray-500);
  margin-bottom: 24px;
}

.error-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.error-help {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.error-help a {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
}

.error-help a:hover {
  color: var(--gray-500);
  border-color: var(--gray-500);
}

/* ============================================================
   Responsive — 响应式断点
   ============================================================ */

/* ---- 小于 1024px ---- */
@media (max-width: 1024px) {
  .home-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .home-sidebar {
    order: 2;
  }

  .layout-shell {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .page-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .layout-aside {
    order: 2;
  }

  .category-strip-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .category-strip-item:nth-child(4) {
    border-left: none;
    border-top: 1px solid var(--gray-100);
  }

  .category-strip-item:nth-child(5) {
    border-top: 1px solid var(--gray-100);
  }

  .hero-overlay {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .hero-copy {
    flex: 1;
    max-width: 100%;
    padding-left: 0;
  }

  .hero-note {
    margin-right: 0;
    width: 100%;
  }
}

/* ---- 小于 768px ---- */
@media (max-width: 768px) {
  :root {
    --header-h: 56px;
  }

  h1 {
    font-size: 1.75rem;
  }

  .header-inner {
    padding: 0 16px;
    gap: 16px;
  }

  .brand-tag {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--gray-700);
    margin-left: 0;
    z-index: 100;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li a {
    padding: 14px 8px;
    border-bottom: 1px solid var(--gray-700);
    border-radius: 0;
  }

  .nav-list li:last-child a {
    border-bottom: none;
  }

  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .wayfinding-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .waypoint {
    border-left: none;
    border-top: 1px solid var(--gray-100);
    padding: 12px 0;
  }

  .waypoint:first-child,
  .waypoint:nth-child(2) {
    border-top: none;
  }

  .cover-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .guide-quick-list {
    grid-template-columns: 1fr;
  }

  .genre-index-list {
    grid-template-columns: 1fr;
  }

  .media-block,
  .media-block-reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .media-block-reverse > * {
    direction: ltr;
  }

  .media-caption,
  .media-block-reverse .media-caption {
    padding: 0 20px 20px;
  }

  .rank-item,
  .rank-item:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .rank-item:nth-child(even) > * {
    direction: ltr;
  }

  .change-entry-list {
    grid-template-columns: 1fr;
  }

  .quick-list {
    grid-template-columns: 1fr;
  }

  .more-links-grid {
    grid-template-columns: 1fr;
  }

  .article-body {
    padding: 24px;
  }

  .chapter-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .chapter-nav a {
    width: 100%;
  }

  .notice-section {
    padding: 24px;
  }

  .step-block {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .related-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-overlay {
    padding: 48px 16px;
  }

  .hero-copy h1 {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .inner-main {
    padding: 24px 16px 48px;
  }

  .page-header {
    padding-bottom: 20px;
    margin-bottom: 24px;
  }
}

/* ---- 小于 480px ---- */
@media (max-width: 480px) {
  .category-strip-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-strip-item:nth-child(3) {
    border-left: none;
    border-top: 1px solid var(--gray-100);
  }

  .category-strip-item:nth-child(4) {
    border-top: 1px solid var(--gray-100);
  }

  .category-strip-item:nth-child(5) {
    border-top: 1px solid var(--gray-100);
  }

  .cover-grid {
    grid-template-columns: 1fr;
  }

  .wayfinding-inner {
    grid-template-columns: 1fr;
  }

  .waypoint {
    border-top: 1px solid var(--gray-100);
  }

  .waypoint:first-child {
    border-top: none;
  }

  .waypoint:nth-child(2) {
    border-top: 1px solid var(--gray-100);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-heading {
    flex-direction: column;
    gap: 4px;
  }

  .section-note {
    max-width: 100%;
    text-align: left;
  }

  .heading-note {
    max-width: 100%;
    text-align: left;
  }

  .toc-list {
    flex-direction: column;
    gap: 8px;
  }

  .back-entry {
    flex-direction: column;
    align-items: flex-start;
  }

  .entry-link {
    width: 100%;
  }

  .rank-to-comics {
    padding: 24px 16px;
  }
}

/* ---- 减少动态效果偏好 ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- 打印样式 ---- */
@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .breadcrumb,
  .related-links,
  .back-entry,
  .chapter-nav {
    display: none !important;
  }

  body {
    background: var(--white);
    color: var(--ink);
    font-size: 12pt;
  }

  .site-main {
    padding: 0;
  }

  .inner-main {
    max-width: 100%;
    padding: 0;
  }

  .article-body,
  .notice-section {
    border: none;
    padding: 0;
  }

  .layout-shell,
  .page-layout,
  .home-layout {
    display: block;
  }

  .home-sidebar,
  .layout-aside {
    display: none;
  }

  a {
    color: var(--ink);
    text-decoration: underline;
  }

  img {
    max-width: 100%;
    page-break-inside: avoid;
  }
}
