/* ==========================================================================
   base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #3e3e3e;
  background-color: #f5f0e8;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #2d5a27;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #1f421b;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Noto Serif SC", Georgia, "Songti SC", serif;
  color: #2d5a27;
  line-height: 1.35;
  margin: 0 0 0.5em;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.125rem;
}

p {
  margin: 0 0 1em;
}

figure {
  margin: 0;
}

/* ==========================================================================
   layout
   ========================================================================== */

.site-header {
  background-color: #ffffff;
  border-bottom: 3px solid #2d5a27;
  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;
  min-height: 68px;
}

.brand-link {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  padding: 8px 0;
}

.brand-name {
  font-family: "Noto Serif SC", Georgia, "Songti SC", serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: #2d5a27;
  letter-spacing: 0.02em;
}

.brand-tagline {
  font-size: 0.75rem;
  color: #7a7a7a;
}

.site-nav .nav-list {
  display: flex;
  gap: 4px;
}

.site-nav .nav-list a {
  display: block;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9375rem;
  color: #3e3e3e;
}

.site-nav .nav-list a:hover {
  background-color: #f0eadf;
  color: #2d5a27;
}

.site-nav .nav-list a.is-current {
  background-color: #2d5a27;
  color: #ffffff;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #2d5a27;
  border-radius: 2px;
}

.site-main {
  min-height: 60vh;
}

.inner-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.site-footer {
  background-color: #2d5a27;
  color: #e8e4dc;
  padding: 48px 24px 24px;
}

.footer-columns {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.footer-col h3 {
  color: #ffffff;
  font-size: 1.0625rem;
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul a {
  color: #c9c4ba;
  font-size: 0.875rem;
}

.footer-col ul a:hover {
  color: #ffffff;
}

.footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.8125rem;
  color: #b0aca3;
}

/* ==========================================================================
   components
   ========================================================================== */

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #7a7a7a;
  margin-bottom: 24px;
}

.breadcrumb a {
  color: #2d5a27;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  color: #b0aca3;
}

.breadcrumb-current {
  color: #3e3e3e;
}

/* 页面标题区 */
.page-header {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid #d4a017;
}

.page-title {
  font-size: 2rem;
  margin-bottom: 8px;
}

.page-description {
  font-size: 0.9375rem;
  color: #6b6b6b;
  max-width: 720px;
}

/* 区块标题 */
.section-title {
  font-size: 1.375rem;
  margin-bottom: 20px;
  position: relative;
  padding-left: 14px;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 5px;
  height: 1.25em;
  background-color: #d4a017;
  border-radius: 2px;
}

/* ==========================================================================
   pages - 首页
   ========================================================================== */

.home-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

/* hero 封面墙 */
.hero-section {
  margin-bottom: 48px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: stretch;
}

.hero-feature {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(45, 90, 39, 0.08);
}

.hero-cover-link {
  display: block;
}

.hero-figure {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 20px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: #ffffff;
  font-size: 0.875rem;
}

.hero-info {
  padding: 24px;
}

