/* ============================================================
   base / reset
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #3A3A3A;
  background-color: #FDF8F0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: #D96C3B;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #c45a2c;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

figure {
  margin: 0;
}

/* 隐藏但可读（用于屏幕阅读器 / 辅助标题） */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   layout / 全站骨架
   ============================================================ */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background-color: #FDF8F0;
  border-bottom: 1px solid #f0e4d2;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand-link {
  display: flex;
  align-items: center;
  color: #3A3A3A;
  font-size: 1.25rem;
  font-weight: 700;
}

.brand-link:hover {
  color: #D96C3B;
}

.brand-name {
  letter-spacing: 0.02em;
}

.site-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  display: block;
}

.nav-link {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  color: #3A3A3A;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  background-color: rgba(217, 108, 59, 0.08);
  color: #D96C3B;
}

.nav-item.is-current .nav-link,
.nav-link.is-current {
  background-color: rgba(217, 108, 59, 0.12);
  color: #D96C3B;
  font-weight: 600;
}

/* 移动端汉堡按钮：桌面隐藏 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 8px;
  background-color: transparent;
}

.toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #3A3A3A;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-main {
  flex: 1;
  width: 100%;
}

.inner-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.site-footer {
  background-color: #3A3A3A;
  color: #e8e0d6;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer-col-title {
  font-size: 1rem;
  font-weight: 600;
  color: #FDF8F0;
  margin-bottom: 16px;
}

.footer-brand-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #FDF8F0;
  margin-bottom: 8px;
}

.footer-slogan {
  font-size: 0.95rem;
  color: #F0C98D;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #b5aca2;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #b5aca2;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #F0C98D;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  text-align: center;
}

.copyright {
  font-size: 0.85rem;
  color: #8a8278;
  max-width: 1200px;
  margin: 0 auto;
}

/* ============================================================
   components / 通用组件
   ============================================================ */

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.9rem;
  color: #8a8278;
  margin-bottom: 24px;
}

.breadcrumb a {
  color: #8a8278;
}

.breadcrumb a:hover {
  color: #D96C3B;
}

.breadcrumb-sep {
  color: #c4b8a8;
}

.breadcrumb-current {
  color: #3A3A3A;
  font-weight: 500;
}

/* 页面标题区（内页统一） */
.page-header {
  margin-bottom: 40px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: #3A3A3A;
  line-height: 1.4;
  margin-bottom: 12px;
}

.page-description {
  font-size: 1rem;
  color: #6b6156;
  max-width: 720px;
  line-height: 1.7;
}

/* 区块标题通用 */
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: #3A3A3A;
  line-height: 1.4;
  margin-bottom: 8px;
}

.section-desc {
  font-size: 0.95rem;
  color: #6b6156;
  line-height: 1.7;
}

/* 首页通用区块 */
.section-block {
  padding: 56px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-head .section-title {
  margin-bottom: 4px;
}

.more-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: #D96C3B;
  white-space: nowrap;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}

.more-link:hover {
  border-bottom-color: #D96C3B;
}

/* 状态标签 */
.update-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.5;
}

.status-new {
  background-color: rgba(91, 168, 154, 0.15);
  color: #3f7d72;
}

.status-week {
  background-color: rgba(217, 108, 59, 0.12);
  color: #c45a2c;
}

.status-yesterday {
  background-color: rgba(240, 201, 141, 0.3);
  color: #a67a2e;
}

.status-finished,
.status-done {
  background-color: rgba(58, 58, 58, 0.08);
  color: #6b6156;
}

/* ============================================================
   components / 首页
   ============================================================ */

/* hero */
.hero-section {
  background-color: #FDF8F0;
  border-bottom: 1px solid #f0e4d2;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 20px 64px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.35;
  color: #3A3A3A;
  margin-bottom: 16px;
}

.hero-slogan {
  font-size: 1.15rem;
  font-weight: 600;
  color: #D96C3B;
  margin-bottom: 12px;
}

