/* =========================================================
   91漫画 · 全站样式表
   数字出版风：白底、深色正文、靛蓝强调、圆角胶囊状态
   ========================================================= */

/* ---------------------------------------------------------
   Base / Reset
   --------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #1f2937;
  background-color: #f3f4f6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* ---------------------------------------------------------
   Layout / 全站骨架
   --------------------------------------------------------- */
.site-main {
  min-height: 60vh;
}

.inner-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0 8px;
  font-size: 13px;
  color: #6b7280;
}

.breadcrumb a {
  color: #6b7280;
}

.breadcrumb a:hover {
  color: #2563eb;
  text-decoration: none;
}

.breadcrumb-sep {
  color: #9ca3af;
}

.breadcrumb-current {
  color: #1f2937;
  font-weight: 500;
}

/* 页面标题区 */
.page-header {
  padding: 12px 0 32px;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  color: #1f2937;
  margin-bottom: 8px;
}

.page-description {
  font-size: 15px;
  line-height: 1.8;
  color: #6b7280;
  max-width: 780px;
}

/* ---------------------------------------------------------
   Header / 站点页头
   --------------------------------------------------------- */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  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: 64px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-shrink: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  color: #1f2937;
  letter-spacing: 0;
}

.brand-tagline {
  font-size: 13px;
  color: #6b7280;
  white-space: nowrap;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-list li a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-list li a:hover {
  color: #2563eb;
  background-color: #eff6ff;
  text-decoration: none;
}

.nav-list li a.is-current {
  color: #2563eb;
  font-weight: 600;
  background-color: #eff6ff;
}

/* 移动端汉堡按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 6px;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #1f2937;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  line-height: 1.6;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background-color: #2563eb;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-outline {
  background-color: transparent;
  color: #2563eb;
  border: 1px solid #2563eb;
}

.btn-outline:hover {
  background-color: #eff6ff;
  color: #1d4ed8;
}

.btn-secondary {
  background-color: #e5e7eb;
  color: #1f2937;
}

.btn-secondary:hover {
  background-color: #d1d5db;
  color: #1f2937;
}

/* ---------------------------------------------------------
   Section 通用
   --------------------------------------------------------- */
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.4;
  margin-bottom: 8px;
}

.section-desc {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.7;
}

.section-intro {
  font-size: 15px;
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 24px;
}

.section-head {
  margin-bottom: 20px;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #2563eb;
  margin-top: 16px;
}

.section-link:hover {
  color: #1d4ed8;
  text-decoration: none;
}

/* 相关内容导航条 */
.related-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.related-links-label {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}

.related-links-item {
  font-size: 14px;
  color: #2563eb;
}

.related-links-item:hover {
  color: #1d4ed8;
  text-decoration: none;
}

/* ---------------------------------------------------------
   Footer / 站点页脚
   --------------------------------------------------------- */
.site-footer {
  background-color: #ffffff;
  border-top: 1px solid #e5e7eb;
  margin-top: 64px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 32px;
}

.footer-brand-name {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 4px;
}

.footer-tagline {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 13px;
  line-height: 1.7;
  color: #6b7280;
}

.footer-col-title {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 12px;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 13px;
  color: #6b7280;
}

.footer-links a:hover {
  color: #2563eb;
  text-decoration: none;
}

.footer-boundary-text {
  font-size: 13px;
  line-height: 1.7;
  color: #6b7280;
}

.footer-bottom {
  border-top: 1px solid #e5e7eb;
  padding: 16px 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: #9ca3af;
}

/* ---------------------------------------------------------
   Components / 封面卡
   --------------------------------------------------------- */
.feature-card {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.feature-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.feature-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.feature-info {
  padding: 16px 20px 20px;
}

.feature-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 6px;
}

.feature-intro {
  font-size: 13px;
  line-height: 1.7;
  color: #6b7280;
  margin-bottom: 12px;
}

.feature-link {
  font-size: 13px;
  font-weight: 500;
  color: #2563eb;
}

.feature-link:hover {
  color: #1d4ed8;
  text-decoration: none;
}

/* 状态胶囊 */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  font-size: 12px;
  line-height: 1.6;
  border-radius: 999px;
  font-weight: 500;
  white-space: nowrap;
}

.status-badge.is-serial {
  background-color: #fef3c7;
  color: #92400e;
}

.status-badge.is-end {
  background-color: #e5e7eb;
  color: #4b5563;
}

