/* ==========================================================================
   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: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #34495e;
  background-color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #e67e22;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  color: #2c3e50;
  line-height: 1.3;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 18px;
}

p {
  margin-bottom: 1em;
}

:focus-visible {
  outline: 2px solid #e67e22;
  outline-offset: 2px;
}

/* ==========================================================================
   layout / 布局骨架
   ========================================================================== */

.site-header {
  background-color: #2c3e50;
  border-bottom: 3px solid #e67e22;
  width: 100%;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.brand-link {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  padding: 8px 0;
}

.brand-link:hover {
  color: inherit;
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.brand-slogan {
  font-size: 12px;
  color: #bdc3c7;
  margin-top: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 4px;
}

.nav-list li a {
  display: block;
  padding: 10px 16px;
  color: #ecf0f1;
  font-size: 15px;
  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.12);
}

.nav-list li a.is-current {
  color: #ffffff;
  background-color: #e67e22;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle-line {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-main {
  flex: 1;
  width: 100%;
}

.home-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.inner-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 64px;
  width: 100%;
}

/* 面包屑 */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 0 12px;
  font-size: 14px;
  color: #7f8c8d;
}

.breadcrumb a {
  color: #2c3e50;
}

.breadcrumb a:hover {
  color: #e67e22;
}

.breadcrumb-sep {
  color: #bdc3c7;
  user-select: none;
}

.breadcrumb-current {
  color: #7f8c8d;
}

/* 页面标题区 */

.page-header {
  padding: 8px 0 28px;
  border-bottom: 1px solid #ecf0f1;
  margin-bottom: 36px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 10px;
}

.page-description {
  font-size: 16px;
  color: #5d6d7e;
  max-width: 720px;
  line-height: 1.6;
}

/* 页脚 */

.site-footer {
  background-color: #2c3e50;
  color: #ecf0f1;
  margin-top: auto;
  width: 100%;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 24px;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
}

.footer-brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.footer-brand-desc {
  font-size: 14px;
  color: #bdc3c7;
  line-height: 1.6;
}

.footer-links-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-group-title {
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-group ul li {
  margin-bottom: 8px;
}

.footer-group ul li a {
  color: #bdc3c7;
  font-size: 14px;
  line-height: 1.5;
}

.footer-group ul li a:hover {
  color: #e67e22;
}

.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: #95a5a6;
  margin: 0;
}

/* ==========================================================================
   components / 通用组件
   ========================================================================== */

/* 章节描述 */

.section-desc {
  font-size: 15px;
  color: #5d6d7e;
  margin-bottom: 24px;
  max-width: 680px;
}

/* 章节脚注 */

.section-footnote {
  font-size: 14px;
  color: #7f8c8d;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #ecf0f1;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.section-footnote a {
  color: #2c3e50;
  font-weight: 700;
}

.section-footnote a:hover {
  color: #e67e22;
}

/* 标题通用 */

.section-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

/* 通用小标签 */

.tag,
.work-tag {
  display: inline-block;
  padding: 3px 10px;
  background-color: #ecf0f1;
  color: #2c3e50;
  font-size: 13px;
  border-radius: 999px;
  margin-right: 8px;
  margin-bottom: 6px;
}

/* 卡片链接统一 */

.card-link,
.category-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 15px;
  color: #e67e22;
  margin-top: 12px;
}

.card-link:hover,
.category-link:hover {
  color: #2c3e50;
}

/* 辅助隐藏类 */

.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;
}

/* ==========================================================================
   pages / 首页
   ========================================================================== */

/* -------- Hero 首屏 -------- */

.hero-section {
  padding: 48px 0 40px;
  border-bottom: 1px solid #ecf0f1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-text h1 {
  font-size: 32px;
  line-height: 1.25;
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 17px;
  color: #5d6d7e;
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 520px;
}

