/* ============================================================
   age动漫在线免费观看 - 全站样式表
   视觉方向：城市地图风（区域色标、列表面板、路线提示）
   配色：主色 #2C3E50 / 辅助色 #E67E22 / 背景 #F5F6FA
   ============================================================ */

/* ============================================================
   Base - 基础样式
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #333333;
  background-color: #f5f6fa;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #e67e22;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  font-weight: 600;
  line-height: 1.35;
  color: #2c3e50;
}

h1 {
  font-size: 30px;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 17px;
}

h4 {
  font-size: 15px;
}

p {
  margin-bottom: 0;
}

/* ============================================================
   Layout - 全站布局骨架
   ============================================================ */

/* 页头 */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e8eaf0;
  position: relative;
  z-index: 100;
}

.header-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  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: 20px;
  font-weight: 700;
  color: #2c3e50;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-link:hover .brand-name {
  color: #e67e22;
}

.brand-slogan {
  font-size: 12px;
  color: #8a94a6;
  white-space: nowrap;
}

/* 主导航 */
.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li a {
  display: block;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: #4a5568;
  border-radius: 4px;
  transition: color 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.nav-list li a:hover {
  color: #e67e22;
  background-color: #fdf3ea;
}

.nav-list li a.is-current {
  color: #e67e22;
  background-color: #fdf3ea;
  font-weight: 600;
}

/* 汉堡按钮 - 桌面隐藏 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #2c3e50;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* 主内容区 */
.site-main {
  min-height: 480px;
}

.home-main {
  background-color: #f5f6fa;
}

.inner-main {
  background-color: #f5f6fa;
  padding: 32px 0 56px;
}

/* 通用容器 */
.layout-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 页脚 */
.site-footer {
  background-color: #2c3e50;
  color: #c3ccd8;
  padding: 48px 0 0;
}

.footer-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-brand {
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-sitename {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 14px;
  color: #9aa7b8;
  max-width: 560px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 32px 0;
}

.footer-group h4 {
  color: #ffffff;
  font-size: 15px;
  margin-bottom: 14px;
}

.footer-group ul li {
  margin-bottom: 8px;
}

.footer-group ul li a {
  color: #9aa7b8;
  font-size: 14px;
}

.footer-group ul li a:hover {
  color: #e67e22;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: #7e8b9d;
}

/* ============================================================
   Components - 通用组件
   ============================================================ */

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #8a94a6;
  margin-bottom: 24px;
}

.breadcrumb a {
  color: #6b7688;
}

.breadcrumb a:hover {
  color: #e67e22;
}

.breadcrumb-sep {
  color: #b8c0cc;
  font-size: 12px;
}

.breadcrumb-current {
  color: #2c3e50;
  font-weight: 500;
}

/* 页面标题区 */
.page-header {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e8eaf0;
}

.page-title {
  font-size: 30px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 12px;
}

.page-description {
  font-size: 15px;
  line-height: 1.7;
  color: #5a6577;
  max-width: 720px;
}

/* 区块标题 */
.section-title {
  font-size: 22px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 20px;
  position: relative;
  padding-left: 14px;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 2px;
  background-color: #e67e22;
}

.section-intro {
  font-size: 15px;
  line-height: 1.7;
  color: #5a6577;
  margin-bottom: 24px;
  max-width: 720px;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 28px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background-color: #e67e22;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #d4690f;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
}

.btn-ghost {
  background-color: transparent;
  color: #2c3e50;
  border: 1px solid #ccd3de;
}

.btn-ghost:hover {
  border-color: #e67e22;
  color: #e67e22;
  background-color: #fdf3ea;
}

/* 侧栏卡片 */
.sidebar-card,
.side-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(44, 62, 80, 0.06);
  margin-bottom: 20px;
}

.sidebar-card h3,
.side-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef0f4;
}

.sidebar-links li,
.side-links li {
  margin-bottom: 10px;
}

.sidebar-links li a,
.side-links li a {
  font-size: 14px;
  color: #5a6577;
  display: block;
  padding: 4px 0;
}

.sidebar-links li a:hover,
.side-links li a:hover {
  color: #e67e22;
}

/* ============================================================
   Pages - 首页
   ============================================================ */

/* 首屏 */
.hero-section {
  background-color: #2c3e50;
  padding: 64px 0;
}

