/* ============================================================
   动漫天堂 wohaiyiyao.com · 全站样式表
   农业产地风 · 田间绿 / 浅草绿 / 麦穗黄 / 米白底 / 深褐文字
   ============================================================ */

/* ============================================================
   1. Base —— 变量 / 重置 / 全局基础
   ============================================================ */

:root {
  --green-field: #3b6e4a;
  --green-grass: #7a9e5a;
  --yellow-wheat: #e8c84a;
  --cream-bg: #f5f1e6;
  --brown-ink: #2e2b26;
  --brown-soft: #5c5548;
  --white: #ffffff;
  --card-bg: #fdfcf7;
  --line-light: #e2dccb;
  --shadow-card: 0 2px 8px rgba(46, 43, 38, 0.08);
  --shadow-hover: 0 6px 18px rgba(46, 43, 38, 0.14);
  --radius-card: 8px;
  --radius-tag: 4px;
  --container-w: 1200px;
  --header-h: 64px;
  --font-body: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--brown-ink);
  background-color: var(--cream-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--green-field);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--green-grass);
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  line-height: 1.35;
  font-weight: 600;
  color: var(--brown-ink);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   2. Layout —— 容器 / 网格 / 骨架
   ============================================================ */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1 0 auto;
}

.site-home {
  width: 100%;
}

.site-inner {
  width: 100%;
}

.site-error {
  width: 100%;
}

/* 顶部实用条 */
.top-strip {
  background-color: var(--green-field);
  color: var(--cream-bg);
  font-size: 13px;
  line-height: 1.4;
}

.top-strip-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 6px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.strip-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.strip-item::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--yellow-wheat);
  flex-shrink: 0;
}

/* 页头 */
.site-header {
  background-color: var(--white);
  border-bottom: 2px solid var(--green-field);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 20px;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo-area {
  flex-shrink: 0;
}

.logo-link {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-brand {
  font-size: 22px;
  font-weight: 700;
  color: var(--green-field);
  letter-spacing: 1px;
}

.logo-slogan {
  font-size: 12px;
  color: var(--brown-soft);
}

/* 主导航 */
.site-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li a {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  color: var(--brown-ink);
  border-bottom: 2px solid transparent;
  border-radius: 4px 4px 0 0;
}

.nav-list li a:hover {
  color: var(--green-field);
  background-color: rgba(122, 158, 90, 0.08);
}

.nav-list li a.is-current {
  color: var(--green-field);
  font-weight: 600;
  border-bottom-color: var(--green-field);
}

/* 汉堡按钮（默认隐藏） */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border-radius: 4px;
}

.nav-toggle:hover {
  background-color: rgba(59, 110, 74, 0.08);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--green-field);
  border-radius: 2px;
}

/* 页脚 */
.site-footer {
  background-color: var(--green-field);
  color: var(--cream-bg);
  margin-top: 60px;
}

.footer-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 40px 20px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-col h3 {
  color: var(--yellow-wheat);
  font-size: 16px;
  margin-bottom: 14px;
  font-weight: 600;
}

.brand-col p {
  font-size: 14px;
  color: rgba(245, 241, 230, 0.85);
  margin-top: 8px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: rgba(245, 241, 230, 0.85);
  font-size: 14px;
}

.footer-col ul li a:hover {
  color: var(--yellow-wheat);
}

.footer-bottom {
  border-top: 1px solid rgba(245, 241, 230, 0.2);
  padding: 16px 20px;
  text-align: center;
}

.footer-bottom p {
  max-width: var(--container-w);
  margin: 0 auto;
  font-size: 13px;
  color: rgba(245, 241, 230, 0.75);
}

/* ============================================================
   3. Components —— 通用组件
   ============================================================ */

/* 面包屑 */
.breadcrumb {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 18px 20px 0;
  font-size: 14px;
  color: var(--brown-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb a {
  color: var(--green-field);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--brown-soft);
}

.breadcrumb-current {
  color: var(--brown-ink);
  font-weight: 500;
}

/* 内页页面标题区 */
.inner-main {
  width: 100%;
}

.page-header {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 24px 20px 8px;
}

.page-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--green-field);
  margin-bottom: 8px;
}

.page-description {
  font-size: 16px;
  color: var(--brown-soft);
  max-width: 760px;
}

/* 区块标题 */
.section-head {
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--green-field);
  margin-bottom: 6px;
}