.hero-chapters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.chapter-link {
  display: inline-block;
  padding: 8px 18px;
  background-color: #ecf0f1;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #2c3e50;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.chapter-link:hover {
  background-color: #e67e22;
  color: #ffffff;
}

.hero-figure {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.hero-figure img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

/* -------- 题材分类导航带 -------- */

.categories-nav {
  padding: 48px 0 40px;
  border-bottom: 1px solid #ecf0f1;
}

.categories-nav h2 {
  margin-bottom: 10px;
}

.category-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tag-item {
  display: inline-block;
  padding: 10px 22px;
  background-color: #ffffff;
  border: 1px solid #d5dbdb;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  color: #2c3e50;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.tag-item:hover {
  border-color: #e67e22;
  background-color: #e67e22;
  color: #ffffff;
}

/* -------- 最近更新 -------- */

.recent-updates {
  padding: 48px 0 40px;
  border-bottom: 1px solid #ecf0f1;
}

.recent-updates h2 {
  margin-bottom: 10px;
}

.update-group {
  margin-bottom: 32px;
}

.update-date {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  color: #e67e22;
  margin-bottom: 16px;
  padding-bottom: 6px;
  border-bottom: 2px solid #e67e22;
  display: inline-block;
}

.update-list {
  display: grid;
  gap: 16px;
}

.update-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background-color: #ffffff;
  border: 1px solid #ecf0f1;
  border-radius: 8px;
  padding: 16px;
  transition: box-shadow 0.2s ease;
}

.update-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.update-item img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.update-info {
  flex: 1;
}

.update-title {
  font-size: 17px;
  margin-bottom: 4px;
}

.update-meta {
  font-size: 13px;
  color: #7f8c8d;
  margin-bottom: 6px;
}

.update-brief {
  font-size: 14px;
  color: #5d6d7e;
  margin: 0;
  line-height: 1.5;
}

/* -------- 人气榜单 -------- */

.ranking {
  padding: 48px 0 40px;
  border-bottom: 1px solid #ecf0f1;
}

.ranking h2 {
  margin-bottom: 10px;
}

.ranking-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.ranking-item {
  background-color: #f8f9f9;
  border-radius: 8px;
  padding: 20px 16px;
  border-top: 3px solid #e67e22;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.ranking-number {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 700;
  color: #e67e22;
  margin-bottom: 10px;
}

.ranking-title {
  font-size: 16px;
  margin-bottom: 6px;
}

.ranking-meta {
  font-size: 13px;
  color: #7f8c8d;
  margin-bottom: 8px;
}

.ranking-reason {
  font-size: 13px;
  color: #5d6d7e;
  line-height: 1.5;
  margin: 0;
}

/* -------- 阅读指南入口 -------- */

.guide-entry {
  padding: 48px 0 40px;
  border-bottom: 1px solid #ecf0f1;
}

.guide-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.guide-card {
  background-color: #f8f9f9;
  border-radius: 8px;
  padding: 32px 28px;
  border-left: 4px solid #2c3e50;
}

.guide-card h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.guide-card p {
  font-size: 15px;
  color: #5d6d7e;
  margin-bottom: 12px;
  line-height: 1.55;
}

/* -------- 专题预告 -------- */

.featured-topics {
  padding: 48px 0 56px;
}

.featured-topics h2 {
  margin-bottom: 10px;
}

.topic-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.topic-card {
  display: flex;
  gap: 20px;
  background-color: #ffffff;
  border: 1px solid #ecf0f1;
  border-radius: 8px;
  padding: 20px;
  align-items: flex-start;
  transition: box-shadow 0.2s ease;
}

.topic-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.topic-card img {
  width: 96px;
  height: 128px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.topic-content h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.topic-content p {
  font-size: 14px;
  color: #5d6d7e;
  line-height: 1.55;
  margin-bottom: 10px;
}

/* ==========================================================================
   pages / 分类页
   ========================================================================== */

.category-list-section {
  margin-bottom: 48px;
}

.category-list {
  display: grid;
  gap: 20px;
}

.category-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background-color: #ffffff;
  border: 1px solid #ecf0f1;
  border-radius: 8px;
  padding: 20px;
  transition: box-shadow 0.2s ease;
}

