/* ============================================================
   亲亲漫画 pubxnq.com - 整站样式表
   视觉方向：漫画档案终端 / 墨色近黑背景 / 薄荷绿与琥珀色点缀
   ============================================================ */

/* ============================================================
   01. Base
   ============================================================ */
:root {
  --bg-main: #141419;
  --bg-panel: #1C1F26;
  --border-line: #292E38;
  --text-main: #EDEAE2;
  --text-accent: #A2E6B6;
  --text-warn: #FFC75F;
  --text-danger: #FF8A7A;
  --text-muted: #8E9BAA;
  --radius-card: 8px;
  --font-body: system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'PingFang SC', monospace;
  --max-width: 1180px;
  --header-h: 64px;
  --gap-section: 56px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--text-accent);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover {
  color: #c8f0d4;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-mono);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-main);
}

h2 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

h3 {
  font-size: 1.05rem;
}

p {
  margin-bottom: 12px;
}

/* 聚焦可访问性 */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--text-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* 通用容器 */
.content-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   02. Layout - 全站统一骨架
   ============================================================ */

/* 页面主体骨架：header + main + footer 纵向排列 */
.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-main);
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

/* 页头 */
.site-header {
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-link:hover {
  color: var(--text-accent);
}

.brand-name::before {
  content: '[ ';
  color: var(--text-accent);
}

.brand-name::after {
  content: ' ]';
  color: var(--text-accent);
}

/* 桌面导航 */
.site-nav {
  display: block;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-list li a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.92rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  border-radius: 4px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.nav-list li a:hover {
  color: var(--text-main);
  border-color: var(--border-line);
  background: var(--bg-panel);
}

.nav-list li a.is-current {
  color: var(--text-accent);
  border-color: rgba(162, 230, 182, 0.35);
  background: rgba(162, 230, 182, 0.08);
}

/* 汉堡按钮（默认隐藏） */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border-line);
  border-radius: 6px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-main);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* 页脚 */
.site-footer {
  background: var(--bg-panel);
  border-top: 1px solid var(--border-line);
  margin-top: 56px;
}

.footer-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.footer-col p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 8px;
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 10px;
  font-weight: 600;
}

.footer-col ul li {
  margin-bottom: 4px;
}

.footer-col ul li a {
  color: var(--text-muted);
  font-size: 0.88rem;
  display: inline-block;
  padding: 2px 0;
}

.footer-col ul li a:hover {
  color: var(--text-accent);
}

.footer-boundary a {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.88rem;
  color: var(--text-accent);
}

.footer-bottom {
  border-top: 1px solid var(--border-line);
}

.footer-bottom-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-bottom p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-family: var(--font-mono);
}

.back-top {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: var(--font-mono);
  padding: 6px 10px;
  border: 1px solid var(--border-line);
  border-radius: 4px;
  display: inline-block;
}

.back-top:hover {
  color: var(--text-accent);
  border-color: var(--text-accent);
}

/* 内页统一壳层 */
.inner-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px 0;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--text-accent);
}

.breadcrumb-sep {
  color: var(--border-line);
}

.breadcrumb-current {
  color: var(--text-main);
}

/* 页面标题区 */
.page-header {
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border-line);
  padding-bottom: 20px;
}

.page-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.page-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 720px;
}

/* ============================================================
   03. Components - 通用组件
   ============================================================ */

/* 状态点 */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.status-live {
  background: var(--text-accent);
}

.status-dot.status-pause {
  background: var(--text-danger);
}

.status-dot.is-active {
  background: var(--text-accent);
}

.status-dot.is-hiatus {
  background: var(--text-danger);
}

.status-dot.is-resume {
  background: var(--text-warn);
}

/* 文字链接入口 */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-accent);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.text-link::after {
  content: '→';
  transition: transform 0.2s ease;
}

.text-link:hover::after {
  transform: translateX(3px);
}

/* 标签 chip */
.tag-chip,
.work-tag,
.trend-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid var(--border-line);
  background: var(--bg-panel);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 折叠问答 */
details.faq-fold,
details.qa-block {
  background: var(--bg-panel);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-card);
  margin-bottom: 12px;
  overflow: hidden;
}

details.faq-fold summary,
details.qa-block summary {
  cursor: pointer;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  list-style: none;
  position: relative;
  padding-right: 36px;
  transition: background-color 0.2s;
}

