/* ==========================================================================
   Base – 全局基础样式
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #2c3e50;
  background-color: #f5f6f8;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #217dbb;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: "Source Han Sans SC", "Noto Sans SC", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  font-weight: 700;
  line-height: 1.35;
  color: #2c3e50;
}

/* ==========================================================================
   Layout – 全站统一骨架
   ========================================================================== */

.site-header {
  background-color: #ffffff;
  border-bottom: 2px solid #e74c3c;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-text {
  font-family: "Source Han Sans SC", "Noto Sans SC", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #e74c3c;
  letter-spacing: 0.02em;
}

.site-nav .nav-list {
  display: flex;
  gap: 4px;
}

.site-nav .nav-list li a {
  display: block;
  padding: 8px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #2c3e50;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav .nav-list li a:hover {
  color: #e74c3c;
  background-color: #fdf0f0;
}

.site-nav .nav-list li a.is-current {
  color: #e74c3c;
  background-color: #fdf0f0;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #2c3e50;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  min-height: 60vh;
}

.inner-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.breadcrumb {
  font-size: 0.875rem;
  color: #7f8c8d;
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.breadcrumb a {
  color: #3498db;
}

.breadcrumb a:hover {
  color: #217dbb;
}

.breadcrumb-sep {
  color: #bdc3c7;
  margin: 0 2px;
}

.breadcrumb-current {
  color: #7f8c8d;
}

.page-header {
  margin-bottom: 28px;
}

.page-title {
  font-size: 2rem;
  font-weight: 800;
  color: #2c3e50;
  margin-bottom: 8px;
}

.page-description {
  font-size: 1rem;
  color: #7f8c8d;
  max-width: 720px;
  line-height: 1.7;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 16px;
  position: relative;
  padding-left: 14px;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background-color: #e74c3c;
  border-radius: 2px;
}

.section-intro,
.section-desc {
  font-size: 0.95rem;
  color: #7f8c8d;
  margin-bottom: 20px;
  max-width: 720px;
}

/* 页脚 */
.site-footer {
  background-color: #2c3e50;
  color: #bdc3c7;
  margin-top: 48px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 24px;
}

.footer-brand {
  margin-bottom: 28px;
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 460px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}

.footer-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-col ul li {
  margin-bottom: 6px;
}

.footer-col ul li a {
  font-size: 0.875rem;
  color: #bdc3c7;
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: #ffffff;
}

.footer-copy {
  border-top: 1px solid #3d566e;
  padding-top: 16px;
  font-size: 0.8125rem;
  color: #95a5a6;
}

/* ==========================================================================
   Components – 通用组件
   ========================================================================== */

/* 布局壳 */
.layout-shell {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.layout-shell.sidebar-left .main-content {
  flex: 1;
  min-width: 0;
}

.layout-shell.sidebar-left .sidebar-panel {
  width: 260px;
  flex-shrink: 0;
  order: -1;
}

.layout-shell.sidebar-right .works-area {
  flex: 1;
  min-width: 0;
}

.layout-shell.sidebar-right .world-sidebar {
  width: 280px;
  flex-shrink: 0;
}

/* 侧栏面板 */
.sidebar-panel {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e8ecef;
  padding: 20px;
}

.sidebar-inner {
  position: sticky;
  top: 84px;
}

.sidebar-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e74c3c;
}

.recommend-list li {
  margin-bottom: 12px;
}

.recommend-item a {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #2c3e50;
  padding: 8px 10px;
  background-color: #f8f9fa;
  border-radius: 4px;
  border-left: 3px solid #e74c3c;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.recommend-item a:hover {
  background-color: #fdf0f0;
  color: #e74c3c;
}

.sidebar-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: #7f8c8d;
  line-height: 1.6;
}

.sidebar-note a {
  color: #3498db;
  font-weight: 500;
}

/* 标签 */
.tag {
  display: inline-block;
  font-size: 0.75rem;
  color: #3498db;
  background-color: #ebf5fb;
  padding: 3px 10px;
  border-radius: 4px;
  margin-right: 6px;
  margin-bottom: 4px;
  font-weight: 500;
}

/* 作品卡片 */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.work-card {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e8ecef;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.work-card:hover {
  box-shadow: 0 4px 16px rgba(44, 62, 80, 0.1);
  transform: translateY(-3px);
}

.work-cover {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  position: relative;
  background-color: #eef1f3;
}

.work-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.work-card:hover .work-cover img {
  transform: scale(1.04);
}

.work-info {
  padding: 14px 16px 16px;
}

.work-title {
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 6px;
}

.work-desc {
  font-size: 0.85rem;
  color: #7f8c8d;
  line-height: 1.6;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.work-point {
  font-size: 0.8rem;
  color: #e74c3c;
  background-color: #fdf0f0;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 6px;
}

.work-tags {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
}

.rec-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  background-color: #e74c3c;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 6px;
}

.rec-reason {
  font-size: 0.85rem;
  color: #7f8c8d;
  margin-top: 6px;
  line-height: 1.5;
}

.rec-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #2c3e50;
}