.category-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.category-cover {
  width: 120px;
  height: 160px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
}

.category-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-info {
  flex: 1;
}

.category-name {
  font-size: 19px;
  margin-bottom: 6px;
}

.category-desc {
  font-size: 15px;
  color: #5d6d7e;
  line-height: 1.55;
  margin-bottom: 8px;
}

.category-example {
  font-size: 14px;
  color: #7f8c8d;
  margin-bottom: 8px;
}

.category-example strong {
  color: #2c3e50;
  font-weight: 700;
}

.reading-tips-section {
  background-color: #f8f9f9;
  border-radius: 8px;
  padding: 32px;
  border-left: 4px solid #e67e22;
}

.reading-tips-content p {
  font-size: 15px;
  color: #34495e;
  line-height: 1.7;
  margin-bottom: 12px;
}

.reading-tips-content p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   pages / 指南页
   ========================================================================== */

.guide-hero-figure {
  margin-bottom: 40px;
  border-radius: 8px;
  overflow: hidden;
}

.guide-hero-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.guide-hero-figure figcaption {
  background-color: #f8f9f9;
  padding: 10px 16px;
  font-size: 14px;
  color: #7f8c8d;
  text-align: center;
}

.guide-section {
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid #ecf0f1;
}

.guide-section:last-of-type {
  border-bottom: none;
}

.section-lead {
  font-size: 15px;
  color: #5d6d7e;
  margin-bottom: 24px;
  max-width: 680px;
}

.step-list {
  display: grid;
  gap: 20px;
}

.step-item {
  display: flex;
  gap: 20px;
  background-color: #f8f9f9;
  border-radius: 8px;
  padding: 20px 24px;
  align-items: flex-start;
}

.step-item::before {
  content: attr(data-step);
  display: block;
  width: 36px;
  height: 36px;
  background-color: #2c3e50;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-title {
  font-size: 18px;
  margin-bottom: 6px;
}

.step-body {
  font-size: 15px;
  color: #5d6d7e;
  line-height: 1.6;
  margin: 0;
}

.step-body a {
  color: #e67e22;
  font-weight: 700;
}

.step-body a:hover {
  color: #2c3e50;
}

/* FAQ */

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid #ecf0f1;
  border-radius: 8px;
  background-color: #ffffff;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 700;
  color: #2c3e50;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s ease;
}

.faq-item summary:hover {
  background-color: #f8f9f9;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: #e67e22;
  font-weight: 400;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 20px 16px;
  font-size: 15px;
  color: #5d6d7e;
  line-height: 1.6;
  margin: 0;
}

/* 相关阅读 */

.related-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.related-link {
  display: inline-block;
  padding: 10px 20px;
  background-color: #f8f9f9;
  border: 1px solid #ecf0f1;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  color: #2c3e50;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.related-link:hover {
  background-color: #e67e22;
  border-color: #e67e22;
  color: #ffffff;
}

/* ==========================================================================
   pages / 热血漫画推荐页
   ========================================================================== */

.recommendation-table-section {
  margin-bottom: 48px;
}

.recommendation-table-section .section-desc {
  margin-bottom: 24px;
}

.table-scroll-wrap {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid #ecf0f1;
}

.recommendation-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #ffffff;
  min-width: 640px;
}

.recommendation-table th,
.recommendation-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid #ecf0f1;
  vertical-align: top;
  font-size: 15px;
  line-height: 1.55;
}

.recommendation-table th {
  background-color: #2c3e50;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.recommendation-table tbody tr:last-child td {
  border-bottom: none;
}

.recommendation-table tbody tr:hover td {
  background-color: #f8f9f9;
}

