/* ============================================================
   歪歪漫画 · 全站样式表
   版本：1.0
   说明：覆盖首页、全部内页、404 页的完整样式
   ============================================================ */

/* ------------------------------------------------------------
   Base · 基础层
   ------------------------------------------------------------ */
:root {
  --bg: #f7f6f3;
  --bg-card: #ffffff;
  --bg-soft: #f0eee9;
  --text: #1f2328;
  --text-weak: #6f6f6f;
  --text-light: #8a8a8a;
  --line: #e4e1da;
  --line-light: #edeae4;
  --accent: #ff5a36;
  --accent-weak: #fff1ec;
  --tag-blue: #3b82c4;
  --tag-blue-bg: #eaf2fa;
  --tag-orange: #d97757;
  --tag-orange-bg: #f9ede7;
  --tag-green: #6a994e;
  --tag-green-bg: #edf3e8;
  --tag-purple: #7c6ac4;
  --tag-purple-bg: #f0edf9;
  --radius: 8px;
  --radius-sm: 6px;
  --container: 1200px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------
   Layout · 全站骨架容器
   ------------------------------------------------------------ */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.brand-slogan {
  font-size: 13px;
  color: var(--text-weak);
  display: none;
}

.site-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: background-color 0.2s, color 0.2s;
}

.nav-link:hover {
  background-color: var(--bg-soft);
}

.nav-link.is-current {
  color: var(--accent);
  font-weight: 600;
  background-color: var(--accent-weak);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: var(--radius-sm);
}

.nav-toggle-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.site-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.home-main {
  padding-top: 36px;
  padding-bottom: 64px;
}

.inner-main {
  padding-top: 32px;
  padding-bottom: 64px;
}

.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--line);
  margin-top: 0;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px 32px;
}

.footer-main-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-light);
  margin-bottom: 32px;
}

.footer-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-right: 4px;
}

.footer-link {
  font-size: 14px;
  color: var(--text);
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--accent);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
}

.footer-col-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
}

.footer-list li {
  margin-bottom: 8px;
}

.footer-list .footer-link {
  font-size: 14px;
  color: var(--text-weak);
}

.footer-list .footer-link:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--line-light);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
}

.copyright-text {
  font-size: 13px;
  color: var(--text-light);
}

.footer-position {
  font-size: 13px;
  color: var(--text-light);
}

/* ------------------------------------------------------------
   Components · 通用组件
   ------------------------------------------------------------ */
.section-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 8px;
}

.section-desc {
  font-size: 14px;
  color: var(--text-weak);
  margin-bottom: 20px;
  max-width: 640px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  transition: color 0.2s;
}

.text-link:hover {
  color: var(--text);
}

.genre-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  line-height: 1.5;
  border-radius: 999px;
  white-space: nowrap;
}

.genre-tag-blue {
  background: var(--tag-blue-bg);
  color: var(--tag-blue);
}

.genre-tag-green {
  background: var(--tag-green-bg);
  color: var(--tag-green);
}

.genre-tag-orange {
  background: var(--tag-orange-bg);
  color: var(--tag-orange);
}

.genre-tag-purple {
  background: var(--tag-purple-bg);
  color: var(--tag-purple);
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-weak);
}

.status-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tag-green);
}

.status-dot.status-serial::before {
  background: var(--tag-green);
}

.status-dot.status-completed::before {
  background: var(--tag-blue);
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-weak);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--text-weak);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--text-light);
}

.breadcrumb-current {
  color: var(--text);
  font-weight: 500;
}

/* 页面标题区 */
.page-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 10px;
}

.page-description {
  font-size: 15px;
  color: var(--text-weak);
  max-width: 720px;
}

/* ------------------------------------------------------------
   Components · 首页专用
   ------------------------------------------------------------ */
.hero-panel {
  margin-bottom: 64px;
}

.hero-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 12px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.hero-genre-index,
.hero-updates {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.genre-index-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.genre-index-list .genre-tag {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: var(--radius-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.genre-index-list .genre-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.update-mini-list {
  margin-bottom: 20px;
}

.update-mini-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-light);
}

.update-mini-item:last-child {
  border-bottom: none;
}

.update-thumb {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background: var(--bg-soft);
}

.update-mini-info {
  flex: 1;
  min-width: 0;
}

.update-mini-info p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 焦点作品 */
.focus-works {
  margin-bottom: 64px;
}

.focus-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 20px;
}

.focus-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.focus-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.focus-card-main .focus-cover {
  height: 320px;
}

.focus-cover {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--bg-soft);
}

.focus-info {
  padding: 18px 20px 20px;
}