details.faq-fold summary::-webkit-details-marker,
details.qa-block summary::-webkit-details-marker {
  display: none;
}

details.faq-fold summary::after,
details.qa-block summary::after {
  content: '+';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--text-accent);
}

details.faq-fold[open] summary::after,
details.qa-block[open] summary::after {
  content: '−';
}

details.faq-fold summary:hover,
details.qa-block summary:hover {
  background: rgba(162, 230, 182, 0.05);
}

details.faq-fold p,
details.qa-block p {
  padding: 0 18px 14px;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
}

details.faq-fold p a,
details.qa-block p a {
  color: var(--text-accent);
  border-bottom: 1px solid rgba(162, 230, 182, 0.3);
}

/* 终端路径装饰 */
.theme-path {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-accent);
  margin-bottom: 6px;
  opacity: 0.8;
}

.theme-path::before {
  content: '$ ';
  color: var(--text-muted);
}

/* 图片容器约束 */
figure {
  margin: 0;
}

figure img {
  width: 100%;
  object-fit: cover;
}

figcaption {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  padding-top: 8px;
  text-align: center;
}

/* ============================================================
   04. Pages - 首页
   ============================================================ */

.home-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* 首屏 hero：左文右图 */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0 56px;
}

.hero-copy h1 {
  font-size: 2rem;
  line-height: 1.35;
  margin-bottom: 14px;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 28px;
  max-width: 480px;
}

.hero-entries {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-entry {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-line);
  width: fit-content;
  max-width: 100%;
  transition: border-color 0.2s, color 0.2s;
}

.hero-entry::before {
  content: '>';
  color: var(--text-accent);
  font-weight: 700;
}

.hero-entry:hover {
  color: var(--text-accent);
  border-bottom-color: var(--text-accent);
}

.hero-figure {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-line);
}

.hero-figure img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* 本周围观 */
.weekly-wall {
  padding: 40px 0;
  border-top: 1px solid var(--border-line);
}

.section-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
  font-family: var(--font-mono);
}

.weekly-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.comic-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}

.comic-card:hover {
  border-color: var(--text-accent);
  transform: translateY(-2px);
}

.comic-card img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 12px;
}

.comic-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.comic-card .tag-chip {
  align-self: flex-start;
  margin-bottom: 10px;
}

.comic-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
  flex-grow: 1;
}

.comic-card a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-accent);
  border-bottom: 1px solid transparent;
  align-self: flex-start;
}

.comic-card a:hover {
  border-bottom-color: var(--text-accent);
}

/* 连载信号摘要 */
.pulse-ticker {
  padding: 40px 0;
  border-top: 1px solid var(--border-line);
}

.ticker-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 18px;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(41, 46, 56, 0.6);
  font-size: 0.92rem;
}

.ticker-comic {
  font-family: var(--font-mono);
  color: var(--text-main);
  font-weight: 600;
  min-width: 120px;
}

.ticker-info {
  color: var(--text-muted);
  flex: 1;
  min-width: 0;
}

.ticker-time {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  white-space: nowrap;
}

/* 人气观测摘要 */
.trend-cluster {
  padding: 40px 0;
  border-top: 1px solid var(--border-line);
}

.trend-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.trend-block {
  background: var(--bg-panel);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-card);
  padding: 20px;
}

.trend-block h3 {
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--text-accent);
}

.trend-block:nth-child(2) h3 {
  color: var(--text-warn);
}

.trend-block:nth-child(3) h3 {
  color: #9bb8d6;
}

.trend-block p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.trend-block a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-accent);
  border-bottom: 1px solid transparent;
}

.trend-block a:hover {
  border-bottom-color: var(--text-accent);
}

/* 新读者问答 */
.reader-faq {
  padding: 40px 0;
  border-top: 1px solid var(--border-line);
}

/* 题材文字入口 */
.genre-bridge {
  padding: 40px 0;
  border-top: 1px solid var(--border-line);
}

.bridge-intro {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.genre-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.genre-links li a {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  border-bottom: 1px solid transparent;
  padding: 2px 0;
}

.genre-links li a:hover {
  color: var(--text-accent);
  border-bottom-color: var(--text-accent);
}

/* ============================================================
   05. Pages - 题材速查 themes.html
   ============================================================ */

/* 锚点目录行 */
.anchor-directory {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.anchor-directory a {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--border-line);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-muted);
  background: var(--bg-panel);
  transition: border-color 0.2s, color 0.2s;
}