.recommendation-table td:first-child {
  font-weight: 700;
  color: #2c3e50;
}

.work-tag {
  background-color: #fdebd0;
  color: #e67e22;
  font-size: 12px;
  padding: 2px 8px;
}

/* 追更建议 */

.chasing-tips-section {
  background-color: #f8f9f9;
  border-radius: 8px;
  padding: 32px;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.tip-item {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px;
  border-top: 3px solid #e67e22;
}

.tip-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.tip-item p {
  font-size: 14px;
  color: #5d6d7e;
  line-height: 1.55;
  margin: 0;
}

.tips-summary {
  font-size: 15px;
  color: #5d6d7e;
  line-height: 1.6;
  margin-bottom: 0;
  padding-top: 16px;
  border-top: 1px solid #ecf0f1;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.tips-summary a {
  color: #e67e22;
  font-weight: 700;
}

.tips-summary a:hover {
  color: #2c3e50;
}

/* ==========================================================================
   pages / 恋爱漫画推荐页
   ========================================================================== */

.recommendation-list {
  margin-bottom: 48px;
}

.recommendation-list h2 {
  margin-bottom: 10px;
}

.section-intro {
  font-size: 15px;
  color: #5d6d7e;
  margin-bottom: 28px;
  max-width: 680px;
}

.romance-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background-color: #ffffff;
  border: 1px solid #ecf0f1;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s ease;
}

.romance-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.card-media {
  width: 120px;
  height: 160px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  flex: 1;
}

.card-content h3 {
  font-size: 19px;
  margin-bottom: 6px;
}

.card-tags {
  margin-bottom: 8px;
}

.card-desc {
  font-size: 15px;
  color: #5d6d7e;
  line-height: 1.6;
  margin: 0;
}

/* 阅读顺序 */

.reading-order {
  background-color: #f8f9f9;
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 48px;
}

.reading-order h2 {
  margin-bottom: 12px;
}

.reading-order > p {
  font-size: 15px;
  color: #5d6d7e;
  margin-bottom: 24px;
}

.order-list {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}

.order-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 16px 20px;
}

.order-list li strong {
  display: block;
  width: 32px;
  height: 32px;
  background-color: #e67e22;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.order-list li p {
  font-size: 15px;
  color: #5d6d7e;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.order-note {
  font-size: 14px;
  color: #7f8c8d;
  line-height: 1.6;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid #ecf0f1;
}

/* 恋爱页相关阅读 */

.related-links h2 {
  font-size: 22px;
  margin-bottom: 12px;
}

.related-links p {
  font-size: 15px;
  color: #5d6d7e;
  margin-bottom: 8px;
}

.related-links p a {
  color: #e67e22;
  font-weight: 700;
  margin-right: 16px;
}

.related-links p a:hover {
  color: #2c3e50;
}

/* ==========================================================================
   pages / 404
   ========================================================================== */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 48px 24px;
}

.error-content {
  text-align: center;
  max-width: 560px;
}

.error-code {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 96px;
  font-weight: 700;
  color: #e67e22;
  line-height: 1;
  margin-bottom: 16px;
}

.error-content h1 {
  font-size: 28px;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 16px;
  color: #5d6d7e;
  margin-bottom: 24px;
}

.error-back-btn {
  display: inline-block;
  padding: 12px 28px;
  background-color: #2c3e50;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  margin-bottom: 20px;
}

.error-back-btn:hover {
  background-color: #e67e22;
  color: #ffffff;
}

.error-help {
  font-size: 14px;
  color: #7f8c8d;
  margin: 0;
}

/* ==========================================================================
   responsive / 响应式
   ========================================================================== */

/* 桌面断点以下 1024px */

@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .ranking-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .tips-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tip-item:last-child {
    grid-column: 1 / -1;
  }
}

