/* ==========================================================================
   lgtpu.com — 汗汗漫画 整站样式表
   视觉方向：瑞士网格风 / 黑白灰基底 + 红色高亮
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* ==========================================================================
   Base
   ========================================================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333333;
  background: #fafafa;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: #1d3557;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #e63946;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.3;
  color: #1d3557;
}

.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;
}

:focus-visible {
  outline: 2px solid #e63946;
  outline-offset: 2px;
}

/* ==========================================================================
   Layout — 全站统一骨架
   ========================================================================== */
.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.home-main {
  background: #ffffff;
}

.inner-main {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  background: #ffffff;
}

/* 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-name {
  font-size: 22px;
  font-weight: 800;
  color: #1d3557;
  letter-spacing: 0;
}

.brand-name::first-letter {
  color: #e63946;
}

/* 主导航 */
.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  color: #333333;
  border-radius: 4px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-list a:hover {
  color: #e63946;
  background: #f8f8f8;
}

.nav-list a.is-current {
  color: #e63946;
  background: #fdf0f0;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 22px;
  height: 2px;
  background: #333333;
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-icon::before {
  top: -7px;
}

.nav-toggle-icon::after {
  top: 7px;
}

/* 页脚 */
.site-footer {
  background: #1d3557;
  color: #e0e4ea;
  margin-top: 0;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
}

.footer-brand .footer-slogan {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.footer-brand .footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #b8c2d0;
}

.footer-links-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-nav h3 {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-nav ul li {
  margin-bottom: 8px;
}

.footer-nav ul a {
  font-size: 14px;
  color: #b8c2d0;
}

.footer-nav ul a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: #8a97a8;
}

/* ==========================================================================
   Components
   ========================================================================== */

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 24px;
  color: #777777;
}

.breadcrumb a {
  color: #777777;
}

.breadcrumb a:hover {
  color: #e63946;
}

.breadcrumb-sep {
  color: #bbbbbb;
}

.breadcrumb-current {
  color: #333333;
  font-weight: 500;
}

/* 内页标题区 */
.page-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #eeeeee;
}

.page-title {
  font-size: 28px;
  font-weight: 800;
  color: #1d3557;
  margin-bottom: 8px;
}

.page-description {
  font-size: 16px;
  color: #666666;
  max-width: 720px;
}

/* 区块标题（内页） */
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: #1d3557;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 15px;
  color: #666666;
  margin-bottom: 20px;
}

/* 首页区块 */
.section-block {
  padding: 56px 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: 22px;
  font-weight: 800;
  color: #1d3557;
  margin-bottom: 6px;
}

.section-heading p {
  font-size: 15px;
  color: #666666;
}

.section-heading .section-link {
  font-size: 14px;
  font-weight: 500;
  color: #e63946;
}

.section-heading .section-link:hover {
  text-decoration: underline;
}

/* 首页 — 题材速览 */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.genre-card {
  display: block;
  background: #ffffff;
  border: 1px solid #ececec;
  border-radius: 8px;
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.genre-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.genre-figure {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 14px;
}

.genre-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.genre-name {
  font-size: 17px;
  font-weight: 700;
  color: #1d3557;
  margin-bottom: 4px;
}

.genre-brief {
  font-size: 14px;
  color: #888888;
  line-height: 1.5;
}

/* 首页 — 最新更新 */
.latest-updates {
  background: #f8f9fb;
}

.update-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.update-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  padding: 12px 16px;
}