.hero-desc {
  font-size: 1rem;
  color: #6b6156;
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-primary {
  background-color: #D96C3B;
  color: #fff;
}

.btn-primary:hover {
  background-color: #c45a2c;
  color: #fff;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: #3A3A3A;
  border: 1px solid #d8c8b0;
}

.btn-secondary:hover {
  border-color: #D96C3B;
  color: #D96C3B;
}

.hero-figure {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(58, 58, 58, 0.1);
}

.hero-image {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

/* 热门题材标签墙 */
.tag-section .tag-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-pill {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 8px;
  background-color: #f5ead9;
  color: #3A3A3A;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tag-pill:hover {
  background-color: #D96C3B;
  color: #fff;
  transform: translateY(-2px);
}

/* 最近更新（首页） */
.update-section {
  background-color: #FDF8F0;
}

.update-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.update-item {
  display: flex;
  gap: 20px;
  padding: 16px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(58, 58, 58, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.update-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(58, 58, 58, 0.08);
}

.update-cover {
  width: 96px;
  height: 128px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.update-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 6px;
}

.update-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #3A3A3A;
}

.update-name a {
  color: #3A3A3A;
}

.update-name a:hover {
  color: #D96C3B;
}

.update-desc {
  font-size: 0.9rem;
  color: #6b6156;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 人气排行榜（首页） */
.ranking-section {
  background-color: #f8f0e4;
}

.ranking-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ranking-col {
  background-color: #fff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(58, 58, 58, 0.04);
}

.ranking-col-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #3A3A3A;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #F0C98D;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.rank-num {
  width: 24px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #c4b8a8;
  flex-shrink: 0;
  text-align: center;
}

.ranking-item:nth-child(1) .rank-num,
.ranking-item:nth-child(2) .rank-num,
.ranking-item:nth-child(3) .rank-num {
  color: #D96C3B;
}

.ranking-item a {
  color: #3A3A3A;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-item a:hover {
  color: #D96C3B;
}

.rank-heat {
  font-size: 0.8rem;
  color: #8a8278;
  flex-shrink: 0;
}

/* 阅读指南步骤（首页） */
.guide-section {
  background-color: #FDF8F0;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.guide-step {
  background-color: #fff;
  border-radius: 8px;
  padding: 24px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(58, 58, 58, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.guide-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(58, 58, 58, 0.08);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-color: #5BA89A;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 14px;
}

.step-title {
  font-size: 1rem;
  font-weight: 600;
  color: #3A3A3A;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.9rem;
  color: #6b6156;
  line-height: 1.6;
}

/* 漫画观察（首页） */
.blog-section {
  background-color: #f8f0e4;
}

.blog-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.blog-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(58, 58, 58, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(58, 58, 58, 0.08);
}

.blog-cover {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-body {
  padding: 20px;
}

.blog-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #3A3A3A;
  margin-bottom: 8px;
}

.blog-title a {
  color: #3A3A3A;
}

.blog-title a:hover {
  color: #D96C3B;
}

.blog-excerpt {
  font-size: 0.9rem;
  color: #6b6156;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   pages / 题材分类 tags.html
   ============================================================ */

.page-tags .page-layout.sidebar-left {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}

.tag-sidebar {
  background-color: #fff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(58, 58, 58, 0.04);
  position: sticky;
  top: 84px;
}

.sidebar-title {
  font-size: 1rem;
  font-weight: 700;
  color: #3A3A3A;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #F0C98D;
}

.tag-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tag-nav-list a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: #3A3A3A;
  font-size: 0.9rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.tag-nav-list a:hover {
  background-color: rgba(217, 108, 59, 0.08);
  color: #D96C3B;
}

.tag-content {
  display: flex;
  flex-direction: column;
  gap: 48px;
  min-width: 0;
}

.hot-tags-section {
  background-color: #fff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(58, 58, 58, 0.04);
}

.hot-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.hot-tag-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 20px;
  background-color: #f8f0e4;
  border-radius: 8px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.hot-tag-item:hover {
  background-color: #D96C3B;
  transform: translateY(-2px);
}

.hot-tag-item .tag-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #3A3A3A;
}

.hot-tag-item:hover .tag-name {
  color: #fff;
}

.hot-tag-item .tag-note {
  font-size: 0.8rem;
  color: #8a8278;
}

.hot-tag-item:hover .tag-note {
  color: rgba(255, 255, 255, 0.85);
}

.tag-section .section-title {
  margin-bottom: 4px;
}

.tag-section .section-desc {
  margin-bottom: 20px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.work-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(58, 58, 58, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.work-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(58, 58, 58, 0.08);
}

.work-cover {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.work-cover img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.work-title {
  font-size: 1rem;
  font-weight: 600;
  color: #3A3A3A;
  padding: 14px 16px 4px;
}

.work-tag {
  font-size: 0.8rem;
  color: #D96C3B;
  padding: 0 16px;
  margin-bottom: 8px;
}

.work-desc {
  font-size: 0.85rem;
  color: #6b6156;
  line-height: 1.6;
  padding: 0 16px 16px;
}

.related-section {
  background-color: #fff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(58, 58, 58, 0.04);
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.related-link {
  display: inline-block;
  padding: 8px 18px;
  background-color: #f8f0e4;
  border-radius: 8px;
  color: #3A3A3A;
  font-size: 0.9rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.related-link:hover {
  background-color: #D96C3B;
  color: #fff;
}

/* ============================================================
   pages / 最近更新 updates.html
   ============================================================ */

.update-filter {
  margin-bottom: 32px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: 8px;
  background-color: #fff;
  color: #3A3A3A;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid #e8dcc8;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-btn:hover {
  border-color: #D96C3B;
  color: #D96C3B;
}

.filter-btn.is-active {
  background-color: #D96C3B;
  color: #fff;
  border-color: #D96C3B;
}

.update-list-section {
  margin-bottom: 48px;
}

.update-list-section .update-list {
  gap: 12px;
}

.update-list-section .update-item {
  padding: 14px 16px;
}

.update-list-section .update-cover {
  width: 72px;
  height: 96px;
}

.update-title {
  font-size: 1rem;
  font-weight: 600;
  color: #3A3A3A;
  margin-bottom: 4px;
}

.update-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.update-time {
  font-size: 0.85rem;
  color: #8a8278;
}

/* 本周推荐 */
.week-pick {
  margin-bottom: 48px;
}

.week-pick-banner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(58, 58, 58, 0.04);
}

.week-pick-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.week-pick-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 8px;
  background-color: rgba(91, 168, 154, 0.15);
  color: #3f7d72;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 14px;
}

.week-pick-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #3A3A3A;
  margin-bottom: 12px;
}

.week-pick-desc {
  font-size: 0.95rem;
  color: #6b6156;
  line-height: 1.7;
  margin-bottom: 20px;
}

.week-pick-link {
  display: inline-block;
  padding: 10px 24px;
  background-color: #D96C3B;
  color: #fff;
  border-radius: 8px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.week-pick-link:hover {
  background-color: #c45a2c;
  color: #fff;
}

.week-pick-cover img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

/* 相关链接 */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(58, 58, 58, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(58, 58, 58, 0.08);
}

.related-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #3A3A3A;
  margin-bottom: 6px;
}

.related-card-text {
  font-size: 0.85rem;
  color: #6b6156;
  line-height: 1.6;
}

/* ============================================================
   pages / 排行榜 ranking.html
   ============================================================ */

/* 总榜 */
.total-rank-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.total-rank-list .rank-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: #fff;
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: 0 2px 8px rgba(58, 58, 58, 0.03);
}

.rank-position {
  width: 28px;
  font-size: 1rem;
  font-weight: 700;
  color: #c4b8a8;
  text-align: center;
  flex-shrink: 0;
}

.total-rank-list .rank-item:nth-child(1) .rank-position,
.total-rank-list .rank-item:nth-child(2) .rank-position,
.total-rank-list .rank-item:nth-child(3) .rank-position {
  color: #D96C3B;
}

.rank-cover {
  width: 48px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
}

.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-info {
  flex: 1;
  min-width: 0;
}

.rank-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #3A3A3A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-tag {
  font-size: 0.8rem;
  color: #8a8278;
}

.rank-trend {
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 8px;
  flex-shrink: 0;
}

.trend-up {
  background-color: rgba(91, 168, 154, 0.15);
  color: #3f7d72;
}

.trend-down {
  background-color: rgba(217, 108, 59, 0.1);
  color: #c45a2c;
}

.trend-flat {
  background-color: rgba(58, 58, 58, 0.06);
  color: #6b6156;
}

.heat-bar-wrap {
  width: 100px;
  height: 6px;
  background-color: #f0e4d2;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
}

.heat-bar {
  display: block;
  height: 100%;
  border-radius: 3px;
}

.heat-bar-high {
  width: 85%;
  background-color: #D96C3B;
}

.heat-bar-mid {
  width: 60%;
  background-color: #F0C98D;
}

.heat-bar-low {
  width: 35%;
  background-color: #c4b8a8;
}

.rank-note {
  font-size: 0.85rem;
  color: #8a8278;
  margin-top: 20px;
}

.rank-note a {
  color: #D96C3B;
}

/* 分类榜 */
.category-rank-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.category-col {
  background-color: #fff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(58, 58, 58, 0.04);
}

.category-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #3A3A3A;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #F0C98D;
}

.compact-rank {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.compact-rank .rank-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.compact-rank .rank-name {
  flex: 1;
  font-size: 0.95rem;
}

/* 新作上升榜 */
.new-rank-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.new-rank-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(58, 58, 58, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.new-rank-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(58, 58, 58, 0.08);
}

.new-rank-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.new-rank-card .rank-name {
  font-size: 1rem;
  padding: 14px 16px 2px;
}

.rank-desc {
  font-size: 0.85rem;
  color: #6b6156;
  line-height: 1.6;
  padding: 0 16px;
}

.rank-badge {
  display: inline-block;
  margin: 8px 16px 16px;
  padding: 3px 10px;
  border-radius: 8px;
  background-color: rgba(217, 108, 59, 0.12);
  color: #c45a2c;
  font-size: 0.8rem;
  font-weight: 500;
}

.rank-more {
  margin-top: 24px;
  display: flex;
  gap: 20px;
}

.rank-more a {
  color: #D96C3B;
  font-size: 0.9rem;
}

/* 相关推荐 */
.rank-related {
  margin-top: 48px;
  background-color: #fff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(58, 58, 58, 0.04);
}

.related-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #3A3A3A;
  margin-bottom: 16px;
}

.rank-related .related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rank-related .related-links a {
  display: inline-block;
  padding: 8px 18px;
  background-color: #f8f0e4;
  border-radius: 8px;
  color: #3A3A3A;
  font-size: 0.9rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.rank-related .related-links a:hover {
  background-color: #D96C3B;
  color: #fff;
}

/* ============================================================
   pages / 阅读指南 guide.html
   ============================================================ */

.guide-steps-overview {
  margin-bottom: 48px;
}

.content-media-inline {
  margin: 20px 0 28px;
  border-radius: 8px;
  overflow: hidden;
}

.content-media-inline img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.content-media-inline figcaption {
  padding: 10px 16px;
  font-size: 0.85rem;
  color: #8a8278;
  background-color: #fff;
}

.steps-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step-item {
  background-color: #fff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(58, 58, 58, 0.04);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-color: #5BA89A;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.step-name {
  font-size: 1rem;
  font-weight: 600;
  color: #3A3A3A;
  margin-bottom: 6px;
}

.step-brief {
  font-size: 0.85rem;
  color: #6b6156;
  line-height: 1.6;
}

/* 详细说明 */
.guide-detail {
  margin-bottom: 48px;
}

.guide-block {
  background-color: #fff;
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(58, 58, 58, 0.04);
}

.guide-block-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #3A3A3A;
  margin-bottom: 12px;
}

.guide-block-text {
  font-size: 0.95rem;
  color: #6b6156;
  line-height: 1.7;
  margin-bottom: 12px;
}

.guide-block-text a {
  color: #D96C3B;
  font-weight: 500;
}

/* 阅读环境 */
.reading-environment {
  margin-bottom: 48px;
}

.environment-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.environment-item {
  background-color: #fff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(58, 58, 58, 0.04);
}

.environment-name {
  font-size: 1rem;
  font-weight: 600;
  color: #3A3A3A;
  margin-bottom: 8px;
}

.environment-text {
  font-size: 0.9rem;
  color: #6b6156;
  line-height: 1.6;
}

/* FAQ */
.guide-faq {
  margin-bottom: 48px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(58, 58, 58, 0.04);
}

.faq-question {
  padding: 18px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: #3A3A3A;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background-color 0.2s ease;
}

.faq-question:hover {
  background-color: #faf3e8;
}

.faq-question::after {
  content: "+";
  font-size: 1.3rem;
  color: #D96C3B;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: #6b6156;
  line-height: 1.7;
}

.faq-answer a {
  color: #D96C3B;
}

/* ============================================================
   pages / 漫画观察 blog.html
   ============================================================ */

/* 推荐文章 */
.blog-featured {
  margin-bottom: 48px;
}

.featured-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(58, 58, 58, 0.04);
}