.focus-info .genre-tag {
  margin-right: 8px;
}

.focus-info .status-dot {
  margin-left: 4px;
}

.focus-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  margin: 10px 0 8px;
}

.focus-reason {
  font-size: 14px;
  color: var(--text-weak);
  line-height: 1.65;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 追更进展摘要 */
.update-summary {
  margin-bottom: 64px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}

.timeline-mini {
  margin-bottom: 24px;
}

.timeline-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-light);
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-marker {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 8px;
  flex-shrink: 0;
}

.timeline-content {
  flex: 1;
  min-width: 0;
}

.update-type {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--tag-blue);
  background: var(--tag-blue-bg);
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.timeline-content p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 6px;
}

/* 人气风向榜预览 */
.ranking-preview {
  margin-bottom: 64px;
}

.ranking-list {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-light);
  transition: background-color 0.2s;
}

.ranking-item:last-child {
  border-bottom: none;
}

.ranking-item:hover {
  background: var(--bg-soft);
}

.rank-number {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-light);
  width: 32px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.ranking-item:nth-child(1) .rank-number {
  color: var(--accent);
}

.ranking-item:nth-child(2) .rank-number {
  color: var(--tag-orange);
}

.ranking-item:nth-child(3) .rank-number {
  color: var(--tag-blue);
}

.rank-thumb {
  width: 48px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--bg-soft);
  flex-shrink: 0;
}

.rank-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rank-info .genre-tag {
  align-self: flex-start;
  margin-bottom: 2px;
}

.rank-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}

.rank-reason {
  font-size: 13px;
  color: var(--text-weak);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 阅读指南三步 */
.guide-steps {
  margin-bottom: 64px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.step-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

.step-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-weak);
  line-height: 1.65;
  margin-bottom: 14px;
}

/* 版权与反馈条 */
.copyright-feedback-bar {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.boundary-statement {
  font-size: 14px;
  color: var(--text-weak);
  flex: 1;
  min-width: 240px;
}

.feedback-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.link-separator {
  width: 1px;
  height: 16px;
  background: var(--line);
}

/* ------------------------------------------------------------
   Components · 内页通用模块
   ------------------------------------------------------------ */
.related-links {
  margin-top: 56px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 32px;
}

.related-intro {
  font-size: 14px;
  color: var(--text-weak);
  margin-bottom: 20px;
}

.related-entry-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.related-entry {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, background-color 0.2s;
}

.related-entry:hover {
  border-color: var(--accent);
  background: var(--accent-weak);
}

.related-entry-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.related-entry-desc {
  font-size: 13px;
  color: var(--text-weak);
  line-height: 1.6;
}

.related-links-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-right: 16px;
}

.related-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 32px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.related-links-item {
  font-size: 14px;
  color: var(--accent);
  transition: color 0.2s;
}

.related-links-item:hover {
  color: var(--text);
}

/* ------------------------------------------------------------
   Pages · 焦点作品页
   ------------------------------------------------------------ */
.works-directory {
  margin-bottom: 56px;
}

.genre-group {
  margin-bottom: 40px;
}

.genre-group:last-child {
  margin-bottom: 0;
}

.genre-group-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 20px;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.work-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.work-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.work-cover {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--bg-soft);
}

.work-card-info {
  padding: 16px 18px 18px;
}

.work-tag {
  display: inline-block;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--tag-blue-bg);
  color: var(--tag-blue);
  margin-right: 8px;
}

.work-status {
  font-size: 12px;
  color: var(--text-weak);
}

.work-name {
  font-size: 16px;
  font-weight: 600;
  margin: 10px 0 6px;
  line-height: 1.5;
}

.work-reason {
  font-size: 13px;
  color: var(--text-weak);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.work-breakdowns {
  margin-bottom: 56px;
}

.breakdown-block {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 20px;
}

.breakdown-block:last-child {
  margin-bottom: 0;
}

.breakdown-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-light);
}

.breakdown-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}

.breakdown-content p {
  margin-bottom: 12px;
}

.breakdown-content p:last-child {
  margin-bottom: 0;
}

.breakdown-content strong {
  font-weight: 600;
  color: var(--text);
}

.breakdown-illustration {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-top: 20px;
  background: var(--bg-soft);
}

/* ------------------------------------------------------------
   Pages · 题材地图页
   ------------------------------------------------------------ */
.layout-shell.sidebar-left {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}

.genre-index {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  position: sticky;
  top: 80px;
}

.index-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-light);
}

.genre-index .genre-index-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.genre-anchor-link {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: background-color 0.2s, color 0.2s;
}

.genre-anchor-link:hover {
  background: var(--bg-soft);
  color: var(--accent);
}