/* 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  font-size: 12px;
  line-height: 1.6;
  border-radius: 999px;
  background-color: #eff6ff;
  color: #2563eb;
  font-weight: 500;
  white-space: nowrap;
}

/* 图文媒体 */
.content-media {
  margin: 20px 0;
}

.content-media-inline {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin: 24px 0;
}

.content-media-inline img {
  width: 320px;
  flex-shrink: 0;
  border-radius: 8px;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

.content-media-inline figcaption {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.7;
  flex: 1;
  padding-top: 8px;
}

/* ---------------------------------------------------------
   Components / 首页 Hero
   --------------------------------------------------------- */
.home-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 40px;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.hero-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.35;
  color: #1f2937;
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 15px;
  line-height: 1.8;
  color: #4b5563;
  margin-bottom: 24px;
}

/* ---------------------------------------------------------
   Components / 分类目录网格
   --------------------------------------------------------- */
.catalog-grid-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.catalog-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.catalog-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
  text-decoration: none;
}

.catalog-icon {
  font-size: 24px;
  line-height: 1.4;
  margin-bottom: 6px;
}

.catalog-name {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
}

.catalog-desc {
  font-size: 12px;
  line-height: 1.6;
  color: #6b7280;
}

/* ---------------------------------------------------------
   Components / 更新与排行双栏
   --------------------------------------------------------- */
.home-update-ranking {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
}

.update-list {
  display: flex;
  flex-direction: column;
}

.update-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
}

.update-item:last-child {
  border-bottom: none;
}

.update-date {
  font-size: 13px;
  color: #9ca3af;
  flex-shrink: 0;
  min-width: 72px;
}

.update-title {
  font-size: 14px;
  font-weight: 500;
  color: #1f2937;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.update-title:hover {
  color: #2563eb;
  text-decoration: none;
}

/* 排行列表 */
.rank-list {
  display: flex;
  flex-direction: column;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
}

.rank-item:last-child {
  border-bottom: none;
}

.rank-num {
  font-size: 16px;
  font-weight: 700;
  color: #9ca3af;
  width: 28px;
  flex-shrink: 0;
  text-align: center;
}

.rank-item:nth-child(1) .rank-num {
  color: #f59e0b;
}

.rank-item:nth-child(2) .rank-num {
  color: #6b7280;
}

.rank-item:nth-child(3) .rank-num {
  color: #b45309;
}

.rank-item img {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.rank-title {
  font-size: 14px;
  font-weight: 500;
  color: #1f2937;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-title:hover {
  color: #2563eb;
  text-decoration: none;
}

.heat-label {
  font-size: 12px;
  color: #6b7280;
  flex-shrink: 0;
}

/* ---------------------------------------------------------
   Components / 编辑专题推荐
   --------------------------------------------------------- */
.features-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ---------------------------------------------------------
   Components / 阅读引导条
   --------------------------------------------------------- */
.guide-strip {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.guide-step {
  display: flex;
  gap: 16px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
}

.step-num {
  font-size: 24px;
  font-weight: 700;
  color: #2563eb;
  line-height: 1.2;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #eff6ff;
  border-radius: 8px;
}

.step-title {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
}

.step-text {
  font-size: 13px;
  line-height: 1.7;
  color: #6b7280;
}

.step-text a {
  font-weight: 500;
}

.guide-strip .btn-outline {
  margin-top: 32px;
}

/* ---------------------------------------------------------
   内页 / 分类索引页
   --------------------------------------------------------- */
.layout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

.main-content {
  min-width: 0;
}

.catalog-section {
  margin-bottom: 48px;
}

.catalog-section h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 12px;
}

.genre-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.genre-card {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.genre-card-head {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
}

.genre-card p {
  font-size: 13px;
  line-height: 1.7;
  color: #6b7280;
}

.genre-direction {
  font-size: 12px;
  color: #9ca3af;
}

.genre-card a {
  font-size: 13px;
  font-weight: 500;
  color: #2563eb;
  margin-top: auto;
}

.genre-card a:hover {
  text-decoration: none;
}

.genre-grid-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.genre-item {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
}

.genre-item h3 {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
}

.genre-item p {
  font-size: 12px;
  line-height: 1.6;
  color: #6b7280;
}

.reading-tips p {
  font-size: 14px;
  line-height: 1.8;
  color: #4b5563;
  margin-bottom: 12px;
}

/* 侧栏 */
.sidebar-area {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
}

.sidebar-section {
  margin-bottom: 32px;
}

.sidebar-section:last-child {
  margin-bottom: 0;
}

.sidebar-section h2 {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
}

.tag-cloud-desc {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 16px;
}

.tag-cloud-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud-list li a {
  display: inline-block;
  padding: 4px 12px;
  font-size: 13px;
  color: #4b5563;
  background-color: #f3f4f6;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.tag-cloud-list li a:hover {
  background-color: #eff6ff;
  color: #2563eb;
  text-decoration: none;
}

.side-link-list li {
  margin-bottom: 10px;
}

.side-link-list a {
  font-size: 14px;
  color: #2563eb;
}

.side-link-list a:hover {
  text-decoration: none;
  color: #1d4ed8;
}

/* ---------------------------------------------------------
   内页 / 阅读手册
   --------------------------------------------------------- */
.guide-summary {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 32px;
}

.guide-summary p {
  font-size: 15px;
  line-height: 1.8;
  color: #4b5563;
}

.guide-chapters {
  margin-bottom: 48px;
}

.guide-chapter {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
}

.guide-chapter h3 {
  font-size: 17px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
}

.guide-chapter p {
  font-size: 14px;
  line-height: 1.8;
  color: #4b5563;
  margin-bottom: 12px;
}

.guide-chapter ol.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 20px;
  list-style: decimal;
  margin-bottom: 12px;
}

.guide-chapter ol.guide-steps li {
  font-size: 14px;
  line-height: 1.8;
  color: #4b5563;
  padding-left: 4px;
}

/* FAQ */
.guide-faq {
  margin-bottom: 48px;
}

.faq-item {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 500;
  color: #1f2937;
  cursor: pointer;
  position: relative;
  padding-right: 40px;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #6b7280;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-item summary:hover {
  background-color: #f9fafb;
}

.faq-item p {
  padding: 0 20px 16px;
  font-size: 14px;
  line-height: 1.8;
  color: #4b5563;
}

.faq-item p a {
  font-weight: 500;
}

/* 相关卡片 */
.guide-related {
  margin-bottom: 48px;
}

.related-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-card {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
}

.related-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
}

