/* ============================================================
   嘿咻漫画 · 整站样式表
   几何编辑风：矩形分区、粗细线对比、多色点缀
   ============================================================ */

/* ============================================================
   Base
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #111827;
  background-color: #f5f5f5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: #1e90ff;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #155fa8;
  text-decoration: underline;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* ============================================================
   Layout · 全站骨架
   ============================================================ */
.site-header {
  background-color: #1a1a2e;
  border-bottom: 3px solid #ff6b35;
  position: relative;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand-link {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  padding: 8px 0;
}

.brand-link:hover {
  text-decoration: none;
}

.brand-name {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1px;
}

.brand-slogan {
  font-size: 12px;
  color: #ff6b35;
  font-weight: 400;
  letter-spacing: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li a {
  display: block;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  color: #cfd8e3;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-list li a:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.nav-list li a.is-current {
  color: #ffffff;
  background-color: #ff6b35;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 4px;
}

.nav-toggle-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-main {
  flex: 1;
  width: 100%;
}

.site-footer {
  background-color: #1a1a2e;
  color: #a5b0c0;
  margin-top: auto;
}

.footer-cols {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-brand-name {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 360px;
}

.footer-col-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links ul li a {
  font-size: 14px;
  color: #a5b0c0;
}

.footer-links ul li a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: #7a8699;
}

/* ============================================================
   Layout · 内页统一外壳
   ============================================================ */
.inner-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 64px;
  width: 100%;
  flex: 1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 24px;
  color: #6b7280;
}

.breadcrumb a {
  color: #1e90ff;
}

.breadcrumb a:hover {
  color: #155fa8;
}

.breadcrumb-sep {
  color: #9ca3af;
}

.breadcrumb-current {
  color: #4b5563;
  font-weight: 500;
}

.page-header {
  background-color: #e8e8ee;
  border-left: 4px solid #ff6b35;
  padding: 28px 32px;
  margin-bottom: 40px;
  border-radius: 0 8px 8px 0;
}

.page-title {
  font-size: 28px;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.3;
  margin-bottom: 8px;
}

.page-description {
  font-size: 15px;
  color: #4b5563;
  max-width: 720px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.3;
  margin-bottom: 12px;
}

.section-intro {
  font-size: 15px;
  color: #6b7280;
  margin-bottom: 24px;
  max-width: 760px;
}

/* ============================================================
   Components · 通用按钮
   ============================================================ */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  border: 2px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background-color: #ff6b35;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #e85a26;
  color: #ffffff;
}

.btn-secondary {
  background-color: transparent;
  border-color: #1a1a2e;
  color: #1a1a2e;
}

.btn-secondary:hover {
  background-color: #1a1a2e;
  color: #ffffff;
}

.btn-link {
  display: inline-block;
  font-weight: 600;
  color: #1e90ff;
  padding: 12px 8px;
}

.btn-link:hover {
  color: #155fa8;
}

/* ============================================================
   Components · 漫画封面卡
   ============================================================ */
.comic-card {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
}

.comic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.comic-card a {
  display: block;
  color: inherit;
}

.comic-card a:hover {
  text-decoration: none;
}

.comic-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background-color: #e5e7eb;
}

.comic-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a2e;
  padding: 12px 14px 4px;
  line-height: 1.4;
}

.genre-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: #ff6b35;
  background-color: #fff0e8;
  border-radius: 4px;
  padding: 2px 8px;
  margin: 4px 14px 14px;
}

/* ============================================================
   Components · 题材标签
   ============================================================ */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud li a {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: #1a1a2e;
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 6px 12px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tag-cloud li a:hover {
  background-color: #1a1a2e;
  border-color: #1a1a2e;
  color: #ffffff;
  text-decoration: none;
}

/* ============================================================
   Components · 排行榜条
   ============================================================ */
.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
  background-color: #e5e7eb;
  border-radius: 4px;
  flex-shrink: 0;
}

.ranking-list li:nth-child(1) .rank-num {
  background-color: #ff2e63;
  color: #ffffff;
}

.ranking-list li:nth-child(2) .rank-num {
  background-color: #ff6b35;
  color: #ffffff;
}

.ranking-list li:nth-child(3) .rank-num {
  background-color: #1e90ff;
  color: #ffffff;
}

/* ============================================================
   Components · 面包屑
   ============================================================ */
.breadcrumb a,
.breadcrumb .breadcrumb-sep,
.breadcrumb .breadcrumb-current {
  display: inline-flex;
  align-items: center;
}