.hero-section .layout-shell {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-copy h1 {
  font-size: 34px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 16px;
  line-height: 1.7;
  color: #b8c8d8;
  margin-bottom: 28px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-section .btn-ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.hero-section .btn-ghost:hover {
  border-color: #e67e22;
  background-color: rgba(230, 126, 34, 0.15);
  color: #ffffff;
}

.hero-figure {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.hero-figure img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

/* 题材导航带 */
.genre-strip {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 0;
}

.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.genre-tag {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 20px;
  background-color: #ffffff;
  border: 1px solid #e0e4ec;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #4a5568;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.genre-tag:hover {
  border-color: #e67e22;
  color: #e67e22;
  background-color: #fdf3ea;
}

/* 最近更新 */
.recent-updates {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 0;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-heading .section-title {
  margin-bottom: 0;
}

.section-more {
  font-size: 14px;
  color: #e67e22;
  font-weight: 500;
}

.section-more:hover {
  color: #d4690f;
}

.update-group {
  margin-bottom: 28px;
}

.update-date {
  font-size: 14px;
  font-weight: 600;
  color: #8a94a6;
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 3px solid #e67e22;
}

.update-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.update-item {
  display: flex;
  gap: 14px;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 1px 3px rgba(44, 62, 80, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.update-item:hover {
  box-shadow: 0 4px 12px rgba(44, 62, 80, 0.1);
  transform: translateY(-2px);
}

.update-item img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.update-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  flex: 1;
}

.update-title {
  font-size: 15px;
  font-weight: 600;
  color: #2c3e50;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.update-title:hover {
  color: #e67e22;
}

.update-tag {
  display: inline-block;
  font-size: 12px;
  color: #e67e22;
  background-color: #fdf3ea;
  padding: 2px 8px;
  border-radius: 3px;
  width: fit-content;
}

.update-status {
  font-size: 12px;
  color: #8a94a6;
}

/* 人气榜单预览 */
.popular-preview {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 0;
}

.rank-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.rank-item {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(44, 62, 80, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
}

.rank-item:hover {
  box-shadow: 0 4px 12px rgba(44, 62, 80, 0.1);
  transform: translateY(-2px);
}

.rank-number {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #2c3e50;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 4px;
  z-index: 2;
}

.rank-item:nth-child(2) .rank-number {
  background-color: #e67e22;
}

.rank-item:nth-child(3) .rank-number {
  background-color: #8a94a6;
}

.rank-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 12px;
}

.rank-info {
  min-width: 0;
}

.rank-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-title:hover {
  color: #e67e22;
}

.rank-reason {
  font-size: 13px;
  line-height: 1.5;
  color: #8a94a6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 阅读指南入口 */
.guide-entry {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 56px;
}

.guide-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.guide-card {
  display: block;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 1px 3px rgba(44, 62, 80, 0.06);
  border-left: 4px solid #e67e22;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.guide-card:hover {
  box-shadow: 0 4px 16px rgba(44, 62, 80, 0.1);
  transform: translateY(-2px);
}

.guide-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
}

.guide-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #5a6577;
}

/* ============================================================
   Pages - 内页通用布局
   ============================================================ */

/* 分类页 */
.page-categories .layout-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.category-tags-section {
  margin-bottom: 40px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-item {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 6px 18px;
  background-color: #ffffff;
  border: 1px solid #e0e4ec;
  border-radius: 6px;
  font-size: 14px;
  color: #4a5568;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.tag-item:hover {
  border-color: #e67e22;
  color: #e67e22;
  background-color: #fdf3ea;
}

.category-desc-section {
  margin-bottom: 40px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.category-card {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(44, 62, 80, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.category-card:hover {
  box-shadow: 0 4px 12px rgba(44, 62, 80, 0.1);
  transform: translateY(-2px);
}

.category-card-media img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.category-card-body {
  padding: 20px;
}

.category-card-body h3 {
  font-size: 17px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
}

.category-card-body p {
  font-size: 14px;
  line-height: 1.6;
  color: #5a6577;
  margin-bottom: 12px;
}

.category-card-body a {
  font-size: 14px;
  font-weight: 500;
  color: #e67e22;
}

.category-card-body a:hover {
  color: #d4690f;
}

.cross-category-guide {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 1px 3px rgba(44, 62, 80, 0.06);
}

.cross-category-guide p {
  font-size: 15px;
  line-height: 1.7;
  color: #5a6577;
}

.cross-category-guide a {
  color: #e67e22;
  font-weight: 500;
}

.cross-category-guide a:hover {
  color: #d4690f;
}

/* 指南页与恋爱页 - 主内容 + 侧栏 */
.page-guide .page-layout,
.page-romance .page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

.main-content {
  min-width: 0;
}

/* 指南页 */
.guide-section {
  margin-bottom: 40px;
}

.guide-figure {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
}

.guide-figure img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.guide-figure figcaption {
  background-color: #ffffff;
  padding: 12px 16px;
  font-size: 13px;
  color: #8a94a6;
  border: 1px solid #e8eaf0;
  border-top: none;
  border-radius: 0 0 8px 8px;
}

.step-list {
  display: grid;
  gap: 16px;
}

.step-item {
  display: flex;
  gap: 16px;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(44, 62, 80, 0.06);
}

.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #2c3e50;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  border-radius: 50%;
}

.step-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 6px;
}

.step-content p {
  font-size: 14px;
  line-height: 1.6;
  color: #5a6577;
}

.tip-list {
  display: grid;
  gap: 16px;
}

.tip-item {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px 24px;
  box-shadow: 0 1px 3px rgba(44, 62, 80, 0.06);
  border-left: 3px solid #e67e22;
}

.tip-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 6px;
}

.tip-item p {
  font-size: 14px;
  line-height: 1.6;
  color: #5a6577;
}

/* 相关链接 */
.related-links {
  margin-top: 40px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.related-card {
  display: block;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(44, 62, 80, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.related-card:hover {
  box-shadow: 0 4px 12px rgba(44, 62, 80, 0.1);
  transform: translateY(-2px);
}

.related-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 6px;
}

.related-card p {
  font-size: 13px;
  line-height: 1.5;
  color: #8a94a6;
}

/* 恋爱漫画页 */
.romance-list-section {
  margin-bottom: 40px;
}

.romance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.comic-card {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(44, 62, 80, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.comic-card:hover {
  box-shadow: 0 4px 12px rgba(44, 62, 80, 0.1);
  transform: translateY(-2px);
}

.comic-cover {
  overflow: hidden;
}

.comic-cover img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.comic-info {
  padding: 16px;
}

.comic-title {
  font-size: 15px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.comic-title:hover {
  color: #e67e22;
}

.comic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-block;
  font-size: 12px;
  color: #e67e22;
  background-color: #fdf3ea;
  padding: 2px 8px;
  border-radius: 3px;
}

.comic-desc {
  font-size: 13px;
  line-height: 1.5;
  color: #8a94a6;
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 恋爱漫画特点分析 */
.romance-analysis-section {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 1px 3px rgba(44, 62, 80, 0.06);
}

.analysis-list {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.analysis-item {
  padding: 16px 0;
  border-bottom: 1px solid #eef0f4;
}

.analysis-item:last-child {
  border-bottom: none;
}

.analysis-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 6px;
}

.analysis-item p {
  font-size: 14px;
  line-height: 1.6;
  color: #5a6577;
}

.related-link {
  margin-top: 20px;
  font-size: 14px;
}

.related-link a {
  color: #e67e22;
  font-weight: 500;
}

.related-link a:hover {
  color: #d4690f;
}

/* 科幻漫画页 */
.page-sci-fi .page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

.content-main {
  min-width: 0;
}

.sci-fi-list-section {
  margin-bottom: 40px;
}

.comic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* 科幻子分类 */
.sci-fi-subgenre-section {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 1px 3px rgba(44, 62, 80, 0.06);
  margin-bottom: 40px;
}

.subgenre-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.subgenre-item {
  background-color: #f8f9fc;
  border-radius: 8px;
  padding: 20px;
  border-left: 3px solid #e67e22;
}

.subgenre-item h3 {
  font-size: 15px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 6px;
}

.subgenre-item p {
  font-size: 14px;
  line-height: 1.6;
  color: #5a6577;
}

.related-links-section {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px 24px;
  box-shadow: 0 1px 3px rgba(44, 62, 80, 0.06);
}

.related-links-section p {
  font-size: 14px;
  line-height: 1.6;
}

.related-links-section a {
  color: #e67e22;
  font-weight: 500;
}

.related-links-section a:hover {
  color: #d4690f;
}

/* ============================================================
   Pages - 404
   ============================================================ */

.site-error {
  background-color: #f5f6fa;
}

.error-main {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.error-panel {
  max-width: 560px;
  text-align: center;
}

.error-code {
  font-size: 80px;
  font-weight: 700;
  color: #e67e22;
  line-height: 1;
  margin-bottom: 16px;
}

.error-panel h1 {
  font-size: 24px;
  color: #2c3e50;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  line-height: 1.7;
  color: #5a6577;
  margin-bottom: 28px;
}

.error-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.btn-back-home,
.btn-browse-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-back-home {
  background-color: #e67e22;
  color: #ffffff;
}

.btn-back-home:hover {
  background-color: #d4690f;
  color: #ffffff;
}

.btn-browse-category {
  background-color: transparent;
  color: #2c3e50;
  border: 1px solid #ccd3de;
}

.btn-browse-category:hover {
  border-color: #e67e22;
  color: #e67e22;
}

.error-help {
  font-size: 14px;
  color: #8a94a6;
}

.error-help a {
  color: #e67e22;
  font-weight: 500;
}

.error-help a:hover {
  color: #d4690f;
}

/* ============================================================
   Responsive - 响应式
   ============================================================ */

/* 平板 */
@media (max-width: 1024px) {
  .hero-section .layout-shell {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-figure img {
    height: 260px;
  }

  .update-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .rank-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .romance-grid,
  .comic-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-guide .page-layout,
  .page-romance .page-layout,
  .page-sci-fi .page-layout {
    grid-template-columns: 1fr;
  }

  .guide-sidebar,
  .sidebar,
  .content-side {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .sidebar-card,
  .side-card {
    margin-bottom: 0;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 手机 */
@media (max-width: 768px) {
  .header-shell {
    height: auto;
    min-height: 56px;
    padding: 8px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .brand-slogan {
    display: none;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .site-nav {
    width: 100%;
    order: 3;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 8px 0;
    gap: 0;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list li a {
    padding: 12px 8px;
    border-bottom: 1px solid #f0f2f6;
    border-radius: 0;
  }

  .nav-list li:last-child a {
    border-bottom: none;
  }

  .layout-shell {
    padding: 0 16px;
  }

  .inner-main {
    padding: 24px 0 40px;
  }

  .page-title {
    font-size: 24px;
  }

  .page-description {
    font-size: 14px;
  }

  .section-title {
    font-size: 19px;
  }

  .hero-section {
    padding: 40px 0;
  }

  .hero-copy h1 {
    font-size: 26px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-figure img {
    height: 200px;
  }

  .genre-strip,
  .recent-updates,
  .popular-preview,
  .guide-entry {
    padding-left: 16px;
    padding-right: 16px;
  }

  .genre-strip {
    padding-top: 36px;
  }

  .recent-updates,
  .popular-preview {
    padding-top: 36px;
  }

  .guide-entry {
    padding-bottom: 40px;
  }

  .update-list {
    grid-template-columns: 1fr;
  }

  .rank-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .guide-cards {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .romance-grid,
  .comic-grid {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .subgenre-list {
    grid-template-columns: 1fr;
  }

  .guide-sidebar,
  .sidebar,
  .content-side {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 0;
  }

  .footer-brand {
    padding-bottom: 24px;
  }

  .step-item {
    flex-direction: column;
    gap: 12px;
  }

  .step-num {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .error-code {
    font-size: 56px;
  }

  .error-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-back-home,
  .btn-browse-category {
    width: 100%;
    max-width: 240px;
  }
}

/* 小屏手机 */
@media (max-width: 390px) {
  .brand-name {
    font-size: 17px;
  }

  .hero-copy h1 {
    font-size: 22px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .rank-list {
    grid-template-columns: 1fr;
  }

  .rank-item img {
    height: 180px;
  }

  .update-item img {
    width: 64px;
    height: 88px;
  }

  .category-card-media img {
    height: 140px;
  }

  .comic-cover img {
    height: 180px;
  }

  .guide-figure img {
    height: 180px;
  }
}