.section-head .section-desc,
.section-head .section-note,
.section-head p {
  font-size: 15px;
  color: var(--brown-soft);
  max-width: 720px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--green-field);
  margin-bottom: 16px;
}

.section-intro {
  font-size: 15px;
  color: var(--brown-soft);
  margin-bottom: 20px;
  max-width: 720px;
}

.section-note {
  font-size: 15px;
  color: var(--brown-soft);
}

/* 通用标签 */
.genre-tag {
  display: inline-block;
  padding: 2px 10px;
  font-size: 12px;
  line-height: 1.6;
  border-radius: var(--radius-tag);
  background-color: rgba(122, 158, 90, 0.14);
  color: var(--green-field);
  font-weight: 500;
  white-space: nowrap;
}

.tag {
  display: inline-block;
  padding: 2px 10px;
  font-size: 12px;
  line-height: 1.6;
  border-radius: var(--radius-tag);
  background-color: rgba(122, 158, 90, 0.14);
  color: var(--green-field);
  font-weight: 500;
  white-space: nowrap;
}

/* 通用更多链接 */
.more-link {
  display: inline-block;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--green-field);
  border: 1px solid var(--green-field);
  border-radius: var(--radius-tag);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.more-link:hover {
  background-color: var(--green-field);
  color: var(--cream-bg);
}

/* 封面卡通用 */
.cover-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cover-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.cover-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.cover-card h3 {
  font-size: 16px;
  padding: 10px 12px 0;
}

.cover-card h3 a {
  color: var(--brown-ink);
}

.cover-card h3 a:hover {
  color: var(--green-field);
}

.cover-card .genre-tag {
  margin: 8px 12px 0;
}

.cover-card .card-note {
  padding: 6px 12px 14px;
  font-size: 13px;
  color: var(--brown-soft);
  line-height: 1.5;
}

/* ============================================================
   4. Pages —— 首页
   ============================================================ */

.home-main .section-block {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 48px 20px 0;
}

/* hero 首屏 */
.hero-section {
  background-color: var(--green-field);
  color: var(--cream-bg);
}

.hero-layout {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 52px 20px 56px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-text h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--cream-bg);
  margin-bottom: 14px;
  line-height: 1.3;
}

.hero-lead {
  font-size: 16px;
  color: rgba(245, 241, 230, 0.9);
  margin-bottom: 22px;
  max-width: 560px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-btn {
  display: inline-block;
  padding: 6px 16px;
  font-size: 14px;
  border-radius: 20px;
  background-color: rgba(245, 241, 230, 0.12);
  color: var(--cream-bg);
  border: 1px solid rgba(245, 241, 230, 0.3);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.tag-btn:hover {
  background-color: var(--yellow-wheat);
  color: var(--green-field);
  border-color: var(--yellow-wheat);
}

.hero-figure {
  width: 100%;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* 今日推荐 */
.today-recommend .section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* 题材分类入口 */
.genre-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.genre-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-card);
  padding: 24px 20px;
  border-left: 4px solid var(--green-grass);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.genre-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.genre-icon {
  display: inline-block;
  font-size: 28px;
  margin-bottom: 10px;
  line-height: 1;
}

.genre-card h3 {
  font-size: 18px;
  color: var(--green-field);
  margin-bottom: 8px;
}

.genre-card p {
  font-size: 14px;
  color: var(--brown-soft);
  line-height: 1.6;
}

/* 最近更新 */
.update-list {
  border-top: 2px solid var(--line-light);
}

.update-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 8px;
  border-bottom: 1px solid var(--line-light);
}

.update-item img {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.update-info {
  flex: 1;
  min-width: 0;
}

.update-info h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.update-info h3 a {
  color: var(--brown-ink);
}

.update-info h3 a:hover {
  color: var(--green-field);
}

.update-info .meta {
  font-size: 13px;
  color: var(--brown-soft);
}

.update-info time {
  font-size: 13px;
  color: var(--brown-soft);
}

.latest-updates .more-link {
  margin-top: 20px;
  margin-left: 8px;
}

/* 热读排行（首页 Top5） */
.rank-list {
  counter-reset: rank;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 8px;
  border-bottom: 1px solid var(--line-light);
}

.rank-num {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--green-field);
  background-color: rgba(122, 158, 90, 0.14);
  border-radius: 6px;
}

.rank-item:first-child .rank-num,
.rank-item:nth-child(2) .rank-num,
.rank-item:nth-child(3) .rank-num {
  background-color: var(--yellow-wheat);
  color: var(--brown-ink);
}

.rank-item img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.rank-info {
  flex: 1;
  min-width: 0;
}

.rank-info h3 {
  font-size: 15px;
  margin-bottom: 2px;
}

.rank-info h3 a {
  color: var(--brown-ink);
}

.rank-info h3 a:hover {
  color: var(--green-field);
}

.rank-info .genre-tag {
  margin-right: 8px;
}

.heat {
  font-size: 13px;
  color: var(--brown-soft);
  white-space: nowrap;
}

/* 阅读与反馈双入口 */
.help-entry {
  padding-bottom: 8px;
}

.entry-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.entry-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  border-bottom: 4px solid var(--green-grass);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.entry-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-bottom-color: var(--yellow-wheat);
}

