/* ============================================================
   base — 全局基础样式
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1a1a1a;
  background-color: #f5f5f5;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: #3b82f6;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

/* ============================================================
   layout — 全站布局骨架
   ============================================================ */

.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  flex-shrink: 0;
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
}

.brand-slogan {
  font-size: 13px;
  color: #6b7280;
}

.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;
  border-radius: 6px;
  font-size: 15px;
  color: #1a1a1a;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-list li a:hover {
  background-color: #f0f2f5;
  text-decoration: none;
  color: #3b82f6;
}

.nav-list li a.is-current {
  color: #3b82f6;
  font-weight: 600;
  background-color: #eff6ff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  width: 44px;
  height: 44px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #1a1a1a;
  border-radius: 2px;
}

.site-main {
  min-height: 60vh;
}

/* 内页统一骨架 */
.inner-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: #6b7280;
}

.breadcrumb a:hover {
  color: #3b82f6;
}

.breadcrumb-sep {
  color: #9ca3af;
}

.breadcrumb-current {
  color: #1a1a1a;
  font-weight: 500;
}

/* 页面标题区 */
.page-header {
  margin-bottom: 40px;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  margin-bottom: 12px;
}

.page-description {
  font-size: 16px;
  color: #6b7280;
  max-width: 760px;
  line-height: 1.7;
}

/* 页脚 */
.site-footer {
  background-color: #1a1a1a;
  color: #9ca3af;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand-name {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.footer-brand-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #9ca3af;
}

