/* ============================================================
   zczqscjs.cn - 歪歪羞羞漫画入口 整站样式
   社区市集风：多色分类标签、紧凑条目、真实图片
   ============================================================ */

/* ============================================================
   Base
   ============================================================ */
:root {
  --color-primary: #2c3e50;
  --color-accent: #e74c3c;
  --color-blue: #3498db;
  --color-yellow: #f1c40f;
  --color-light: #ecf0f1;
  --color-text: #2c3e50;
  --color-text-light: #5d6d7e;
  --color-bg: #f5f6f8;
  --color-white: #ffffff;
  --color-border: #e0e4e8;
  --font-heading: "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  --container-width: 1200px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --shadow-card: 0 2px 8px rgba(44, 62, 80, 0.08);
  --shadow-hover: 0 4px 16px rgba(44, 62, 80, 0.14);
  --header-height: 68px;
  --transition-base: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}

a {
  color: var(--color-blue);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-accent);
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-primary);
}

p {
  margin-bottom: 0.8em;
}

/* ============================================================
   Layout - 容器与骨架
   ============================================================ */
.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.header-shell,
.section-shell,
.footer-shell,
.breadcrumb,
.page-header,
.category-list,
.category-notes,
.guide-intro,
.guide-steps,
.guide-select,
.guide-tips,
.guide-related,
.recommendation-list,
.selection-guide,
.error-shell {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.inner-main {
  padding-bottom: 60px;
}

/* ============================================================
   Header - 全站统一页头
   ============================================================ */
.site-header {
  background-color: var(--color-white);
  border-bottom: 2px solid var(--color-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(44, 62, 80, 0.06);
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 20px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.brand-slogan {
  font-size: 13px;
  color: var(--color-text-light);
  white-space: nowrap;
}

.site-nav {
  flex-shrink: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-base), color var(--transition-base);
}

.nav-link:hover {
  background-color: var(--color-light);
  color: var(--color-accent);
}

.nav-item.is-current .nav-link {
  color: var(--color-accent);
  font-weight: 700;
}

.nav-item.is-current .nav-link::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 2px;
  height: 2px;
  background-color: var(--color-accent);
  border-radius: 1px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 1px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

/* ============================================================
   Footer - 全站统一页脚
   ============================================================ */
.site-footer {
  background-color: var(--color-primary);
  color: #bdc3c7;
  margin-top: 60px;
  flex-shrink: 0;
}

.footer-shell {
  padding-top: 48px;
  padding-bottom: 24px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
}

.footer-brand-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 12px;
}

.footer-brand-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #95a5a6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.footer-group-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 14px;
}

.footer-group-list li {
  margin-bottom: 8px;
}

.footer-group-list a {
  font-size: 14px;
  color: #bdc3c7;
  transition: color var(--transition-base);
}

.footer-group-list a:hover {
  color: var(--color-yellow);
}

.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
  margin-top: 8px;
}

.footer-copyright {
  font-size: 13px;
  color: #7f8c8d;
  margin: 0;
}

/* ============================================================
   Breadcrumb - 内页面包屑
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 20px;
  padding-bottom: 4px;
  font-size: 14px;
  color: var(--color-text-light);
}

.breadcrumb a {
  color: var(--color-text-light);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb-sep {
  color: #bdc3c7;
}

.breadcrumb-current {
  color: var(--color-primary);
  font-weight: 500;
}

/* ============================================================
   Page Header - 内页标题区
   ============================================================ */
.page-header {
  padding-top: 20px;
  padding-bottom: 28px;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.page-description {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text-light);
  max-width: 720px;
  margin: 0;
}

/* ============================================================
   Section 通用
   ============================================================ */
.section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
  position: relative;
  padding-left: 14px;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  background-color: var(--color-accent);
  border-radius: 2px;
}

.section-desc {
  font-size: 15px;
  color: var(--color-text-light);
  margin-bottom: 24px;
  max-width: 680px;
}

/* ============================================================
   Components - 首页 Hero
   ============================================================ */
.hero-section {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.hero-shell {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding: 48px 20px 56px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text-light);
  margin-bottom: 28px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-white);
  background-color: var(--color-accent);
  border-radius: var(--radius-md);
  transition: background-color var(--transition-base), transform var(--transition-base);
}

