/* ============================================================
   51漫画在线观看 · 全站样式表
   版本：1.0
   说明：覆盖首页、内页、404页全部真实DOM结构与class
   ============================================================ */

/* ============================================================
   1. 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: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #333333;
  background-color: #F5F5F5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: #4A90E2;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #FF6B35;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.4;
  color: #333333;
}

/* ============================================================
   2. Layout 布局骨架
   ============================================================ */

/* --- 全站统一容器 --- */
.site-header,
.site-footer .footer-inner,
.site-main,
.layout-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* --- 页头 --- */
.site-header {
  background-color: #FFFFFF;
  border-bottom: 1px solid #E8E8E8;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.brand-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  color: #FF6B35;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-name::before {
  content: "📚 ";
  font-size: 20px;
}

/* --- 导航 --- */
.site-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li a {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  color: #666666;
  border-radius: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-list li a:hover {
  color: #FF6B35;
  background-color: rgba(255, 107, 53, 0.08);
}

.nav-list li a.is-current {
  color: #FF6B35;
  font-weight: 600;
  background-color: rgba(255, 107, 53, 0.12);
}

/* 汉堡按钮（桌面隐藏） */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
}

.nav-toggle:hover {
  background-color: #F5F5F5;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #333333;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* --- 页脚 --- */
.site-footer {
  background-color: #FFFFFF;
  border-top: 1px solid #E8E8E8;
  margin-top: 60px;
  padding: 40px 0 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  align-items: start;
}

.footer-brand .footer-name {
  font-size: 20px;
  font-weight: 700;
  color: #FF6B35;
  margin-bottom: 8px;
}

.footer-brand .footer-tagline {
  font-size: 14px;
  color: #666666;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: flex-end;
  padding-top: 4px;
}

.footer-links a {
  font-size: 14px;
  color: #666666;
  padding: 4px 0;
}

.footer-links a:hover {
  color: #FF6B35;
}

.footer-legal {
  grid-column: 1 / -1;
  border-top: 1px solid #EEEEEE;
  padding-top: 16px;
  margin-top: 8px;
  text-align: center;
}

.footer-legal p {
  font-size: 13px;
  color: #999999;
  line-height: 1.6;
}

/* --- 内页统一骨架 --- */
.site-main.inner-main {
  padding-top: 28px;
  padding-bottom: 40px;
  min-height: 60vh;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #999999;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: #4A90E2;
}

.breadcrumb a:hover {
  color: #FF6B35;
}

.breadcrumb-sep {
  color: #CCCCCC;
}

.breadcrumb-current {
  color: #666666;
  font-weight: 500;
}

/* 页面标题区 */
.page-header {
  margin-bottom: 32px;
}

.page-title {
  font-size: 30px;
  font-weight: 700;
  color: #333333;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.page-description {
  font-size: 15px;
  color: #666666;
  line-height: 1.7;
  max-width: 780px;
}

/* 通用区块标题 */
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: #333333;
  margin-bottom: 12px;
  position: relative;
  padding-left: 14px;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 2px;
  background-color: #FF6B35;
}

.section-lead {
  font-size: 15px;
  color: #666666;
  margin-bottom: 24px;
  line-height: 1.7;
}

/* ============================================================
   3. Components 组件
   ============================================================ */