.entry-card h3 {
  font-size: 20px;
  color: var(--green-field);
  margin-bottom: 8px;
}

.entry-card p {
  font-size: 14px;
  color: var(--brown-soft);
  line-height: 1.6;
}

/* ============================================================
   5. Pages —— 今日推荐（tuis-title）
   ============================================================ */

.rec-list,
.rec-note,
.rec-more {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 32px 20px 0;
}

.rec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.rec-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.rec-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.rec-cover {
  width: 100%;
  overflow: hidden;
}

.rec-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.rec-info {
  padding: 14px 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.rec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.rec-name {
  font-size: 17px;
  margin-bottom: 8px;
}

.rec-name a {
  color: var(--brown-ink);
}

.rec-name a:hover {
  color: var(--green-field);
}

.rec-reason {
  font-size: 14px;
  color: var(--green-field);
  font-weight: 500;
  margin-bottom: 6px;
}

.rec-point {
  font-size: 13px;
  color: var(--brown-soft);
  line-height: 1.6;
}

.note-content {
  background-color: var(--card-bg);
  border-radius: var(--radius-card);
  padding: 24px;
  border-left: 4px solid var(--yellow-wheat);
}

.note-content p {
  font-size: 15px;
  color: var(--brown-soft);
  margin-bottom: 12px;
  line-height: 1.8;
}

.note-content p:last-child {
  margin-bottom: 0;
}

.more-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   6. Pages —— 题材分类（genre）
   ============================================================ */

.genre-overview,
.genre-group,
.related-links {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 32px 20px 0;
}

.genre-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.genre-tag-list li a {
  display: inline-block;
  padding: 6px 18px;
  font-size: 14px;
  border-radius: 20px;
  background-color: var(--card-bg);
  color: var(--green-field);
  border: 1px solid var(--line-light);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.genre-tag-list li a:hover {
  background-color: var(--green-field);
  color: var(--cream-bg);
  border-color: var(--green-field);
}

.genre-group {
  padding-top: 40px;
}

.genre-group h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--green-field);
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line-light);
}

.genre-desc {
  font-size: 15px;
  color: var(--brown-soft);
  margin-bottom: 18px;
  max-width: 720px;
}

.genre-work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.work-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.work-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.work-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.work-card h3 {
  font-size: 16px;
  padding: 10px 12px 0;
}

.work-card h3 a {
  color: var(--brown-ink);
}

.work-card h3 a:hover {
  color: var(--green-field);
}

.work-tags {
  padding: 6px 12px 14px;
  font-size: 13px;
  color: var(--brown-soft);
}

.related-links .related-list {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.related-list li a {
  display: block;
  padding: 10px 14px;
  background-color: var(--card-bg);
  border-radius: var(--radius-tag);
  font-size: 14px;
  color: var(--green-field);
  border: 1px solid var(--line-light);
}

.related-list li a:hover {
  background-color: var(--green-field);
  color: var(--cream-bg);
  border-color: var(--green-field);
}

/* ============================================================
   7. Pages —— 连载更新（latest）
   ============================================================ */

.latest-section,
.update-note,
.related-links {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 32px 20px 0;
}

.latest-timeline {
  border-top: 2px solid var(--line-light);
}

.latest-timeline .update-item {
  align-items: flex-start;
}

.update-cover img {
  width: 72px;
  height: 96px;
  border-radius: 6px;
  object-fit: cover;
}

.update-title {
  font-size: 17px;
  margin-bottom: 6px;
}

.update-title a {
  color: var(--brown-ink);
}

.update-title a:hover {
  color: var(--green-field);
}

.update-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.update-meta .status {
  font-size: 12px;
  color: var(--green-field);
  background-color: rgba(122, 158, 90, 0.12);
  padding: 2px 8px;
  border-radius: var(--radius-tag);
}

.update-desc {
  font-size: 14px;
  color: var(--brown-soft);
  line-height: 1.6;
  max-width: 640px;
}

.update-chapter {
  flex-shrink: 0;
  text-align: right;
  min-width: 120px;
}

.chapter-label {
  display: block;
  font-size: 12px;
  color: var(--brown-soft);
}

.chapter-num {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--green-field);
}