.anchor-directory a:hover {
  color: var(--text-accent);
  border-color: var(--text-accent);
}

/* 氛围档案块 */
.theme-block {
  margin-bottom: 48px;
  padding: 28px;
  background: var(--bg-panel);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-card);
}

.theme-text h2 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.theme-text > p {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 620px;
}

.theme-works {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

/* 带封面结构的作品卡 */
.theme-works .work-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  background: var(--bg-main);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-card);
  padding: 14px;
  align-items: start;
  transition: border-color 0.2s;
}

.theme-works .work-card:hover {
  border-color: var(--text-accent);
}

.theme-works .work-cover {
  border-radius: 4px;
  overflow: hidden;
}

.theme-works .work-cover img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.theme-works .work-title {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.theme-works .work-tag {
  margin-bottom: 6px;
}

.theme-works .work-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0;
}

/* 纯文本型作品条目（冒险与悬疑区） */
.theme-works .work-card .work-note {
  grid-column: 1 / -1;
}

.theme-works .work-note h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.theme-works .work-note p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.theme-works .work-note a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-accent);
  border-bottom: 1px solid transparent;
}

.theme-works .work-note a:hover {
  border-bottom-color: var(--text-accent);
}

/* 跨题材阅读建议 */
.cross-theme-advice {
  margin-top: 40px;
  padding: 28px;
  background: var(--bg-panel);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-card);
}

.advice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 20px 0;
}

.advice-item {
  padding: 14px;
  background: var(--bg-main);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-card);
}

.advice-condition {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-warn);
  margin-bottom: 6px;
}

.advice-item p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0;
  line-height: 1.65;
}

.advice-footer {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 16px 0 20px;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.related-links a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-accent);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.related-links a:hover {
  border-bottom-color: var(--text-accent);
}

/* ============================================================
   06. Pages - 连载信号 pulse.html
   ============================================================ */

/* 信号说明区 */
.signal-intro {
  margin-bottom: 44px;
}

.signal-intro .text-block p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 720px;
}

/* 时间线布局 */
.signal-timeline {
  margin-bottom: 50px;
}

.timeline-group {
  margin-bottom: 32px;
}

.timeline-week {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-accent);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-line);
  margin-bottom: 12px;
}

.timeline-week::before {
  content: '// ';
  color: var(--text-muted);
}

.timeline-list {
  display: flex;
  flex-direction: column;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(41, 46, 56, 0.5);
}

.timeline-item .status-dot {
  margin-top: 8px;
}

.timeline-content {
  flex: 1;
  min-width: 0;
}

.timeline-title {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 2px;
}

.timeline-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.65;
  margin: 0;
}

.timeline-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
  display: block;
}

/* 重点连载追踪卡 */
.featured-track {
  margin-bottom: 50px;
}

.track-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  background: var(--bg-panel);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-card);
  padding: 28px;
  align-items: center;
}

.track-text p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.75;
  margin-bottom: 10px;
}

.track-figure {
  border-radius: var(--radius-card);
  overflow: hidden;
}

.track-figure img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-card);
}

/* 跨页引导 */
.signal-guidance {
  margin-bottom: 30px;
}

.guidance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.guidance-item {
  background: var(--bg-panel);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-card);
  padding: 18px;
}

.guidance-item h3 {
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--text-accent);
}

.guidance-item p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.65;
  margin-bottom: 6px;
}

/* ============================================================
   07. Pages - 人气观测 trending.html
   ============================================================ */

.observation-method {
  background: var(--bg-panel);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-card);
  padding: 28px;
  margin-bottom: 44px;
}

.observation-method p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.observation-method strong {
  color: var(--text-accent);
  font-family: var(--font-mono);
  font-weight: 600;
}

/* 热度区块 */
.warming-zone,
.longterm-zone,
.newseed-zone {
  margin-bottom: 44px;
}

.warming-zone > h2,
.longterm-zone > h2,
.newseed-zone > h2 {
  font-size: 1.3rem;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-line);
  margin-bottom: 18px;
}

.warming-zone > h2::before,
.longterm-zone > h2::before,
.newseed-zone > h2::before {
  content: '▲ ';
  color: var(--text-warn);
}

.longterm-zone > h2::before {
  content: '↻ ';
}