/* ============================================================
   Components · 期号标志
   ============================================================ */
.issue-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #ff2e63;
  background-color: #ffffff;
  border: 2px solid #ff2e63;
  border-radius: 4px;
  padding: 4px 12px;
  letter-spacing: 1px;
}

/* ============================================================
   Components · 双列卡片入口
   ============================================================ */
.guide-card,
.faq-card {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.guide-card:hover,
.faq-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.guide-card h2,
.faq-card h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 12px;
}

.guide-card p,
.faq-card p {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 16px;
  line-height: 1.7;
}

.card-link {
  display: inline-block;
  font-weight: 600;
  color: #1e90ff;
  font-size: 14px;
}

.card-link:hover {
  color: #155fa8;
}

/* ============================================================
   Pages · index.html
   ============================================================ */
.home-main {
  width: 100%;
}

/* --- Hero --- */
.hero-section {
  background-color: #1a1a2e;
  border-bottom: 4px solid #ff6b35;
}

.hero-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.hero-title {
  font-size: 42px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin: 0;
}

.hero-subtitle {
  font-size: 16px;
  color: #a5b0c0;
  line-height: 1.7;
  max-width: 440px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.hero-figure {
  border: 3px solid #ff6b35;
  border-radius: 8px;
  overflow: hidden;
  background-color: #2a2a4a;
}

.hero-figure img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

/* --- 栏目导航条 --- */
.category-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.nav-label {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
  margin-right: 8px;
  flex-shrink: 0;
}

.category-nav a {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a2e;
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 6px 16px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.category-nav a:hover {
  background-color: #1a1a2e;
  color: #ffffff;
  text-decoration: none;
}

/* --- 最近更新模块 --- */
.latest-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  border-bottom: 2px solid #1a1a2e;
  padding-bottom: 8px;
}

.section-heading h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a2e;
}

.section-link {
  font-size: 14px;
  font-weight: 500;
  color: #1e90ff;
}

.latest-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* --- 排行榜模块 --- */
.ranking-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.ranking-column {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 24px;
}

.ranking-column h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #ff6b35;
}

.ranking-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
}

.ranking-list li:last-child {
  border-bottom: none;
}

.ranking-list li a {
  font-size: 15px;
  font-weight: 500;
  color: #1a1a2e;
  flex: 1;
  line-height: 1.4;
}

.ranking-list li a:hover {
  color: #1e90ff;
}

/* --- 题材分类模块 --- */
.genre-grid-section {
  background-color: #ffffff;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  padding: 48px 0;
}

.genre-grid-section > h2 {
  max-width: 1200px;
  margin: 0 auto 32px;
  padding: 0 24px;
  font-size: 24px;
  font-weight: 700;
  color: #1a1a2e;
}

.genre-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.genre-card {
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.genre-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.genre-card a {
  display: block;
  color: inherit;
}

.genre-card a:hover {
  text-decoration: none;
}

.genre-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background-color: #e5e7eb;
}

.genre-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  padding: 16px 16px 4px;
}

.genre-card p {
  font-size: 14px;
  color: #6b7280;
  padding: 0 16px 16px;
  line-height: 1.6;
}

/* --- 阅读指南与常见问题入口 --- */
.guide-faq-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* --- 版权与反馈说明条 --- */
.info-strip {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background-color: #f0f1f4;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 16px 24px;
}

.info-strip p {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
}

.info-strip a {
  font-size: 13px;
  font-weight: 600;
  color: #1e90ff;
  white-space: nowrap;
}

/* ============================================================
   Pages · hxmh/category.html
   ============================================================ */
.layout-shell {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

.main-content {
  min-width: 0;
}

.genre-block {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 24px;
  scroll-margin-top: 96px;
}

.genre-media {
  border-radius: 4px;
  overflow: hidden;
  background-color: #e5e7eb;
}

.genre-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.genre-copy h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.genre-def {
  font-size: 15px;
  font-weight: 600;
  color: #ff6b35;
  margin-bottom: 8px;
}

.genre-copy p {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 8px;
}

.genre-term {
  display: inline-block;
  font-size: 12px;
  color: #6b7280;
  background-color: #f3f4f6;
  border-radius: 4px;
  padding: 4px 10px;
  margin-top: 4px;
}

.genre-tips {
  background-color: #ffffff;
  border-left: 4px solid #1e90ff;
  border-radius: 0 6px 6px 0;
  padding: 24px;
  margin-top: 32px;
}

.genre-tips h2 {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 12px;
}

.genre-tips p {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 8px;
}

/* --- 右侧边栏 --- */
.sidebar {
  position: sticky;
  top: 24px;
}

.sidebar-card {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 24px;
}

.sidebar-card h2 {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #ff6b35;
}

/* ============================================================
   Pages · hxmh/latest.html
   ============================================================ */
.timeline-section {
  margin-bottom: 48px;
}

.timeline-list {
  position: relative;
  padding-left: 24px;
}

.timeline-list::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #d1d5db;
}