.hero-title {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.hero-description {
  font-size: 0.9375rem;
  color: #6b6b6b;
  margin-bottom: 20px;
}

.hero-cta {
  display: inline-block;
  padding: 10px 24px;
  background-color: #d4a017;
  color: #ffffff;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.hero-cta:hover {
  background-color: #b8890f;
  color: #ffffff;
}

.hero-updates {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(45, 90, 39, 0.08);
}

.hero-updates .section-title {
  font-size: 1.125rem;
}

.update-list li {
  padding: 12px 0;
  border-bottom: 1px solid #f0eadf;
}

.update-list li:last-child {
  border-bottom: none;
}

.update-list a {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #3e3e3e;
}

.update-list a:hover {
  color: #2d5a27;
}

.update-status {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.75rem;
  color: #b8890f;
  font-weight: 500;
}

/* 题材标签 */
.genre-tags {
  margin-bottom: 48px;
}

.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.genre-tag {
  display: inline-block;
  padding: 10px 24px;
  background-color: #ffffff;
  color: #2d5a27;
  border: 2px solid #2d5a27;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.genre-tag:hover {
  background-color: #2d5a27;
  color: #ffffff;
}

/* 最近更新批次 */
.recent-updates {
  margin-bottom: 48px;
}

.update-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.update-card {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.update-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(45, 90, 39, 0.12);
}

.update-card a {
  display: block;
}

.update-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.update-card h3 {
  font-size: 1rem;
  padding: 12px 16px 4px;
  margin-bottom: 4px;
}

.card-tag {
  display: inline-block;
  padding: 2px 10px;
  margin: 0 16px 12px;
  background-color: #f0eadf;
  border-radius: 4px;
  font-size: 0.75rem;
  color: #2d5a27;
}

.update-card .update-status {
  display: block;
  padding: 0 16px 14px;
  font-size: 0.8125rem;
  color: #b8890f;
}

/* 人气榜单 */
.ranking-list {
  margin-bottom: 48px;
}

.ranking-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.ranking-item {
  display: flex;
  gap: 16px;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.rank-num {
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: #d4a017;
  line-height: 1;
  min-width: 36px;
}

.rank-content h3 {
  font-size: 1.0625rem;
  margin-bottom: 4px;
}

.rank-genre {
  font-size: 0.8125rem;
  color: #2d5a27;
  margin-bottom: 6px;
}

.rank-reason {
  font-size: 0.875rem;
  color: #6b6b6b;
  margin-bottom: 0;
}

/* 阅读指南入口 */
.guide-teaser {
  margin-bottom: 48px;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(45, 90, 39, 0.08);
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.step-item {
  padding: 20px;
  background-color: #f9f6f0;
  border-radius: 8px;
}

.step-num {
  display: inline-block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #d4a017;
  color: #ffffff;
  font-weight: 700;
  text-align: center;
  line-height: 36px;
  margin-bottom: 12px;
}

.step-item h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.step-item p {
  font-size: 0.875rem;
  color: #6b6b6b;
  margin-bottom: 0;
}

.guide-link {
  display: inline-block;
  padding: 10px 28px;
  background-color: #2d5a27;
  color: #ffffff;
  border-radius: 6px;
  font-weight: 600;
}

.guide-link:hover {
  background-color: #1f421b;
  color: #ffffff;
}

/* 专题推荐预告 */
.featured-topics {
  margin-bottom: 48px;
}

.topic-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.topic-card {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.topic-card a {
  display: block;
}

.topic-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.topic-card h3 {
  padding: 16px 20px 4px;
  font-size: 1.125rem;
}

.topic-card p {
  padding: 0 20px 20px;
  font-size: 0.875rem;
  color: #6b6b6b;
  margin-bottom: 0;
}

/* ==========================================================================
   pages - 题材分类页
   ========================================================================== */

.category-grid-section {
  margin-bottom: 48px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.category-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(45, 90, 39, 0.12);
}

.category-figure {
  margin-bottom: 16px;
}

.category-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
}

.category-name {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.category-desc {
  font-size: 0.875rem;
  color: #6b6b6b;
  margin-bottom: 12px;
}

.category-tag {
  display: inline-block;
  padding: 4px 12px;
  background-color: #f0eadf;
  border-radius: 4px;
  font-size: 0.75rem;
  color: #2d5a27;
}

.usage-note-section {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(45, 90, 39, 0.08);
}

.usage-note-content p {
  font-size: 0.9375rem;
  color: #3e3e3e;
  max-width: 800px;
}

/* ==========================================================================
   pages - 阅读指南页
   ========================================================================== */

.guide-section {
  margin-bottom: 48px;
}

.guide-section h2 {
  font-size: 1.375rem;
  margin-bottom: 12px;
}

.section-intro {
  font-size: 0.9375rem;
  color: #6b6b6b;
  max-width: 800px;
  margin-bottom: 24px;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.method-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.method-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 12px;
  color: #2d5a27;
}

.method-card p {
  font-size: 0.875rem;
  color: #6b6b6b;
}

.method-card p:last-child {
  margin-bottom: 0;
}

.guide-section.related-links {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(45, 90, 39, 0.08);
}

.related-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.related-list a {
  display: block;
  padding: 16px 20px;
  background-color: #f9f6f0;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-align: center;
}

.related-list a:hover {
  background-color: #f0eadf;
}

/* ==========================================================================
   pages - 热血漫画推荐页
   ========================================================================== */

.genre-intro {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 48px;
  box-shadow: 0 2px 8px rgba(45, 90, 39, 0.08);
}

.genre-intro h2 {
  font-size: 1.375rem;
  margin-bottom: 16px;
}

.genre-intro p {
  font-size: 0.9375rem;
  color: #3e3e3e;
  max-width: 800px;
}

.recommendation-list {
  margin-bottom: 48px;
}

.recommendation-list > h2 {
  font-size: 1.375rem;
  margin-bottom: 8px;
}

.recommendation-list > p {
  font-size: 0.9375rem;
  color: #6b6b6b;
  margin-bottom: 24px;
}

.recommend-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.recommend-media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 6px;
}

.recommend-body h3 {
  font-size: 1.125rem;
  margin-bottom: 12px;
}

.recommend-points,
.recommend-audience {
  font-size: 0.875rem;
  color: #3e3e3e;
  margin-bottom: 8px;
}

.recommend-points strong,
.recommend-audience strong {
  color: #2d5a27;
}

.reading-order {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 48px;
  box-shadow: 0 2px 8px rgba(45, 90, 39, 0.08);
}

.reading-order h2 {
  font-size: 1.375rem;
  margin-bottom: 16px;
}

.reading-order p {
  font-size: 0.9375rem;
  color: #3e3e3e;
  max-width: 800px;
}

.related-links > h2 {
  font-size: 1.375rem;
  margin-bottom: 16px;
}

.related-links > ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.related-links > ul a {
  display: block;
  padding: 16px 20px;
  background-color: #ffffff;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.related-links > ul a:hover {
  background-color: #f0eadf;
}

/* ==========================================================================
   pages - 恋爱漫画推荐页
   ========================================================================== */

.subtype-tabs {
  margin-bottom: 40px;
}

.subtype-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.subtype-pill {
  display: inline-block;
  padding: 8px 24px;
  background-color: #ffffff;
  color: #2d5a27;
  border: 2px solid #2d5a27;
  border-radius: 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.subtype-pill:hover {
  background-color: #2d5a27;
  color: #ffffff;
}

.subtype-intro {
  font-size: 0.9375rem;
  color: #6b6b6b;
  max-width: 800px;
}

.recommendation-list {
  margin-bottom: 48px;
}

.recommendation-list > h2 {
  font-size: 1.375rem;
  margin-bottom: 24px;
}

.subtype-title,
.subtitle-title {
  font-size: 1.25rem;
  margin: 32px 0 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid #d4a017;
}

.rec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.rec-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
}

.rec-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 6px;
}

.rec-name {
  font-size: 1rem;
  margin-bottom: 8px;
}

.rec-point,
.rec-audience {
  font-size: 0.8125rem;
  color: #3e3e3e;
  margin-bottom: 6px;
}

.rec-point strong,
.rec-audience strong {
  color: #2d5a27;
}

.reading-tips {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 48px;
  box-shadow: 0 2px 8px rgba(45, 90, 39, 0.08);
}

.reading-tips p {
  font-size: 0.9375rem;
  color: #3e3e3e;
  max-width: 800px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.related-card {
  display: block;
  padding: 16px 12px;
  background-color: #ffffff;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.related-card:hover {
  background-color: #f0eadf;
}

/* ==========================================================================
   pages - 404
   ========================================================================== */

.error-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
}

.error-content {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 64px 32px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(45, 90, 39, 0.08);
}

.error-content h1 {
  font-size: 3rem;
  color: #d4a017;
  margin-bottom: 16px;
}

.error-content p {
  font-size: 0.9375rem;
  color: #6b6b6b;
  max-width: 480px;
  margin: 0 auto 12px;
}

.error-back-link {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 28px;
  background-color: #2d5a27;
  color: #ffffff;
  border-radius: 6px;
  font-weight: 600;
}

.error-back-link:hover {
  background-color: #1f421b;
  color: #ffffff;
}

/* ==========================================================================
   responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .update-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
    min-height: 60px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-bottom: 3px solid #2d5a27;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  }

  .site-nav .nav-list {
    display: none;
    flex-direction: column;
    padding: 12px 16px;
    gap: 4px;
  }

  .site-nav .nav-list.is-open {
    display: flex;
  }

  .site-nav .nav-list a {
    padding: 12px 16px;
  }

  .home-main,
  .inner-main {
    padding: 24px 16px 48px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-figure {
    aspect-ratio: 16 / 10;
  }

  .guide-steps {
    grid-template-columns: 1fr;
  }

  .topic-cards {
    grid-template-columns: 1fr;
  }

  .ranking-items {
    grid-template-columns: 1fr;
  }

  .update-cards {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .method-grid {
    grid-template-columns: 1fr;
  }

  .related-list {
    grid-template-columns: 1fr;
  }

  .recommend-card {
    grid-template-columns: 1fr;
  }

  .rec-grid {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .rec-card {
    grid-template-columns: 100px 1fr;
  }

  .related-links > ul {
    grid-template-columns: 1fr;
  }

  .error-main {
    padding: 48px 16px;
  }

  .error-content {
    padding: 40px 24px;
  }
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 1.125rem;
  }

  .brand-tagline {
    font-size: 0.6875rem;
  }

  .hero-caption {
    font-size: 0.75rem;
    padding: 20px 12px 12px;
  }

  .hero-info {
    padding: 16px;
  }

  .hero-title {
    font-size: 1.375rem;
  }

  .genre-tags .tag-group {
    gap: 8px;
  }

  .genre-tag {
    padding: 8px 16px;
    font-size: 0.8125rem;
  }

  .guide-teaser {
    padding: 20px;
  }

  .step-item {
    padding: 16px;
  }

  .rec-card {
    grid-template-columns: 80px 1fr;
    padding: 12px;
  }

  .rec-name {
    font-size: 0.875rem;
  }

  .rec-point,
  .rec-audience {
    font-size: 0.75rem;
  }

  .footer-columns {
    grid-template-columns: 1fr;
  }
}