.hero-btn:hover {
  background-color: #c0392b;
  color: var(--color-white);
  transform: translateY(-2px);
}

.hero-btn-light {
  background-color: var(--color-blue);
}

.hero-btn-light:hover {
  background-color: #2980b9;
  color: var(--color-white);
}

.hero-figure {
  position: relative;
}

.hero-figure img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* ============================================================
   Components - 首页分类标签带
   ============================================================ */
.category-nav-section {
  padding: 44px 0 8px;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 4px 0 8px;
}

.category-tag {
  display: inline-block;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-white);
  border-radius: 20px;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.category-tag:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  color: var(--color-white);
}

.tag-hot {
  background-color: #e74c3c;
}

.tag-love {
  background-color: #e84393;
}

.tag-sci {
  background-color: #3498db;
}

.tag-daily {
  background-color: #27ae60;
}

.tag-fantasy {
  background-color: #8e44ad;
}

.tag-suspense {
  background-color: #2c3e50;
}

/* ============================================================
   Components - 首页更新列表
   ============================================================ */
.updates-section {
  padding: 36px 0 8px;
}

.update-group {
  margin-bottom: 28px;
}

.update-date {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
  padding: 10px 16px;
  background-color: var(--color-white);
  border-left: 3px solid var(--color-yellow);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  display: inline-block;
}

.update-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.update-item {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.update-item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.update-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--color-text);
}

.update-link:hover {
  color: var(--color-text);
}

.update-name {
  font-size: 15px;
  font-weight: 500;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.update-meta {
  font-size: 13px;
  color: var(--color-text-light);
  flex-shrink: 0;
}

/* ============================================================
   Components - 首页人气榜单
   ============================================================ */
.ranking-section {
  padding: 36px 0 8px;
}

.ranking-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.ranking-item {
  counter-increment: ranking;
  position: relative;
}

.ranking-list {
  counter-reset: ranking;
}

.ranking-link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: 12px;
  height: 100%;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.ranking-link:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  color: var(--color-text);
}

.ranking-link img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.ranking-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.ranking-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.4;
}

.ranking-reason {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ranking-item::before {
  content: counter(ranking);
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-white);
  background-color: var(--color-accent);
  border-radius: 50%;
}

.ranking-item:nth-child(-n+3)::before {
  background-color: var(--color-yellow);
  color: var(--color-primary);
}

/* ============================================================
   Components - 首页指南入口
   ============================================================ */
.guide-entry-section {
  padding: 36px 0 8px;
}

.guide-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.guide-card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.guide-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.guide-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary);
}

.guide-card-text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
  flex: 1;
}

.guide-card-link {
  display: inline-block;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-white);
  background-color: var(--color-blue);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-base);
}

.guide-card-link:hover {
  background-color: #2980b9;
  color: var(--color-white);
}

/* ============================================================
   Components - 首页专题预告
   ============================================================ */
.featured-topics-section {
  padding: 36px 0 8px;
}

.topic-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.topic-card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.topic-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.topic-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.topic-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary);
  padding: 16px 20px 4px;
}

.topic-card-text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
  padding: 0 20px;
  flex: 1;
}

.topic-card-link {
  display: inline-block;
  margin: 12px 20px 20px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-white);
  background-color: var(--color-accent);
  border-radius: var(--radius-sm);
  align-self: flex-start;
  transition: background-color var(--transition-base);
}

.topic-card-link:hover {
  background-color: #c0392b;
  color: var(--color-white);
}

/* ============================================================
   Pages - 分类页
   ============================================================ */
.category-list {
  padding-top: 8px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.category-item {
  display: flex;
  gap: 16px;
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: 16px;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.category-item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.category-thumb {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.category-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.category-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-primary);
}

.category-desc {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

.category-example {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.5;
}

.category-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-blue);
  align-self: flex-start;
  margin-top: auto;
}

.category-link:hover {
  color: var(--color-accent);
}

.category-notes {
  padding-top: 44px;
}

.notes-intro {
  font-size: 15px;
  color: var(--color-text-light);
  margin-bottom: 24px;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.note-card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.note-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
}

.note-text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