.newseed-zone > h2::before {
  content: '◆ ';
  color: var(--text-warn);
}

/* 紧凑作品条目 */
.trend-entry {
  background: var(--bg-panel);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  margin-bottom: 16px;
}

.trend-entry-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.trend-entry-head h3 {
  font-size: 1.1rem;
  margin: 0;
}

.trend-quote {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-accent);
  border-left: 2px solid var(--text-accent);
  padding-left: 14px;
  margin: 12px 0;
}

.trend-entry p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* 人气观测视觉图 */
.trending-visual {
  margin: 36px 0 44px;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-line);
}

.trending-visual img {
  aspect-ratio: 16 / 7;
  object-fit: cover;
  width: 100%;
}

/* 阅读路线 */
.route-advice {
  background: var(--bg-panel);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-card);
  padding: 28px;
}

.route-advice p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.route-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.route-links a {
  display: block;
  padding: 10px 14px;
  background: var(--bg-main);
  border: 1px solid var(--border-line);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  transition: border-color 0.2s, color 0.2s;
}

.route-links a:hover {
  border-color: var(--text-accent);
  color: var(--text-accent);
}

/* ============================================================
   08. Pages - 完本手册 complete.html
   ============================================================ */

/* 完本选读路径 */
.reading-paths {
  margin-bottom: 48px;
}

.section-intro {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.path-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-card);
  padding: 22px;
}

.path-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--text-accent);
}

.path-card h3::before {
  content: '① ';
}

.path-card.path-backward h3::before {
  content: '② ';
}

.path-card.path-fragment h3::before {
  content: '③ ';
}

.path-audience {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-warn);
  margin-bottom: 8px;
}

.path-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* 完本作品卡 */
.complete-archive {
  margin-bottom: 48px;
}

.work-entry {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  background: var(--bg-panel);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-card);
  padding: 24px;
  margin-bottom: 20px;
  align-items: start;
}

.work-entry-full {
  border-left: 3px solid var(--text-accent);
}

.work-entry-backward {
  border-left: 3px solid var(--text-warn);
}

.work-entry-fragment {
  border-left: 3px solid #9bb8d6;
}

.work-cover figure {
  border-radius: 4px;
  overflow: hidden;
}

.work-cover img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.work-info h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.work-meta {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-accent);
  margin-bottom: 12px;
}

.work-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 10px;
}

.work-closing,
.work-read-time {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.work-closing strong,
.work-read-time strong {
  color: var(--text-main);
  font-family: var(--font-mono);
  font-weight: 600;
}

/* 完本阅读小常识 */
.complete-tips {
  background: var(--bg-panel);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-card);
  padding: 28px;
  margin-bottom: 40px;
}

.complete-tips p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.75;
  margin-bottom: 10px;
}

/* 栏目入口 */
.section-links {
  background: var(--bg-panel);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-card);
  padding: 28px;
}

.section-links p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.link-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.link-list a {
  display: block;
  padding: 10px 14px;
  background: var(--bg-main);
  border: 1px solid var(--border-line);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  transition: border-color 0.2s, color 0.2s;
}

.link-list a:hover {
  border-color: var(--text-accent);
  color: var(--text-accent);
}

/* ============================================================
   09. Pages - 阅读指南 reading.html
   ============================================================ */

/* 结论摘要 */
.summary-zone {
  margin-bottom: 44px;
}

.summary-zone > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  background: var(--bg-panel);
  border-left: 3px solid var(--text-accent);
  padding: 14px 18px;
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  margin-bottom: 10px;
}

.media-block {
  margin: 24px 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-line);
}

.media-block img {
  aspect-ratio: 16 / 7;
  object-fit: cover;
  width: 100%;
}

/* 章节目录 */
.page-toc {
  background: var(--bg-panel);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-card);
  padding: 20px;
  margin-bottom: 40px;
}

.toc-title {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--text-accent);
}

.page-toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.page-toc ul a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.page-toc ul a:hover {
  color: var(--text-accent);
  border-bottom-color: var(--text-accent);
}

/* 术语对照 */
.term-section {
  margin-bottom: 44px;
}

.term-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.term-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(41, 46, 56, 0.6);
  align-items: baseline;
}

.term-item dt {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-accent);
  font-size: 0.95rem;
}

.term-item dd {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
}

/* 问答区 */
.qa-section {
  margin-bottom: 44px;
}