.update-time {
  display: block;
  font-size: 13px;
  color: var(--brown-soft);
  margin-top: 4px;
}

.note-inner {
  background-color: var(--card-bg);
  border-radius: var(--radius-card);
  padding: 24px;
  border-left: 4px solid var(--green-grass);
}

.note-inner h2 {
  font-size: 20px;
  color: var(--green-field);
  margin-bottom: 12px;
}

.note-inner p {
  font-size: 15px;
  color: var(--brown-soft);
  line-height: 1.8;
  margin-bottom: 10px;
}

.note-inner p:last-child {
  margin-bottom: 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  border-bottom: 3px solid var(--green-grass);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.related-card h3 {
  font-size: 16px;
  color: var(--green-field);
  margin-bottom: 6px;
}

.related-card p {
  font-size: 13px;
  color: var(--brown-soft);
  line-height: 1.6;
}

/* ============================================================
   8. Pages —— 完结作品（completed）
   ============================================================ */

.filter-tags,
.completed-grid,
.reading-tip {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 24px 20px 0;
}

.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-link {
  display: inline-block;
  padding: 6px 18px;
  font-size: 14px;
  border-radius: 20px;
  background-color: var(--card-bg);
  color: var(--green-field);
  border: 1px solid var(--line-light);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.tag-link:hover {
  background-color: var(--green-field);
  color: var(--cream-bg);
  border-color: var(--green-field);
}

.completed-grid {
  padding-top: 36px;
}

.genre-block {
  margin-bottom: 40px;
}

.genre-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--green-field);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line-light);
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.book-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.book-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.card-cover {
  width: 100%;
  overflow: hidden;
}

.card-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.book-title {
  font-size: 16px;
  padding: 10px 12px 0;
}

.book-title a {
  color: var(--brown-ink);
}

.book-title a:hover {
  color: var(--green-field);
}

.book-meta {
  padding: 6px 12px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.book-meta time {
  font-size: 13px;
  color: var(--brown-soft);
}

.reading-tip {
  padding-bottom: 8px;
}

.reading-tip p {
  font-size: 15px;
  color: var(--brown-soft);
  line-height: 1.8;
  max-width: 720px;
}

.reading-tip p a {
  color: var(--green-field);
  text-decoration: underline;
}

/* ============================================================
   9. Pages —— 热读排行（ranking）
   ============================================================ */

.ranking-section,
.ranking-note-section,
.related-links-section {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 32px 20px 0;
}

.ranking-list {
  border-top: 2px solid var(--line-light);
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 8px;
  border-bottom: 1px solid var(--line-light);
}

.ranking-item .rank-num {
  width: 36px;
  height: 36px;
  font-size: 16px;
}

.rank-cover img {
  width: 56px;
  height: 72px;
  border-radius: 6px;
  object-fit: cover;
}

.rank-info {
  flex: 1;
  min-width: 0;
}

.rank-title {
  font-size: 16px;
  margin-bottom: 4px;
}

.rank-title a {
  color: var(--brown-ink);
}

.rank-title a:hover {
  color: var(--green-field);
}

.rank-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.rank-desc {
  font-size: 13px;
  color: var(--brown-soft);
  line-height: 1.5;
  max-width: 480px;
}

.rank-heat {
  flex-shrink: 0;
  width: 140px;
  text-align: right;
}

.heat-label {
  display: block;
  font-size: 12px;
  color: var(--brown-soft);
  margin-bottom: 4px;
}

.heat-bar {
  display: block;
  height: 6px;
  background-color: var(--line-light);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}

.heat-fill {
  display: block;
  height: 100%;
  background-color: var(--green-grass);
  border-radius: 3px;
}

.heat-fill.heat-71 { width: 71%; }
.heat-fill.heat-74 { width: 74%; }
.heat-fill.heat-77 { width: 77%; }
.heat-fill.heat-80 { width: 80%; }
.heat-fill.heat-83 { width: 83%; }
.heat-fill.heat-86 { width: 86%; }
.heat-fill.heat-89 { width: 89%; }
.heat-fill.heat-92 { width: 92%; }
.heat-fill.heat-95 { width: 95%; }
.heat-fill.heat-98 { width: 98%; }

.heat-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--green-field);
}