/* --- 首页首屏 --- */
.hero-panel {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 40px;
  align-items: center;
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 40px;
  margin-bottom: 48px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.hero-media {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.hero-media img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.hero-content .hero-title {
  font-size: 28px;
  font-weight: 700;
  color: #333333;
  margin-bottom: 12px;
  line-height: 1.4;
}

.hero-content .hero-slogan {
  font-size: 17px;
  font-weight: 600;
  color: #FF6B35;
  margin-bottom: 12px;
}

.hero-content .hero-desc {
  font-size: 15px;
  color: #666666;
  line-height: 1.8;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s ease;
  min-height: 44px;
}

.btn-primary {
  background-color: #FF6B35;
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: #E85A2A;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
  background-color: #FFFFFF;
  color: #4A90E2;
  border: 1px solid #4A90E2;
}

.btn-secondary:hover {
  background-color: #4A90E2;
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* --- 通用区块 --- */
.section-block {
  margin-bottom: 48px;
}

/* --- 今日推荐（棋盘式） --- */
.today-picks {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.pick-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 32px;
}

.pick-item:last-child {
  margin-bottom: 0;
}

.pick-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pick-text h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 8px;
}

.pick-text p {
  font-size: 14px;
  color: #666666;
  line-height: 1.7;
  margin-bottom: 12px;
}

.pick-text a {
  font-size: 14px;
  font-weight: 500;
  color: #4A90E2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pick-text a::after {
  content: "→";
  transition: transform 0.2s ease;
}

.pick-text a:hover::after {
  transform: translateX(4px);
}

.pick-left .pick-text {
  order: -1;
}

/* --- 题材分类导航 --- */
.genre-nav {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.genre-tags li a {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  background-color: #F5F5F5;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: #333333;
  transition: all 0.2s ease;
  min-height: 40px;
}

.genre-tags li a:hover {
  background-color: #FF6B35;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 107, 53, 0.25);
}

/* --- 最近更新（首页） --- */
.recent-updates {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.update-group {
  margin-bottom: 24px;
}

.update-group:last-of-type {
  margin-bottom: 16px;
}

.update-date {
  font-size: 15px;
  font-weight: 600;
  color: #4A90E2;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #F0F0F0;
}

.update-list {
  display: grid;
  gap: 12px;
}

.update-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.update-item:hover {
  background-color: #F9F9F9;
}

.update-item img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.update-info {
  flex: 1;
  min-width: 0;
}

.update-info a {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.update-info a:hover {
  color: #FF6B35;
}

.update-tag {
  display: inline-block;
  font-size: 12px;
  color: #4A90E2;
  background-color: rgba(74, 144, 226, 0.1);
  padding: 2px 10px;
  border-radius: 4px;
  font-weight: 500;
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #4A90E2;
  margin-top: 8px;
  padding: 8px 0;
}

.more-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.more-link:hover::after {
  transform: translateX(4px);
}

/* --- 阅读指南入口 --- */
.guide-entry {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.guide-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.guide-card {
  background-color: #F9F9F9;
  border-radius: 8px;
  padding: 24px;
  border: 1px solid #EEEEEE;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  border-color: #FF6B35;
}

.guide-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 8px;
}

.guide-card p {
  font-size: 14px;
  color: #666666;
  line-height: 1.7;
  margin-bottom: 16px;
  flex: 1;
}

.card-link {
  font-size: 14px;
  font-weight: 600;
  color: #4A90E2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.card-link:hover::after {
  transform: translateX(4px);
}

/* --- 内页布局：主内容 + 右侧栏 --- */
.layout-shell {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: start;
  padding-top: 28px;
  padding-bottom: 40px;
}

/* gengxin 页面特殊布局 */
.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: start;
}

/* --- 侧边栏通用 --- */
.sidebar-area,
.sidebar-column,
.sidebar {
  min-width: 0;
}

.sidebar-card,
.sidebar-block {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

.sidebar-title {
  font-size: 17px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #FF6B35;
}

.sidebar-tag-list,
.sidebar-cat-list,
.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-tag-list li a,
.sidebar-cat-list li a,
.sidebar-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  font-size: 14px;
  color: #666666;
  border-radius: 6px;
  transition: all 0.2s ease;
  min-height: 40px;
}

.sidebar-tag-list li a:hover,
.sidebar-cat-list li a:hover,
.sidebar-list li a:hover {
  background-color: rgba(255, 107, 53, 0.08);
  color: #FF6B35;
  padding-left: 14px;
}

.sidebar-text {
  font-size: 13px;
  color: #999999;
}

.sidebar-more {
  display: inline-block;
  font-size: 13px;
  color: #4A90E2;
  margin-top: 12px;
  padding: 4px 0;
}

.sidebar-update-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-update-list li a {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 6px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.sidebar-update-list li a:hover {
  background-color: #F9F9F9;
}

.sidebar-update-list li img {
  width: 48px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

/* ============================================================
   4. Pages 页面专属
   ============================================================ */

/* --- 首页 --- */
.site-home {
  background-color: #F5F5F5;
}

.home-main {
  padding-top: 32px;
  padding-bottom: 40px;
}

/* --- 分类页 fenlei --- */
.page-fenlei .category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.category-card {
  background-color: #FFFFFF;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.category-cover {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.category-name {
  font-size: 17px;
  font-weight: 600;
  color: #333333;
  padding: 16px 16px 8px;
}

.category-desc {
  font-size: 13px;
  color: #666666;
  line-height: 1.6;
  padding: 0 16px;
  flex: 1;
}

.category-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: #4A90E2;
  padding: 8px 16px 16px;
}

.category-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.category-link:hover::after {
  transform: translateX(4px);
}

/* 代表作品 */
.representative-section {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-top: 32px;
}

.section-intro {
  font-size: 14px;
  color: #666666;
  margin-bottom: 20px;
  line-height: 1.7;
}

.representative-list {
  display: grid;
  gap: 16px;
}

.work-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  background-color: #F9F9F9;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.work-item:hover {
  background-color: #F0F0F0;
}

.work-cover {
  width: 96px;
  height: 128px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.work-info {
  flex: 1;
  min-width: 0;
}

.work-title {
  font-size: 16px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 6px;
}

.work-desc {
  font-size: 13px;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 8px;
}

.work-link {
  font-size: 13px;
  font-weight: 500;
  color: #4A90E2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.work-link::after {
  content: "→";
}

/* --- 连载更新页 gengxin --- */
.page-gengxin .update-section {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 24px;
}

.page-gengxin .update-list {
  display: grid;
  gap: 12px;
}

.page-gengxin .update-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background-color: #F9F9F9;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.page-gengxin .update-item:hover {
  background-color: #F0F0F0;
  transform: translateX(4px);
}

.update-thumb {
  width: 64px;
  height: 88px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.update-info {
  flex: 1;
  min-width: 0;
}

.update-title {
  font-size: 15px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.update-meta {
  font-size: 13px;
  color: #999999;
  margin-bottom: 4px;
}

.update-status {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 2px 10px;
  border-radius: 4px;
}

.status-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 2px 10px;
  border-radius: 4px;
  background-color: rgba(255, 107, 53, 0.1);
  color: #FF6B35;
}

.list-note {
  font-size: 13px;
  color: #999999;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #F0F0F0;
}

/* 状态说明 */
.status-explanation {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.status-explanation p {
  font-size: 14px;
  color: #666666;
  line-height: 1.7;
  margin-bottom: 16px;
}

.status-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.status-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: #666666;
  line-height: 1.6;
}

.status-list li::before {
  content: "·";
  color: #FF6B35;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.4;
}

.status-explanation a {
  font-size: 14px;
  font-weight: 500;
  color: #4A90E2;
}

/* --- 完结作品页 wanzheng --- */
.page-wanzheng .page-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: start;
}

.page-wanzheng .main-content {
  min-width: 0;
}

.page-wanzheng .content-section {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 24px;
}

.page-wanzheng .content-section > h2 {
  font-size: 20px;
  font-weight: 700;
  color: #333333;
  margin-bottom: 12px;
  position: relative;
  padding-left: 14px;
}

.page-wanzheng .content-section > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 2px;
  background-color: #FF6B35;
}

.comic-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #F0F0F0;
}

.comic-item:last-child {
  border-bottom: none;
}

.comic-cover {
  flex-shrink: 0;
  width: 88px;
  height: 118px;
  border-radius: 6px;
  overflow: hidden;
}

.comic-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comic-info {
  flex: 1;
  min-width: 0;
}

.comic-info h3 {
  font-size: 16px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 6px;
}

.comic-desc {
  font-size: 13px;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 8px;
}

.comic-reason {
  font-size: 13px;
  color: #4A90E2;
  background-color: rgba(74, 144, 226, 0.08);
  padding: 6px 10px;
  border-radius: 4px;
  line-height: 1.5;
  display: inline-block;
}

.section-footer-note {
  font-size: 13px;
  color: #999999;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #F0F0F0;
}

.section-footer-note a {
  font-size: 13px;
  color: #4A90E2;
  font-weight: 500;
}

/* --- 阅读指南页 zhinan --- */
.page-zhinan .main-content {
  min-width: 0;
}

.guide-section {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 24px;
}

.guide-section .section-title {
  margin-bottom: 16px;
}

.guide-section p {
  font-size: 15px;
  color: #555555;
  line-height: 1.8;
  margin-bottom: 16px;
}

.guide-section p:last-child {
  margin-bottom: 0;
}

.guide-figure {
  margin: 20px 0;
  border-radius: 8px;
  overflow: hidden;
  background-color: #F9F9F9;
}

.guide-figure img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.guide-figure figcaption {
  font-size: 13px;
  color: #999999;
  text-align: center;
  padding: 10px 16px;
  background-color: #F9F9F9;
}

/* --- 恋爱漫画推荐 liandong --- */
.page-liandong .page-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: start;
}

.page-liandong .inner-main {
  min-width: 0;
}

.recommend-list {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 24px;
}

.recommend-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #F0F0F0;
}

