/* ============================================================
   base — 全站基础
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 1rem;
  color: #1a1a1a;
  background-color: #f5f5f5;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #2c3e50;
  text-decoration: none;
}

a:hover {
  color: #e67e22;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.2rem;
}

p {
  margin-bottom: 1rem;
}

/* ============================================================
   layout — 全站布局骨架
   ============================================================ */

.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  position: relative;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.02em;
}

.brand-slogan {
  font-size: 0.75rem;
  color: #888888;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li a {
  display: block;
  padding: 10px 14px;
  font-size: 0.95rem;
  color: #333333;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-list li a:hover {
  background-color: #f0f0f0;
  color: #2c3e50;
}

.nav-list li a.is-current {
  background-color: #2c3e50;
  color: #ffffff;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  min-width: 44px;
  min-height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #1a1a1a;
  border-radius: 1px;
}

.site-main {
  flex: 1 0 auto;
}

.inner-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  width: 100%;
}

.site-footer {
  background-color: #1a1a1a;
  color: #cccccc;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #aaaaaa;
  margin-bottom: 0;
}

.footer-col h3 {
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #bbbbbb;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: #e67e22;
}

.footer-bottom {
  border-top: 1px solid #333333;
  padding: 20px 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: #888888;
  margin-bottom: 0;
}

/* ============================================================
   components — 通用组件
   ============================================================ */

.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background-color: #e67e22;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  min-height: 44px;
  line-height: 1.4;
}

.btn-primary:hover {
  background-color: #d35400;
  color: #ffffff;
}

.btn-secondary {
  display: inline-block;
  padding: 14px 32px;
  background-color: transparent;
  color: #2c3e50;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid #2c3e50;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
  min-height: 44px;
  line-height: 1.4;
}

.btn-secondary:hover {
  background-color: #2c3e50;
  color: #ffffff;
}

.breadcrumb {
  font-size: 0.875rem;
  color: #888888;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: #2c3e50;
}

.breadcrumb a:hover {
  color: #e67e22;
}

.breadcrumb-sep {
  color: #bbbbbb;
}

.breadcrumb-current {
  color: #666666;
}

