/* ==========================================================
   Base / Reset / 全站基础
   ========================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body.site-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #2c3e50;
  background-color: #ecf0f1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #e74c3c;
}

ul,
ol {
  list-style: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================
   Layout / 全站布局骨架
   ========================================================== */

/* 页头 */
.site-header {
  background-color: #ffffff;
  border-bottom: 3px solid #2c3e50;
  width: 100%;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-name {
  font-size: 22px;
  font-weight: 800;
  color: #2c3e50;
  letter-spacing: 0.5px;
}

.brand-name::before {
  content: "◆ ";
  color: #e74c3c;
}

/* 主导航 */
.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li a {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 600;
  color: #34495e;
  border: 2px solid transparent;
  border-radius: 4px;
}

.nav-list li a:hover {
  color: #e74c3c;
  border-color: #e74c3c;
}

.nav-list li a.is-current {
  color: #ffffff;
  background-color: #2c3e50;
  border-color: #2c3e50;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid #2c3e50;
  border-radius: 4px;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle-line {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #2c3e50;
}

/* 主内容区 */
.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.inner-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 56px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #7f8c8d;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: #34495e;
  font-weight: 500;
}

.breadcrumb a:hover {
  color: #e74c3c;
}

.breadcrumb-sep {
  color: #95a5a6;
}

.breadcrumb-current {
  color: #7f8c8d;
  font-weight: 400;
}

/* 页面标题区 */
.page-header {
  border-bottom: 3px solid #2c3e50;
  padding-bottom: 20px;
  margin-bottom: 32px;
}

.page-title {
  font-size: 30px;
  font-weight: 800;
  color: #2c3e50;
  line-height: 1.3;
  margin-bottom: 8px;
}

.page-description {
  font-size: 15px;
  color: #7f8c8d;
  line-height: 1.6;
  max-width: 720px;
}

/* 页脚 */
.site-footer {
  background-color: #2c3e50;
  color: #ecf0f1;
  width: 100%;
  margin-top: auto;
}

.footer-columns {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.footer-col h3 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e74c3c;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.7;
  color: #bdc3c7;
}

.footer-bottom {
  border-top: 1px solid #34495e;
  padding: 16px 20px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: #95a5a6;
  max-width: 1200px;
  margin: 0 auto;
}

/* ==========================================================
   Components / 通用组件
   ========================================================== */

/* 区块标题 */
.section-title {
  font-size: 24px;
  font-weight: 800;
  color: #2c3e50;
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 4px solid #e74c3c;
  line-height: 1.4;
}

.section-desc {
  font-size: 15px;
  color: #7f8c8d;
  margin-bottom: 20px;
  max-width: 720px;
}

/* 更多链接 */
.more-link {
  margin-top: 24px;
  text-align: center;
}

.more-link a,
.section-more a {
  display: inline-block;
  padding: 8px 20px;
  border: 2px solid #2c3e50;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  color: #2c3e50;
  background-color: #ffffff;
  transition: all 0.2s ease;
}

.more-link a:hover,
.section-more a:hover {
  background-color: #2c3e50;
  color: #ffffff;
}

/* 漫画封面卡 */
.work-card {
  background-color: #ffffff;
  border: 2px solid #2c3e50;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 4px 4px 0 rgba(44, 62, 80, 0.2);
}

.work-card figure {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: #ecf0f1;
}

.work-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: #2c3e50;
  padding: 12px 12px 4px;
  line-height: 1.4;
}

.work-card p {
  font-size: 13px;
  color: #7f8c8d;
  padding: 0 12px 12px;
  line-height: 1.5;
}

/* ==========================================================
   Pages / 首页
   ========================================================== */

.home-main {
  width: 100%;
}

/* 首屏 hero */
.hero-section {
  background-color: #2c3e50;
  border-bottom: 4px solid #e74c3c;
  padding: 48px 20px;
}

.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-media {
  width: 100%;
  border: 3px solid #ffffff;
  border-radius: 6px;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-content h1 {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 12px;
}

.hero-lead {
  font-size: 16px;
  color: #bdc3c7;
  line-height: 1.7;
  margin-bottom: 24px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 4px;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: #e74c3c;
  color: #ffffff;
  border-color: #e74c3c;
}

.btn-primary:hover {
  background-color: #c0392b;
  color: #ffffff;
  border-color: #c0392b;
}

.btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.btn-secondary:hover {
  background-color: #ffffff;
  color: #2c3e50;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags li a {
  display: inline-block;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #ecf0f1;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
}

.hero-tags li a:hover {
  background-color: #e74c3c;
  border-color: #e74c3c;
}

/* 题材分类导航带 */
.tocai-nav-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px 24px;
}