.genre-content-panel {
  min-width: 0;
}

.genre-overview {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 24px;
}

.genre-overview p {
  font-size: 14px;
  color: var(--text-weak);
  line-height: 1.7;
}

.genre-block {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
  scroll-margin-top: 80px;
}

.genre-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
}

.genre-intro p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 16px;
}

.genre-figure {
  margin: 20px 0;
}

.genre-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}

.genre-figure figcaption {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 8px;
  line-height: 1.6;
}

.representative-works {
  margin: 20px 0;
}

.sub-block-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.work-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-light);
  font-size: 14px;
  color: var(--text);
}

.work-list li:last-child {
  border-bottom: none;
}

.work-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.reading-tip {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-weak);
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 20px 0;
}

.reading-tip strong {
  color: var(--text);
  font-weight: 600;
}

.adjacent-genres {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line-light);
}

.adjacent-label {
  font-size: 13px;
  color: var(--text-light);
}

.adjacent-link {
  font-size: 13px;
  color: var(--accent);
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.2s, background-color 0.2s;
}

.adjacent-link:hover {
  border-color: var(--accent);
  background: var(--accent-weak);
}

/* ------------------------------------------------------------
   Pages · 追更进展页
   ------------------------------------------------------------ */
.update-categories {
  margin-bottom: 40px;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.category-tag {
  display: inline-block;
  padding: 6px 16px;
  font-size: 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.tag-genre {
  background: var(--tag-blue-bg);
  color: var(--tag-blue);
}

.tag-status {
  background: var(--tag-green-bg);
  color: var(--tag-green);
}

.tag-content {
  background: var(--tag-orange-bg);
  color: var(--tag-orange);
}

.category-note {
  font-size: 13px;
  color: var(--text-light);
}

.update-timeline {
  margin-bottom: 48px;
}

.timeline-intro {
  font-size: 14px;
  color: var(--text-weak);
  margin-bottom: 24px;
}

.timeline-list {
  position: relative;
}

.timeline-list::before {
  content: "";
  position: absolute;
  left: 120px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  padding: 0 0 24px 0;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  align-items: start;
}

.timeline-media {
  width: 96px;
}

.timeline-thumb {
  width: 96px;
  height: 128px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}

.timeline-body {
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.timeline-type {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.timeline-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.5;
}

.timeline-desc {
  font-size: 14px;
  color: var(--text-weak);
  line-height: 1.65;
  margin-bottom: 10px;
}

.timeline-link {
  font-size: 13px;
  color: var(--accent);
  transition: color 0.2s;
}

.timeline-link:hover {
  color: var(--text);
}

.status-explanation {
  margin-bottom: 48px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}

.status-intro {
  font-size: 14px;
  color: var(--text-weak);
  margin-bottom: 24px;
}

.status-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.status-item {
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.status-term {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.status-desc {
  font-size: 14px;
  color: var(--text-weak);
  line-height: 1.65;
}

.related-link-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.related-link {
  display: block;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  transition: border-color 0.2s, background-color 0.2s;
}

.related-link:hover {
  border-color: var(--accent);
  background: var(--accent-weak);
}

/* ------------------------------------------------------------
   Pages · 人气风向页
   ------------------------------------------------------------ */
.ranking-methodology {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 40px;
}

.methodology-text {
  font-size: 14px;
  color: var(--text-weak);
  line-height: 1.75;
}

.ranking-list-section {
  margin-bottom: 48px;
}

.ranking-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: box-shadow 0.2s, transform 0.2s;
}

.ranking-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.rank-cover {
  width: 56px;
  height: 76px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--bg-soft);
  flex-shrink: 0;
}

.rank-info .rank-title {
  font-size: 16px;
}

.rank-info .genre-tag {
  align-self: flex-start;
}

.rank-link {
  font-size: 13px;
  color: var(--accent);
  align-self: flex-end;
  transition: color 0.2s;
}

.rank-link:hover {
  color: var(--text);
}

.trending-tags-section {
  margin-bottom: 48px;
}

.tags-intro {
  font-size: 14px;
  color: var(--text-weak);
  margin-bottom: 20px;
}

.tag-cloud-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud-link {
  display: inline-block;
  padding: 6px 16px;
  font-size: 13px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--text);
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

.tag-cloud-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-weak);
}

.related-text {
  font-size: 14px;
  color: var(--text-weak);
  margin-bottom: 20px;
}

.related-links-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* ------------------------------------------------------------
   Pages · 阅读指南页
   ------------------------------------------------------------ */
.guide-path-section {
  margin-bottom: 56px;
}

.section-intro {
  font-size: 14px;
  color: var(--text-weak);
  margin-bottom: 24px;
}

.path-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.path-step {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.path-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.step-media {
  width: 100%;
}

.step-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: var(--bg-soft);
}

.step-body {
  padding: 20px 22px 24px;
}

.step-body .step-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-text {
  font-size: 14px;
  color: var(--text-weak);
  line-height: 1.7;
  margin-bottom: 10px;
}

.step-text a {
  color: var(--accent);
  font-weight: 500;
}

.step-text a:hover {
  color: var(--text);
}

.step-tip {
  font-size: 13px;
  color: var(--text-light);
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  line-height: 1.6;
}

.guide-columns-section {
  margin-bottom: 56px;
}

.column-roles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.role-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s, background-color 0.2s;
}