/* ==========================================================================
   Pages – 首页
   ========================================================================== */

.map-hero {
  display: grid;
  grid-template-columns: 180px 1fr 280px;
  gap: 24px;
  margin-bottom: 40px;
  align-items: start;
}

.hero-media {
  grid-column: 1 / -1;
}

.hero-figure {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 6;
  background-color: #2c3e50;
}

.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-cat-index {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e8ecef;
  padding: 18px;
}

.hero-cat-index .section-title {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.index-list li {
  margin-bottom: 4px;
}

.index-list li a {
  display: block;
  padding: 6px 8px;
  font-size: 0.9rem;
  color: #2c3e50;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.index-list li a:hover {
  background-color: #fdf0f0;
  color: #e74c3c;
}

.hero-updates {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e8ecef;
  padding: 18px;
}

.hero-updates .section-title {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.update-mini-list li {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #e8ecef;
}

.update-mini-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.update-mini-list li a {
  font-size: 0.9rem;
  color: #2c3e50;
  line-height: 1.5;
  display: block;
}

.update-mini-list li a:hover {
  color: #e74c3c;
}

.cat-strip {
  margin-bottom: 40px;
}

.cat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cat-tags .tag {
  font-size: 0.9rem;
  padding: 8px 18px;
  border-radius: 6px;
  background-color: #ffffff;
  border: 1px solid #e8ecef;
  color: #2c3e50;
  transition: all 0.2s ease;
}

.cat-tags .tag:hover {
  border-color: #e74c3c;
  color: #e74c3c;
  background-color: #fdf0f0;
}

.recent-updates {
  margin-bottom: 40px;
}

.update-group {
  margin-bottom: 24px;
}

.group-date {
  font-size: 1rem;
  font-weight: 600;
  color: #e74c3c;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e8ecef;
}

.update-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.update-item {
  display: flex;
  gap: 12px;
  align-items: center;
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e8ecef;
  padding: 10px;
  transition: box-shadow 0.2s ease;
}

.update-item:hover {
  box-shadow: 0 3px 10px rgba(44, 62, 80, 0.08);
}

.cover-thumb {
  width: 56px;
  height: 74px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background-color: #eef1f3;
}

.cover-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.update-info {
  min-width: 0;
}

.update-info a {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #2c3e50;
  line-height: 1.4;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.update-info a:hover {
  color: #e74c3c;
}

.status {
  display: inline-block;
  font-size: 0.75rem;
  color: #27ae60;
  background-color: #eafaf1;
  padding: 1px 8px;
  border-radius: 3px;
}

.pop-preview {
  margin-bottom: 40px;
}

.rank-list {
  counter-reset: rank;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.rank-item {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e8ecef;
  padding: 16px;
  counter-increment: rank;
  position: relative;
  transition: box-shadow 0.2s ease;
}

.rank-item:hover {
  box-shadow: 0 4px 14px rgba(44, 62, 80, 0.08);
}

.rank-item::before {
  content: counter(rank, decimal-leading-zero);
  font-size: 1.6rem;
  font-weight: 800;
  color: #ecf0f1;
  display: block;
  margin-bottom: 6px;
  line-height: 1;
}

.rank-item a {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 6px;
}

.rank-item a:hover {
  color: #e74c3c;
}

.rank-reason {
  font-size: 0.8rem;
  color: #7f8c8d;
  line-height: 1.5;
}

.guide-entry {
  margin-bottom: 16px;
}

.guide-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.guide-card {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e8ecef;
  padding: 24px;
  transition: box-shadow 0.2s ease;
}

.guide-card:hover {
  box-shadow: 0 4px 14px rgba(44, 62, 80, 0.08);
}

.guide-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #2c3e50;
}

.guide-card p {
  font-size: 0.9rem;
  color: #7f8c8d;
  margin-bottom: 14px;
  line-height: 1.6;
}

.guide-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e74c3c;
}

.guide-link:hover {
  color: #c0392b;
}

/* ==========================================================================
   Pages – 分类页 categories
   ========================================================================== */

.page-layout.sidebar-left {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.page-layout.sidebar-left .alpha-index {
  width: 200px;
  flex-shrink: 0;
  order: -1;
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e8ecef;
  padding: 18px;
  position: sticky;
  top: 84px;
}

.alpha-title {
  font-size: 1rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e74c3c;
}

.alpha-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.alpha-list li a {
  display: block;
  min-width: 30px;
  text-align: center;
  padding: 4px 6px;
  font-size: 0.85rem;
  color: #7f8c8d;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.alpha-list li a:hover {
  background-color: #fdf0f0;
  color: #e74c3c;
}

.category-cards {
  flex: 1;
  min-width: 0;
}

.category-cards .section-title {
  font-size: 1.4rem;
}

.category-cards .section-intro {
  margin-bottom: 24px;
}

.category-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.category-card {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e8ecef;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.category-card:hover {
  box-shadow: 0 4px 16px rgba(44, 62, 80, 0.1);
  transform: translateY(-3px);
}

.card-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #eef1f3;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-card:hover .card-media img {
  transform: scale(1.03);
}

.card-body {
  padding: 16px 18px 18px;
}

.card-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 6px;
}

.card-desc {
  font-size: 0.85rem;
  color: #7f8c8d;
  line-height: 1.6;
  margin-bottom: 10px;
}

.card-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: #e74c3c;
}

.card-link:hover {
  color: #c0392b;
}

.related-links {
  margin-top: 40px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.related-item {
  display: block;
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e8ecef;
  padding: 16px;
  transition: box-shadow 0.2s ease;
}

.related-item:hover {
  box-shadow: 0 3px 12px rgba(44, 62, 80, 0.08);
}

.related-name {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 4px;
}

.related-desc {
  display: block;
  font-size: 0.8rem;
  color: #7f8c8d;
  line-height: 1.5;
}

/* ==========================================================================
   Pages – 阅读指南 guide
   ========================================================================== */

.layout-shell .guide-steps {
  flex: 1;
  min-width: 0;
}

.guide-steps .section-title {
  font-size: 1.4rem;
}

.step-list {
  counter-reset: step;
}

.step-item {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e8ecef;
  padding: 20px;
  counter-increment: step;
  position: relative;
}

.step-item::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 1.8rem;
  font-weight: 800;
  color: #ecf0f1;
  line-height: 1;
}

.step-media {
  width: 180px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-color: #eef1f3;
}

.step-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.step-content {
  flex: 1;
  min-width: 0;
  padding-top: 4px;
}

.step-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
}