.timeline-item {
  position: relative;
  margin-bottom: 24px;
  padding-left: 24px;
}

.timeline-marker {
  position: absolute;
  left: -24px;
  top: 20px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #ff6b35;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 2px #ff6b35;
}

.batch-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  background-color: #1a1a2e;
  border-radius: 4px;
  padding: 4px 12px;
  margin-bottom: 12px;
  white-space: nowrap;
}

.timeline-content {
  min-width: 0;
}

.timeline-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 16px;
  align-items: center;
}

.timeline-cover {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 4px;
  background-color: #e5e7eb;
}

.timeline-info {
  min-width: 0;
}

.timeline-info .work-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 6px;
}

.timeline-info .work-tags {
  font-size: 12px;
  color: #ff6b35;
  margin-bottom: 6px;
}

.timeline-info .work-brief {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* --- 新作推荐卡 --- */
.new-picks-section {
  margin-bottom: 48px;
}

.picks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pick-card {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pick-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.pick-cover {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 12px;
  background-color: #e5e7eb;
}

.pick-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 4px;
}

.pick-tag {
  font-size: 12px;
  color: #ff6b35;
  margin-bottom: 8px;
}

.pick-desc {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
}

/* --- 追更说明 --- */
.follow-note-section {
  margin-bottom: 48px;
}

.follow-tips {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 24px;
}

.follow-tips p {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.7;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
  position: relative;
  padding-left: 24px;
}

.follow-tips p::before {
  content: "·";
  position: absolute;
  left: 8px;
  color: #ff6b35;
  font-weight: 700;
}

.follow-tips p:last-child {
  border-bottom: none;
}

/* --- 底部相关推荐 --- */
.related-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.related-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background-color: #1a1a2e;
  border-radius: 4px;
  padding: 10px 20px;
  transition: background-color 0.2s ease;
}

.related-link:hover {
  background-color: #ff6b35;
  color: #ffffff;
  text-decoration: none;
}

/* ============================================================
   Pages · hxmh/ranking.html
   ============================================================ */
.ranking-block {
  margin-bottom: 48px;
}

.top-picks-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 40px 80px 1fr auto;
  gap: 16px;
  align-items: center;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 16px 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.rank-number {
  font-size: 24px;
  font-weight: 800;
  color: #ff6b35;
  font-style: italic;
  text-align: center;
}

.ranking-item:nth-child(1) .rank-number {
  color: #ff2e63;
}

.ranking-item:nth-child(2) .rank-number {
  color: #ff6b35;
}

.ranking-item:nth-child(3) .rank-number {
  color: #1e90ff;
}

.rank-cover {
  border-radius: 4px;
  overflow: hidden;
  background-color: #e5e7eb;
}

.rank-cover img {
  width: 80px;
  height: 100px;
  object-fit: cover;
}

.rank-info {
  min-width: 0;
}

.rank-title {
  font-size: 17px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 4px;
}

.rank-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.rank-tags a {
  font-size: 12px;
  color: #ff6b35;
  background-color: #fff0e8;
  border-radius: 4px;
  padding: 2px 8px;
}

.rank-tags a:hover {
  background-color: #ff6b35;
  color: #ffffff;
  text-decoration: none;
}

.rank-desc {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-trend {
  font-size: 13px;
  font-weight: 600;
  color: #1e90ff;
  white-space: nowrap;
}

.rank-trend strong {
  font-size: 16px;
}

/* --- 题材分榜 --- */
.genre-rank-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.genre-rank-column {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 24px;
}

.genre-rank-name {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #ff6b35;
}

.genre-rank-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
}

.genre-rank-list li:last-child {
  border-bottom: none;
}

.genre-rank-order {
  font-size: 16px;
  font-weight: 700;
  color: #9ca3af;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.genre-rank-list li:nth-child(1) .genre-rank-order {
  color: #ff2e63;
}

.genre-rank-list li:nth-child(2) .genre-rank-order {
  color: #ff6b35;
}

.genre-rank-list li:nth-child(3) .genre-rank-order {
  color: #1e90ff;
}