.genre-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.genre-tags-list li a {
  display: inline-block;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
  background-color: #ffffff;
  border: 2px solid #2c3e50;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.genre-tags-list li a:hover {
  background-color: #2c3e50;
  color: #ffffff;
}

/* 最近更新列表 */
.update-list-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px;
}

.update-group {
  margin-bottom: 32px;
}

.update-date {
  font-size: 18px;
  font-weight: 700;
  color: #2c3e50;
  padding: 8px 12px;
  background-color: #ffffff;
  border-left: 4px solid #e74c3c;
  border-bottom: 2px solid #2c3e50;
  margin-bottom: 16px;
}

.update-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.update-item {
  background-color: #ffffff;
  border: 2px solid #2c3e50;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.update-item:hover {
  transform: translateY(-4px);
  box-shadow: 4px 4px 0 rgba(44, 62, 80, 0.15);
}

.update-item a {
  display: block;
}

.update-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.item-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #2c3e50;
  padding: 10px 10px 2px;
  line-height: 1.4;
}

.update-status {
  display: block;
  font-size: 12px;
  color: #e74c3c;
  padding: 0 10px 10px;
  font-weight: 500;
}

/* 人气榜单预览 */
.ranking-preview-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px;
}

.ranking-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.ranking-item {
  background-color: #ffffff;
  border: 2px solid #2c3e50;
  border-radius: 6px;
  padding: 16px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
  transform: translateY(-4px);
  box-shadow: 4px 4px 0 rgba(44, 62, 80, 0.15);
}

.ranking-item a {
  display: block;
}

.rank-num {
  display: inline-block;
  width: 28px;
  height: 28px;
  background-color: #e74c3c;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  line-height: 28px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.ranking-item:nth-child(n+4) .rank-num {
  background-color: #95a5a6;
}

.rank-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 6px;
}

.rank-reason {
  display: block;
  font-size: 13px;
  color: #7f8c8d;
  line-height: 1.5;
}

/* 阅读指南入口 */
.guide-entry-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 56px;
}

.guide-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.guide-card {
  background-color: #ffffff;
  border: 2px solid #2c3e50;
  border-radius: 6px;
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: 4px 4px 0 rgba(44, 62, 80, 0.15);
}

.guide-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 10px;
}

.guide-card p {
  font-size: 14px;
  color: #7f8c8d;
  line-height: 1.6;
  margin-bottom: 16px;
}

.guide-card a {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #e74c3c;
  border-bottom: 2px solid #e74c3c;
  padding-bottom: 2px;
}

.guide-card a:hover {
  color: #c0392b;
  border-color: #c0392b;
}

/* ==========================================================
   Pages / 题材分类页（tocai）
   ========================================================== */

/* 侧栏布局 */
.layout-shell.sidebar-left {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 56px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}

.sidebar {
  background-color: #ffffff;
  border: 2px solid #2c3e50;
  border-radius: 6px;
  position: sticky;
  top: 16px;
}

.sidebar-inner {
  padding: 20px 16px;
}

.sidebar-inner h2 {
  font-size: 16px;
  font-weight: 800;
  color: #2c3e50;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e74c3c;
}

.sidebar-links li a {
  display: block;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 500;
  color: #34495e;
  border-left: 3px solid transparent;
  border-radius: 2px;
}

.sidebar-links li a:hover {
  color: #e74c3c;
  border-left-color: #e74c3c;
  background-color: #f8f9fa;
}

.sidebar-tip {
  font-size: 12px;
  color: #95a5a6;
  line-height: 1.6;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #ecf0f1;
}

/* 题材分类区块 */
.tocai-section {
  margin-bottom: 32px;
}

.tocai-section h2,
.tocai-category h2 {
  font-size: 20px;
  font-weight: 800;
  color: #2c3e50;
  margin-bottom: 8px;
  padding-left: 10px;
  border-left: 4px solid #e74c3c;
}

.tocai-section p,
.tocai-category p {
  font-size: 14px;
  color: #7f8c8d;
  margin-bottom: 16px;
}

.tocai-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tocai-tag {
  display: inline-block;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #2c3e50;
  background-color: #ffffff;
  border: 2px solid #2c3e50;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.tocai-tag:hover {
  background-color: #2c3e50;
  color: #ffffff;
}