.featured-media img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.featured-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.featured-headline {
  font-size: 1.4rem;
  font-weight: 700;
  color: #3A3A3A;
  line-height: 1.4;
  margin-bottom: 12px;
}

.featured-excerpt {
  font-size: 0.95rem;
  color: #6b6156;
  line-height: 1.7;
  margin-bottom: 20px;
}

.read-more-link {
  display: inline-block;
  padding: 10px 24px;
  background-color: #D96C3B;
  color: #fff;
  border-radius: 8px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.read-more-link:hover {
  background-color: #c45a2c;
  color: #fff;
}

/* 文章列表 */
.blog-section .article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.article-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(58, 58, 58, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(58, 58, 58, 0.08);
}

.article-media img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.article-body {
  padding: 18px;
}

.article-title {
  font-size: 1rem;
  font-weight: 600;
  color: #3A3A3A;
  margin-bottom: 8px;
  line-height: 1.5;
}

.article-title a {
  color: #3A3A3A;
}

.article-title a:hover {
  color: #D96C3B;
}

.article-excerpt {
  font-size: 0.85rem;
  color: #6b6156;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 话题讨论入口 */
.blog-talk {
  background-color: #fff;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(58, 58, 58, 0.04);
  margin-top: 48px;
}

.talk-desc {
  font-size: 0.95rem;
  color: #6b6156;
  line-height: 1.7;
  margin-bottom: 20px;
}

.talk-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.talk-link {
  display: inline-block;
  padding: 10px 22px;
  background-color: #f8f0e4;
  border-radius: 8px;
  color: #3A3A3A;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.talk-link:hover {
  background-color: #D96C3B;
  color: #fff;
}

/* ============================================================
   pages / 404
   ============================================================ */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 40px 20px;
}

.error-section {
  text-align: center;
  max-width: 520px;
}

.error-code {
  font-size: 4rem;
  font-weight: 700;
  color: #D96C3B;
  line-height: 1;
  margin-bottom: 16px;
}

.error-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #3A3A3A;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 1rem;
  color: #6b6156;
  line-height: 1.7;
  margin-bottom: 28px;
}