.qa-answer {
  padding: 0 18px 14px;
}

.qa-answer p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.qa-answer strong {
  color: var(--text-main);
  font-family: var(--font-mono);
  font-weight: 600;
}

/* 常见误区 */
.misunderstand-section {
  margin-bottom: 44px;
}

.misunderstand-item {
  background: var(--bg-panel);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-card);
  padding: 20px;
  margin-bottom: 14px;
}

.misunderstand-item h3 {
  font-size: 0.98rem;
  margin-bottom: 8px;
  color: var(--text-warn);
}

.misunderstand-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
}

/* 来源与扩展 */
.source-section {
  background: var(--bg-panel);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-card);
  padding: 24px;
}

.source-section p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 8px;
}

/* ============================================================
   10. Pages - 版权与反馈 legal.html
   ============================================================ */

.legal-intro {
  margin-bottom: 40px;
}

.intro-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
  background: var(--bg-panel);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-card);
  padding: 24px;
}

.intro-text p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

.intro-media {
  border-radius: var(--radius-card);
  overflow: hidden;
}

.intro-media img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* 边界声明 */
.boundaries {
  margin-bottom: 40px;
}

.boundary-list {
  list-style: none;
}

.boundary-list li {
  background: var(--bg-panel);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-card);
  padding: 14px 18px;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  position: relative;
  padding-left: 44px;
}

.boundary-list li::before {
  content: '✕';
  position: absolute;
  left: 16px;
  color: var(--text-danger);
  font-family: var(--font-mono);
  font-weight: 700;
}

/* 图片与条目整理原则 */
.assets-policy {
  margin-bottom: 40px;
}

.policy-block {
  background: var(--bg-panel);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-card);
  padding: 24px;
}

.policy-block p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

/* 信息核对路径 */
.correction-path {
  margin-bottom: 40px;
}

.correction-path > p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.check-list {
  list-style: none;
  counter-reset: check;
}

.check-list li {
  counter-increment: check;
  background: var(--bg-panel);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-card);
  padding: 14px 18px;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  position: relative;
  padding-left: 48px;
}

.check-list li::before {
  content: counter(check, decimal-leading-zero);
  position: absolute;
  left: 14px;
  color: var(--text-accent);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
}

.check-list li strong {
  color: var(--text-main);
  font-weight: 600;
}

.correction-path > p:last-of-type {
  margin-top: 12px;
}

/* 权利方渠道说明 */
.rights-notice {
  background: var(--bg-panel);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-card);
  padding: 24px;
  margin-bottom: 40px;
}

.rights-notice p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

/* 站内栏目送回入口 */
.inner-guide {
  background: var(--bg-panel);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-card);
  padding: 24px;
}

.inner-guide p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.inner-guide ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.inner-guide ul a {
  display: block;
  padding: 10px 14px;
  background: var(--bg-main);
  border: 1px solid var(--border-line);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  transition: border-color 0.2s, color 0.2s;
}

.inner-guide ul a:hover {
  border-color: var(--text-accent);
  color: var(--text-accent);
}

/* ============================================================
   11. Pages - 404
   ============================================================ */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-h) - 220px);
  padding: 40px 24px;
}

.error-panel {
  max-width: 560px;
  text-align: center;
  background: var(--bg-panel);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-card);
  padding: 48px 36px;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-accent);
  margin-bottom: 4px;
}

.error-panel h1 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.error-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.error-home {
  display: inline-block;
  padding: 10px 22px;
  background: var(--text-accent);
  color: var(--bg-main);
  font-family: var(--font-mono);
  font-weight: 600;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-bottom: 20px;
  transition: background-color 0.2s;
}

.error-home:hover {
  background: #c8f0d4;
  color: var(--bg-main);
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
}

