/* ==========================================================================
   韩漫网 julongtaoci.com 全站样式
   视觉方向：暖白纸底 + 草木绿分层，自然生活风，宽舒节奏
   ========================================================================== */

/* --------------------------------------------------------------------------
   Base / Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
  background-color: #faf7f2;
  color: #2b2f2b;
  line-height: 1.8;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #4f7a5c;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #3e6249;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

/* --------------------------------------------------------------------------
   Layout / 全站统一骨架
   -------------------------------------------------------------------------- */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e8e2d8;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.header-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-name {
  font-size: 24px;
  font-weight: 700;
  color: #2b2f2b;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.brand-name::first-letter {
  color: #4f7a5c;
}

.site-nav {
  display: block;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-list li a {
  display: inline-block;
  padding: 10px 18px;
  font-size: 15px;
  color: #62665e;
  border-radius: 6px;
  transition: background-color 0.2s, color 0.2s;
  line-height: 1.5;
}

.nav-list li a:hover {
  color: #2b2f2b;
  background-color: #f0f3ee;
}

.nav-list li a.is-current {
  color: #4f7a5c;
  font-weight: 600;
  background-color: #edf3ec;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 6px;
  padding: 0;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #2b2f2b;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 面包屑 */
.breadcrumb {
  max-width: 1220px;
  margin: 0 auto;
  padding: 24px 24px 0;
  font-size: 14px;
  color: #62665e;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.breadcrumb a {
  color: #4f7a5c;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  color: #a8a29a;
}

.breadcrumb-current {
  color: #2b2f2b;
}

/* 内页主容器 */
.inner-main {
  width: 100%;
  padding-bottom: 72px;
}

.page-header {
  max-width: 1220px;
  margin: 0 auto;
  padding: 40px 24px 8px;
}

.page-title {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.3;
  color: #2b2f2b;
  margin-bottom: 12px;
}

.page-description {
  font-size: 17px;
  color: #62665e;
  max-width: 760px;
  line-height: 1.8;
}

/* 页脚 */
.site-footer {
  background-color: #2b2f2b;
  color: #c9cdc4;
  margin-top: auto;
  width: 100%;
}

.footer-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 56px 24px 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-about .footer-brand {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  display: block;
  margin-bottom: 12px;
}

.footer-about p {
  font-size: 14px;
  line-height: 1.8;
  color: #a8ada5;
  max-width: 320px;
}

.footer-col h3 {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #a8ada5;
  font-size: 14px;
  line-height: 1.6;
}

.footer-col ul li a:hover {
  color: #ffffff;
}

.footer-bottom {
  max-width: 1220px;
  margin: 0 auto;
  padding: 20px 24px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 13px;
  color: #8a8f87;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   通用组件
   -------------------------------------------------------------------------- */
.section-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
  color: #2b2f2b;
  margin-bottom: 12px;
}

.section-intro,
.section-desc {
  font-size: 16px;
  color: #62665e;
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 720px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: #4f7a5c;
}

.text-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.text-link:hover::after {
  transform: translateX(4px);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  background-color: #4f7a5c;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  transition: background-color 0.2s ease, transform 0.2s ease;
  line-height: 1.5;
  min-height: 44px;
}

.btn-primary:hover {
  background-color: #3e6249;
  color: #ffffff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background-color: #ffffff;
  color: #4f7a5c;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid #cfd9cd;
  border-radius: 6px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  line-height: 1.5;
  min-height: 44px;
}

.btn-secondary:hover {
  background-color: #f0f3ee;
  border-color: #b8c8b4;
  color: #3e6249;
}

/* 标签 */
.tag {
  display: inline-block;
  padding: 2px 10px;
  font-size: 12px;
  border-radius: 4px;
  line-height: 1.6;
}

.tag-genre {
  background-color: #edf3ec;
  color: #4f7a5c;
}

.tag-status {
  background-color: #f7eadf;
  color: #c66132;
}

/* 相关链接 */
.related-links {
  max-width: 1220px;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid #e8e2d8;
}

.related-links-label {
  font-size: 14px;
  font-weight: 600;
  color: #2b2f2b;
}

.related-links-item {
  font-size: 14px;
  color: #4f7a5c;
}

.related-links-item:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   首页模块
   -------------------------------------------------------------------------- */
.home-main {
  width: 100%;
}

/* 首屏 hero */
.hero-section {
  background-color: #faf7f2;
  position: relative;
  overflow: hidden;
}

.hero-section .hero-content {
  max-width: 1220px;
  margin: 0 auto;
  padding: 72px 24px 48px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

#hero-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.35;
  color: #2b2f2b;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}

.hero-lead {
  font-size: 17px;
  line-height: 1.9;
  color: #62665e;
  margin-bottom: 28px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(43, 47, 43, 0.08);
}

.hero-update-note {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px 40px;
  font-size: 14px;
  color: #62665e;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-update-note a {
  color: #4f7a5c;
  font-weight: 500;
}

/* 阅读路径区 */
.path-section {
  background-color: #ffffff;
  border-top: 1px solid #e8e2d8;
  border-bottom: 1px solid #e8e2d8;
  padding: 64px 0;
}

.path-section .section-title,
.path-section .section-intro {
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.path-list {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.path-item {
  background-color: #faf7f2;
  border: 1px solid #ebe5db;
  border-radius: 8px;
  padding: 28px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.path-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(43, 47, 43, 0.06);
}

.path-item h3 {
  font-size: 19px;
  font-weight: 600;
  color: #2b2f2b;
  margin-bottom: 10px;
}

.path-item p {
  font-size: 15px;
  color: #62665e;
  line-height: 1.8;
  margin-bottom: 16px;
}

.path-item .text-link {
  font-size: 14px;
}

/* 封面墙 */
.showcase-wall {
  background-color: #faf7f2;
  padding: 64px 0;
}

.wall-heading {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px 32px;
}

.wall-heading p {
  font-size: 16px;
  color: #62665e;
  line-height: 1.8;
  max-width: 640px;
}

.cover-grid {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.cover-card {
  display: block;
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ebe5db;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cover-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(43, 47, 43, 0.08);
}

.cover-card figure {
  position: relative;
  padding-top: 140%;
  overflow: hidden;
}

.cover-card figure img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-card figure figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 12px 10px;
  background: linear-gradient(to top, rgba(43, 47, 43, 0.6), transparent);
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
}

.cover-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: #2b2f2b;
  padding: 12px 14px 4px;
  line-height: 1.5;
}

.cover-card p {
  font-size: 13px;
  color: #62665e;
  padding: 0 14px 14px;
  line-height: 1.6;
}

.wall-footer-link {
  max-width: 1220px;
  margin: 0 auto;
  padding: 32px 24px 0;
  text-align: center;
}

/* 首页最近更新 */
.home-updates {
  background-color: #ffffff;
  padding: 64px 0;
  border-top: 1px solid #e8e2d8;
}

.home-updates .section-title,
.home-updates .section-intro {
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.update-mini-list {
  max-width: 1220px;
  margin: 0 auto 24px;
  padding: 0 24px;
}

.update-mini-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #f0ece4;
}

.update-mini-list li:last-child {
  border-bottom: none;
}

.update-date {
  flex-shrink: 0;
  font-size: 14px;
  color: #a8a29a;
  width: 90px;
}

.update-mini-list li a {
  flex: 1;
  font-size: 15px;
  color: #2b2f2b;
  font-weight: 500;
}

.update-mini-list li a:hover {
  color: #4f7a5c;
}

.update-tag {
  font-size: 13px;
  color: #4f7a5c;
  background-color: #edf3ec;
  padding: 2px 10px;
  border-radius: 4px;
  flex-shrink: 0;
}

.home-updates .text-link {
  margin-left: 24px;
}

/* 首页人气榜概览 */
.home-rankings {
  background-color: #faf7f2;
  padding: 64px 0;
}

.home-rankings .section-title,
.home-rankings .section-intro {
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.rank-preview {
  max-width: 1220px;
  margin: 0 auto 24px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.rank-item {
  display: flex;
  gap: 16px;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #ebe5db;
}

.rank-number {
  font-size: 28px;
  font-weight: 700;
  color: #c66132;
  line-height: 1.2;
  flex-shrink: 0;
  width: 40px;
}

.rank-info h3 {
  font-size: 17px;
  font-weight: 600;
  color: #2b2f2b;
  margin-bottom: 6px;
}

.rank-info p {
  font-size: 14px;
  color: #62665e;
  line-height: 1.7;
  margin-bottom: 8px;
}

.rank-tag {
  display: inline-block;
  font-size: 12px;
  color: #4f7a5c;
  background-color: #edf3ec;
  padding: 2px 10px;
  border-radius: 4px;
}

.home-rankings .text-link {
  margin-left: 24px;
}

/* 首页阅读指引 */
.home-guide-teaser {
  background-color: #edf3ec;
  padding: 64px 0;
}

.home-guide-teaser .section-title {
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  text-align: center;
}

.home-guide-teaser p {
  max-width: 640px;
  margin: 0 auto 28px;
  padding: 0 24px;
  text-align: center;
  font-size: 16px;
  color: #62665e;
  line-height: 1.8;
}

.home-guide-teaser .btn-primary {
  display: flex;
  margin: 0 auto;
  width: fit-content;
}

/* --------------------------------------------------------------------------
   题材分类页
   -------------------------------------------------------------------------- */
.genre-index,
.genre-section,
.genre-crosslink {
  max-width: 1220px;
  margin: 0 auto;
  padding: 48px 24px 0;
}

.genre-index .section-title,
.genre-heading .section-title,
.genre-crosslink .section-title {
  font-size: 24px;
}

.genre-anchor-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.genre-anchor {
  display: inline-block;
  padding: 8px 20px;
  background-color: #ffffff;
  border: 1px solid #e0dcd2;
  border-radius: 6px;
  font-size: 14px;
  color: #2b2f2b;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
  min-height: 40px;
  line-height: 1.5;
}

.genre-anchor:hover {
  background-color: #edf3ec;
  border-color: #b8c8b4;
  color: #4f7a5c;
}

.genre-heading {
  margin-bottom: 24px;
}

.genre-desc {
  font-size: 15px;
  color: #62665e;
  line-height: 1.8;
  margin-bottom: 12px;
  max-width: 680px;
}

.genre-card-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.comic-card {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ebe5db;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(43, 47, 43, 0.08);
}

.comic-card > a {
  display: block;
  height: 100%;
}

.comic-card .comic-cover {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.comic-card-body {
  padding: 16px 18px 18px;
}

.comic-name {
  font-size: 17px;
  font-weight: 600;
  color: #2b2f2b;
  margin-bottom: 8px;
  line-height: 1.5;
}

.comic-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.comic-update {
  font-size: 13px;
  color: #a8a29a;
  margin-bottom: 8px;
}

.comic-summary {
  font-size: 14px;
  color: #62665e;
  line-height: 1.7;
}

/* 奇幻宽卡片 */
.genre-card-list-wide {
  grid-template-columns: repeat(2, 1fr);
}

.comic-card-wide {
  grid-column: span 1;
}

.comic-card-wide .comic-cover {
  height: 320px;
}

/* 都市与悬疑相邻区 */
.genre-section-adjacent {
  padding-top: 48px;
}

.genre-adjacent-inner {
  background-color: #edf3ec;
  border-radius: 8px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.genre-adjacent-text .section-title {
  font-size: 24px;
  margin-bottom: 16px;
}

.genre-adjacent-text .genre-desc {
  margin-bottom: 12px;
}

.genre-links {
  display: flex;
  gap: 24px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.genre-adjacent-figure img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 8px;
}

/* 跨题材链接 */
.genre-crosslink {
  padding-bottom: 0;
}

.genre-crosslink p {
  font-size: 16px;
  color: #62665e;
  line-height: 2;
}

.genre-crosslink p a {
  margin: 0 12px;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   最近更新页
   -------------------------------------------------------------------------- */
.updates-note,
.today-update,
.recent-updates,
.earlier-updates,
.switch-guide {
  max-width: 1220px;
  margin: 0 auto;
  padding: 40px 24px 0;
}

.updates-note .section-title,
.today-update .section-title,
.recent-updates .section-title,
.earlier-updates .section-title,
.switch-guide .section-title {
  font-size: 24px;
}

.updates-note p {
  font-size: 15px;
  color: #62665e;
  line-height: 1.8;
  max-width: 760px;
}

.today-highlight {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.today-highlight .section-title {
  margin-bottom: 0;
}

.today-date {
  font-size: 14px;
  color: #c66132;
  background-color: #f7eadf;
  padding: 4px 14px;
  border-radius: 4px;
  font-weight: 500;
}

.update-entry {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 24px;
  border: 1px solid #ebe5db;
}

.entry-cover img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 6px;
}

.entry-info h3 {
  font-size: 22px;
  font-weight: 600;
  color: #2b2f2b;
  margin-bottom: 10px;
}

.entry-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.entry-status {
  font-size: 15px;
  color: #4f7a5c;
  font-weight: 500;
  margin-bottom: 10px;
}

.entry-summary {
  font-size: 15px;
  color: #62665e;
  line-height: 1.8;
  margin-bottom: 16px;
}

.entry-link {
  font-size: 14px;
  font-weight: 500;
  color: #4f7a5c;
}

.entry-link:hover {
  text-decoration: underline;
}

/* 近期更新列表 */
.recent-updates .section-desc {
  font-size: 15px;
}

.update-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.update-item {
  display: flex;
  gap: 20px;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 16px;
  border: 1px solid #ebe5db;
}

.item-cover {
  flex-shrink: 0;
  width: 120px;
}

.item-cover img {
  width: 120px;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
}

.item-info h3 {
  font-size: 16px;
  font-weight: 600;
  color: #2b2f2b;
  margin-bottom: 6px;
  line-height: 1.5;
}

.item-info .entry-tags {
  margin-bottom: 6px;
}

.item-info .entry-tags .tag {
  font-size: 11px;
  padding: 1px 8px;
}

.item-info .entry-status {
  font-size: 13px;
  margin-bottom: 4px;
}

.item-info .entry-summary {
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 0;
}

/* 更早更新 */
.earlier-updates .section-desc {
  font-size: 15px;
}

.earlier-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 4px;
  border-bottom: 1px solid #f0ece4;
}

.earlier-list li:last-child {
  border-bottom: none;
}

.earlier-date {
  flex-shrink: 0;
  width: 80px;
  font-size: 13px;
  color: #a8a29a;
}

.earlier-list li a {
  flex: 1;
  font-size: 15px;
  color: #2b2f2b;
}

.earlier-list li a:hover {
  color: #4f7a5c;
}

.earlier-status {
  font-size: 13px;
  color: #4f7a5c;
  background-color: #edf3ec;
  padding: 2px 10px;
  border-radius: 4px;
}

/* 切换引导 */
.switch-guide {
  padding-bottom: 0;
}

.switch-guide p {
  font-size: 15px;
  color: #62665e;
  line-height: 1.8;
}

.switch-links {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.switch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background-color: #edf3ec;
  color: #4f7a5c;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  min-height: 44px;
  transition: background-color 0.2s ease;
}

.switch-btn:hover {
  background-color: #dce8da;
}

/* --------------------------------------------------------------------------
   人气榜页面
   -------------------------------------------------------------------------- */
.rank-principle,
.rank-top,
.rank-list,
.rank-more,
.rank-boundary,
.rank-guide-link {
  max-width: 1220px;
  margin: 0 auto;
  padding: 40px 24px 0;
}

.rank-principle h2,
.rank-top h2,
.rank-list h2,
.rank-boundary h2,
.rank-more h2 {
  font-size: 24px;
  font-weight: 700;
  color: #2b2f2b;
  margin-bottom: 12px;
}

.rank-principle p,
.rank-boundary p,
.rank-more p {
  font-size: 15px;
  color: #62665e;
  line-height: 1.8;
  max-width: 760px;
  margin-bottom: 12px;
}

/* 榜首 */
.rank-top h2 {
  margin-bottom: 24px;
}

.top-entry {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 40px;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 32px;
  border: 1px solid #ebe5db;
}

.top-cover img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
}

.rank-badge {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: #c66132;
  background-color: #f7eadf;
  padding: 4px 14px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.top-info h3 {
  font-size: 26px;
  font-weight: 700;
  color: #2b2f2b;
  margin-bottom: 12px;
}

.top-info .entry-tags {
  margin-bottom: 16px;
}

.top-info .entry-summary {
  font-size: 16px;
  color: #62665e;
  line-height: 1.9;
  margin-bottom: 16px;
}

/* 排行行 */
.rank-row {
  display: grid;
  grid-template-columns: 60px 100px 1fr;
  gap: 24px;
  align-items: center;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 16px;
  border: 1px solid #ebe5db;
}

.rank-num {
  font-size: 32px;
  font-weight: 700;
  color: #2b2f2b;
  text-align: center;
  line-height: 1.2;
}

.rank-row:nth-child(2) .rank-num {
  color: #c66132;
}

.rank-row img {
  width: 100px;
  height: 130px;
  object-fit: cover;
  border-radius: 6px;
}

.rank-row-info h3 {
  font-size: 18px;
  font-weight: 600;
  color: #2b2f2b;
  margin-bottom: 6px;
}

.rank-row-info .entry-tags {
  margin-bottom: 6px;
}

.rank-row-info .entry-tags .tag {
  font-size: 11px;
  padding: 1px 8px;
}

.rank-row-info .entry-summary {
  font-size: 14px;
  color: #62665e;
  line-height: 1.7;
  margin-bottom: 4px;
}

.rank-row-info .entry-status {
  font-size: 13px;
  margin-bottom: 0;
}

/* 榜单之外 */
.rank-more {
  padding-top: 32px;
}

.rank-more p a {
  font-weight: 500;
}

/* 榜单边界 */
.rank-boundary {
  margin-top: 24px;
  padding-top: 32px;
  border-top: 1px solid #e8e2d8;
}

/* 榜单到指南 */
.rank-guide-link {
  padding-top: 16px;
  padding-bottom: 0;
}

.rank-guide-link p {
  font-size: 15px;
  color: #62665e;
}

.rank-guide-link p a {
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   阅读指引页
   -------------------------------------------------------------------------- */
.guide-steps,
.scope-note,
.scene-table,
.guide-media,
.boundary-tip {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px 0;
}

.guide-steps h2,
.scope-note h2,
.scene-table h2,
.guide-media h2,
.boundary-tip h2 {
  font-size: 26px;
  font-weight: 700;
  color: #2b2f2b;
  margin-bottom: 24px;
}

.step-block {
  position: relative;
  padding: 32px 0 24px 72px;
  border-bottom: 1px solid #f0ece4;
}

.step-block:last-child {
  border-bottom: none;
}

.step-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.step-number {
  position: absolute;
  left: 0;
  top: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: #4f7a5c;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  border-radius: 8px;
  flex-shrink: 0;
  line-height: 1;
}

.step-head h3 {
  font-size: 22px;
  font-weight: 600;
  color: #2b2f2b;
  line-height: 1.5;
}

.step-block p {
  font-size: 15px;
  color: #62665e;
  line-height: 1.9;
  margin-bottom: 12px;
  max-width: 760px;
}

.step-block p:last-child {
  margin-bottom: 0;
}

/* 阅读对象说明 */
.scope-note {
  padding-top: 48px;
}

.scope-note > p {
  font-size: 15px;
  color: #62665e;
  line-height: 1.8;
  margin-bottom: 20px;
}

.scope-note ul {
  list-style: none;
  padding: 0;
}

.scope-note ul li {
  font-size: 15px;
  color: #62665e;
  line-height: 1.8;
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
}

.scope-note ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #4f7a5c;
}

/* 场景对照表 */
.scene-table > p {
  font-size: 15px;
  color: #62665e;
  margin-bottom: 20px;
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ebe5db;
  font-size: 15px;
}

.guide-table th,
.guide-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid #f0ece4;
  line-height: 1.7;
  vertical-align: top;
}

.guide-table thead th {
  background-color: #edf3ec;
  color: #2b2f2b;
  font-weight: 600;
  font-size: 15px;
}

.guide-table tbody tr:last-child td {
  border-bottom: none;
}

.guide-table tbody td {
  color: #62665e;
}

/* 指南配图 */
.guide-media {
  padding-top: 48px;
}

.guide-figure {
  margin-bottom: 20px;
}

.guide-figure img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 8px;
}

.guide-figure figcaption {
  font-size: 13px;
  color: #a8a29a;
  padding: 10px 4px 0;
  line-height: 1.6;
}

.guide-media > p {
  font-size: 15px;
  color: #62665e;
  line-height: 1.8;
}

/* 边界提示 */
.boundary-tip {
  padding-top: 48px;
  padding-bottom: 0;
}

.boundary-tip p {
  font-size: 15px;
  color: #62665e;
  line-height: 1.8;
  margin-bottom: 12px;
}

.boundary-tip p a {
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   版权说明页
   -------------------------------------------------------------------------- */
.inner-container.narrow-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.content-section {
  padding: 40px 0;
  border-bottom: 1px solid #f0ece4;
}

.content-section:last-child {
  border-bottom: none;
}

.content-section h2 {
  font-size: 24px;
  font-weight: 700;
  color: #2b2f2b;
  margin-bottom: 16px;
}

.content-media-inline {
  margin-bottom: 20px;
}

.content-media-inline img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
}

.content-media-inline figcaption {
  font-size: 13px;
  color: #a8a29a;
  padding: 10px 4px 0;
  line-height: 1.6;
}

.prose-block p {
  font-size: 15px;
  color: #62665e;
  line-height: 1.9;
  margin-bottom: 16px;
  max-width: 780px;
}

.principle-list {
  margin-top: 20px;
}

.principle-list h3 {
  font-size: 16px;
  font-weight: 600;
  color: #2b2f2b;
  margin-bottom: 12px;
}

.principle-list ul li {
  font-size: 15px;
  color: #62665e;
  line-height: 1.8;
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.principle-list ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #c66132;
}

/* 反馈路径 */
.page-copyright .feedback-paths {
  background-color: #edf3ec;
  border-radius: 8px;
  padding: 24px;
}

.feedback-paths .prose-block p {
  margin-bottom: 12px;
}

.feedback-paths .prose-block p:last-child {
  margin-bottom: 0;
}

.feedback-note {
  font-size: 14px;
  color: #62665e;
  background-color: #faf7f2;
  border-radius: 6px;
  padding: 16px 20px;
  margin-top: 16px;
  line-height: 1.8;
  border: 1px solid #ebe5db;
}

.feedback-item {
  margin-top: 16px;
}

/* 站内返回入口 */
.return-links {
  padding: 24px 0 48px;
}

.return-links p {
  font-size: 15px;
  line-height: 2;
  color: #62665e;
}

.return-links p a {
  font-weight: 500;
  margin: 0 8px;
}

/* --------------------------------------------------------------------------
   404 页面
   -------------------------------------------------------------------------- */
.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  flex: 1 0 auto;
}

.error-panel {
  text-align: center;
  max-width: 520px;
}

.error-code {
  font-size: 96px;
  font-weight: 700;
  color: #4f7a5c;
  line-height: 1.1;
  margin-bottom: 8px;
}

.error-panel h1 {
  font-size: 26px;
  font-weight: 600;
  color: #2b2f2b;
  margin-bottom: 16px;
}

.error-desc {
  font-size: 16px;
  color: #62665e;
  line-height: 1.8;
  margin-bottom: 28px;
}

.btn-back-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  background-color: #4f7a5c;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  min-height: 44px;
  transition: background-color 0.2s ease;
}

.btn-back-home:hover {
  background-color: #3e6249;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   响应式断点
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .cover-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .path-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .path-item {
    padding: 20px;
  }

  .hero-section .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  #hero-title {
    font-size: 34px;
  }

  .hero-media img {
    height: 340px;
  }

  .footer-inner {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 32px;
  }

  .top-entry {
    grid-template-columns: 280px 1fr;
    gap: 28px;
  }

  .top-cover img {
    height: 340px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 64px;
    padding: 0 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-bottom: 1px solid #e8e2d8;
    box-shadow: 0 8px 20px rgba(43, 47, 43, 0.06);
    display: block;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    gap: 0;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li a {
    display: block;
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 6px;
  }

  /* 面包屑 */
  .breadcrumb {
    padding: 16px 16px 0;
  }

  .page-header {
    padding: 28px 16px 0;
  }

  .page-title {
    font-size: 30px;
  }

  .page-description {
    font-size: 16px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    padding: 40px 16px 24px;
    gap: 28px;
  }

  .footer-bottom {
    padding: 16px;
  }

  /* 首页 */
  .hero-section .hero-content {
    grid-template-columns: 1fr;
    padding: 40px 16px 28px;
    gap: 24px;
  }

  #hero-title {
    font-size: 30px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-media img {
    height: 260px;
  }

  .hero-update-note {
    padding: 0 16px 28px;
    flex-wrap: wrap;
  }

  .path-section,
  .showcase-wall,
  .home-updates,
  .home-rankings,
  .home-guide-teaser {
    padding: 48px 0;
  }

  .path-section .section-title,
  .path-section .section-intro,
  .home-updates .section-title,
  .home-updates .section-intro,
  .home-rankings .section-title,
  .home-rankings .section-intro {
    padding-left: 16px;
    padding-right: 16px;
  }

  .path-list {
    grid-template-columns: 1fr;
    padding: 0 16px;
    gap: 16px;
  }

  .wall-heading {
    padding: 0 16px 24px;
  }

  .cover-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 16px;
    gap: 12px;
  }

  .cover-card figure {
    padding-top: 130%;
  }

  .wall-footer-link {
    padding: 24px 16px 0;
  }

  .update-mini-list {
    padding: 0 16px;
  }

  .update-mini-list li {
    flex-wrap: wrap;
    gap: 8px;
  }

  .update-date {
    width: auto;
    font-size: 13px;
  }

  .update-mini-list li a {
    flex: 1 1 100%;
    order: 3;
  }

  .update-tag {
    order: 2;
  }

  .home-updates .text-link,
  .home-rankings .text-link {
    margin-left: 16px;
  }

  .rank-preview {
    grid-template-columns: 1fr;
    padding: 0 16px;
    gap: 16px;
  }

  .home-guide-teaser .section-title {
    padding-left: 16px;
    padding-right: 16px;
  }

  .home-guide-teaser p {
    padding: 0 16px;
  }

  /* 题材分类 */
  .genre-index,
  .genre-section,
  .genre-crosslink {
    padding: 36px 16px 0;
  }

  .genre-anchor-row {
    gap: 8px;
  }

  .genre-anchor {
    padding: 8px 16px;
    font-size: 14px;
  }

  .genre-card-list,
  .genre-card-list-wide {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .genre-adjacent-inner {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 24px;
  }

  .genre-adjacent-figure img {
    height: 220px;
  }

  .genre-crosslink p a {
    display: inline-block;
    margin: 4px 8px;
  }

  /* 最近更新 */
  .updates-note,
  .today-update,
  .recent-updates,
  .earlier-updates,
  .switch-guide {
    padding: 36px 16px 0;
  }

  .update-entry {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 16px;
  }

  .entry-cover img {
    height: 240px;
  }

  .update-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .update-item {
    padding: 12px;
  }

  .item-cover,
  .item-cover img {
    width: 90px;
  }

  .item-cover img {
    height: 120px;
  }

  .earlier-list li {
    flex-wrap: wrap;
    gap: 6px;
  }

  .earlier-date {
    width: 100%;
    font-size: 12px;
  }

  .earlier-list li a {
    flex: 1 1 100%;
    font-size: 14px;
  }

  .switch-links {
    gap: 12px;
  }

  /* 人气榜 */
  .rank-principle,
  .rank-top,
  .rank-list,
  .rank-more,
  .rank-boundary,
  .rank-guide-link {
    padding: 36px 16px 0;
  }

  .top-entry {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }

  .top-cover img {
    height: 320px;
  }

  .top-info h3 {
    font-size: 22px;
  }

  .rank-row {
    grid-template-columns: 40px 70px 1fr;
    gap: 12px;
    padding: 16px;
  }

  .rank-num {
    font-size: 24px;
  }

  .rank-row img {
    width: 70px;
    height: 90px;
  }

  .rank-row-info h3 {
    font-size: 15px;
  }

  .rank-row-info .entry-summary {
    font-size: 13px;
  }

  /* 阅读指引 */
  .guide-steps,
  .scope-note,
  .scene-table,
  .guide-media,
  .boundary-tip {
    padding: 36px 16px 0;
  }

  .step-block {
    padding: 24px 0 20px 60px;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 18px;
    top: 24px;
  }

  .step-head h3 {
    font-size: 19px;
  }

  .step-block p {
    font-size: 15px;
  }

  .guide-table {
    font-size: 14px;
  }

  .guide-table th,
  .guide-table td {
    padding: 12px 12px;
  }

  .guide-media {
    padding-top: 36px;
  }

  .guide-figure img {
    height: 220px;
  }

  /* 版权页 */
  .inner-container.narrow-container {
    padding: 0 16px;
  }

  .content-section {
    padding: 32px 0;
  }

  .content-section h2 {
    font-size: 22px;
  }

  .content-media-inline img {
    height: 200px;
  }

  .return-links {
    padding: 20px 0 40px;
  }

  /* 404 */
  .error-main {
    padding: 60px 16px;
  }

  .error-code {
    font-size: 72px;
  }
}

@media (max-width: 480px) {
  .cover-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .cover-card h3 {
    font-size: 14px;
    padding: 10px 10px 2px;
  }

  .cover-card p {
    font-size: 12px;
    padding: 0 10px 10px;
  }

  .cover-card figure figcaption {
    font-size: 12px;
  }

  .brand-name {
    font-size: 20px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .rank-row {
    grid-template-columns: 32px 60px 1fr;
    gap: 10px;
    padding: 12px;
  }

  .rank-num {
    font-size: 20px;
  }

  .rank-row img {
    width: 60px;
    height: 80px;
  }

  .update-item {
    flex-direction: column;
    gap: 12px;
  }

  .item-cover,
  .item-cover img {
    width: 100%;
  }

  .item-cover img {
    height: 180px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
  }

  .guide-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