.error-link {
  display: inline-block;
  padding: 12px 28px;
  background-color: #D96C3B;
  color: #fff;
  border-radius: 8px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.error-link:hover {
  background-color: #c45a2c;
  color: #fff;
}

/* ============================================================
   responsive / 响应式
   ============================================================ */

@media (max-width: 1024px) {
  .hero-content {
    gap: 32px;
  }

  .hero-title {
    font-size: 28px;
  }

  .ranking-columns {
    gap: 16px;
  }

  .ranking-col {
    padding: 18px;
  }

  .guide-steps {
    gap: 14px;
  }

  .guide-step {
    padding: 18px;
  }

  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-strip {
    gap: 14px;
  }

  .step-item {
    padding: 18px;
  }

  .environment-list {
    gap: 14px;
  }

  .environment-item {
    padding: 18px;
  }
}

@media (max-width: 768px) {
  /* 页头：显示汉堡，收起导航 */
  .nav-toggle {
    display: flex;
  }

  .site-nav .nav-list {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background-color: #FDF8F0;
    border-bottom: 1px solid #f0e4d2;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    gap: 2px;
  }

  .site-nav .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    padding: 12px 14px;
    border-radius: 8px;
  }

  .nav-item.is-current .nav-link,
  .nav-link.is-current {
    background-color: rgba(217, 108, 59, 0.12);
  }

  /* 首页 hero */
  .hero-content {
    grid-template-columns: 1fr;
    padding: 40px 20px 48px;
    gap: 28px;
  }

  .hero-text {
    align-items: flex-start;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-image {
    height: 240px;
  }

  /* 首页各区块 */
  .section-block {
    padding: 40px 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .ranking-columns {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .guide-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .blog-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .blog-cover {
    height: 180px;
  }

  /* 内页通用 */
  .inner-main {
    padding: 24px 16px 48px;
  }

  .page-header {
    margin-bottom: 28px;
  }

  .page-title {
    font-size: 22px;
  }

  /* 题材分类：侧栏变顶部 */
  .page-tags .page-layout.sidebar-left {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .tag-sidebar {
    position: static;
  }

  .tag-nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .tag-nav-list a {
    padding: 6px 14px;
    font-size: 0.85rem;
  }

  .work-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .work-cover {
    height: 160px;
  }

  .work-cover img {
    height: 160px;
  }

  /* 更新页 */
  .update-list-section .update-item {
    padding: 12px;
    gap: 14px;
  }

  .update-list-section .update-cover {
    width: 60px;
    height: 80px;
  }

  .week-pick-banner {
    grid-template-columns: 1fr;
  }

  .week-pick-content {
    padding: 24px;
  }

  .week-pick-cover img {
    min-height: 180px;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* 排行榜 */
  .total-rank-list .rank-item {
    gap: 10px;
    padding: 10px 12px;
  }

  .rank-cover {
    width: 40px;
    height: 54px;
  }

  .heat-bar-wrap {
    width: 60px;
  }

  .category-rank-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .new-rank-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* 指南 */
  .steps-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .guide-block {
    padding: 20px;
  }

  .environment-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .content-media-inline img {
    height: 200px;
  }

  /* 博客 */
  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-media img {
    min-height: 200px;
  }

  .featured-content {
    padding: 24px;
  }

  .featured-headline {
    font-size: 1.2rem;
  }

  .blog-section .article-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .article-media img {
    height: 180px;
  }

  .blog-talk {
    padding: 24px;
  }

  /* 页脚 */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 20px 24px;
  }

  .footer-bottom {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .guide-steps {
    grid-template-columns: 1fr;
  }

  .steps-strip {
    grid-template-columns: 1fr;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-cover {
    height: 200px;
  }

  .work-cover img {
    height: 200px;
  }

  .filter-buttons {
    gap: 8px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .update-item {
    gap: 12px;
  }

  .update-cover {
    width: 80px;
    height: 108px;
  }

  .tag-pill {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .hot-tag-item {
    padding: 10px 16px;
  }

  .error-code {
    font-size: 3rem;
  }
}