.ranking-note-section h2,
.related-links-section h2 {
  font-size: 20px;
  color: var(--green-field);
  margin-bottom: 12px;
}

.ranking-note-section p {
  font-size: 15px;
  color: var(--brown-soft);
  line-height: 1.8;
  margin-bottom: 10px;
  max-width: 720px;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   10. Pages —— 阅读指南（guide）
   ============================================================ */

.guide-overview,
.reading-steps,
.content-rules,
.faq-section,
.related-links {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 32px 20px 0;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.overview-item {
  background-color: var(--card-bg);
  border-radius: var(--radius-card);
  padding: 20px 18px;
  border-top: 3px solid var(--green-grass);
  box-shadow: var(--shadow-card);
}

.overview-item h3 {
  font-size: 16px;
  color: var(--green-field);
  margin-bottom: 6px;
}

.overview-item p {
  font-size: 13px;
  color: var(--brown-soft);
  line-height: 1.6;
  margin-bottom: 8px;
}

.overview-item a {
  font-size: 13px;
  font-weight: 500;
  color: var(--green-field);
}

.overview-item a:hover {
  text-decoration: underline;
}

.steps-list {
  position: relative;
}

.step-item {
  display: flex;
  gap: 16px;
  padding: 16px 8px;
  border-bottom: 1px solid var(--line-light);
}

.step-num {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--cream-bg);
  background-color: var(--green-field);
  border-radius: 50%;
}

.step-body h3 {
  font-size: 17px;
  margin-bottom: 4px;
}

.step-body p {
  font-size: 14px;
  color: var(--brown-soft);
  line-height: 1.7;
  max-width: 680px;
}

.guide-figure {
  margin-top: 24px;
  border-radius: var(--radius-card);
  overflow: hidden;
  background-color: var(--card-bg);
}

.guide-figure img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.guide-figure figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--brown-soft);
  text-align: center;
}

.rules-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.rule-item {
  background-color: var(--card-bg);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
}

.rule-item h3 {
  font-size: 16px;
  color: var(--green-field);
  margin-bottom: 6px;
}

.rule-item p {
  font-size: 14px;
  color: var(--brown-soft);
  line-height: 1.7;
}

.faq-list {
  max-width: 800px;
}

.faq-item {
  background-color: var(--card-bg);
  border-radius: var(--radius-card);
  margin-bottom: 12px;
  border: 1px solid var(--line-light);
  overflow: hidden;
}

.faq-item summary {
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--brown-ink);
  cursor: pointer;
  list-style: none;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--green-field);
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  color: var(--green-field);
}

.faq-item p {
  padding: 0 18px 16px;
  font-size: 14px;
  color: var(--brown-soft);
  line-height: 1.7;
}

.related-desc {
  font-size: 15px;
  color: var(--brown-soft);
  margin-bottom: 14px;
}

.related-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   11. Pages —— 版权与反馈（feedback）
   ============================================================ */

.copyright-section,
.feedback-section,
.correction-section,
.related-links {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 32px 20px 0;
}

.section-heading h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--green-field);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line-light);
}

.copyright-content {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: start;
}

.copyright-figure {
  border-radius: var(--radius-card);
  overflow: hidden;
  background-color: var(--card-bg);
}

.copyright-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.copyright-figure figcaption {
  padding: 8px 14px;
  font-size: 13px;
  color: var(--brown-soft);
  text-align: center;
}

.copyright-text p {
  font-size: 15px;
  color: var(--brown-soft);
  line-height: 1.8;
  margin-bottom: 12px;
}

.feedback-intro p {
  font-size: 15px;
  color: var(--brown-soft);
  line-height: 1.8;
  margin-bottom: 20px;
  max-width: 720px;
}

.feedback-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.method-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-card);
  padding: 20px;
  border-bottom: 3px solid var(--green-grass);
  box-shadow: var(--shadow-card);
}

.method-card h3 {
  font-size: 16px;
  color: var(--green-field);
  margin-bottom: 8px;
}

.method-card p {
  font-size: 14px;
  color: var(--brown-soft);
  line-height: 1.7;
}

.correction-lead {
  font-size: 15px;
  color: var(--brown-soft);
  margin-bottom: 20px;
  max-width: 720px;
}

.correction-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.correction-list li {
  background-color: var(--card-bg);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  border-left: 4px solid var(--yellow-wheat);
}