.popularity-badge {
  font-size: 12px;
  font-weight: 600;
  color: #ff6b35;
  background-color: #fff0e8;
  border-radius: 4px;
  padding: 2px 8px;
  white-space: nowrap;
  margin-left: auto;
}

/* --- 榜单说明 --- */
.ranking-notes {
  background-color: #ffffff;
  border-left: 4px solid #1e90ff;
  border-radius: 0 6px 6px 0;
  padding: 24px;
  margin-top: 40px;
}

.ranking-notes p {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 8px;
}

/* ============================================================
   Pages · hxmh/guide.html
   ============================================================ */
.article-wrap {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
}

.guide-article {
  min-width: 0;
}

.guide-section {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 32px;
  margin-bottom: 24px;
  scroll-margin-top: 96px;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  background-color: #ff6b35;
  border-radius: 4px;
  flex-shrink: 0;
}

.section-head .section-title {
  margin-bottom: 0;
}

.section-lead {
  font-size: 15px;
  color: #4b5563;
  margin-bottom: 24px;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.guide-step {
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 20px;
}

.guide-step h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.guide-step p {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
}

.guide-figure {
  margin-top: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  background-color: #f9fafb;
}

.guide-figure img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.guide-figure figcaption {
  font-size: 13px;
  color: #6b7280;
  text-align: center;
  padding: 12px;
}

.guide-tips {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guide-tips li {
  background-color: #f9fafb;
  border-left: 3px solid #1e90ff;
  border-radius: 0 4px 4px 0;
  padding: 16px 20px;
}

.guide-tips li h3 {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 4px;
}

.guide-tips li p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
}

.record-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.record-method {
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 20px;
  text-align: center;
}

.record-method h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.record-method p {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
}

/* --- 相关推荐侧栏 --- */
.related-links {
  position: sticky;
  top: 24px;
}

.related-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #ff6b35;
}

.related-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.related-card {
  display: block;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  text-decoration: none;
}

.related-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 4px;
}

.related-card p {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}

/* ============================================================
   Pages · hxmh/faq.html
   ============================================================ */
.faq-section {
  margin-bottom: 48px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a2e;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  transition: background-color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: #ff6b35;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item[open] summary {
  background-color: #f9fafb;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  background-color: #f9fafb;
}

.faq-answer {
  padding: 0 20px 20px;
  border-top: 1px solid #f3f4f6;
}

.faq-answer p {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.7;
  padding-top: 16px;
}

/* --- 版权说明区块 --- */
.copyright-block {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 32px;
  align-items: center;
}

.copyright-media {
  border-radius: 6px;
  overflow: hidden;
  background-color: #e5e7eb;
}

.copyright-figure img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.copyright-figure figcaption {
  font-size: 13px;
  color: #6b7280;
  text-align: center;
  padding: 8px;
  background-color: #f9fafb;
}

.copyright-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 12px;
}

.copyright-content p {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 8px;
}

/* --- 内容边界提示条 --- */
.boundary-strip {
  background-color: #1a1a2e;
  border-radius: 6px;
  padding: 20px 24px;
  margin-top: 40px;
}

.boundary-strip p {
  font-size: 14px;
  color: #a5b0c0;
  line-height: 1.7;
  text-align: center;
}

/* ============================================================
   Pages · 404.html
   ============================================================ */
.error-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.error-content {
  max-width: 560px;
  text-align: center;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 48px 40px;
}

.error-code {
  font-size: 72px;
  font-weight: 800;
  color: #ff6b35;
  line-height: 1;
  margin-bottom: 16px;
}