.related-card p {
  font-size: 13px;
  line-height: 1.7;
  color: #6b7280;
  margin-bottom: 12px;
}

.text-link {
  font-size: 13px;
  font-weight: 500;
  color: #2563eb;
}

.text-link:hover {
  text-decoration: none;
}

/* ---------------------------------------------------------
   内页 / 更新日志
   --------------------------------------------------------- */
.updates-timeline {
  margin-bottom: 48px;
}

.update-date-group {
  margin-bottom: 32px;
}

.update-date {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  padding-bottom: 8px;
  border-bottom: 2px solid #2563eb;
  display: inline-block;
  margin-bottom: 16px;
}

.update-item-list {
  display: flex;
  flex-direction: column;
}

.update-item-list .update-item {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.update-thumb {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.update-info {
  flex: 1;
  min-width: 0;
}

.update-title {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
}

.update-meta {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 4px;
}

.update-note {
  font-size: 13px;
  color: #9ca3af;
  line-height: 1.6;
}

/* 状态说明 */
.status-explainer {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 48px;
}

.status-intro {
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 16px;
}

.status-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
  color: #4b5563;
}

.status {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  font-size: 12px;
  line-height: 1.6;
  border-radius: 999px;
  font-weight: 500;
  flex-shrink: 0;
  min-width: 64px;
  justify-content: center;
}

.status-serial {
  background-color: #fef3c7;
  color: #92400e;
}

.status-finished {
  background-color: #e5e7eb;
  color: #4b5563;
}

.status-hiatus {
  background-color: #f3f4f6;
  color: #6b7280;
}

/* 更新频率 */
.update-frequency {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
}

.frequency-text {
  font-size: 14px;
  line-height: 1.8;
  color: #4b5563;
}

.frequency-text a {
  font-weight: 500;
}

/* ---------------------------------------------------------
   内页 / 人气排行
   --------------------------------------------------------- */
.ranking-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 48px;
}

.total-rank-section {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
}

.total-rank-section h2,
.category-rank-section h2 {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
}

.total-rank-section .section-desc,
.category-rank-section .section-desc {
  margin-bottom: 20px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
}

.rank-item:last-child {
  border-bottom: none;
}

.rank-number {
  font-size: 16px;
  font-weight: 700;
  color: #9ca3af;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.total-rank-section .rank-item:nth-child(1) .rank-number {
  color: #f59e0b;
}