.role-item:hover {
  border-color: var(--accent);
  background: var(--accent-weak);
}

.role-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.role-text {
  font-size: 14px;
  color: var(--text-weak);
  line-height: 1.7;
  margin-bottom: 12px;
}

.role-link {
  font-size: 13px;
  color: var(--accent);
  transition: color 0.2s;
}

.role-link:hover {
  color: var(--text);
}

.guide-boundary-note {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}

.boundary-note-inner {
  max-width: 720px;
}

.boundary-note-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.boundary-note-text {
  font-size: 14px;
  color: var(--text-weak);
  line-height: 1.75;
  margin-bottom: 16px;
}

.boundary-note-link {
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
  transition: color 0.2s;
}

.boundary-note-link:hover {
  color: var(--text);
}

/* ------------------------------------------------------------
   Pages · 版权与反馈页
   ------------------------------------------------------------ */
.boundary-section,
.principle-section,
.process-section {
  margin-bottom: 56px;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading .section-desc {
  margin-bottom: 0;
}

.boundary-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.boundary-visual {
  width: 100%;
  height: 100%;
  min-height: 200px;
}

.boundary-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg-soft);
}

.boundary-list-wrap {
  padding: 32px;
}

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.boundary-item {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-light);
}

.boundary-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.item-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.item-text {
  font-size: 14px;
  color: var(--text-weak);
  line-height: 1.7;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.principle-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.principle-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.principle-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}

.principle-card .card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.principle-card .card-text {
  font-size: 14px;
  color: var(--text-weak);
  line-height: 1.7;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.process-step {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}

.process-step .step-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.process-step .step-text {
  font-size: 14px;
  color: var(--text-weak);
  line-height: 1.7;
}

.related-inner {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.related-text {
  font-size: 14px;
  color: var(--text-weak);
  flex: 1;
  min-width: 200px;
}

.related-buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.btn-link {
  display: inline-block;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--text);
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.btn-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-weak);
}

/* ------------------------------------------------------------
   Pages · 404 页
   ------------------------------------------------------------ */
.error-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 80px 24px;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-wrap {
  text-align: center;
  max-width: 480px;
}

.error-code {
  font-size: 64px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

.error-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: var(--text-weak);
  line-height: 1.7;
  margin-bottom: 28px;
}

.error-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.error-btn {
  display: inline-block;
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  transition: background-color 0.2s;
}

.error-btn:hover {
  background: var(--text);
}

.error-link {
  display: inline-block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text-weak);
  transition: color 0.2s;
}

.error-link:hover {
  color: var(--accent);
}

/* ------------------------------------------------------------
   Responsive · 响应式
   ------------------------------------------------------------ */
@media (min-width: 1025px) {
  .brand-slogan {
    display: inline;
  }
}