.update-item img {
  width: 64px;
  height: 84px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.update-info {
  min-width: 0;
}

.update-title {
  font-size: 16px;
  font-weight: 600;
  color: #1d3557;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.update-genre,
.update-status {
  display: inline-block;
  font-size: 13px;
  margin-right: 12px;
}

.update-genre {
  color: #e63946;
}

.update-status {
  color: #888888;
}

/* 首页 — 热门排行 */
.hot-ranking {
  background: #ffffff;
}

.ranking-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.ranking-item {
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  padding: 16px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.rank-number {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 28px;
  height: 28px;
  background: #e63946;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  z-index: 2;
}

.ranking-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}

.rank-title {
  font-size: 15px;
  font-weight: 600;
  color: #1d3557;
  margin-bottom: 4px;
}

.rank-genre {
  font-size: 13px;
  color: #e63946;
}

/* 首页 — 专题推荐 */
.featured-topics {
  background: #f8f9fb;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.featured-card {
  display: block;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #eeeeee;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.featured-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.featured-figure {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.featured-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-content {
  padding: 20px;
}

.featured-title {
  font-size: 17px;
  font-weight: 700;
  color: #1d3557;
  margin-bottom: 6px;
}

.featured-brief {
  font-size: 14px;
  color: #777777;
  line-height: 1.6;
}

/* 首页 — 阅读指南入口 */
.guide-entry {
  background: #ffffff;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.guide-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: #f8f9fb;
  border-radius: 8px;
  border-left: 3px solid #e63946;
}

.step-number {
  font-size: 24px;
  font-weight: 800;
  color: #e63946;
  line-height: 1;
  flex-shrink: 0;
}

.step-text {
  font-size: 15px;
  color: #555555;
  line-height: 1.6;
}

/* 首页 — FAQ 摘要 */
.faq-summary {
  background: #f8f9fb;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 6px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 600;
  color: #1d3557;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: #e63946;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  background: #fafafa;
}

.faq-item p {
  padding: 0 20px 16px;
  font-size: 15px;
  color: #555555;
  line-height: 1.7;
}

/* 首页 — 相关导航 */
.internal-links {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.internal-links a {
  display: inline-block;
  padding: 10px 20px;
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #333333;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.internal-links a:hover {
  border-color: #e63946;
  color: #e63946;
}

/* 首页 hero */
.hero-section {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 48px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 56px;
  background: #ffffff;
}

.hero-media {
  order: 1;
}

.hero-figure {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-content {
  order: 2;
}

.hero-content h1 {
  font-size: 34px;
  font-weight: 800;
  color: #1d3557;
  margin-bottom: 14px;
  line-height: 1.3;
}

.hero-subtitle {
  font-size: 17px;
  color: #555555;
  line-height: 1.7;
  margin-bottom: 24px;
}

.hero-cta {
  display: inline-block;
  padding: 12px 32px;
  background: #e63946;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.hero-cta:hover {
  background: #c92f3b;
  color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================================
   Pages — 内页业务模块
   ========================================================================== */

/* ---------- 分类页 hhmh/category.html ---------- */
.page-layout {
  display: grid;
  gap: 32px;
  align-items: start;
}

.page-layout.sidebar-left {
  grid-template-columns: 260px 1fr;
}

.page-layout.sidebar-left .category-tree {
  grid-column: 1;
}

.page-layout.sidebar-left .category-cards {
  grid-column: 2;
}

.sidebar-left .category-tree {
  position: sticky;
  top: 88px;
}

.aside-title {
  font-size: 18px;
  font-weight: 700;
  color: #1d3557;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e63946;
}

.tree-group {
  margin-bottom: 20px;
}

.tree-group-title {
  font-size: 14px;
  font-weight: 700;
  color: #888888;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.tree-list li {
  margin-bottom: 2px;
}

.tree-list a {
  display: block;
  padding: 7px 12px;
  font-size: 15px;
  color: #333333;
  border-radius: 4px;
  border-left: 2px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tree-list a:hover {
  background: #fdf0f0;
  border-left-color: #e63946;
  color: #e63946;
}

.tree-note {
  background: #f8f9fb;
  border-radius: 6px;
  padding: 16px;
  margin-top: 24px;
}

.tree-note p {
  font-size: 13px;
  color: #777777;
  line-height: 1.6;
}

.tree-note p + p {
  margin-top: 8px;
}

.category-section {
  margin-bottom: 40px;
}

.category-section .section-title {
  font-size: 22px;
  font-weight: 700;
  color: #1d3557;
  margin-bottom: 8px;
}

.category-section .section-desc {
  font-size: 15px;
  color: #666666;
  margin-bottom: 16px;
}

.category-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  background: #f8f9fb;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #eeeeee;
  transition: box-shadow 0.2s ease;
}

.category-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.card-figure {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;
}

.card-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  min-width: 0;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: #1d3557;
  margin-bottom: 6px;
}

.card-text {
  font-size: 15px;
  color: #555555;
  line-height: 1.7;
  margin-bottom: 10px;
}

.card-tags {
  font-size: 13px;
  color: #999999;
  margin-bottom: 12px;
}

.card-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #e63946;
  border-bottom: 1px solid #e63946;
  padding-bottom: 2px;
}

.card-link:hover {
  color: #c92f3b;
  border-color: #c92f3b;
}

/* ---------- 排行页 hhmh/ranking.html ---------- */
.page-ranking .page-layout {
  grid-template-columns: 1fr 320px;
}

.ranking-main {
  min-width: 0;
}

.ranking-section .section-title {
  font-size: 22px;
  font-weight: 700;
  color: #1d3557;
  margin-bottom: 16px;
}

.ranking-section .ranking-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.ranking-section .ranking-item {
  display: grid;
  grid-template-columns: 44px 72px 1fr;
  align-items: center;
  gap: 16px;
  background: #f8f9fb;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  padding: 12px 16px;
  position: relative;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.ranking-section .ranking-item:hover {
  background: #fdf0f0;
  transform: translateX(4px);
}

.ranking-section .rank-number {
  position: static;
  width: 36px;
  height: 36px;
  font-size: 16px;
  border-radius: 6px;
}

.rank-cover-wrap {
  width: 72px;
  height: 96px;
  overflow: hidden;
  border-radius: 4px;
  flex-shrink: 0;
}

.rank-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-info {
  min-width: 0;
}

.rank-title {
  font-size: 16px;
  font-weight: 600;
  color: #1d3557;
  margin-bottom: 4px;
}

.rank-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.rank-tag {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  background: #eef0f3;
  color: #555555;
  border-radius: 3px;
}

.rank-status {
  font-size: 13px;
  color: #e63946;
}

.rank-desc {
  font-size: 14px;
  color: #666666;
  line-height: 1.5;
  margin-top: 4px;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* 排行侧栏 */
.ranking-sidebar {
  background: #f8f9fb;
  border-radius: 8px;
  padding: 20px;
  position: sticky;
  top: 88px;
}

.new-works-section .section-title {
  font-size: 18px;
  font-weight: 700;
  color: #1d3557;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e63946;
}

.new-works-list {
  display: grid;
  gap: 16px;
}

.new-work-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.new-work-cover {
  width: 56px;
  height: 72px;
  overflow: hidden;
  border-radius: 4px;
  flex-shrink: 0;
}

.new-work-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.new-work-info {
  min-width: 0;
}

.new-work-title {
  font-size: 14px;
  font-weight: 600;
  color: #1d3557;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.new-work-desc {
  font-size: 13px;
  color: #777777;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-link {
  margin-top: 16px;
  text-align: right;
}

.sidebar-link a {
  font-size: 14px;
  font-weight: 500;
  color: #e63946;
}

.sidebar-link a:hover {
  text-decoration: underline;
}

/* ---------- 更新页 hhmh/update.html ---------- */
.update-list-section {
  margin-bottom: 40px;
}

.section-head {
  margin-bottom: 20px;
}

.section-head .section-title {
  font-size: 22px;
  font-weight: 700;
  color: #1d3557;
  margin-bottom: 4px;
}

.section-tip {
  font-size: 14px;
  color: #888888;
}

.update-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.update-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  background: #f8f9fb;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  padding: 16px;
  transition: box-shadow 0.2s ease;
}

.update-item:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.item-cover {
  width: 120px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 6px;
}

.item-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-body {
  min-width: 0;
}

.item-title {
  font-size: 18px;
  font-weight: 700;
  color: #1d3557;
  margin-bottom: 6px;
}

.item-title a {
  color: #1d3557;
}

.item-title a:hover {
  color: #e63946;
}

.item-desc {
  font-size: 14px;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.item-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 3px;
  font-weight: 500;
}

.tag-genre {
  background: #fdf0f0;
  color: #e63946;
}

.tag-status {
  background: #eef0f3;
  color: #555555;
}

.item-update {
  font-size: 13px;
  color: #999999;
}

/* 连载状态摘要 */
.status-summary-section {
  margin-bottom: 40px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.status-card {
  background: #f8f9fb;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #eeeeee;
}

.status-name {
  font-size: 16px;
  font-weight: 700;
  color: #1d3557;
  margin-bottom: 6px;
}

.status-desc {
  font-size: 14px;
  color: #666666;
  line-height: 1.6;
}

.status-note {
  margin-top: 20px;
  font-size: 14px;
  color: #888888;
}

.status-note a {
  color: #e63946;
  font-weight: 500;
}

.status-note a:hover {
  text-decoration: underline;
}

/* 更新相关链接 */
.update-related {
  background: #f8f9fb;
  border-radius: 8px;
  padding: 24px;
}

.update-related .section-title {
  font-size: 18px;
  font-weight: 700;
  color: #1d3557;
  margin-bottom: 16px;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.related-links a {
  display: inline-block;
  padding: 8px 18px;
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #333333;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.related-links a:hover {
  border-color: #e63946;
  color: #e63946;
}

/* ---------- 指南页 hhmh/guide.html ---------- */
.guide-layout {
  max-width: 860px;
}

.guide-section {
  margin-bottom: 48px;
}

.guide-section .section-title {
  font-size: 22px;
  font-weight: 700;
  color: #1d3557;
  margin-bottom: 12px;
}

.guide-section p {
  font-size: 15px;
  color: #555555;
  line-height: 1.8;
  margin-bottom: 12px;
}

.guide-figure {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  margin: 16px 0;
}

.guide-figure img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.guide-figure figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: #888888;
  background: #f8f9fb;
  border-top: 1px solid #eeeeee;
}

.guide-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 16px 0;
}

.guide-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #f8f9fb;
  border-radius: 8px;
  padding: 20px;
  border-left: 3px solid #e63946;
}

.step-num {
  font-size: 22px;
  font-weight: 800;
  color: #e63946;
  line-height: 1;
  flex-shrink: 0;
}

.step-content {
  font-size: 15px;
  color: #555555;
  line-height: 1.7;
}

.guide-tip {
  background: #fdf0f0;
  border-left: 3px solid #e63946;
  border-radius: 6px;
  padding: 16px 20px;
  font-size: 14px;
  color: #555555;
  line-height: 1.7;
  margin: 16px 0;
}

/* ---------- FAQ 页 hhmh/faq.html ---------- */
.faq-section {
  max-width: 860px;
  margin-bottom: 40px;
}

.faq-section .section-title {
  font-size: 22px;
  font-weight: 700;
  color: #1d3557;
  margin-bottom: 20px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 6px;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 600;
  color: #1d3557;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: #e63946;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  background: #fafafa;
}

.faq-answer {
  padding: 0 20px 16px;
  font-size: 15px;
  color: #555555;
  line-height: 1.7;
}

.faq-answer p {
  margin-bottom: 8px;
}

.faq-answer a {
  color: #e63946;
  font-weight: 500;
}

.faq-answer a:hover {
  text-decoration: underline;
}

.faq-illustration {
  width: 100%;
  max-width: 860px;
  border-radius: 8px;
  overflow: hidden;
  margin: 40px 0;
}

.faq-illustration img {
  width: 100%;
  aspect-ratio: 16 / 6;
  object-fit: cover;
}

.faq-illustration figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: #888888;
  background: #f8f9fb;
  border-top: 1px solid #eeeeee;
}

.feedback-guide {
  max-width: 860px;
  background: #f8f9fb;
  border-radius: 8px;
  padding: 24px;
}

.feedback-guide .section-title {
  font-size: 18px;
  font-weight: 700;
  color: #1d3557;
  margin-bottom: 12px;
}

.feedback-guide p {
  font-size: 15px;
  color: #555555;
  line-height: 1.7;
}

.feedback-guide a {
  display: inline-block;
  margin-right: 16px;
  font-weight: 500;
  color: #e63946;
}

.feedback-guide a:hover {
  text-decoration: underline;
}

/* ---------- 关于页 hhmh/about.html ---------- */
.about-section {
  max-width: 860px;
  margin-bottom: 48px;
}

.about-intro {
  margin-bottom: 20px;
}

.about-intro .section-title {
  font-size: 22px;
  font-weight: 700;
  color: #1d3557;
  margin-bottom: 12px;
}

.about-intro p {
  font-size: 15px;
  color: #555555;
  line-height: 1.8;
  margin-bottom: 12px;
}

.about-cover {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.about-cover img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.about-cover figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: #888888;
  background: #f8f9fb;
  border-top: 1px solid #eeeeee;
}

.about-list {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: #555555;
  line-height: 1.7;
}

.about-list li::before {
  content: "—";
  color: #e63946;
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- 404 页 ---------- */
.error-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
}

.error-panel {
  max-width: 560px;
  margin-bottom: 48px;
}

.error-code {
  font-size: 96px;
  font-weight: 800;
  color: #e63946;
  line-height: 1;
  margin-bottom: 16px;
}

.error-title {
  font-size: 28px;
  font-weight: 800;
  color: #1d3557;
  margin-bottom: 12px;
}

.error-text {
  font-size: 16px;
  color: #666666;
  line-height: 1.7;
  margin-bottom: 24px;
}

.error-back-btn {
  display: inline-block;
  padding: 12px 32px;
  background: #e63946;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.error-back-btn:hover {
  background: #c92f3b;
  color: #ffffff;
  transform: translateY(-2px);
}

.error-suggest {
  max-width: 560px;
  width: 100%;
}

.error-suggest-title {
  font-size: 18px;
  font-weight: 700;
  color: #1d3557;
  margin-bottom: 16px;
}

.error-suggest-list {
  display: grid;
  gap: 10px;
}

.error-suggest-list li a {
  display: block;
  padding: 12px 20px;
  background: #f8f9fb;
  border: 1px solid #eeeeee;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  color: #333333;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.error-suggest-list li a:hover {
  border-color: #e63946;
  color: #e63946;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* 平板及以下 */
@media (max-width: 1024px) {
  .header-inner {
    padding: 0 20px;
  }

  .genre-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ranking-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .guide-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-layout.sidebar-left {
    grid-template-columns: 220px 1fr;
  }

  .page-ranking .page-layout {
    grid-template-columns: 1fr;
  }

  .ranking-sidebar {
    position: static;
    margin-top: 24px;
  }

  .new-works-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* 手机端 */
@media (max-width: 768px) {
  .header-inner {
    height: 56px;
    padding: 0 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-list {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    gap: 2px;
    display: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    display: block;
    padding: 12px 16px;
    font-size: 16px;
  }

  .inner-main {
    padding: 20px 16px 48px;
  }

  .page-title {
    font-size: 24px;
  }

  .section-block {
    padding: 40px 16px;
  }

  .hero-section {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 16px 40px;
  }

  .hero-media {
    order: 1;
  }

  .hero-content {
    order: 2;
  }

  .hero-content h1 {
    font-size: 26px;
  }

  .genre-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .genre-card {
    padding: 12px;
  }

  .genre-figure {
    aspect-ratio: 16 / 10;
  }

  .update-list {
    grid-template-columns: 1fr;
  }

  .update-item {
    padding: 10px 12px;
  }

  .ranking-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .ranking-item {
    padding: 12px;
  }

  .ranking-item img {
    height: 120px;
  }

  .featured-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .guide-steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .guide-step {
    padding: 16px;
  }

  .internal-links {
    padding: 0 16px 40px;
    gap: 8px;
  }

  .internal-links a {
    padding: 8px 14px;
    font-size: 13px;
  }

  .footer-inner {
    padding: 32px 16px 24px;
    gap: 24px;
  }

  .footer-links-group {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-nav {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
  }

  .footer-nav:last-child {
    border-bottom: 0;
  }

  .footer-bottom {
    padding: 12px 16px;
  }

  .footer-bottom p {
    font-size: 12px;
  }

  /* 分类页 */
  .page-layout.sidebar-left {
    grid-template-columns: 1fr;
  }

  .page-layout.sidebar-left .category-tree {
    grid-column: 1;
    grid-row: 2;
  }

  .page-layout.sidebar-left .category-cards {
    grid-column: 1;
    grid-row: 1;
  }

  .category-tree {
    position: static;
    margin-top: 24px;
  }

  .category-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }

  .card-figure {
    aspect-ratio: 16 / 8;
  }

  /* 排行页 */
  .ranking-section .ranking-item {
    grid-template-columns: 36px 56px 1fr;
    gap: 12px;
    padding: 10px 12px;
  }

  .rank-cover-wrap {
    width: 56px;
    height: 76px;
  }

  .new-works-list {
    grid-template-columns: 1fr;
  }

  /* 更新页 */
  .update-item {
    grid-template-columns: 88px 1fr;
    gap: 14px;
    padding: 12px;
  }

  .item-cover {
    width: 88px;
  }

  .status-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .status-card {
    padding: 16px;
  }

  /* FAQ 页 */
  .faq-item summary {
    padding: 14px 16px;
    font-size: 15px;
  }

  .faq-answer {
    padding: 0 16px 14px;
  }

  .faq-illustration {
    margin: 24px 0;
  }

  /* 关于页 */
  .about-section {
    margin-bottom: 36px;
  }

  /* 404 */
  .error-main {
    padding: 48px 16px;
  }

  .error-code {
    font-size: 72px;
  }
}

/* 小屏手机 */
@media (max-width: 420px) {
  .genre-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .genre-card {
    padding: 10px;
  }

  .genre-name {
    font-size: 15px;
  }

  .genre-brief {
    font-size: 12px;
  }

  .ranking-list {
    grid-template-columns: 1fr;
  }

  .ranking-item {
    display: grid;
    grid-template-columns: 32px 72px 1fr;
    align-items: center;
    gap: 12px;
  }

  .ranking-item img {
    height: 96px;
    margin-bottom: 0;
  }

  .rank-number {
    position: static;
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
}