.total-rank-section .rank-item:nth-child(2) .rank-number {
  color: #6b7280;
}

.total-rank-section .rank-item:nth-child(3) .rank-number {
  color: #b45309;
}

.rank-cover {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.rank-info {
  flex: 1;
  min-width: 0;
}

.rank-title {
  font-size: 14px;
  font-weight: 500;
  color: #1f2937;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-tag {
  display: inline-block;
  font-size: 12px;
  color: #6b7280;
  background-color: #f3f4f6;
  border-radius: 999px;
  padding: 1px 8px;
  margin-right: 6px;
}

.rank-heat {
  font-size: 13px;
  color: #6b7280;
  flex-shrink: 0;
}

/* 分类榜 */
.category-rank-section {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
}

.category-rank-group {
  margin-bottom: 24px;
}

.category-rank-group:last-child {
  margin-bottom: 0;
}

.category-rank-name {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid #e5e7eb;
}

.category-rank-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.category-rank-list .rank-number {
  font-size: 14px;
  width: 24px;
}

.category-rank-list a {
  font-size: 14px;
  color: #4b5563;
}

.category-rank-list a:hover {
  color: #2563eb;
  text-decoration: none;
}

/* 榜单说明 */
.rank-note-section {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 32px;
}

.rank-note-section h2 {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 12px;
}

.rank-note-section p {
  font-size: 14px;
  line-height: 1.8;
  color: #4b5563;
  margin-bottom: 8px;
}

/* ---------------------------------------------------------
   内页 / 编辑专题
   --------------------------------------------------------- */
.feature-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 48px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 32px;
}

.intro-text-wrap p {
  font-size: 14px;
  line-height: 1.8;
  color: #4b5563;
  margin-bottom: 12px;
}

.intro-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
}

.intro-figure figcaption {
  font-size: 13px;
  color: #6b7280;
  margin-top: 8px;
  line-height: 1.6;
}

/* 专题列表 */
.feature-list {
  margin-bottom: 48px;
}

.feature-list .feature-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  margin-bottom: 24px;
}

.feature-card-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.feature-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-tag {
  font-size: 12px;
  color: #2563eb;
  font-weight: 500;
}

.feature-card-title {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
}

.feature-card-desc {
  font-size: 14px;
  line-height: 1.8;
  color: #4b5563;
}

.feature-card-route {
  font-size: 13px;
  color: #6b7280;
}

.feature-card-link {
  font-size: 14px;
  font-weight: 500;
  color: #2563eb;
  margin-top: auto;
}

.feature-card-link:hover {
  text-decoration: none;
}

/* 延伸推荐 */
.feature-more {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
}

.more-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.more-link {
  display: block;
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
  transition: background-color 0.2s ease;
}

.more-link:hover {
  background-color: #eff6ff;
  text-decoration: none;
}

.more-link-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
}

.more-link-desc {
  display: block;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
}

/* ---------------------------------------------------------
   内页 / 站内规则
   --------------------------------------------------------- */
.rules-summary {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 32px;
}

.rules-summary p {
  font-size: 15px;
  line-height: 1.8;
  color: #4b5563;
}

.rules-section {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
}

.rules-section h2 {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
}

.rules-block {
  margin-bottom: 16px;
}

.rules-block:last-child {
  margin-bottom: 0;
}

.rules-block-title {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 6px;
}

.rules-block p {
  font-size: 14px;
  line-height: 1.8;
  color: #4b5563;
}

/* 帮助卡片 */
.rules-help {
  margin-top: 32px;
}

.help-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.help-card {
  display: block;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
  transition: box-shadow 0.2s ease;
}

.help-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  text-decoration: none;
}

.help-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 6px;
}

.help-card p {
  font-size: 13px;
  line-height: 1.7;
  color: #6b7280;
}

/* ---------------------------------------------------------
   内页 / 反馈通道
   --------------------------------------------------------- */
.feedback-categories {
  margin-bottom: 48px;
}

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feedback-card {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feedback-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
}

.feedback-card p {
  font-size: 14px;
  line-height: 1.8;
  color: #4b5563;
  flex: 1;
}

.card-link {
  font-size: 14px;
  font-weight: 500;
  color: #2563eb;
}

.card-link:hover {
  text-decoration: none;
}