.footer-group-title {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-links-group ul li {
  margin-bottom: 10px;
}

.footer-links-group ul li a {
  font-size: 14px;
  color: #9ca3af;
  transition: color 0.2s ease;
}

.footer-links-group ul li a:hover {
  color: #ffffff;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding: 20px 24px;
  text-align: center;
  font-size: 13px;
  color: #6b7280;
}

/* ============================================================
   components — 通用组件
   ============================================================ */

/* 首页模块通用 */
.module {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px;
}

.section-heading {
  margin-bottom: 32px;
}

.section-heading h2 {
  font-size: 26px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.section-heading p {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.7;
  max-width: 720px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.section-intro {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 760px;
}

/* 更多链接 */
.more-link {
  display: inline-block;
  margin-top: 24px;
  font-size: 15px;
  font-weight: 500;
  color: #3b82f6;
  padding: 8px 0;
}

.more-link:hover {
  text-decoration: underline;
}

/* ============================================================
   pages — 首页
   ============================================================ */

/* Hero 首屏 */
.home-hero {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-copy h1 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  color: #1a1a1a;
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 18px;
  font-weight: 500;
  color: #3b82f6;
  margin-bottom: 12px;
}

.hero-desc {
  font-size: 16px;
  line-height: 1.7;
  color: #6b7280;
  margin-bottom: 24px;
  max-width: 480px;
}

.cta-button {
  display: inline-block;
  background-color: #3b82f6;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.cta-button:hover {
  background-color: #2563eb;
  text-decoration: none;
}

.hero-media {
  display: flex;
  justify-content: flex-end;
}

.hero-figure {
  width: 100%;
  max-width: 480px;
}

.hero-figure img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 8px;
}

/* 分类导航带 */
.category-nav {
  background-color: #ffffff;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag {
  display: inline-block;
  padding: 10px 20px;
  background-color: #f0f2f5;
  color: #1a1a1a;
  border-radius: 6px;
  font-size: 15px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.tag:hover {
  background-color: #3b82f6;
  color: #ffffff;
  text-decoration: none;
}

/* 最近更新 */
.updates {
  background-color: #f5f5f5;
}

.update-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.update-item {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  transition: box-shadow 0.2s ease;
}

.update-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.update-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.update-info {
  padding: 16px;
}

.update-info h3 {
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
  line-height: 1.4;
}

.update-meta {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 12px;
}

.update-status {
  display: inline-block;
  font-size: 13px;
  color: #3b82f6;
  background-color: #eff6ff;
  padding: 4px 10px;
  border-radius: 4px;
}

/* 人气榜单 */
.ranking {
  background-color: #ffffff;
}

.ranking-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.ranking-item {
  display: flex;
  gap: 16px;
  background-color: #fafafa;
  border-radius: 8px;
  padding: 16px;
  align-items: flex-start;
}

.ranking-item img {
  width: 96px;
  height: 128px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.ranking-info {
  flex: 1;
}

.ranking-info h3 {
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.ranking-info p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 12px;
}

.ranking-info a {
  font-size: 14px;
  font-weight: 500;
}

/* 阅读指南入口 */
.guide-entry {
  background-color: #f5f5f5;
}

.guide-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.guide-card {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 28px;
  transition: box-shadow 0.2s ease;
}

.guide-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.guide-card h3 {
  font-size: 19px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.guide-card p {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 16px;
}

.guide-card a {
  font-size: 15px;
  font-weight: 500;
}

/* 长尾专题预告 */
.longtail-preview {
  background-color: #ffffff;
}

.topic-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.topic-card {
  background-color: #fafafa;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.topic-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.topic-card h3 {
  font-size: 19px;
  font-weight: 600;
  color: #1a1a1a;
  padding: 20px 20px 8px;
}

.topic-card p {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.7;
  padding: 0 20px 16px;
}

.topic-card a {
  display: inline-block;
  margin: 0 20px 20px;
  font-size: 15px;
  font-weight: 500;
}

/* ============================================================
   pages — 题材分类页
   ============================================================ */

.category-grid {
  margin-bottom: 56px;
}

.category-card {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.category-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.card-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-content {
  padding: 20px;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.card-desc {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 14px;
}

.card-link {
  font-size: 14px;
  font-weight: 500;
}

/* 分类说明 */
.category-notes {
  margin-bottom: 56px;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.note-card {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
}

.note-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.note-card p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.7;
}

/* 相关推荐 */
.related-links {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 28px;
}

.related-links .section-title {
  font-size: 20px;
}

.related-links p {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.7;
}

.related-links p a {
  margin-right: 16px;
  display: inline-block;
  margin-top: 8px;
}

/* ============================================================
   pages — 阅读指南页
   ============================================================ */

.guide-section {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 36px;
  margin-bottom: 32px;
}

.section-head {
  margin-bottom: 28px;
}

.section-head .section-title {
  font-size: 22px;
}

.section-desc {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.7;
  margin-top: 8px;
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.guide-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-index {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #3b82f6;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-title {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.step-text,
.step-text-text {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.7;
}

/* 收藏管理 */
.favorites-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.guide-media img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
}

.guide-media figcaption {
  font-size: 13px;
  color: #6b7280;
  margin-top: 8px;
  text-align: center;
}

.favorites-tips {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tip-item {
  background-color: #fafafa;
  border-radius: 8px;
  padding: 20px;
}

.tip-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.tip-text {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.7;
}

/* 阅读顺序 */
.order-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.order-item {
  background-color: #fafafa;
  border-radius: 8px;
  padding: 20px;
}

.order-title {
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.order-text {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.7;
}

/* 相关链接 */
.guide-related {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 28px;
}

.related-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.related-link {
  display: inline-block;
  padding: 8px 16px;
  background-color: #f0f2f5;
  border-radius: 6px;
  font-size: 14px;
  color: #1a1a1a;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.related-link:hover {
  background-color: #3b82f6;
  color: #ffffff;
  text-decoration: none;
}

/* ============================================================
   pages — 恋爱漫画推荐页
   ============================================================ */

.recommendation-list-section {
  margin-bottom: 56px;
}

.recommendation-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rec-card {
  display: flex;
  gap: 20px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
  transition: box-shadow 0.2s ease;
}

.rec-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.rec-cover img {
  width: 120px;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
}

.rec-info {
  flex: 1;
}

.rec-title {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.rec-tags {
  font-size: 13px;
  color: #3b82f6;
  margin-bottom: 10px;
}

.rec-desc {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.7;
}

/* 推荐理由 */
.reason-section {
  margin-bottom: 40px;
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.reason-item {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
}

.reason-heading {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.reason-item p {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.7;
}

.reason-item p a {
  display: inline-block;
  margin-top: 8px;
  font-weight: 500;
}

/* ============================================================
   pages — 热血漫画推荐页
   ============================================================ */

.recommend-item {
  display: flex;
  gap: 20px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s ease;
}

.recommend-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.recommend-cover img {
  width: 120px;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
}

.recommend-info {
  flex: 1;
}

.recommend-info h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.recommend-info p {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 10px;
}

.recommend-reason {
  font-size: 14px;
  color: #4b5563;
}

.recommend-reason strong {
  color: #3b82f6;
  font-weight: 600;
}

/* 经典作品解读 */
.classic-analysis {
  margin-top: 48px;
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.analysis-card {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
}

.analysis-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.analysis-card p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.7;
}

.analysis-note {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
  font-size: 15px;
  color: #6b7280;
  line-height: 1.7;
}

.analysis-note a {
  display: inline-block;
  margin-right: 16px;
  margin-top: 8px;
  font-weight: 500;
}

/* ============================================================
   pages — 404 页
   ============================================================ */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 48px 24px;
}

.error-panel {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 48px;
  text-align: center;
  max-width: 560px;
  width: 100%;
}

.error-code {
  font-size: 72px;
  font-weight: 700;
  color: #3b82f6;
  line-height: 1;
  margin-bottom: 16px;
}

.error-panel h1 {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 16px;
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 24px;
}

.btn-back {
  display: inline-block;
  background-color: #3b82f6;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 6px;
  margin-bottom: 24px;
  transition: background-color 0.2s ease;
}

.btn-back:hover {
  background-color: #2563eb;
  text-decoration: none;
}

.error-links {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.error-links a {
  font-size: 15px;
  font-weight: 500;
}

/* ============================================================
   responsive — 响应式
   ============================================================ */

@media (max-width: 1024px) {
  .update-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .analysis-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    min-height: 64px;
    padding: 0 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px;
    gap: 4px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li a {
    padding: 12px 16px;
  }

  .site-header {
    position: relative;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 16px;
  }

  .hero-copy h1 {
    font-size: 28px;
  }

  .hero-media {
    justify-content: center;
  }

  .hero-figure img {
    height: 240px;
  }

  .module {
    padding: 40px 16px;
  }

  .update-list {
    grid-template-columns: 1fr;
  }

  .ranking-list {
    grid-template-columns: 1fr;
  }

  .guide-cards {
    grid-template-columns: 1fr;
  }

  .topic-cards {
    grid-template-columns: 1fr;
  }

  .inner-main {
    padding: 24px 16px 48px;
  }

  .page-title {
    font-size: 26px;
  }

  .notes-grid {
    grid-template-columns: 1fr;
  }

  .favorites-content {
    grid-template-columns: 1fr;
  }

  .reason-grid {
    grid-template-columns: 1fr;
  }

  .analysis-grid {
    grid-template-columns: 1fr;
  }

  .rec-card {
    flex-direction: column;
  }

  .rec-cover img {
    width: 100%;
    height: 200px;
  }

  .recommend-item {
    flex-direction: column;
  }

  .recommend-cover img {
    width: 100%;
    height: 200px;
  }

  .guide-section {
    padding: 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 16px 24px;
  }

  .error-panel {
    padding: 32px 24px;
  }

  .error-code {
    font-size: 56px;
  }
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 18px;
  }

  .brand-slogan {
    font-size: 12px;
  }

  .category-tags {
    gap: 8px;
  }

  .tag {
    padding: 8px 14px;
    font-size: 14px;
  }

  .update-info h3 {
    font-size: 16px;
  }

  .ranking-item {
    flex-direction: column;
  }

  .ranking-item img {
    width: 100%;
    height: 180px;
  }

  .guide-card {
    padding: 20px;
  }

  .step-index {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .guide-step {
    gap: 14px;
  }
}
