/* ==========================================================================
   里番动漫观看 - 全站样式表
   版本：1.0
   说明：本样式表覆盖整站全部页面，按 base / layout / components / pages / responsive 分组
   ========================================================================== */

/* ==========================================================================
   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, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #2c3e50;
  background-color: #f5f5f5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #e67e22;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #d35400;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.3;
  color: #2c3e50;
}

/* 页面骨架锁定 */
.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1 0 auto;
}

/* 通用容器 */
.site-header .header-inner,
.site-main,
.footer-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ==========================================================================
   Layout 布局系统
   ========================================================================== */

/* --- 页头 --- */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  flex-shrink: 0;
}

.brand-name {
  font-size: 22px;
  font-weight: 800;
  color: #2c3e50;
  letter-spacing: 0.02em;
}

.brand-slogan {
  font-size: 12px;
  color: #95a5a6;
  margin-top: 2px;
}

.brand:hover .brand-name {
  color: #e67e22;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li a {
  display: block;
  padding: 8px 16px;
  font-size: 15px;
  color: #2c3e50;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-list li a:hover {
  background-color: #fef5ec;
  color: #e67e22;
}

.nav-list li a.is-current {
  background-color: #e67e22;
  color: #ffffff;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #2c3e50;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* --- 首页主布局 --- */
.home-main {
  padding-top: 0;
  padding-bottom: 64px;
}

/* --- 内页主布局 --- */
.inner-main {
  padding-top: 32px;
  padding-bottom: 64px;
}

/* 分类页双栏布局：主内容 + 侧栏 */
.layout-shell {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.layout-shell .inner-main {
  padding-left: 0;
  padding-right: 0;
  max-width: 100%;
}

/* 分类页主内容区域 */
.layout-shell .inner-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

.layout-shell .sidebar {
  grid-column: 2;
  grid-row: 1;
}

/* 指南页双栏布局 */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

.page-layout .main-content {
  min-width: 0;
}

/* --- 面包屑 --- */
.breadcrumb {
  font-size: 14px;
  color: #7f8c8d;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.breadcrumb a {
  color: #e67e22;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  color: #bdc3c7;
  margin: 0 2px;
}

.breadcrumb-current {
  color: #7f8c8d;
  font-weight: 500;
}

/* --- 页头标题区 --- */
.page-header {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid #ecf0f1;
}

.page-title {
  font-size: 32px;
  font-weight: 800;
  color: #2c3e50;
  margin-bottom: 12px;
  line-height: 1.25;
}

.page-description {
  font-size: 16px;
  color: #7f8c8d;
  max-width: 720px;
}

/* --- 页脚 --- */
.site-footer {
  background-color: #2c3e50;
  color: #bdc3c7;
  margin-top: auto;
}

.footer-inner {
  padding-top: 48px;
  padding-bottom: 24px;
}

.footer-brand {
  margin-bottom: 32px;
}

.footer-brand-name {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.footer-brand-desc {
  font-size: 14px;
  color: #95a5a6;
  max-width: 480px;
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col-title {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 14px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: 14px;
  color: #bdc3c7;
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: #e67e22;
}

.footer-bottom {
  padding-top: 20px;
  font-size: 13px;
  color: #7f8c8d;
  text-align: center;
}

/* ==========================================================================
   Components 通用组件
   ========================================================================== */

/* --- 区块标题 --- */
.section-head {
  margin-bottom: 28px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 8px;
}

.section-desc {
  font-size: 15px;
  color: #7f8c8d;
  max-width: 640px;
}

/* --- 侧栏 --- */
.sidebar {
  min-width: 0;
}

.sidebar-block {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid #ecf0f1;
}

.sidebar-block h2 {
  font-size: 17px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #fef5ec;
}

.sidebar-list li,
.sidebar-links li {
  margin-bottom: 10px;
}

.sidebar-list li a,
.sidebar-links li a {
  font-size: 14px;
  color: #2c3e50;
  display: inline-block;
  padding: 4px 0;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.sidebar-list li a:hover,
.sidebar-links li a:hover {
  color: #e67e22;
  padding-left: 4px;
}

/* --- 表格 --- */
.guide-table-wrap {
  overflow-x: auto;
  margin-bottom: 32px;
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background-color: #ffffff;
}

.guide-table caption {
  font-size: 15px;
  font-weight: 600;
  color: #2c3e50;
  text-align: left;
  padding: 12px 0;
}

.guide-table thead th {
  background-color: #2c3e50;
  color: #ffffff;
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  white-space: nowrap;
}

.guide-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid #ecf0f1;
  color: #2c3e50;
  vertical-align: top;
}

.guide-table tbody tr:nth-child(even) {
  background-color: #fafafa;
}

.guide-table tbody tr:hover {
  background-color: #fef5ec;
}

/* ==========================================================================
   Pages 首页模块
   ========================================================================== */

/* --- 首屏 hero：左右不对称布局 --- */
.hero-section {
  background-color: #ffffff;
  border-bottom: 1px solid #ecf0f1;
  margin-bottom: 56px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 48px;
  padding: 48px 0;
  align-items: center;
}

/* 窄侧索引 */
.hero-index {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 28px 24px;
}

.hero-index-title {
  font-size: 16px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e67e22;
  display: inline-block;
}

.index-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.index-list li a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: #2c3e50;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.index-list li a:hover {
  background-color: #fef5ec;
  color: #e67e22;
}

/* 宽侧内容 */
.hero-content {
  min-width: 0;
}

.hero-title {
  font-size: 36px;
  font-weight: 800;
  color: #2c3e50;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-desc {
  font-size: 16px;
  color: #7f8c8d;
  margin-bottom: 24px;
  max-width: 640px;
  line-height: 1.8;
}

.hero-figure {
  border-radius: 8px;
  overflow: hidden;
  background-color: #ecf0f1;
}

.hero-figure img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.hero-figure figcaption {
  padding: 12px 16px;
  font-size: 14px;
  color: #7f8c8d;
  background-color: #f8f9fa;
}

/* --- 题材分类导航带 --- */
.category-strip {
  margin-bottom: 56px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-item {
  display: inline-block;
  padding: 10px 22px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  color: #2c3e50;
  transition: all 0.2s ease;
}

.tag-item:hover {
  background-color: #e67e22;
  border-color: #e67e22;
  color: #ffffff;
}

/* --- 最近更新 --- */
.updates-section {
  margin-bottom: 56px;
}

.update-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.update-item {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 16px;
  border: 1px solid #ecf0f1;
  transition: box-shadow 0.2s ease;
}

.update-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.update-cover {
  width: 140px;
  height: 190px;
  border-radius: 6px;
  overflow: hidden;
  background-color: #ecf0f1;
}

.update-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.update-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.update-title {
  font-size: 17px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 8px;
  line-height: 1.4;
}

.update-meta {
  font-size: 13px;
  color: #95a5a6;
  margin-bottom: 10px;
}

.update-status {
  display: inline-block;
  font-size: 13px;
  color: #e67e22;
  background-color: #fef5ec;
  padding: 4px 12px;
  border-radius: 4px;
  align-self: flex-start;
}

/* --- 人气榜单 --- */
.ranking-section {
  margin-bottom: 56px;
}

.ranking-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.ranking-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #ecf0f1;
  transition: box-shadow 0.2s ease;
}

.ranking-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.rank-number {
  font-size: 28px;
  font-weight: 800;
  color: #e67e22;
  line-height: 1;
  flex-shrink: 0;
  min-width: 36px;
  text-align: center;
}

.rank-info {
  min-width: 0;
}

.rank-title {
  font-size: 16px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 6px;
}

.rank-reason {
  font-size: 14px;
  color: #7f8c8d;
  line-height: 1.6;
}

/* --- 阅读指南入口 --- */
.guide-section {
  margin-bottom: 56px;
}

.guide-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.guide-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 28px;
  border: 1px solid #ecf0f1;
  transition: box-shadow 0.2s ease;
}

.guide-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.guide-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 10px;
}

.guide-card-desc {
  font-size: 14px;
  color: #7f8c8d;
  margin-bottom: 16px;
  line-height: 1.7;
}

.guide-link {
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.guide-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.guide-link:hover::after {
  transform: translateX(4px);
}

/* --- 长尾推荐预告 --- */
.longtail-section {
  margin-bottom: 56px;
}

.longtail-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.longtail-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #ecf0f1;
  transition: box-shadow 0.2s ease;
}

.longtail-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.longtail-cover {
  width: 120px;
  height: 160px;
  border-radius: 6px;
  overflow: hidden;
  background-color: #ecf0f1;
}

.longtail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.longtail-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.longtail-title {
  font-size: 17px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 8px;
}

.longtail-desc {
  font-size: 14px;
  color: #7f8c8d;
  margin-bottom: 12px;
  line-height: 1.6;
}

.longtail-link {
  font-size: 14px;
  font-weight: 600;
}

/* ==========================================================================
   Pages 分类页
   ========================================================================== */

.category-list {
  margin-bottom: 48px;
}

.category-list > h2 {
  font-size: 22px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 8px;
}

.category-list > p {
  font-size: 15px;
  color: #7f8c8d;
  margin-bottom: 28px;
  max-width: 640px;
}

.category-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #ecf0f1;
  margin-bottom: 20px;
  transition: box-shadow 0.2s ease;
}