@media (max-width: 1024px) {
  .header-inner {
    padding: 12px 20px;
  }

  .site-main,
  .footer-inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .focus-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .focus-card-main {
    grid-column: 1 / -1;
  }

  .focus-card-main .focus-cover {
    height: 280px;
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .layout-shell.sidebar-left {
    grid-template-columns: 200px 1fr;
    gap: 24px;
  }

  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline-list::before {
    left: 96px;
  }

  .timeline-card {
    grid-template-columns: 72px 1fr;
    gap: 20px;
  }

  .timeline-media {
    width: 72px;
  }

  .timeline-thumb {
    width: 72px;
    height: 96px;
  }

  .boundary-card {
    grid-template-columns: 220px 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    order: 3;
    width: 100%;
  }

  .site-nav .nav-list {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-top: 8px;
    border-top: 1px solid var(--line-light);
    margin-top: 8px;
  }

  .site-nav .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    padding: 12px 8px;
    font-size: 15px;
  }

  .nav-link.is-current {
    background: transparent;
  }

  .hero-panel {
    margin-bottom: 48px;
  }

  .hero-genre-index,
  .hero-updates {
    padding: 20px;
  }

  .focus-works,
  .update-summary,
  .ranking-preview,
  .guide-steps {
    margin-bottom: 48px;
  }

  .focus-grid {
    grid-template-columns: 1fr;
  }

  .focus-card-main {
    grid-column: auto;
  }

  .focus-card-main .focus-cover {
    height: 220px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .step-item {
    padding: 24px 20px;
  }

  .copyright-feedback-bar {
    padding: 24px 20px;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-main-links {
    gap: 8px 16px;
  }

  .page-header {
    margin-bottom: 32px;
  }

  .layout-shell.sidebar-left {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .genre-index {
    position: static;
    order: 2;
  }

  .genre-index .genre-index-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .genre-anchor-link {
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13px;
  }

  .genre-content-panel {
    order: 1;
  }

  .works-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .work-cover {
    height: 200px;
  }

  .breakdown-block {
    padding: 24px 20px;
  }

  .timeline-list::before {
    display: none;
  }

  .timeline-card {
    grid-template-columns: 64px 1fr;
    gap: 16px;
  }

  .timeline-media {
    width: 64px;
  }

  .timeline-thumb {
    width: 64px;
    height: 88px;
  }

  .timeline-body {
    padding: 16px 18px;
  }

  .status-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .related-link-list {
    grid-template-columns: 1fr;
  }

  .ranking-card {
    gap: 16px;
    padding: 14px 16px;
  }

  .rank-cover {
    width: 48px;
    height: 64px;
  }

  .related-links-group {
    grid-template-columns: 1fr;
  }

  .path-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .column-roles {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .boundary-card {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .boundary-visual {
    min-height: 160px;
  }

  .boundary-visual img {
    height: 160px;
  }

  .boundary-list-wrap {
    padding: 24px 20px;
  }

  .principle-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .related-entry-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .related-links {
    padding: 16px 20px;
  }

  .error-main {
    padding: 48px 20px;
  }

  .error-code {
    font-size: 48px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .header-inner {
    padding: 10px 16px;
    gap: 16px;
  }

  .brand-name {
    font-size: 20px;
  }

  .site-main,
  .footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .home-main {
    padding-top: 24px;
  }

  .inner-main {
    padding-top: 24px;
  }

  .hero-title {
    font-size: 20px;
  }

  .section-title {
    font-size: 18px;
  }

  .hero-genre-index,
  .hero-updates {
    padding: 16px;
  }

  .update-thumb {
    width: 56px;
    height: 76px;
  }

  .update-mini-item {
    gap: 12px;
  }

  .focus-info {
    padding: 14px 16px 16px;
  }

  .focus-cover,
  .focus-card-main .focus-cover {
    height: 180px;
  }

  .update-summary {
    padding: 20px 16px;
  }

  .timeline-item {
    gap: 12px;
  }

  .ranking-item {
    padding: 12px 14px;
    gap: 12px;
  }

  .rank-number {
    width: 24px;
    font-size: 16px;
  }

  .rank-thumb {
    width: 40px;
    height: 54px;
  }

  .rank-reason {
    display: none;
  }

  .copyright-feedback-bar {
    padding: 20px 16px;
  }

  .feedback-links {
    width: 100%;
    flex-wrap: wrap;
  }

  .breadcrumb {
    font-size: 12px;
    margin-bottom: 16px;
  }

  .page-title {
    font-size: 20px;
  }

  .page-description {
    font-size: 14px;
  }

  .genre-block {
    padding: 20px 16px;
  }

  .genre-image {
    height: 160px;
  }

  .work-card-info {
    padding: 14px 14px 16px;
  }

  .work-cover {
    height: 180px;
  }

  .breakdown-block {
    padding: 20px 16px;
  }

  .timeline-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .timeline-media {
    width: 100%;
  }

  .timeline-thumb {
    width: 100%;
    height: 160px;
  }

  .timeline-body {
    padding: 16px;
  }

  .ranking-methodology {
    padding: 20px 16px;
  }

  .ranking-card {
    flex-wrap: wrap;
  }

  .rank-info {
    flex: 1 1 calc(100% - 80px);
  }

  .rank-link {
    margin-left: 76px;
  }

  .path-step .step-image {
    height: 140px;
  }

  .related-inner {
    padding: 20px 16px;
  }

  .related-buttons {
    width: 100%;
  }

  .btn-link {
    flex: 1;
    text-align: center;
  }

  .error-wrap {
    text-align: center;
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .error-btn,
  .error-link {
    text-align: center;
  }
}