.error-links a {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.error-links a:hover {
  color: var(--text-accent);
  border-bottom-color: var(--text-accent);
}

/* ============================================================
   12. Responsive
   ============================================================ */

/* 平板：≤980px */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 0 40px;
  }

  .hero-figure {
    max-width: 560px;
  }

  .weekly-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .trend-blocks {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .advice-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .guidance-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .path-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .work-entry {
    grid-template-columns: 180px 1fr;
    gap: 16px;
  }

  .track-card {
    grid-template-columns: 1fr;
  }

  .intro-layout {
    grid-template-columns: 1fr;
  }

  .route-links,
  .link-list,
  .inner-guide ul {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-shell {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-about {
    grid-column: 1 / -1;
  }
}

/* 手机：≤720px */
@media (max-width: 720px) {
  :root {
    --gap-section: 32px;
  }

  .header-shell {
    padding: 0 16px;
  }

  /* 汉堡按钮显示 */
  .nav-toggle {
    display: flex;
  }

  /* 导航抽屉：默认收起 */
  .nav-list {
    display: none;
    position: absolute;
    top: calc(var(--header-h) - 1px);
    left: 0;
    right: 0;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border-line);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    gap: 0;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li a {
    display: block;
    padding: 12px 8px;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(41, 46, 56, 0.6);
    font-size: 0.95rem;
  }

  .nav-list li:last-child a {
    border-bottom: none;
  }

  .nav-list li a.is-current {
    background: transparent;
    border: none;
  }

  /* 首页 */
  .home-main {
    padding: 0 16px;
  }

  .hero {
    padding: 24px 0 32px;
  }

  .hero-copy h1 {
    font-size: 1.5rem;
  }

  .hero-entry {
    font-size: 0.9rem;
  }

  .weekly-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .comic-card {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 0 14px;
    align-items: start;
  }

  .comic-card img {
    grid-row: 1 / span 4;
    margin-bottom: 0;
    aspect-ratio: 3 / 4;
  }

  .comic-card h3 {
    grid-column: 2;
    margin-bottom: 2px;
  }

  .comic-card .tag-chip {
    grid-column: 2;
    margin-bottom: 6px;
    width: fit-content;
  }

  .comic-card p {
    grid-column: 2;
    margin-bottom: 6px;
  }

  .comic-card a {
    grid-column: 2;
  }

  .ticker-item {
    flex-wrap: wrap;
    gap: 4px 10px;
    padding: 12px 0;
  }

  .ticker-comic {
    min-width: 0;
    flex: 1 1 100%;
  }

  .ticker-info {
    flex: 1 1 auto;
  }

  /* 内页 */
  .inner-main {
    padding: 24px 16px 0;
  }

  .page-title {
    font-size: 1.45rem;
  }

  /* 题材速查 */
  .theme-block {
    padding: 20px 16px;
  }

  .theme-works {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .advice-grid {
    grid-template-columns: 1fr;
  }

  /* 连载信号 */
  .timeline-item {
    flex-direction: column;
    gap: 6px;
    padding: 14px 0;
  }

  .timeline-item .status-dot {
    margin-top: 0;
  }

  .track-card {
    padding: 20px 16px;
  }

  .guidance-grid {
    grid-template-columns: 1fr;
  }

  /* 人气观测 */
  .observation-method {
    padding: 20px 16px;
  }

  .trend-entry {
    padding: 16px;
  }

  .trending-visual img {
    aspect-ratio: 4 / 3;
  }

  .route-links {
    grid-template-columns: 1fr 1fr;
  }

  /* 完本手册 */
  .path-card {
    padding: 18px 16px;
  }

  .work-entry {
    grid-template-columns: 1fr;
  }

  .work-cover img {
    max-width: 200px;
  }

  .link-list {
    grid-template-columns: 1fr 1fr;
  }

  /* 阅读指南 */
  .term-item {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 14px 0;
  }

  .term-item dt {
    font-size: 1rem;
  }

  .media-block img {
    aspect-ratio: 4 / 3;
  }

  /* 版权 */
  .intro-layout {
    padding: 20px 16px;
  }

  .boundary-list li,
  .check-list li {
    padding-left: 40px;
    font-size: 0.88rem;
  }

  .inner-guide ul {
    grid-template-columns: 1fr 1fr;
  }

  /* 页脚 */
  .footer-shell {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 32px 16px 20px;
  }

  .footer-about {
    grid-column: auto;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 14px 16px;
  }
}

/* 超窄屏：≤380px */
@media (max-width: 380px) {
  .brand-name {
    font-size: 1rem;
  }

  .hero-copy h1 {
    font-size: 1.3rem;
  }

  .route-links {
    grid-template-columns: 1fr;
  }

  .link-list {
    grid-template-columns: 1fr;
  }

  .inner-guide ul {
    grid-template-columns: 1fr;
  }

  .error-panel {
    padding: 32px 20px;
  }
}