/* 反馈流程 */
.feedback-process {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 48px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.process-step {
  position: relative;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: #2563eb;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 50%;
  margin-bottom: 12px;
}

.process-step h3 {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
}

.process-step p {
  font-size: 13px;
  line-height: 1.7;
  color: #6b7280;
}

/* 处理说明 */
.processing-notes {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 32px;
}

.processing-notes p {
  font-size: 14px;
  line-height: 1.8;
  color: #4b5563;
  margin-bottom: 8px;
}

/* 相关链接 */
.related-links {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
}

.related-list li {
  padding: 6px 0;
}

.related-list a {
  font-size: 14px;
  color: #2563eb;
}

.related-list a:hover {
  text-decoration: none;
}

/* ---------------------------------------------------------
   404 页面
   --------------------------------------------------------- */
.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 40px 24px;
}

.error-section {
  text-align: center;
  max-width: 560px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 48px 40px;
}

.error-code {
  font-size: 64px;
  font-weight: 700;
  color: #2563eb;
  line-height: 1.2;
  margin-bottom: 16px;
}

.error-title {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 14px;
  line-height: 1.8;
  color: #6b7280;
  margin-bottom: 24px;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.error-tip {
  font-size: 13px;
  color: #9ca3af;
}

/* ---------------------------------------------------------
   Responsive / 响应式
   --------------------------------------------------------- */
@media (max-width: 1024px) {
  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .genre-grid-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .layout-shell {
    grid-template-columns: 1fr;
  }

  .sidebar-area {
    margin-top: 0;
  }

  .home-hero {
    grid-template-columns: 1fr;
  }

  .ranking-layout {
    grid-template-columns: 1fr;
  }

  .feature-intro {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 12px 16px;
    min-height: auto;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    width: 100%;
    order: 3;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li a {
    padding: 12px 8px;
    border-radius: 0;
  }

  .inner-main {
    padding: 0 16px 48px;
  }

  .page-title {
    font-size: 26px;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .catalog-card {
    padding: 16px;
  }

  .home-update-ranking {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .guide-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .genre-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .genre-grid-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .related-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .help-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feedback-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .more-links {
    grid-template-columns: 1fr;
  }

  .feature-list .feature-card {
    grid-template-columns: 1fr;
  }

  .feature-card-media img {
    aspect-ratio: 16 / 9;
  }

  .content-media-inline {
    flex-direction: column;
  }

  .content-media-inline img {
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 16px 24px;
  }

  .update-item-list .update-item {
    flex-wrap: wrap;
  }

  .update-thumb {
    width: 64px;
    height: 64px;
  }

  .rank-item {
    flex-wrap: wrap;
  }

  .rank-cover {
    width: 40px;
    height: 40px;
  }

  .home-hero {
    padding: 32px 16px 24px;
  }

  .catalog-grid-section,
  .home-update-ranking,
  .features-section,
  .guide-strip {
    padding: 32px 16px;
  }

  .hero-title {
    font-size: 24px;
  }

  .error-section {
    padding: 32px 24px;
  }

  .error-code {
    font-size: 48px;
  }
}

@media (max-width: 480px) {
  .brand-tagline {
    display: none;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .genre-card-grid {
    grid-template-columns: 1fr;
  }

  .genre-grid-list {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .category-rank-section,
  .total-rank-section {
    padding: 16px;
  }

  .ranking-layout {
    gap: 24px;
  }

  .update-item {
    flex-wrap: wrap;
    gap: 8px;
  }

  .update-date {
    min-width: auto;
  }

  .update-title {
    flex-basis: 100%;
    order: 3;
  }

  .guide-chapter ol.guide-steps {
    padding-left: 16px;
  }

  .faq-item summary {
    padding: 14px 16px;
    padding-right: 36px;
    font-size: 14px;
  }

  .faq-item p {
    padding: 0 16px 14px;
    font-size: 13px;
  }

  .error-actions {
    flex-direction: column;
    align-items: center;
  }

  .error-actions .btn {
    width: 100%;
  }
}

/* ---------------------------------------------------------
   打印样式
   --------------------------------------------------------- */
@media print {
  .site-header,
  .nav-toggle,
  .site-nav,
  .related-links,
  .breadcrumb,
  .section-link,
  .btn {
    display: none !important;
  }

  .site-main {
    padding: 0;
  }

  .inner-main {
    max-width: 100%;
    padding: 0;
  }

  body {
    background-color: #ffffff;
    font-size: 12px;
  }

  .site-footer {
    border-top: 1px solid #e5e7eb;
    margin-top: 32px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    padding: 24px 0;
  }

  .footer-col {
    margin-bottom: 16px;
  }

  .footer-bottom {
    padding: 8px 0;
  }
}
