/* ============================================================
   BASE
   ============================================================ */
:root {
  --green: #4a7c59;
  --green-dark: #3a6346;
  --green-light: #e8f0e9;
  --yellow: #f4c542;
  --yellow-light: #fdf3d8;
  --cream: #f5f0e6;
  --ink: #2e2e2e;
  --ink-soft: #555;
  --line: #e0d9cc;
  --white: #fff;
  --shadow-sm: 0 1px 3px rgba(46, 46, 46, 0.08);
  --shadow-md: 0 4px 12px rgba(46, 46, 46, 0.1);
  --radius: 8px;
  --container: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--green-dark);
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  line-height: 1.3;
  font-weight: 700;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.1rem;
}

p {
  margin-bottom: 0.8em;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1 0 auto;
}

.header-shell,
.footer-shell,
.hero-shell,
.page-container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* 内页统一容器宽度 */
.inner-main {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--green);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.brand-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--green-dark);
}

.brand-slogan {
  font-size: 0.75rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-list li a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
}

.nav-list li a:hover {
  background: var(--green-light);
  color: var(--green-dark);
}

.nav-list li a.is-current {
  background: var(--green);
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--green-dark);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: #ccc;
  margin-top: 60px;
}

.footer-shell {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-top: 48px;
  padding-bottom: 40px;
}

.footer-col h3 {
  color: var(--yellow);
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: #ccc;
  font-size: 0.9rem;
}

.footer-col ul li a:hover {
  color: var(--yellow);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: #999;
}

/* ============================================================
   COMMON COMPONENTS
   ============================================================ */
/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 0 8px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.breadcrumb a {
  color: var(--green);
}

.breadcrumb-sep {
  color: #aaa;
}

.breadcrumb-current {
  color: var(--ink-soft);
}

/* 页面标题区 */
.page-header {
  padding: 16px 0 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}