.tocai-category {
  margin-bottom: 40px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tocai-category:nth-of-type(3) .work-grid,
.tocai-category:nth-of-type(4) .work-grid,
.tocai-category:nth-of-type(5) .work-grid,
.tocai-category:nth-of-type(6) .work-grid,
.tocai-category:nth-of-type(7) .work-grid,
.tocai-category:nth-of-type(8) .work-grid {
  grid-template-columns: repeat(2, 1fr);
}

.tocai-tip {
  background-color: #ffffff;
  border: 2px solid #2c3e50;
  border-radius: 6px;
  padding: 24px;
  margin-top: 32px;
}

.tocai-tip h2 {
  font-size: 18px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 12px;
}

.tocai-tip p {
  font-size: 14px;
  color: #7f8c8d;
  line-height: 1.7;
  margin-bottom: 8px;
}

.tocai-tip p a {
  color: #e74c3c;
  font-weight: 600;
}

.tocai-tip p a:hover {
  text-decoration: underline;
}

/* ==========================================================
   Pages / 阅读指南页（zhinan）
   ========================================================== */

.guide-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: start;
}

.guide-content {
  min-width: 0;
}

.guide-section {
  margin-bottom: 40px;
}

.guide-section h2 {
  font-size: 22px;
  font-weight: 800;
  color: #2c3e50;
  margin-bottom: 10px;
  padding-left: 10px;
  border-left: 4px solid #e74c3c;
}

.guide-section > p {
  font-size: 15px;
  color: #7f8c8d;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* 步骤 */
.guide-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.step-item {
  background-color: #ffffff;
  border: 2px solid #2c3e50;
  border-radius: 6px;
  padding: 20px;
  position: relative;
}

.step-num {
  display: inline-block;
  width: 32px;
  height: 32px;
  background-color: #e74c3c;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  line-height: 32px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.step-item h3 {
  font-size: 16px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 8px;
}

.step-item p {
  font-size: 14px;
  color: #7f8c8d;
  line-height: 1.6;
}

/* 方法列表 */
.method-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.method-item {
  background-color: #ffffff;
  border: 2px solid #2c3e50;
  border-radius: 6px;
  padding: 20px;
}

.method-item h3 {
  font-size: 16px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 8px;
}

.method-item p {
  font-size: 14px;
  color: #7f8c8d;
  line-height: 1.6;
}

/* 技巧卡片 */
.tip-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.tip-card {
  background-color: #ffffff;
  border: 2px solid #2c3e50;
  border-radius: 6px;
  padding: 20px;
}

.tip-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 8px;
}

.tip-card p {
  font-size: 14px;
  color: #7f8c8d;
  line-height: 1.6;
}

/* 阅读习惯配图 */
.guide-figure {
  margin: 20px 0;
  border: 2px solid #2c3e50;
  border-radius: 6px;
  overflow: hidden;
  background-color: #ffffff;
}

.guide-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.guide-figure figcaption {
  font-size: 13px;
  color: #7f8c8d;
  text-align: center;
  padding: 8px 12px;
}

/* 指南侧栏 */
.guide-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 16px;
}

.aside-card {
  background-color: #ffffff;
  border: 2px solid #2c3e50;
  border-radius: 6px;
  padding: 20px;
}

.aside-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e74c3c;
}

.aside-card ul li a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: #34495e;
  border-bottom: 1px solid #ecf0f1;
}

.aside-card ul li a:hover {
  color: #e74c3c;
}

/* ==========================================================
   Pages / 最近更新页（gengxin）
   ========================================================== */

.update-section {
  margin-bottom: 40px;
}

.update-section h2 {
  font-size: 22px;
  font-weight: 800;
  color: #2c3e50;
  margin-bottom: 8px;
  padding-left: 10px;
  border-left: 4px solid #e74c3c;
}

.update-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.update-item {
  display: flex;
  gap: 12px;
  background-color: #ffffff;
  border: 2px solid #2c3e50;
  border-radius: 6px;
  padding: 12px;
  align-items: center;
}

.update-cover {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.update-info {
  flex: 1;
  min-width: 0;
}

.update-name {
  font-size: 15px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 4px;
  line-height: 1.4;
}

.update-chapter {
  font-size: 13px;
  color: #7f8c8d;
  margin-bottom: 4px;
}

.update-status {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #e74c3c;
  background-color: #fdecea;
  border-radius: 3px;
  padding: 2px 8px;
}

/* ==========================================================
   Pages / 人气榜单页（bangdan）
   ========================================================== */

.rank-section {
  margin-bottom: 48px;
}

.rank-section h2 {
  font-size: 22px;
  font-weight: 800;
  color: #2c3e50;
  margin-bottom: 8px;
  padding-left: 10px;
  border-left: 4px solid #e74c3c;
}

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: #ffffff;
  border: 2px solid #2c3e50;
  border-radius: 6px;
  padding: 12px 16px;
}