.correction-list li h3 {
  font-size: 16px;
  color: var(--green-field);
  margin-bottom: 6px;
}

.correction-list li p {
  font-size: 14px;
  color: var(--brown-soft);
  line-height: 1.7;
}

.link-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   12. Pages —— 404
   ============================================================ */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.error-section {
  text-align: center;
  max-width: 560px;
}

.error-code {
  font-size: 72px;
  font-weight: 700;
  color: var(--green-field);
  line-height: 1.1;
  margin-bottom: 12px;
}

.error-section h1 {
  font-size: 26px;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: var(--brown-soft);
  margin-bottom: 24px;
}

.btn-primary {
  display: inline-block;
  padding: 10px 28px;
  font-size: 15px;
  font-weight: 500;
  color: var(--cream-bg);
  background-color: var(--green-field);
  border-radius: var(--radius-tag);
  transition: background-color 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--green-grass);
  color: var(--cream-bg);
}

.error-links {
  text-align: center;
  margin-top: 40px;
}

.error-links h2 {
  font-size: 18px;
  color: var(--green-field);
  margin-bottom: 14px;
}

.error-links ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.error-links ul li a {
  display: inline-block;
  padding: 6px 16px;
  font-size: 14px;
  color: var(--green-field);
  background-color: var(--card-bg);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-tag);
}

.error-links ul li a:hover {
  background-color: var(--green-field);
  color: var(--cream-bg);
  border-color: var(--green-field);
}

/* ============================================================
   13. Responsive —— 响应式
   ============================================================ */

@media (max-width: 992px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-figure {
    max-width: 560px;
  }

  .overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rank-heat {
    width: 110px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 10px 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    width: 100%;
    flex-basis: 100%;
    justify-content: flex-start;
    order: 3;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding: 8px 0;
    border-top: 1px solid var(--line-light);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list li a {
    padding: 12px 8px;
    border-bottom: 1px solid var(--line-light);
    border-radius: 0;
  }

  .nav-list li a.is-current {
    border-bottom-color: var(--green-field);
  }

  .top-strip-inner {
    padding: 6px 16px;
  }

  .hero-layout {
    padding: 36px 16px 40px;
  }

  .hero-text h1 {
    font-size: 26px;
  }

  .cover-grid,
  .rec-grid,
  .genre-work-grid,
  .book-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .genre-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .entry-cards {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .rules-list,
  .correction-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .feedback-methods {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .copyright-content {
    grid-template-columns: 1fr;
  }

  .update-chapter {
    min-width: 90px;
  }

  .rank-heat {
    display: none;
  }

  .ranking-item {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .top-strip-inner {
    flex-direction: column;
    gap: 4px;
  }

  .logo-brand {
    font-size: 20px;
  }

  .logo-slogan {
    font-size: 11px;
  }

  .page-header {
    padding: 18px 16px 6px;
  }

  .page-title {
    font-size: 24px;
  }

  .page-description {
    font-size: 15px;
  }

  .hero-text h1 {
    font-size: 24px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-layout {
    padding: 28px 16px 32px;
  }

  .section-block {
    padding: 32px 16px 0;
  }

  .today-recommend .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .cover-grid,
  .rec-grid,
  .genre-work-grid,
  .book-grid,
  .genre-card-grid {
    grid-template-columns: 1fr;
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .genre-tag-list {
    gap: 8px;
  }

  .genre-tag-list li a {
    padding: 5px 14px;
    font-size: 13px;
  }

  .update-item {
    flex-wrap: wrap;
  }

  .update-cover img {
    width: 56px;
    height: 72px;
  }

  .update-chapter {
    width: 100%;
    text-align: left;
    min-width: 0;
    padding-left: 88px;
  }

  .ranking-item .rank-num {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .rank-cover img {
    width: 44px;
    height: 56px;
  }

  .rank-desc {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 32px 16px 20px;
  }

  .footer-bottom {
    padding: 14px 16px;
  }

  .error-code {
    font-size: 52px;
  }

  .error-section h1 {
    font-size: 22px;
  }

  .related-list {
    grid-template-columns: 1fr;
  }
}

/* 滚动出现动画（轻量增强，不影响初始可见性） */
@media (prefers-reduced-motion: no-preference) {
  .cover-card,
  .genre-card,
  .rec-card,
  .work-card,
  .book-card,
  .entry-card,
  .related-card,
  .method-card,
  .rule-item,
  .overview-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
}