.recommend-item:last-child {
  border-bottom: none;
}

.recommend-figure {
  flex-shrink: 0;
  width: 120px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.recommend-figure img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.recommend-content {
  flex: 1;
  min-width: 0;
}

.recommend-name {
  font-size: 18px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 6px;
}

.recommend-type {
  font-size: 13px;
  color: #FF6B35;
  font-weight: 500;
  margin-bottom: 8px;
}

.recommend-desc {
  font-size: 14px;
  color: #666666;
  line-height: 1.7;
  margin-bottom: 10px;
}

.recommend-reason {
  font-size: 13px;
  color: #555555;
  background-color: #F9F9F9;
  padding: 8px 12px;
  border-radius: 6px;
  line-height: 1.6;
  margin-bottom: 8px;
}

.recommend-reason strong {
  color: #4A90E2;
  font-weight: 600;
  margin-right: 4px;
}

.recommend-fit {
  font-size: 13px;
  color: #888888;
  line-height: 1.6;
}

.recommend-fit strong {
  color: #333333;
  font-weight: 600;
  margin-right: 4px;
}

/* 阅读技巧 */
.reading-tips {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tips-lead {
  font-size: 14px;
  color: #666666;
  line-height: 1.7;
  margin-bottom: 20px;
}

.tip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.tip-card {
  background-color: #F9F9F9;
  border-radius: 8px;
  padding: 16px;
  border: 1px solid #F0F0F0;
  transition: all 0.2s ease;
}

.tip-card:hover {
  border-color: #4A90E2;
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.1);
}

.tip-title {
  font-size: 15px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 6px;
}

.tip-text {
  font-size: 13px;
  color: #666666;
  line-height: 1.6;
}

.tips-more {
  font-size: 13px;
  color: #999999;
  padding-top: 12px;
  border-top: 1px solid #F0F0F0;
}

.tips-more a {
  font-size: 13px;
  color: #4A90E2;
  font-weight: 500;
  margin-right: 12px;
  white-space: nowrap;
}

.tips-more a:hover {
  color: #FF6B35;
}

/* --- 404页面 --- */
.site-error {
  background-color: #F5F5F5;
}

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 40px 24px;
}