.step-content p {
  font-size: 0.9rem;
  color: #7f8c8d;
  line-height: 1.7;
}

.guide-faq {
  margin-top: 40px;
}

.guide-faq .section-title {
  font-size: 1.4rem;
}

.faq-item {
  border: 1px solid #e8ecef;
  border-radius: 8px;
  background-color: #ffffff;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #2c3e50;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 40px;
  transition: background-color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: #e74c3c;
  font-weight: 400;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-item summary:hover {
  background-color: #fdf9f9;
}

.faq-item p {
  padding: 0 20px 16px;
  font-size: 0.9rem;
  color: #7f8c8d;
  line-height: 1.7;
}

/* ==========================================================================
   Pages – 恋爱韩漫 romance
   ========================================================================== */

.main-content .breadcrumb {
  margin-bottom: 16px;
}

.content-section {
  margin-bottom: 40px;
}

.works-section .section-title,
.reasons-section .section-title {
  font-size: 1.4rem;
}

.reasons-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.reason-item {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e8ecef;
  padding: 20px;
}

.reason-title {
  font-size: 1rem;
  font-weight: 600;
  color: #e74c3c;
  margin-bottom: 8px;
}

.reason-item p {
  font-size: 0.875rem;
  color: #7f8c8d;
  line-height: 1.7;
}

.more-link {
  margin-top: 20px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.more-link a {
  font-size: 0.9rem;
  font-weight: 600;
  color: #3498db;
}

.more-link a:hover {
  color: #217dbb;
}

/* ==========================================================================
   Pages – 奇幻韩漫 fantasy
   ========================================================================== */

.works-area .section-title {
  font-size: 1.4rem;
}

.world-sidebar {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e8ecef;
  padding: 20px;
}

.world-sidebar .section-title {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.world-card {
  background-color: #f8f9fa;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 14px;
  border-left: 3px solid #3498db;
}

.world-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 6px;
}

.world-card p {
  font-size: 0.85rem;
  color: #7f8c8d;
  line-height: 1.6;
}

.sidebar-links {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e8ecef;
}

.sidebar-links a {
  font-size: 0.875rem;
  color: #3498db;
  font-weight: 500;
}

.works-links {
  margin-top: 20px;
  font-size: 0.9rem;
}

.works-links a {
  color: #3498db;
  font-weight: 500;
  margin-right: 16px;
}

.works-links a:hover {
  color: #217dbb;
}

.related-recommend {
  margin-top: 40px;
}

.related-recommend .section-title {
  font-size: 1.4rem;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-list .related-item {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e8ecef;
  padding: 16px;
}

.related-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 6px;
}

.related-list .related-item p {
  font-size: 0.85rem;
  color: #7f8c8d;
  line-height: 1.6;
}

/* ==========================================================================
   Pages – 404
   ========================================================================== */

.error-main {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 40px 20px;
}

.error-box {
  text-align: center;
  max-width: 520px;
  width: 100%;
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e8ecef;
  padding: 48px 32px;
}

.error-code {
  font-size: 4rem;
  font-weight: 800;
  color: #e74c3c;
  line-height: 1;
  margin-bottom: 16px;
}

.error-box h1 {
  font-size: 1.4rem;
  color: #2c3e50;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 0.95rem;
  color: #7f8c8d;
  margin-bottom: 24px;
  line-height: 1.7;
}

.error-home {
  display: inline-block;
  background-color: #e74c3c;
  color: #ffffff;
  padding: 10px 28px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 24px;
  transition: background-color 0.2s ease;
}

.error-home:hover {
  background-color: #c0392b;
  color: #ffffff;
}

.error-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.error-links a {
  font-size: 0.875rem;
  color: #3498db;
  font-weight: 500;
}

.error-links a:hover {
  color: #217dbb;
}

/* ==========================================================================
   Responsive – 响应式
   ========================================================================== */

@media (max-width: 1024px) {
  .map-hero {
    grid-template-columns: 160px 1fr;
  }

  .hero-updates {
    grid-column: 1 / -1;
  }

  .rank-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .update-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .layout-shell.sidebar-right .world-sidebar {
    width: 240px;
  }

  .layout-shell.sidebar-left .sidebar-panel {
    width: 220px;
  }

  .page-layout.sidebar-left .alpha-index {
    width: 170px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 56px;
    padding: 0 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-bottom: 2px solid #e74c3c;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.1);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    padding: 8px 16px 16px;
    gap: 0;
  }

  .nav-list.is-open {
    display: flex;
  }

  .site-nav .nav-list li a {
    padding: 12px 8px;
    font-size: 1rem;
    border-radius: 4px;
  }

  .site-main,
  .inner-main {
    padding: 16px 16px 36px;
  }

  .map-hero {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-media {
    grid-column: 1;
  }

  .hero-figure {
    aspect-ratio: 16 / 9;
  }

  .hero-cat-index {
    order: 2;
  }

  .hero-updates {
    order: 1;
    grid-column: 1;
  }

  .cat-strip {
    margin-bottom: 28px;
  }

  .cat-tags {
    gap: 8px;
  }

  .cat-tags .tag {
    padding: 6px 14px;
    font-size: 0.85rem;
  }

  .update-list {
    grid-template-columns: 1fr;
  }

  .rank-list {
    grid-template-columns: 1fr 1fr;
  }

  .guide-cards {
    grid-template-columns: 1fr;
  }

  .layout-shell {
    flex-direction: column;
  }

  .layout-shell.sidebar-left .sidebar-panel,
  .layout-shell.sidebar-right .world-sidebar {
    width: 100%;
    order: 2;
  }

  .layout-shell.sidebar-left .main-content,
  .layout-shell.sidebar-right .works-area {
    order: 1;
  }

  .page-layout.sidebar-left {
    flex-direction: column;
  }

  .page-layout.sidebar-left .alpha-index {
    width: 100%;
    order: 2;
    position: static;
  }

  .page-layout.sidebar-left .category-cards {
    order: 1;
  }

  .category-cards {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .works-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .reasons-list {
    grid-template-columns: 1fr;
  }

  .related-grid,
  .related-list {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .step-item {
    flex-direction: column;
    gap: 14px;
  }

  .step-media {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .step-item::before {
    top: 14px;
    right: 14px;
    font-size: 1.4rem;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .footer-inner {
    padding: 28px 16px 20px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.2rem;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .category-cards,
  .works-grid,
  .related-grid,
  .related-list {
    grid-template-columns: 1fr;
  }

  .rank-list {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .hero-figure {
    aspect-ratio: 4 / 3;
  }

  .update-item {
    padding: 8px;
  }

  .cover-thumb {
    width: 48px;
    height: 64px;
  }

  .breadcrumb {
    font-size: 0.8125rem;
  }

  .error-code {
    font-size: 3rem;
  }

  .error-box {
    padding: 32px 20px;
  }
}