.rank-num {
  width: 36px;
  height: 36px;
  background-color: #e74c3c;
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  line-height: 36px;
  border-radius: 4px;
  flex-shrink: 0;
}

.rank-item:nth-child(n+4) .rank-num {
  background-color: #95a5a6;
}

.rank-cover {
  width: 56px;
  height: 72px;
  overflow: hidden;
  border-radius: 4px;
  flex-shrink: 0;
}

.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-info {
  flex: 1;
  min-width: 0;
}

.rank-info h3 {
  font-size: 16px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 4px;
}

.rank-info p {
  font-size: 13px;
  color: #7f8c8d;
  line-height: 1.5;
  margin-bottom: 4px;
}

.rank-info a {
  font-size: 13px;
  font-weight: 600;
  color: #e74c3c;
}

.rank-info a:hover {
  text-decoration: underline;
}

/* 榜单说明 */
.rank-note {
  background-color: #ffffff;
  border: 2px solid #2c3e50;
  border-radius: 6px;
  padding: 24px;
}

.rank-note h2 {
  font-size: 18px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 12px;
}

.rank-note p {
  font-size: 14px;
  color: #7f8c8d;
  line-height: 1.7;
  margin-bottom: 16px;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.related-links a {
  display: inline-block;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #2c3e50;
  background-color: #ecf0f1;
  border: 2px solid #2c3e50;
  border-radius: 4px;
}

.related-links a:hover {
  background-color: #2c3e50;
  color: #ffffff;
}

/* ==========================================================
   Pages / 恋爱漫画推荐页（lianai）
   ========================================================== */

.content-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: start;
}

.main-content {
  min-width: 0;
}

.content-section {
  margin-bottom: 40px;
}

.content-section h2 {
  font-size: 22px;
  font-weight: 800;
  color: #2c3e50;
  margin-bottom: 10px;
  padding-left: 10px;
  border-left: 4px solid #e74c3c;
}

.content-section > p {
  font-size: 15px;
  color: #7f8c8d;
  line-height: 1.7;
  margin-bottom: 20px;
}

.recommend-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.recommend-item {
  width: 100%;
}

.recommend-item .work-card {
  display: flex;
  gap: 16px;
  padding: 12px;
}

.recommend-item .work-card figure {
  width: 120px;
  aspect-ratio: 3 / 4;
  flex-shrink: 0;
  border-radius: 4px;
}

.recommend-item .work-card h3 {
  padding: 0 0 6px;
  font-size: 17px;
}

.recommend-item .work-card p {
  padding: 0;
}

/* 风格分类卡片 */
.style-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.style-card {
  background-color: #ffffff;
  border: 2px solid #2c3e50;
  border-radius: 6px;
  padding: 20px;
}

.style-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 8px;
}

.style-card p {
  font-size: 14px;
  color: #7f8c8d;
  line-height: 1.6;
}

/* 相关阅读 */
.related-section {
  background-color: #ffffff;
  border: 2px solid #2c3e50;
  border-radius: 6px;
  padding: 20px;
}

.related-section h2 {
  border-left: none;
  padding-left: 0;
  margin-bottom: 12px;
}

.related-section p a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 600;
  color: #34495e;
  border-bottom: 1px solid #ecf0f1;
}

.related-section p a:hover {
  color: #e74c3c;
}

/* 恋爱页侧栏 */
.sidebar-area {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 16px;
}

.sidebar-card {
  background-color: #ffffff;
  border: 2px solid #2c3e50;
  border-radius: 6px;
  padding: 20px;
}

.sidebar-card h2 {
  font-size: 16px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e74c3c;
}

.sidebar-card p {
  font-size: 14px;
  color: #7f8c8d;
  line-height: 1.7;
}

/* ==========================================================
   Pages / 404
   ========================================================== */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
}

.error-block {
  background-color: #ffffff;
  border: 3px solid #2c3e50;
  border-radius: 6px;
  padding: 48px 40px;
  text-align: center;
  max-width: 520px;
  width: 100%;
}

.error-code {
  font-size: 64px;
  font-weight: 800;
  color: #e74c3c;
  line-height: 1;
  margin-bottom: 16px;
}

.error-block h1 {
  font-size: 24px;
  font-weight: 800;
  color: #2c3e50;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: #7f8c8d;
  margin-bottom: 24px;
  line-height: 1.6;
}

.error-back {
  display: inline-block;
  padding: 10px 28px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  background-color: #2c3e50;
  border: 2px solid #2c3e50;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.error-back:hover {
  background-color: #e74c3c;
  border-color: #e74c3c;
  color: #ffffff;
}