.page-header {
  margin-bottom: 32px;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-description {
  font-size: 1rem;
  color: #666666;
  max-width: 720px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.section-desc {
  font-size: 0.95rem;
  color: #666666;
  margin-bottom: 24px;
}

.section-intro {
  font-size: 0.95rem;
  color: #666666;
  margin-bottom: 24px;
}

.link-more {
  display: inline-block;
  font-size: 0.9rem;
  color: #e67e22;
  font-weight: 600;
  padding: 8px 0;
}

.link-more:hover {
  color: #2c3e50;
}

/* ============================================================
   pages — 首页
   ============================================================ */

.home-main {
  width: 100%;
}

.hero {
  background-color: #1a1a1a;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.hero-media {
  width: 100%;
  height: 480px;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
  text-align: left;
}

.hero-content h1 {
  font-size: 2.4rem;
  color: #ffffff;
  margin-bottom: 16px;
  max-width: 720px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #cccccc;
  margin-bottom: 32px;
  max-width: 560px;
}

.category-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 24px;
}

.section-head {
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.section-head p {
  font-size: 0.95rem;
  color: #666666;
  margin-bottom: 0;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.category-tags li a {
  display: block;
  padding: 10px 20px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #333333;
  transition: all 0.2s ease;
}

.category-tags li a:hover {
  border-color: #2c3e50;
  background-color: #2c3e50;
  color: #ffffff;
}

.recent-updates {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
}

.update-group {
  margin-bottom: 32px;
}

.update-group h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #2c3e50;
  display: inline-block;
}

.update-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.update-item {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.update-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.update-item a {
  display: block;
}

.update-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.update-info {
  padding: 16px;
  display: block;
}

.update-title {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.update-date {
  font-size: 0.8rem;
  color: #999999;
}

.ranking-preview {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.ranking-item {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 12px 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.ranking-item a {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rank-num {
  font-size: 1.3rem;
  font-weight: 700;
  color: #e67e22;
  min-width: 36px;
  text-align: center;
}

.ranking-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.rank-info {
  flex: 1;
}

.rank-info strong {
  display: block;
  font-size: 1rem;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.rank-reason {
  font-size: 0.85rem;
  color: #777777;
  line-height: 1.5;
}

.guide-entry {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

.guide-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.guide-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 32px;
  border-left: 4px solid #2c3e50;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.guide-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.guide-card p {
  font-size: 0.9rem;
  color: #666666;
  margin-bottom: 16px;
}

.guide-card a {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e67e22;
}

.guide-card a:hover {
  color: #2c3e50;
}

.copyright-note {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

.copyright-note h2 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.copyright-note p {
  font-size: 0.9rem;
  color: #666666;
  max-width: 800px;
}

/* ============================================================
   pages — 分类页 toc
   ============================================================ */

.page-layout {
  width: 100%;
}

.page-layout.sidebar-left {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

.category-aside {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 24px;
  position: sticky;
  top: 88px;
}

.aside-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eeeeee;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-item a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.category-item a:hover {
  background-color: #f5f5f5;
}

.category-icon {
  font-size: 1.2rem;
  line-height: 1.4;
  flex-shrink: 0;
}

.category-name {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 2px;
}

.category-desc {
  display: block;
  font-size: 0.8rem;
  color: #888888;
  line-height: 1.4;
}

.category-content {
  min-width: 0;
}

.content-section {
  margin-bottom: 40px;
}

.content-section .section-title {
  font-size: 1.3rem;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e0e0e0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.category-card {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.category-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.category-card .card-title {
  font-size: 1rem;
  padding: 12px 16px 4px;
}

.category-card .card-desc {
  font-size: 0.85rem;
  color: #777777;
  padding: 0 16px 16px;
  margin-bottom: 0;
}

.preview-section {
  margin-top: 8px;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.preview-item {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}

.preview-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 12px;
}

.preview-name {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.preview-note {
  font-size: 0.8rem;
  color: #888888;
  margin-bottom: 0;
}

.inner-links {
  background-color: #f0f0f0;
  border-radius: 8px;
  padding: 16px 20px;
}

.inner-links p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.inner-links a {
  margin: 0 8px;
}

/* ============================================================
   pages — 阅读指南 guide
   ============================================================ */

.reading-guide-section {
  margin-bottom: 48px;
}

.reading-guide-section > .section-title {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.reading-guide-section > .section-desc {
  font-size: 0.9rem;
  color: #666666;
  margin-bottom: 24px;
}

.reading-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.step-item {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 24px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.step-number {
  display: inline-block;
  width: 36px;
  height: 36px;
  background-color: #2c3e50;
  color: #ffffff;
  border-radius: 50%;
  text-align: center;
  line-height: 36px;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.step-title {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.step-text {
  font-size: 0.9rem;
  color: #666666;
  margin-bottom: 0;
  line-height: 1.6;
}

.guide-figure {
  margin: 32px 0;
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
}

.guide-figure img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.guide-figure figcaption {
  padding: 12px 16px;
  font-size: 0.85rem;
  color: #888888;
  background-color: #f8f8f8;
}

.faq-item {
  background-color: #ffffff;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 40px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: #e67e22;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 20px 16px;
  font-size: 0.9rem;
  color: #666666;
  margin-bottom: 0;
}

.guide-entry-links {
  background-color: #f0f0f0;
  border-radius: 8px;
  padding: 24px;
}

.guide-entry-links .section-title {
  font-size: 1.2rem;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.related-links li a {
  display: inline-block;
  padding: 8px 16px;
  background-color: #ffffff;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #2c3e50;
  border: 1px solid #e0e0e0;
  transition: all 0.2s ease;
}

.related-links li a:hover {
  border-color: #2c3e50;
  background-color: #2c3e50;
  color: #ffffff;
}

.feedback-note {
  font-size: 0.85rem;
  color: #888888;
  margin-top: 16px;
  margin-bottom: 0;
}

/* ============================================================
   pages — 最近更新 update
   ============================================================ */

.page-layout.main-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

.main-content {
  min-width: 0;
}

.latest-updates {
  margin-bottom: 48px;
}

.update-timeline {
  position: relative;
  padding-left: 24px;
}

.update-timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #e0e0e0;
}

.update-item {
  position: relative;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.update-item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 24px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #e67e22;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px #e67e22;
}

.update-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.update-cover {
  width: 120px;
  height: 160px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}

.update-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.update-info {
  flex: 1;
  min-width: 0;
}

.update-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.update-meta {
  font-size: 0.8rem;
  color: #999999;
  margin-bottom: 8px;
}

.update-excerpt {
  font-size: 0.85rem;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 0;
}

.recent-adjustments {
  margin-bottom: 32px;
}

.adjustment-list {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 8px 24px;
}

.adjustment-item {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}

.adjustment-item:last-child {
  border-bottom: none;
}

.adjustment-date {
  font-size: 0.8rem;
  color: #e67e22;
  font-weight: 600;
  white-space: nowrap;
  padding-top: 2px;
}

.adjustment-text {
  font-size: 0.9rem;
  color: #555555;
  margin-bottom: 0;
}

.sidebar {
  min-width: 0;
}

.sidebar-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.sidebar-card h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eeeeee;
}

.sidebar-card p {
  font-size: 0.85rem;
  color: #666666;
  margin-bottom: 12px;
}

.sidebar-card a {
  display: inline-block;
  font-size: 0.85rem;
  color: #e67e22;
  font-weight: 600;
}

.sidebar-card a:hover {
  color: #2c3e50;
}

/* ============================================================
   pages — 作品专题 topic
   ============================================================ */

.layout-shell.sidebar-left {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

.topic-sidebar {
  position: sticky;
  top: 88px;
}

.topic-sidebar .sidebar-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.topic-sidebar .sidebar-card h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eeeeee;
}

.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-list li a {
  font-size: 0.85rem;
  color: #555555;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.sidebar-list li a:hover {
  color: #e67e22;
}

.topic-content {
  min-width: 0;
}

.topic-section {
  margin-bottom: 40px;
}

.topic-section h2 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e0e0e0;
}

.topic-section h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.topic-section p {
  font-size: 0.95rem;
  color: #444444;
  line-height: 1.8;
}

.topic-figure {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  margin: 24px 0;
}

.topic-figure img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.topic-figure figcaption {
  padding: 12px 16px;
  font-size: 0.85rem;
  color: #888888;
  background-color: #f8f8f8;
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.character-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.character-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.character-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: #2c3e50;
}

.character-card p {
  font-size: 0.85rem;
  color: #666666;
  margin-bottom: 0;
  line-height: 1.6;
}

/* ============================================================
   pages — 人气榜单 ranking
   ============================================================ */

.ranking-section {
  margin-bottom: 48px;
}

.ranking-section > .section-title {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.ranking-section > .section-intro {
  font-size: 0.9rem;
  color: #666666;
  margin-bottom: 24px;
}

.ranking-list.ranking-chapters,
.ranking-list.ranking-editor-picks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ranking-item {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.ranking-number {
  font-size: 1.4rem;
  font-weight: 700;
  color: #e67e22;
  min-width: 40px;
  text-align: center;
}

.ranking-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  background-color: #2c3e50;
  color: #ffffff;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0 8px;
}

.ranking-cover {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.ranking-info {
  flex: 1;
  min-width: 0;
}

.ranking-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.ranking-reason {
  font-size: 0.85rem;
  color: #777777;
  margin-bottom: 0;
  line-height: 1.5;
}

.ranking-related {
  background-color: #f0f0f0;
  border-radius: 8px;
  padding: 24px;
}

.ranking-related .section-title {
  font-size: 1.2rem;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.related-links a {
  display: inline-block;
  padding: 8px 16px;
  background-color: #ffffff;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #2c3e50;
  border: 1px solid #e0e0e0;
  transition: all 0.2s ease;
}

.related-links a:hover {
  border-color: #2c3e50;
  background-color: #2c3e50;
  color: #ffffff;
}

/* ============================================================
   pages — 404
   ============================================================ */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
}

.error-panel {
  text-align: center;
  max-width: 520px;
  width: 100%;
}

.error-code {
  font-size: 5rem;
  font-weight: 700;
  color: #e67e22;
  line-height: 1.2;
  margin-bottom: 16px;
}

.error-panel h1 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 1rem;
  color: #666666;
  margin-bottom: 32px;
}

.error-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.error-tip {
  font-size: 0.85rem;
  color: #999999;
  margin-bottom: 0;
}

/* ============================================================
   responsive — 响应式
   ============================================================ */

@media (max-width: 992px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .page-layout.sidebar-left {
    grid-template-columns: 220px 1fr;
    gap: 24px;
  }

  .layout-shell.sidebar-left {
    grid-template-columns: 220px 1fr;
    gap: 24px;
  }

  .page-layout.main-with-sidebar {
    grid-template-columns: 1fr 260px;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    min-height: 64px;
    padding: 0 16px;
    gap: 12px;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
    order: 2;
  }

  .brand {
    order: 1;
  }

  .site-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 12px 0;
    gap: 4px;
    border-top: 1px solid #f0f0f0;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list li a {
    padding: 12px 16px;
    width: 100%;
  }

  .hero-media {
    height: 320px;
  }

  .hero-content {
    padding: 32px 16px;
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .category-nav,
  .recent-updates,
  .ranking-preview,
  .guide-entry,
  .copyright-note {
    padding-left: 16px;
    padding-right: 16px;
  }

  .update-list {
    grid-template-columns: 1fr;
  }

  .guide-cards {
    grid-template-columns: 1fr;
  }

  .ranking-item a {
    flex-wrap: wrap;
  }

  .inner-main {
    padding: 24px 16px 48px;
  }

  .page-layout.sidebar-left {
    display: flex;
    flex-direction: column;
  }

  .category-aside {
    position: static;
    width: 100%;
    order: 2;
  }

  .category-content {
    order: 1;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .layout-shell.sidebar-left {
    display: flex;
    flex-direction: column;
  }

  .topic-sidebar {
    position: static;
    width: 100%;
    order: 2;
  }

  .topic-content {
    order: 1;
  }

  .page-layout.main-with-sidebar {
    display: flex;
    flex-direction: column;
  }

  .main-content {
    order: 1;
  }

  .sidebar {
    order: 2;
    width: 100%;
  }

  .reading-steps {
    grid-template-columns: 1fr;
  }

  .character-grid {
    grid-template-columns: 1fr;
  }

  .update-timeline {
    padding-left: 20px;
  }

  .update-item::before {
    left: -20px;
  }

  .update-cover {
    width: 90px;
    height: 120px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 16px 24px;
  }

  .footer-bottom {
    padding: 16px;
  }

  .error-main {
    padding: 48px 16px;
  }

  .error-code {
    font-size: 3.5rem;
  }
}

@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: 1fr;
  }

  .preview-grid {
    grid-template-columns: 1fr;
  }

  .ranking-item {
    flex-wrap: wrap;
    gap: 12px;
  }

  .ranking-cover {
    width: 60px;
    height: 80px;
  }

  .ranking-number {
    min-width: 28px;
    font-size: 1.1rem;
  }

  .ranking-badge {
    min-width: 32px;
    height: 32px;
    font-size: 0.7rem;
  }

  .update-item {
    flex-direction: column;
  }

  .update-cover {
    width: 100%;
    height: 180px;
  }

  .adjustment-item {
    flex-direction: column;
    gap: 4px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }
}