.error-content h1 {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: #6b7280;
  margin-bottom: 24px;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.error-help {
  font-size: 13px;
  color: #9ca3af;
}

/* ============================================================
   Responsive · 移动端
   ============================================================ */
@media (max-width: 1024px) {
  /* --- 首页 Hero --- */
  .hero-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-figure img {
    height: 280px;
  }

  /* --- 首页封面墙 --- */
  .latest-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* --- 首页题材网格 --- */
  .genre-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* --- 分类页 --- */
  .layout-shell {
    grid-template-columns: 1fr 260px;
    gap: 24px;
  }

  .genre-block {
    grid-template-columns: 160px 1fr;
    gap: 16px;
  }

  /* --- 指南页 --- */
  .article-wrap {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .related-links {
    position: static;
  }

  /* --- 排行榜 --- */
  .genre-rank-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ranking-item {
    grid-template-columns: 32px 64px 1fr;
  }

  .rank-cover img {
    width: 64px;
    height: 84px;
  }

  .rank-trend {
    grid-column: 3;
    justify-self: start;
  }

  /* --- FAQ --- */
  .copyright-block {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  /* --- 页头 --- */
  .header-inner {
    min-height: 60px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #1a1a2e;
    padding: 8px 16px 16px;
    border-bottom: 3px solid #ff6b35;
    gap: 4px;
    z-index: 99;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li a {
    padding: 12px 16px;
    font-size: 16px;
  }

  /* --- 页脚 --- */
  .footer-cols {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 24px 24px;
  }

  .footer-brand p {
    max-width: 100%;
  }

  /* --- 内页 --- */
  .inner-main {
    padding: 16px 16px 48px;
  }

  .page-header {
    padding: 20px;
    margin-bottom: 32px;
  }

  .page-title {
    font-size: 24px;
  }

  /* --- 首页 Hero --- */
  .hero-section {
    padding: 40px 16px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-figure img {
    height: 220px;
  }

  /* --- 首页模块 --- */
  .category-nav {
    padding: 24px 16px 8px;
  }

  .latest-section {
    padding: 32px 16px;
  }

  .ranking-section {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 16px 40px;
  }

  .genre-grid-section {
    padding: 40px 0;
  }

  .genre-grid-section > h2 {
    padding: 0 16px;
  }

  .genre-grid {
    grid-template-columns: 1fr;
    padding: 0 16px;
    gap: 16px;
  }

  .guide-faq-section {
    grid-template-columns: 1fr;
    padding: 40px 16px;
    gap: 16px;
  }

  .info-strip {
    flex-direction: column;
    align-items: flex-start;
    margin: 0 16px 40px;
    padding: 16px;
  }

  /* --- 分类页 --- */
  .layout-shell {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .genre-block {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .genre-media img {
    height: 200px;
  }

  .sidebar {
    position: static;
  }

  /* --- 最近更新 --- */
  .timeline-card {
    grid-template-columns: 80px 1fr;
    gap: 12px;
    padding: 12px;
  }

  .timeline-cover {
    width: 80px;
    height: 60px;
  }

  .picks-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* --- 排行榜 --- */
  .ranking-item {
    grid-template-columns: 28px 56px 1fr;
    gap: 12px;
    padding: 12px;
  }

  .rank-cover img {
    width: 56px;
    height: 72px;
  }

  .rank-trend {
    grid-column: 3;
  }

  /* --- 指南 --- */
  .guide-section {
    padding: 24px 20px;
  }

  .guide-steps {
    grid-template-columns: 1fr;
  }

  .record-methods {
    grid-template-columns: 1fr;
  }

  .related-grid {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .related-card {
    flex: 1;
    min-width: 200px;
  }

  /* --- FAQ --- */
  .faq-section {
    margin-bottom: 40px;
  }

  .copyright-block {
    padding: 24px 20px;
  }

  /* --- 404 --- */
  .error-content {
    padding: 40px 24px;
  }

  .error-code {
    font-size: 56px;
  }
}

@media (max-width: 480px) {
  /* --- 首页 --- */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    text-align: center;
  }

  .latest-grid {
    grid-template-columns: 1fr;
  }

  .genre-card img {
    height: 140px;
  }

  /* --- 排行榜 --- */
  .rank-desc {
    display: none;
  }

  .ranking-item {
    grid-template-columns: 28px 48px 1fr;
  }

  .rank-cover img {
    width: 48px;
    height: 64px;
  }

  /* --- 最近更新 --- */
  .timeline-list {
    padding-left: 16px;
  }

  .timeline-item {
    padding-left: 16px;
  }

  .timeline-marker {
    left: -16px;
    width: 14px;
    height: 14px;
  }

  .batch-label {
    font-size: 12px;
    padding: 3px 8px;
  }

  .timeline-card {
    grid-template-columns: 1fr;
  }

  .timeline-cover {
    width: 100%;
    height: 140px;
  }

  /* --- 指南 --- */
  .section-head {
    flex-wrap: wrap;
  }

  .related-card {
    min-width: 100%;
  }

  /* --- FAQ --- */
  .faq-item summary {
    font-size: 15px;
    padding: 14px 16px;
  }

  .faq-answer {
    padding: 0 16px 16px;
  }

  /* --- 页脚 --- */
  .footer-cols {
    padding: 32px 16px 16px;
  }
}

/* ============================================================
   Accessibility · 焦点可见性
   ============================================================ */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid #1e90ff;
  outline-offset: 2px;
}

/* ============================================================
   Reduced Motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