.category-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.category-media {
  width: 180px;
  height: 240px;
  border-radius: 6px;
  overflow: hidden;
  background-color: #ecf0f1;
}

.category-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-body {
  min-width: 0;
}

.category-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 10px;
}

.category-body > p {
  font-size: 14px;
  color: #7f8c8d;
  line-height: 1.7;
  margin-bottom: 12px;
}

.category-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  font-size: 14px;
  margin-bottom: 12px;
  background-color: #f8f9fa;
  padding: 12px 16px;
  border-radius: 6px;
}

.category-meta dt {
  color: #e67e22;
  font-weight: 600;
}

.category-meta dd {
  color: #2c3e50;
}

.category-link {
  margin-top: 8px;
}

.category-link a {
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.category-link a::after {
  content: "→";
  transition: transform 0.2s ease;
}

.category-link a:hover::after {
  transform: translateX(4px);
}

/* 分类说明 */
.category-notes {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 28px;
  border: 1px solid #ecf0f1;
}

.category-notes h2 {
  font-size: 20px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 12px;
}

.category-notes p {
  font-size: 14px;
  color: #7f8c8d;
  line-height: 1.8;
  margin-bottom: 12px;
}

.category-notes p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Pages 指南页
   ========================================================================== */

.guide-section {
  margin-bottom: 40px;
}

.guide-section > h2 {
  font-size: 22px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 8px;
}

.guide-section > p {
  font-size: 15px;
  color: #7f8c8d;
  margin-bottom: 24px;
  max-width: 640px;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.guide-step {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 24px;
  border: 1px solid #ecf0f1;
  border-left: 4px solid #e67e22;
  transition: box-shadow 0.2s ease;
}

.guide-step:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.guide-step h3 {
  font-size: 16px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 8px;
}

.guide-step p {
  font-size: 14px;
  color: #7f8c8d;
  line-height: 1.7;
}

/* 指南页内的 guide-cards（与首页同名，用父级限定） */
.guide-section .guide-cards {
  margin-top: 8px;
}

/* ==========================================================================
   Pages 恋爱漫画页
   ========================================================================== */

.content-wrap {
  min-width: 0;
}

.romance-list {
  margin-bottom: 48px;
}

.romance-list > h2 {
  font-size: 22px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 8px;
}

.romance-list > p {
  font-size: 15px;
  color: #7f8c8d;
  margin-bottom: 28px;
  max-width: 640px;
}

.romance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.manga-card {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ecf0f1;
  transition: box-shadow 0.2s ease;
}

.manga-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.card-media {
  width: 100%;
  height: 220px;
  background-color: #ecf0f1;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 20px;
}

.card-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 8px;
}

.card-intro {
  font-size: 14px;
  color: #7f8c8d;
  line-height: 1.7;
  margin-bottom: 12px;
}

.recommend-reason {
  font-size: 14px;
  color: #2c3e50;
  background-color: #fef5ec;
  border-radius: 6px;
  padding: 12px 16px;
  line-height: 1.6;
}

/* 推荐理由详情 */
.recommend-detail {
  margin-bottom: 40px;
}

.recommend-detail > h2 {
  font-size: 22px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 8px;
}

.recommend-detail > p {
  font-size: 15px;
  color: #7f8c8d;
  margin-bottom: 28px;
  max-width: 640px;
}

.reason-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.reason-item {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 24px;
  border: 1px solid #ecf0f1;
  transition: box-shadow 0.2s ease;
}

.reason-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.reason-item h3 {
  font-size: 16px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

.reason-item p {
  font-size: 14px;
  color: #7f8c8d;
  line-height: 1.7;
}

/* 相关链接 */
.related-links {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px 24px;
  border: 1px solid #ecf0f1;
}

.related-links p {
  font-size: 14px;
  color: #7f8c8d;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.related-links a {
  font-weight: 600;
}

/* ==========================================================================
   Pages 热血漫画页
   ========================================================================== */

.action-list-section {
  margin-bottom: 48px;
}

.action-list-section .section-title {
  font-size: 22px;
  margin-bottom: 8px;
}

.action-list-section .section-intro {
  font-size: 15px;
  color: #7f8c8d;
  margin-bottom: 28px;
  max-width: 640px;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.action-item {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 16px;
  border: 1px solid #ecf0f1;
  transition: box-shadow 0.2s ease;
}

.action-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.action-cover {
  width: 140px;
  height: 190px;
  border-radius: 6px;
  overflow: hidden;
  background-color: #ecf0f1;
}

.action-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.action-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.action-title {
  font-size: 17px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 8px;
}

.action-desc {
  font-size: 14px;
  color: #7f8c8d;
  line-height: 1.6;
  margin-bottom: 10px;
}

.action-reason {
  font-size: 13px;
  color: #2c3e50;
  background-color: #fef5ec;
  border-radius: 6px;
  padding: 10px 14px;
  line-height: 1.6;
}

.action-reason strong {
  color: #e67e22;
}

/* 燃点解析 */
.action-analysis-section {
  margin-bottom: 48px;
}

.action-analysis-section .section-title {
  font-size: 22px;
  margin-bottom: 8px;
}

.action-analysis-section .section-intro {
  font-size: 15px;
  color: #7f8c8d;
  margin-bottom: 28px;
  max-width: 640px;
}

.analysis-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.analysis-item {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 24px;
  border: 1px solid #ecf0f1;
  transition: box-shadow 0.2s ease;
}

.analysis-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.analysis-title {
  font-size: 16px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

.analysis-body {
  font-size: 14px;
  color: #7f8c8d;
  line-height: 1.7;
}

/* 相关推荐 */
.related-section {
  margin-bottom: 40px;
}

.related-section .section-title {
  font-size: 20px;
  margin-bottom: 16px;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.related-links a {
  display: inline-block;
  padding: 8px 20px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  color: #2c3e50;
  transition: all 0.2s ease;
}

.related-links a:hover {
  background-color: #e67e22;
  border-color: #e67e22;
  color: #ffffff;
}

/* ==========================================================================
   Pages 404 页
   ========================================================================== */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 48px 24px;
}

.error-wrap {
  text-align: center;
  max-width: 560px;
  width: 100%;
}

.error-code {
  font-size: 80px;
  font-weight: 800;
  color: #e67e22;
  line-height: 1;
  margin-bottom: 16px;
}

.error-title {
  font-size: 28px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 16px;
  color: #7f8c8d;
  margin-bottom: 28px;
  line-height: 1.7;
}

.error-btn {
  display: inline-block;
  padding: 12px 32px;
  background-color: #e67e22;
  color: #ffffff;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 32px;
  transition: background-color 0.2s ease;
}

.error-btn:hover {
  background-color: #d35400;
  color: #ffffff;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.error-links a {
  font-size: 14px;
  color: #2c3e50;
  padding: 8px 16px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.error-links a:hover {
  background-color: #fef5ec;
  border-color: #e67e22;
  color: #e67e22;
}

/* ==========================================================================
   Responsive 响应式
   ========================================================================== */

/* --- 768px 断点：平板及以下 --- */
@media (max-width: 768px) {
  /* 页头 */
  .header-inner {
    height: 60px;
    gap: 12px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-slogan {
    font-size: 11px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-bottom: 1px solid #ecf0f1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px;
    gap: 0;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li a {
    padding: 14px 12px;
    font-size: 16px;
    border-radius: 6px;
  }

  /* 首页 hero */
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 0;
  }

  .hero-index {
    padding: 20px;
  }

  .index-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .index-list li a {
    padding: 6px 14px;
    font-size: 13px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-figure img {
    height: 260px;
  }

  /* 首页更新列表 */
  .update-list {
    grid-template-columns: 1fr;
  }

  /* 首页榜单 */
  .ranking-list {
    grid-template-columns: 1fr;
  }

  /* 首页指南卡片 */
  .guide-cards {
    grid-template-columns: 1fr;
  }

  /* 首页长尾推荐 */
  .longtail-cards {
    grid-template-columns: 1fr;
  }

  /* 内页双栏改单栏 */
  .layout-shell .inner-main {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .layout-shell .sidebar {
    grid-column: 1;
    grid-row: auto;
    order: 2;
  }

  .page-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .page-layout .sidebar {
    order: 2;
  }

  /* 面包屑 */
  .breadcrumb {
    font-size: 13px;
    margin-bottom: 16px;
  }

  /* 页标题 */
  .page-title {
    font-size: 24px;
  }

  .page-description {
    font-size: 15px;
  }

  /* 分类页 */
  .category-item {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .category-media {
    width: 100%;
    height: 200px;
  }

  /* 指南步骤 */
  .guide-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* 恋爱漫画 */
  .romance-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .reason-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* 热血漫画 */
  .action-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .analysis-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* 页脚 */
  .footer-inner {
    padding-top: 32px;
    padding-bottom: 16px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    font-size: 12px;
  }

  /* 404 */
  .error-code {
    font-size: 60px;
  }

  .error-title {
    font-size: 22px;
  }
}

/* --- 480px 断点：小屏手机 --- */
@media (max-width: 480px) {
  .site-header .header-inner,
  .site-main,
  .footer-inner,
  .layout-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand-name {
    font-size: 16px;
  }

  .brand-slogan {
    display: none;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-desc {
    font-size: 15px;
  }

  .hero-figure img {
    height: 200px;
  }

  .section-title {
    font-size: 20px;
  }

  .update-item {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .update-cover {
    width: 100px;
    height: 140px;
  }

  .update-title {
    font-size: 15px;
  }

  .longtail-card {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .longtail-cover {
    width: 100px;
    height: 140px;
  }

  .action-item {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .action-cover {
    width: 100px;
    height: 140px;
  }

  .card-media {
    height: 180px;
  }

  .category-media {
    height: 180px;
  }

  .ranking-item {
    padding: 16px;
  }

  .rank-number {
    font-size: 24px;
    min-width: 28px;
  }

  .guide-card {
    padding: 20px;
  }

  .sidebar-block {
    padding: 18px;
  }

  .page-title {
    font-size: 22px;
  }

  .page-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
  }

  .error-links {
    flex-direction: column;
    align-items: center;
  }

  .error-links a {
    width: 100%;
    text-align: center;
  }
}