/* ==========================================================
   Responsive / 响应式
   ========================================================== */

/* 桌面端隐藏汉堡按钮 */
@media (min-width: 769px) {
  .nav-toggle {
    display: none !important;
  }

  .nav-list {
    display: flex !important;
  }
}

/* 平板与手机 */
@media (max-width: 1024px) {
  .update-items {
    grid-template-columns: repeat(3, 1fr);
  }

  .ranking-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .work-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  /* 页头 */
  .header-inner {
    height: 56px;
    padding: 0 16px;
  }

  .brand-name {
    font-size: 18px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-bottom: 3px solid #2c3e50;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    gap: 4px;
    z-index: 100;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li a {
    padding: 12px 14px;
    font-size: 15px;
    border-radius: 4px;
  }

  .site-nav {
    position: relative;
  }

  /* 首页 hero */
  .hero-section {
    grid-template-columns: 1fr;
    padding: 32px 16px;
    gap: 24px;
  }

  .hero-content h1 {
    font-size: 26px;
  }

  .hero-media img {
    aspect-ratio: 16 / 10;
  }

  /* 首页模块 */
  .tocai-nav-section,
  .update-list-section,
  .ranking-preview-section,
  .guide-entry-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .update-items {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .ranking-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .guide-cards {
    grid-template-columns: 1fr;
  }

  /* 内页 */
  .inner-main {
    padding: 20px 16px 40px;
  }

  .page-title {
    font-size: 24px;
  }

  /* 题材分类页 */
  .layout-shell.sidebar-left {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 20px;
  }

  .sidebar {
    position: static;
    order: 2;
  }

  .sidebar-inner h2 {
    margin-bottom: 12px;
  }

  .sidebar-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .sidebar-links li a {
    padding: 6px 12px;
    border: 2px solid #2c3e50;
    border-radius: 4px;
    border-left-width: 2px;
  }

  .sidebar-tip {
    display: none;
  }

  .work-grid,
  .tocai-category:nth-of-type(3) .work-grid,
  .tocai-category:nth-of-type(4) .work-grid,
  .tocai-category:nth-of-type(5) .work-grid,
  .tocai-category:nth-of-type(6) .work-grid,
  .tocai-category:nth-of-type(7) .work-grid,
  .tocai-category:nth-of-type(8) .work-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* 阅读指南页 */
  .guide-layout,
  .content-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .guide-aside,
  .sidebar-area {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .aside-card,
  .sidebar-card {
    flex: 1 1 calc(50% - 8px);
    min-width: 200px;
  }

  .guide-steps,
  .method-list,
  .tip-cards {
    grid-template-columns: 1fr;
  }

  /* 最近更新页 */
  .update-list {
    grid-template-columns: 1fr;
  }

  /* 恋爱漫画推荐页 */
  .style-grid {
    grid-template-columns: 1fr;
  }

  .recommend-item .work-card {
    flex-direction: column;
  }

  .recommend-item .work-card figure {
    width: 100%;
    aspect-ratio: 16 / 10;
  }

  /* 页脚 */
  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 32px 16px 16px;
  }
}

@media (max-width: 480px) {
  .update-items {
    grid-template-columns: 1fr;
  }

  .ranking-list {
    grid-template-columns: 1fr;
  }

  .work-grid,
  .tocai-category:nth-of-type(3) .work-grid,
  .tocai-category:nth-of-type(4) .work-grid,
  .tocai-category:nth-of-type(5) .work-grid,
  .tocai-category:nth-of-type(6) .work-grid,
  .tocai-category:nth-of-type(7) .work-grid,
  .tocai-category:nth-of-type(8) .work-grid {
    grid-template-columns: 1fr;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .update-item {
    flex-direction: row;
  }

  .update-cover {
    width: 64px;
    height: 84px;
  }

  .error-block {
    padding: 32px 20px;
  }

  .error-code {
    font-size: 48px;
  }
}

/* ==========================================================
   Animation / 滚动出现动画（不阻塞初始可见）
   ========================================================== */

@media (prefers-reduced-motion: no-preference) {
  .tocai-nav-section,
  .update-list-section,
  .ranking-preview-section,
  .guide-entry-section,
  .tocai-category,
  .guide-section,
  .update-section,
  .rank-section,
  .content-section {
    animation: fadeInUp 0.5s ease both;
  }

  .update-list-section {
    animation-delay: 0.05s;
  }

  .ranking-preview-section {
    animation-delay: 0.1s;
  }

  .guide-entry-section {
    animation-delay: 0.15s;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