.error-panel {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 48px;
  text-align: center;
  max-width: 560px;
  width: 100%;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.error-code {
  font-size: 72px;
  font-weight: 700;
  color: #FF6B35;
  line-height: 1;
  margin-bottom: 16px;
}

.error-panel h1 {
  font-size: 24px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: #666666;
  line-height: 1.7;
  margin-bottom: 24px;
}

.error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.error-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  min-height: 44px;
  background-color: #FF6B35;
  color: #FFFFFF;
  transition: all 0.2s ease;
}

.error-btn:hover {
  background-color: #E85A2A;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.error-btn.secondary {
  background-color: #FFFFFF;
  color: #4A90E2;
  border: 1px solid #4A90E2;
}

.error-btn.secondary:hover {
  background-color: #4A90E2;
  color: #FFFFFF;
}

.error-help {
  font-size: 14px;
  color: #999999;
}

.error-help a {
  font-size: 14px;
  color: #4A90E2;
  font-weight: 500;
  margin: 0 6px;
}

.error-help a:hover {
  color: #FF6B35;
}

/* ============================================================
   5. Responsive 响应式
   ============================================================ */

/* --- 平板及以下 --- */
@media (max-width: 992px) {
  .header-inner {
    padding: 0 16px;
  }

  .site-header,
  .site-footer .footer-inner,
  .site-main,
  .layout-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .layout-shell,
  .content-grid,
  .page-wanzheng .page-layout,
  .page-liandong .page-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .sidebar-area,
  .sidebar-column,
  .sidebar {
    order: 2;
  }

  .page-fenlei .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-panel {
    grid-template-columns: 1fr;
    padding: 28px;
    gap: 24px;
  }

  .hero-media img {
    height: 260px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .tip-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- 手机端 --- */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  /* 汉堡菜单 */
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background-color: #FFFFFF;
    border-bottom: 1px solid #E8E8E8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    gap: 2px;
  }

  .nav-list li a {
    padding: 12px 16px;
    font-size: 16px;
    border-radius: 8px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .site-nav.is-open {
    max-height: 400px;
  }

  /* 首页 */
  .home-main {
    padding-top: 20px;
  }

  .hero-panel {
    padding: 20px;
    gap: 16px;
  }

  .hero-media img {
    height: 200px;
  }

  .hero-content .hero-title {
    font-size: 22px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .today-picks,
  .genre-nav,
  .recent-updates,
  .guide-entry {
    padding: 20px;
  }

  .pick-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pick-left .pick-text {
    order: 0;
  }

  .pick-item img {
    height: 180px;
  }

  .guide-cards {
    grid-template-columns: 1fr;
  }

  /* 分类页 */
  .page-fenlei .category-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .category-cover {
    height: 160px;
  }

  .work-item {
    flex-direction: column;
  }

  .work-cover {
    width: 100%;
    height: 180px;
  }

  /* 更新页 */
  .page-gengxin .update-item {
    padding: 10px;
  }

  .update-thumb {
    width: 56px;
    height: 76px;
  }

  /* 完结页 */
  .comic-item {
    flex-direction: column;
    gap: 12px;
  }

  .comic-cover {
    width: 100%;
    height: 180px;
  }

  .comic-cover img {
    height: 180px;
  }

  /* 指南页 */
  .guide-section {
    padding: 20px;
  }

  .guide-figure img {
    height: 180px;
  }

  /* 恋爱推荐 */
  .recommend-item {
    flex-direction: column;
    gap: 12px;
  }

  .recommend-figure {
    width: 100%;
  }

  .recommend-figure img {
    height: 200px;
  }

  .tip-grid {
    grid-template-columns: 1fr;
  }

  /* 404 */
  .error-panel {
    padding: 32px 20px;
  }

  .error-code {
    font-size: 56px;
  }

  /* 页脚 */
  .site-footer {
    padding: 32px 0 20px;
    margin-top: 40px;
  }

  .footer-links {
    gap: 8px 16px;
  }

  .footer-links a {
    font-size: 13px;
  }

  /* 内页标题 */
  .page-title {
    font-size: 24px;
  }

  .section-title {
    font-size: 19px;
  }

  /* 面包屑 */
  .breadcrumb {
    font-size: 13px;
  }

  /* 侧边栏在手机端显示在内容之后 */
  .sidebar-area,
  .sidebar-column,
  .sidebar {
    order: 2;
  }
}

/* --- 超小屏 --- */
@media (max-width: 480px) {
  .header-inner {
    height: 56px;
    padding: 0 12px;
  }

  .brand-name {
    font-size: 18px;
  }

  .site-nav {
    top: 56px;
  }

  .site-header,
  .site-footer .footer-inner,
  .site-main,
  .layout-shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero-panel {
    padding: 16px;
  }

  .hero-content .hero-title {
    font-size: 20px;
  }

  .hero-content .hero-slogan {
    font-size: 15px;
  }

  .hero-content .hero-desc {
    font-size: 14px;
  }

  .today-picks,
  .genre-nav,
  .recent-updates,
  .guide-entry,
  .category-card,
  .representative-section,
  .update-section,
  .status-explanation,
  .content-section,
  .guide-section,
  .recommend-list,
  .reading-tips,
  .sidebar-card,
  .sidebar-block {
    padding: 16px;
  }

  .genre-tags {
    gap: 8px;
  }

  .genre-tags li a {
    padding: 6px 14px;
    font-size: 13px;
    min-height: 36px;
  }

  .update-item {
    gap: 12px;
  }

  .update-item img {
    width: 56px;
    height: 76px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-legal p {
    font-size: 12px;
  }

  .tip-card {
    padding: 14px;
  }

  .tips-more a {
    display: inline-block;
    margin-bottom: 6px;
  }

  .error-panel {
    padding: 24px 16px;
  }

  .error-code {
    font-size: 48px;
  }

  .error-panel h1 {
    font-size: 20px;
  }

  .error-desc {
    font-size: 14px;
  }

  .error-actions {
    flex-direction: column;
  }

  .error-btn {
    width: 100%;
  }
}

/* --- 动画增强（不影响初始可见性） --- */
@media (prefers-reduced-motion: no-preference) {
  .pick-item,
  .category-card,
  .guide-card,
  .recommend-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .pick-item:hover img {
    transform: scale(1.02);
  }

  .pick-item img {
    transition: transform 0.3s ease;
  }
}

/* --- 无障碍：焦点可见 --- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #4A90E2;
  outline-offset: 2px;
}

/* --- 打印样式 --- */
@media print {
  .site-header,
  .site-footer,
  .sidebar-area,
  .sidebar-column,
  .sidebar,
  .breadcrumb,
  .hero-actions,
  .more-link {
    display: none !important;
  }

  body {
    background-color: #FFFFFF;
  }

  .site-main {
    padding: 0;
  }

  .layout-shell,
  .content-grid,
  .page-wanzheng .page-layout,
  .page-liandong .page-layout {
    display: block;
  }
}