.note-example {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.5;
  padding-top: 4px;
  border-top: 1px solid var(--color-border);
}

.notes-footer {
  margin-top: 28px;
  font-size: 14px;
  color: var(--color-text-light);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.notes-footer a {
  color: var(--color-blue);
}

.notes-footer a:hover {
  color: var(--color-accent);
}

/* ============================================================
   Pages - 阅读指南页
   ============================================================ */
.guide-intro {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 32px;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 40px;
}

.guide-intro-media img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.guide-intro-text p {
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 12px;
}

.guide-steps {
  padding: 36px 0 8px;
}

.step-card {
  display: flex;
  gap: 20px;
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: 24px;
  margin-bottom: 16px;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.step-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.step-number {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-white);
  background-color: var(--color-accent);
  border-radius: 50%;
}

.step-card:nth-child(3n+2) .step-number {
  background-color: var(--color-blue);
}

.step-card:nth-child(3n+3) .step-number {
  background-color: var(--color-yellow);
  color: var(--color-primary);
}

.step-content {
  flex: 1;
}

.step-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.step-content p {
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 8px;
}

.step-content a {
  color: var(--color-blue);
  font-weight: 500;
}

.step-content a:hover {
  color: var(--color-accent);
}

.guide-select {
  padding: 36px 0 8px;
}

.select-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.select-item {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: 20px;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.select-item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.select-item-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.select-item p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin: 0;
}

.guide-tips {
  padding: 36px 0 8px;
}

.tips-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.tips-item {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: 20px;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.tips-item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.tips-item-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
  padding-left: 12px;
  border-left: 3px solid var(--color-yellow);
}

.tips-item p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin: 0;
}