/* 移动端断点 768px */

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 8px 16px;
    min-height: 56px;
  }

  .brand-link {
    padding: 4px 0;
  }

  .brand-name {
    font-size: 22px;
  }

  .brand-slogan {
    font-size: 11px;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .site-nav {
    width: 100%;
    order: 3;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 8px 0 12px;
    gap: 0;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li a {
    padding: 12px 8px;
    border-radius: 4px;
    font-size: 16px;
  }

  .home-main,
  .inner-main {
    padding: 0 16px;
  }

  /* Hero */

  .hero-section {
    padding: 32px 0 28px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-text h1 {
    font-size: 26px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-figure img {
    height: 220px;
  }

  /* 首页模块 */

  .categories-nav,
  .recent-updates,
  .ranking,
  .guide-entry,
  .featured-topics {
    padding: 32px 0 28px;
  }

  .category-tags {
    gap: 8px;
  }

  .tag-item {
    padding: 8px 16px;
    font-size: 14px;
  }

  .update-item {
    padding: 12px;
    gap: 12px;
  }

  .update-item img {
    width: 64px;
    height: 88px;
  }

  .ranking-list {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .ranking-item {
    padding: 16px 14px;
  }

  .ranking-number {
    font-size: 24px;
  }

  .guide-cards,
  .topic-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .topic-card {
    padding: 16px;
    gap: 16px;
  }

  .topic-card img {
    width: 80px;
    height: 108px;
  }

  /* 内页 */

  .breadcrumb {
    padding: 14px 0 8px;
    font-size: 13px;
  }

  .page-header {
    padding: 4px 0 20px;
    margin-bottom: 28px;
  }

  .page-title {
    font-size: 24px;
  }

  .page-description {
    font-size: 15px;
  }

  /* 分类页 */

  .category-item {
    flex-direction: column;
    gap: 14px;
    padding: 16px;
  }

  .category-cover {
    width: 100%;
    height: 180px;
  }

  .category-cover img {
    height: 100%;
  }

  .reading-tips-section {
    padding: 24px 20px;
  }

  /* 指南页 */

  .guide-hero-img {
    height: 200px;
  }

  .step-item {
    padding: 16px;
    gap: 14px;
  }

  .step-item::before {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  /* 热血页 */

  .chasing-tips-section {
    padding: 24px 20px;
  }

  .tips-grid {
    grid-template-columns: 1fr;
  }

  .tip-item:last-child {
    grid-column: auto;
  }

  /* 恋爱页 */

  .romance-card {
    flex-direction: column;
    gap: 14px;
    padding: 16px;
  }

  .card-media {
    width: 100%;
    height: 200px;
  }

  .reading-order {
    padding: 24px 20px;
  }

  .order-list li {
    padding: 14px 16px;
  }

  /* 页脚 */

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 16px 20px;
  }

  .footer-links-group {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-bottom {
    padding: 14px 16px;
  }

  /* 404 */

  .error-code {
    font-size: 72px;
  }

  .error-content h1 {
    font-size: 24px;
  }
}

/* 小屏 480px */

@media (max-width: 480px) {
  .ranking-list {
    grid-template-columns: 1fr;
  }

  .ranking-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
  }

  .ranking-number {
    margin-bottom: 0;
    font-size: 28px;
    min-width: 40px;
  }

  .ranking-content {
    flex: 1;
  }

  .update-item {
    flex-direction: row;
  }

  .update-brief {
    display: none;
  }

  .hero-chapters {
    gap: 8px;
  }

  .chapter-link {
    padding: 8px 14px;
    font-size: 13px;
  }

  .footer-links-group {
    gap: 16px;
  }
}

/* ==========================================================================
   motion / 动效增强（不影响初始可见性）
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  .guide-card,
  .topic-card,
  .romance-card,
  .category-item,
  .tip-item,
  .step-item {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
  }

  .guide-card:hover,
  .tip-item:hover,
  .step-item:hover {
    transform: translateY(-2px);
  }
}