.page-title {
  font-size: 2rem;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.page-description {
  color: var(--ink-soft);
  max-width: 720px;
  font-size: 1rem;
}

/* 区块标题 */
.section-title,
.section-head h2 {
  color: var(--green-dark);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.section-title::after,
.section-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-head h2 {
  margin-bottom: 0;
}

.section-note {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.section-intro {
  color: var(--ink-soft);
  margin-bottom: 28px;
  max-width: 720px;
}

/* 文本链接 */
.text-link,
.more-link {
  display: inline-block;
  font-weight: 600;
  color: var(--green);
  font-size: 0.95rem;
}

.text-link:hover,
.more-link:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

.more-link {
  margin-top: 20px;
}

/* 相关推荐 */
.related-links {
  margin-top: 56px;
  padding: 32px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.related-title {
  color: var(--green-dark);
  margin-bottom: 16px;
  font-size: 1.2rem;
}

.related-links p {
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.related-links ul li {
  margin-bottom: 10px;
}

.related-links ul li a {
  font-weight: 500;
}

.related-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.related-list li:last-child {
  border-bottom: none;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-item {
  display: block;
  padding: 20px;
  background: var(--cream);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.related-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--green);
}

.related-item h3 {
  color: var(--green-dark);
  margin-bottom: 8px;
  font-size: 1rem;
}

.related-item p {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* FAQ */
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  position: relative;
  padding-right: 40px;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--green);
  font-weight: 400;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--line);
}

.faq-answer,
.faq-item p {
  padding: 16px 20px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ============================================================
   HOME PAGE
   ============================================================ */
.home-main {
  padding-bottom: 20px;
}

/* Hero */
.hero-area {
  background: var(--green-light);
  border-bottom: 1px solid var(--line);
}

.hero-shell {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 48px;
}

.hero-copy h1 {
  color: var(--green-dark);
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.hero-lead {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-chip {
  display: inline-block;
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--green);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--green-dark);
  transition: background 0.2s ease, color 0.2s ease;
}

.tag-chip:hover {
  background: var(--green);
  color: var(--white);
}

.hero-figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-figure img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

/* 主推荐 */
.feature-block {
  padding: 56px 20px 0;
  max-width: var(--container);
  margin: 0 auto;
}

.feature-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

.feature-card-media img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.feature-card-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-card-body h3 {
  color: var(--green-dark);
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.feature-card-body p {
  color: var(--ink-soft);
  margin-bottom: 20px;
}

/* 次推荐 */
.quick-picks {
  padding: 56px 20px 0;
  max-width: var(--container);
  margin: 0 auto;
}

.card-scroller {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.mini-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.mini-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.mini-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.mini-card h3 {
  padding: 12px 12px 4px;
  font-size: 0.95rem;
}

.mini-card h3 a {
  color: var(--ink);
}

.mini-card h3 a:hover {
  color: var(--green);
}

.update-pill {
  padding: 0 12px 12px;
  font-size: 0.8rem;
  color: var(--green);
  font-weight: 600;
}

/* 题材分类导航带 */
.genre-strip {
  padding: 56px 20px 0;
  max-width: var(--container);
  margin: 0 auto;
}

.genre-links {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.genre-chip {
  display: block;
  text-align: center;
  padding: 20px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--green-dark);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.genre-chip:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

/* 最近更新 */
.recent-updates {
  padding: 56px 20px 0;
  max-width: var(--container);
  margin: 0 auto;
}

.update-group {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
}

.update-group h3 {
  color: var(--green-dark);
  font-size: 1rem;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.update-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.update-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: var(--radius);
  transition: background 0.2s ease;
}

.update-list li:hover {
  background: var(--cream);
}

.update-list li img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.update-info {
  min-width: 0;
}

.update-info a {
  font-weight: 600;
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.update-info a:hover {
  color: var(--green);
}

.update-time {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* 人气榜单预览 */
.rank-preview {
  padding: 56px 20px 0;
  max-width: var(--container);
  margin: 0 auto;
}

.rank-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.rank-list li {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid var(--line);
  position: relative;
  transition: box-shadow 0.2s ease;
}

.rank-list li:hover {
  box-shadow: var(--shadow-md);
}

.rank-num {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.9rem;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.rank-list li img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 12px;
}

.rank-body h3 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.rank-body h3 a {
  color: var(--ink);
}

.rank-body h3 a:hover {
  color: var(--green);
}

.rank-body p {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 阅读指南入口 */
.guide-entry {
  padding: 56px 20px 0;
  max-width: var(--container);
  margin: 0 auto;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--line);
  position: relative;
  transition: box-shadow 0.2s ease;
}

.step-card:hover {
  box-shadow: var(--shadow-md);
}

.step-num,
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--green);
  color: var(--white);
  border-radius: 4px;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 14px;
}

.step-card h3 {
  color: var(--green-dark);
  margin-bottom: 8px;
}

.step-card p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* 追更技巧预告 */
.tips-teaser {
  padding: 56px 20px 0;
  max-width: var(--container);
  margin: 0 auto;
}

.teaser-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--green);
  border-radius: var(--radius);
  overflow: hidden;
  align-items: center;
}

.teaser-copy {
  padding: 40px;
}

.teaser-copy h2 {
  color: var(--white);
  margin-bottom: 12px;
}

.teaser-copy p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
}

.teaser-copy .text-link {
  color: var(--yellow);
}

.teaser-copy .text-link:hover {
  color: var(--white);
}

.teaser-media img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

/* ============================================================
   INNER PAGES
   ============================================================ */
.page-container {
  padding-bottom: 20px;
}

/* 分类页 */
.tag-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 48px;
}

.genre-tag {
  display: block;
  padding: 20px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.genre-tag:hover {
  background: var(--green);
  border-color: var(--green);
}

.tag-name {
  display: block;
  font-weight: 700;
  color: var(--green-dark);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.genre-tag:hover .tag-name {
  color: var(--white);
}

.tag-desc {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.genre-tag:hover .tag-desc {
  color: rgba(255, 255, 255, 0.85);
}

.genre-block {
  margin-bottom: 48px;
}

.genre-block-head {
  margin-bottom: 20px;
}

.genre-block-head h3 {
  color: var(--green-dark);
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.genre-block-head p {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.genre-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.genre-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}

.genre-card:hover {
  box-shadow: var(--shadow-md);
}

.genre-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.genre-card figcaption {
  padding: 12px 16px;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
}

/* 阅读指南页 */
.guide-steps .steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.steps-grid .step-card {
  padding: 24px;
}

.step-title {
  color: var(--green-dark);
  margin-bottom: 10px;
}

.step-text {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.step-figure img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 4px;
}

.follow-steps {
  margin-bottom: 48px;
}

.follow-list {
  counter-reset: follow;
}

.follow-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  position: relative;
  padding-left: 72px;
  counter-increment: follow;
}

.follow-item::before {
  content: counter(follow);
  position: absolute;
  left: 24px;
  top: 24px;
  width: 32px;
  height: 32px;
  background: var(--yellow);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--ink);
}

.follow-item-title {
  color: var(--green-dark);
  margin-bottom: 8px;
}

.follow-item-text {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* 最近更新页 */
.update-groups {
  margin-bottom: 48px;
}

.update-groups .update-group {
  padding: 28px;
}

.group-date {
  color: var(--green-dark);
  font-size: 1.1rem;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--yellow);
  display: inline-block;
}

.update-groups .update-list {
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.update-card {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}

.update-card:hover {
  box-shadow: var(--shadow-md);
}

.update-cover img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.update-info {
  padding: 16px;
}

.update-title {
  color: var(--ink);
  font-size: 1rem;
  margin-bottom: 6px;
}

.update-meta {
  font-size: 0.82rem;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 4px;
}

.update-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.update-info time {
  font-size: 0.78rem;
  color: #999;
}

.update-note-section {
  margin-bottom: 40px;
}

.note-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--line);
}

.note-content p {
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.note-content p:last-child {
  margin-bottom: 0;
}

/* 人气榜单页 */
.rank-list-section {
  margin-bottom: 48px;
}

.rank-list-section .rank-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.rank-item {
  margin-bottom: 16px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.rank-item:hover {
  box-shadow: var(--shadow-md);
}

.rank-card {
  display: grid;
  grid-template-columns: 80px 120px 1fr;
  gap: 20px;
  align-items: center;
  padding: 20px;
  position: relative;
}

.rank-card .rank-num {
  position: static;
  width: 48px;
  height: 48px;
  font-size: 1.2rem;
}

.rank-cover img {
  width: 120px;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
}

.rank-title {
  color: var(--green-dark);
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.rank-tags {
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 8px;
}

.rank-reason {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 0;
  max-width: 560px;
}

.recommend-notes-section {
  margin-bottom: 48px;
}

.recommend-notes-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.note-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--line);
}

.note-title {
  color: var(--green-dark);
  font-size: 1rem;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.note-text {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* 追更技巧页 */
.tips-section {
  margin-bottom: 40px;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.tip-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  transition: box-shadow 0.2s ease;
}

.tip-card:hover {
  box-shadow: var(--shadow-md);
}

.tip-card h3 {
  color: var(--green-dark);
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.tip-card p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 0;
}

.tips-media {
  margin: 40px 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.tips-media img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.tips-media figcaption {
  padding: 12px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* 404 页 */
.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
}

.error-content h1 {
  font-size: 6rem;
  color: var(--green);
  line-height: 1;
  margin-bottom: 16px;
}

.error-lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.error-action {
  display: inline-block;
  padding: 12px 28px;
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 600;
  transition: background 0.2s ease;
}

.error-action:hover {
  background: var(--green-dark);
  color: var(--white);
}

.error-help {
  margin-top: 40px;
}

.error-help p {
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.error-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.error-links li a {
  display: inline-block;
  padding: 8px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 500;
}

.error-links li a:hover {
  border-color: var(--green);
  background: var(--green-light);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .card-scroller {
    grid-template-columns: repeat(3, 1fr);
  }

  .rank-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .rank-list li:nth-child(4),
  .rank-list li:nth-child(5) {
    grid-column: span 1;
  }

  .tag-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .update-groups .update-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .recommend-notes-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-shell {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  .header-shell {
    min-height: 56px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 4px;
  }

  .nav-list li a {
    padding: 14px 16px;
    font-size: 1rem;
  }

  /* Hero 移动端顺序：图在上，文字在下 */
  .hero-shell {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .hero-copy {
    order: 2;
  }

  .hero-figure {
    order: 1;
  }

  .hero-figure img {
    height: 220px;
  }

  .feature-card {
    grid-template-columns: 1fr;
  }

  .feature-card-media img {
    height: 200px;
  }

  .feature-card-body {
    padding: 24px;
  }

  .card-scroller {
    grid-template-columns: repeat(2, 1fr);
  }

  .genre-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .update-list {
    grid-template-columns: 1fr;
  }

  .rank-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .guide-steps,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .teaser-card {
    grid-template-columns: 1fr;
  }

  .teaser-copy {
    padding: 24px;
  }

  .teaser-media img {
    height: 180px;
  }

  .footer-shell {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 32px;
  }

  .tag-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .genre-cards {
    grid-template-columns: 1fr;
  }

  .update-groups .update-list {
    grid-template-columns: 1fr;
  }

  .rank-card {
    grid-template-columns: 56px 80px 1fr;
    gap: 12px;
    padding: 16px;
  }

  .rank-cover img {
    width: 80px;
    height: 100px;
  }

  .tips-grid {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .recommend-notes-list {
    grid-template-columns: 1fr;
  }

  .follow-item {
    padding-left: 24px;
  }

  .follow-item::before {
    position: static;
    margin-bottom: 12px;
  }

  .related-links {
    padding: 24px;
  }

  .error-main {
    padding: 60px 20px;
  }

  .error-content h1 {
    font-size: 4rem;
  }
}

@media (max-width: 480px) {
  .brand-slogan {
    display: none;
  }

  .brand-name {
    font-size: 1rem;
  }

  .card-scroller {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .mini-card img {
    height: 120px;
  }

  .mini-card h3 {
    font-size: 0.85rem;
    padding: 8px 8px 2px;
  }

  .update-pill {
    padding: 0 8px 8px;
    font-size: 0.75rem;
  }

  .rank-list {
    grid-template-columns: 1fr;
  }

  .rank-list li img {
    height: 120px;
  }

  .genre-links {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .genre-chip {
    padding: 14px 8px;
    font-size: 0.9rem;
  }

  .update-list li img {
    width: 52px;
    height: 52px;
  }

  .update-group {
    padding: 16px;
  }

  .rank-card {
    grid-template-columns: 44px 64px 1fr;
    gap: 10px;
    padding: 12px;
  }

  .rank-card .rank-num {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .rank-cover img {
    width: 64px;
    height: 84px;
  }

  .rank-title {
    font-size: 0.95rem;
  }

  .rank-reason {
    font-size: 0.82rem;
  }

  .page-header {
    padding: 12px 0 20px;
    margin-bottom: 24px;
  }

  .page-title {
    font-size: 1.4rem;
  }

  .breadcrumb {
    padding-top: 12px;
    font-size: 0.82rem;
    flex-wrap: wrap;
  }

  .tag-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .genre-tag {
    padding: 14px 10px;
  }

  .tag-name {
    font-size: 0.95rem;
  }

  .tag-desc {
    font-size: 0.75rem;
  }

  .genre-cards {
    grid-template-columns: 1fr;
  }

  .genre-card img {
    height: 160px;
  }

  .tips-media img {
    height: 200px;
  }

  .related-links ul li a {
    font-size: 0.9rem;
  }

  .error-links {
    flex-direction: column;
    align-items: center;
  }

  .error-links li a {
    width: 200px;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