.guide-related {
  padding: 36px 0 8px;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.related-link {
  display: inline-block;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  transition: background-color var(--transition-base), color var(--transition-base), border-color var(--transition-base);
}

.related-link:hover {
  background-color: var(--color-light);
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* ============================================================
   Pages - 热血漫画推荐页
   ============================================================ */
.recommendation-list {
  padding-top: 8px;
}

.section-intro {
  font-size: 15px;
  color: var(--color-text-light);
  margin-bottom: 24px;
}

.recommend-card {
  display: flex;
  gap: 20px;
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: 20px;
  margin-bottom: 16px;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.recommend-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.card-media {
  flex-shrink: 0;
}

.card-media img {
  width: 160px;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-tags .tag {
  display: inline-block;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-primary);
  background-color: var(--color-light);
  border-radius: 12px;
}

.card-desc {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.7;
}

.card-reason {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

.card-reason strong {
  color: var(--color-accent);
  font-weight: 600;
}

.card-audience {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

.card-audience strong {
  color: var(--color-blue);
  font-weight: 600;
}

.selection-guide {
  padding: 40px 0 8px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.guide-item {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: 20px;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.guide-item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.guide-item-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.guide-item-text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin: 0;
}

.guide-note {
  margin-top: 28px;
  font-size: 14px;
  color: var(--color-text-light);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.guide-note a {
  color: var(--color-blue);
}

.guide-note a:hover {
  color: var(--color-accent);
}

/* ============================================================
   Pages - 恋爱漫画推荐页
   ============================================================ */
.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.recommend-card .recommend-cover {
  flex-shrink: 0;
}

.recommend-cover img {
  width: 140px;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.recommend-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.recommend-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-primary);
}

.recommend-reason {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.7;
}

.recommend-audience {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

.recommend-audience strong {
  color: var(--color-blue);
  font-weight: 600;
}

.recommendation-list .recommend-card {
  margin-bottom: 0;
}

/* ============================================================
   Pages - 404
   ============================================================ */
.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  flex: 1;
}

.error-shell {
  text-align: center;
  max-width: 640px;
}

.error-code {
  font-family: var(--font-heading);
  font-size: 72px;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 16px;
}

.error-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: var(--color-text-light);
  margin-bottom: 24px;
}

.error-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.error-btn {
  display: inline-block;
  padding: 10px 28px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-white);
  background-color: var(--color-accent);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-base);
}

.error-btn:hover {
  background-color: #c0392b;
  color: var(--color-white);
}

.error-link {
  display: inline-block;
  padding: 10px 28px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-primary);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-base);
}

.error-link:hover {
  background-color: var(--color-light);
  color: var(--color-primary);
}

.error-suggest {
  text-align: left;
}

.error-suggest-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.error-suggest-list li {
  margin-bottom: 8px;
}

.error-suggest-list a {
  font-size: 14px;
  color: var(--color-blue);
}

.error-suggest-list a:hover {
  color: var(--color-accent);
}

/* ============================================================
   滚动出现动画（增强，不影响初始可见性）
   ============================================================ */
@keyframes fadeInUp {
  from {
    transform: translateY(16px);
    opacity: 0.6;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.hero-section,
.category-nav-section,
.updates-section,
.ranking-section,
.guide-entry-section,
.featured-topics-section,
.recommendation-list,
.category-grid,
.guide-steps,
.tips-list,
.select-grid {
  animation: fadeInUp 0.5s ease-out both;
}

/* ============================================================
   Responsive - 1024px
   ============================================================ */
@media (max-width: 1024px) {
  .hero-shell {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 36px 20px 44px;
  }

  .hero-figure img {
    height: 260px;
  }

  .ranking-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .ranking-item:nth-child(n+4) {
    display: none;
  }

  .notes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .guide-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .recommendation-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-shell {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ============================================================
   Responsive - 768px
   ============================================================ */
@media (max-width: 768px) {
  .header-shell {
    flex-wrap: wrap;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .brand {
    flex: 1;
  }

  .brand-slogan {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    order: 3;
    width: 100%;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    border-top: 1px solid var(--color-border);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-item.is-current .nav-link::after {
    display: none;
  }

  .nav-link {
    padding: 12px 8px;
    border-radius: var(--radius-sm);
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-desc {
    font-size: 15px;
  }

  .update-list {
    grid-template-columns: 1fr;
  }

  .ranking-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .ranking-item:nth-child(n+4) {
    display: flex;
  }

  .ranking-item:nth-child(5) {
    display: none;
  }

  .guide-cards,
  .topic-cards {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .category-thumb {
    width: 100px;
    height: 100px;
  }

  .guide-intro {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .guide-intro-media img {
    height: 200px;
  }

  .select-grid {
    grid-template-columns: 1fr;
  }

  .tips-list {
    grid-template-columns: 1fr;
  }

  .recommend-card {
    flex-direction: column;
  }

  .card-media img {
    width: 100%;
    height: 180px;
  }

  .recommend-cover img {
    width: 100%;
    height: 180px;
  }

  .recommendation-grid {
    grid-template-columns: 1fr;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .page-title {
    font-size: 26px;
  }

  .breadcrumb {
    padding-top: 16px;
  }

  .error-code {
    font-size: 56px;
  }
}

/* ============================================================
   Responsive - 390px
   ============================================================ */
@media (max-width: 390px) {
  .header-shell,
  .section-shell,
  .footer-shell,
  .breadcrumb,
  .page-header,
  .category-list,
  .category-notes,
  .guide-intro,
  .guide-steps,
  .guide-select,
  .guide-tips,
  .guide-related,
  .recommendation-list,
  .selection-guide,
  .error-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand-name {
    font-size: 19px;
  }

  .hero-shell {
    padding: 28px 14px 36px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-btn {
    text-align: center;
    padding: 12px 20px;
  }

  .category-tag {
    padding: 7px 16px;
    font-size: 13px;
  }

  .ranking-list {
    grid-template-columns: 1fr;
  }

  .ranking-item:nth-child(n+2) {
    display: none;
  }

  .ranking-link {
    flex-direction: row;
    align-items: center;
  }

  .ranking-link img {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
  }

  .ranking-info {
    flex: 1;
  }

  .step-card {
    flex-direction: column;
    padding: 20px;
  }

  .step-number {
    width: 36px;
    height: 36px;
    font-size: 17px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-title {
    font-size: 24px;
  }

  .section-title {
    font-size: 20px;
  }

  .notes-grid {
    grid-template-columns: 1fr;
  }

  .error-actions {
    flex-direction: column;
    align-items: center;
  }

  .error-btn,
  .error-link {
    width: 100%;
    text-align: center;
  }
}

/* ============================================================
   可访问性与细节
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
