/* ==========================================================================
   BASE — 基础样式：变量、重置、全局排版
   ========================================================================== */

:root {
  --color-primary: #1a1a2e;
  --color-accent: #e94560;
  --color-secondary: #0f3460;
  --color-white: #ffffff;
  --color-bg: #f5f5f5;
  --color-text: #2d2d2d;
  --color-text-light: #6b6b6b;
  --color-border: #e0e0e0;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --container-width: 1200px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --header-h: 64px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.1);
  --transition-fast: 0.2s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent);
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-primary);
}

h1 {
  font-size: 32px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 18px;
}

h4 {
  font-size: 16px;
}

p {
  margin-bottom: 12px;
}

time {
  color: var(--color-text-light);
  font-size: 14px;
}

/* 辅助隐藏（仅对屏幕阅读器可见） */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   LAYOUT — 全站骨架：页头、页脚、主容器、面包屑、页面标题区
   ========================================================================== */

/* 页头 */
.site-header {
  background-color: var(--color-primary);
  border-bottom: 3px solid var(--color-accent);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-shell {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-name {
  color: var(--color-white);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.brand-link:hover .brand-name {
  color: var(--color-accent);
}

/* 主导航 */
.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 4px;
}

.nav-list a {
  display: block;
  padding: 8px 14px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.nav-list a:hover {
  color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.12);
}

.nav-list a.is-current {
  color: var(--color-white);
  background-color: var(--color-accent);
  font-weight: 600;
}

/* 移动端汉堡按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 主容器 */
.site-main {
  min-height: 60vh;
}

.home-main {
  background-color: var(--color-white);
}

.inner-main {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 24px 20px 60px;
  background-color: var(--color-white);
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0 20px;
  font-size: 14px;
  color: var(--color-text-light);
}

.breadcrumb a {
  color: var(--color-secondary);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb-sep {
  color: #bbb;
}

.breadcrumb-current {
  color: var(--color-text-light);
  font-weight: 500;
  word-break: break-all;
}

/* 页面标题区 */
.page-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-primary);
}

.page-description {
  font-size: 16px;
  color: var(--color-text-light);
  max-width: 780px;
  line-height: 1.7;
  margin-bottom: 0;
}

/* 页脚 */
.site-footer {
  background-color: var(--color-primary);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 48px;
}

.footer-shell {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.footer-col ul a:hover {
  color: var(--color-accent);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 8px;
}

.footer-brand strong {
  display: block;
  color: var(--color-white);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 20px;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   COMPONENTS — 通用组件：按钮、标签、卡片、列表等
   ========================================================================== */

/* 按钮 */
.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--color-accent);
  color: var(--color-white);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.btn-primary:hover {
  background-color: #d63854;
  color: var(--color-white);
  transform: translateY(-2px);
}

/* 文字链接 */
.text-link {
  color: var(--color-secondary);
  font-size: 14px;
  font-weight: 500;
}

.text-link:hover {
  color: var(--color-accent);
}

/* 区块标题 */
.section-heading {
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
  position: relative;
  padding-left: 14px;
}

.section-heading h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background-color: var(--color-accent);
  border-radius: 2px;
}

.section-heading p {
  color: var(--color-text-light);
  font-size: 14px;
  margin-bottom: 0;
}

/* 题材标签 */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag {
  display: inline-block;
  padding: 8px 20px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 500;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.tag:hover {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  color: var(--color-white);
}

/* ==========================================================================
   COMPONENTS — 首页专属
   ========================================================================== */

/* 首屏 hero */
.hero-section {
  background-color: var(--color-primary);
  padding: 48px 0;
}

.hero-shell {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-copy h1 {
  color: var(--color-white);
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
}

.hero-copy p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 24px;
}

.hero-visual img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* 首屏时间线 */
.hero-timeline {
  grid-column: 1 / -1;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-timeline h2 {
  color: var(--color-white);
  font-size: 18px;
  margin-bottom: 16px;
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-item time {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  min-width: 80px;
  flex-shrink: 0;
}

.timeline-item a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
}

.timeline-item a:hover {
  color: var(--color-accent);
}

/* 题材分类条 */
.category-strip {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 40px 20px 8px;
}

.strip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.strip-header h2 {
  font-size: 20px;
  font-weight: 700;
}

/* 最新更新 */
.latest-updates {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 32px 20px;
}

.update-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.update-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.update-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.update-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.update-info {
  padding: 16px;
}

.update-info h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.update-info h3 a {
  color: var(--color-primary);
}

.update-info h3 a:hover {
  color: var(--color-accent);
}

.update-info .meta {
  font-size: 13px;
  color: var(--color-text-light);
  margin-bottom: 6px;
}

.update-info time {
  font-size: 13px;
}

.more-link {
  display: inline-block;
  color: var(--color-secondary);
  font-weight: 500;
  font-size: 14px;
}

.more-link:hover {
  color: var(--color-accent);
}

/* 人气榜单 */
.ranking-section {
  background-color: var(--color-bg);
  padding: 48px 0;
}

.ranking-section .section-heading {
  max-width: var(--container-width);
  margin: 0 auto 28px;
  padding: 0 20px;
}

.ranking-list {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.rank-item {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow var(--transition-fast);
}

.rank-item:hover {
  box-shadow: var(--shadow-md);
}

.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background-color: var(--color-accent);
  color: var(--color-white);
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.rank-main h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.rank-main h3 a {
  color: var(--color-primary);
}

.rank-main h3 a:hover {
  color: var(--color-accent);
}

.rank-reason {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 0;
}

/* 阅读指南入口 */
.guide-entry {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 48px 20px;
}

.guide-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.guide-card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: box-shadow var(--transition-fast);
}

.guide-card:hover {
  box-shadow: var(--shadow-md);
}

.guide-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.guide-card h3 a {
  color: var(--color-primary);
}

.guide-card h3 a:hover {
  color: var(--color-accent);
}

.guide-card p {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* 专题预告 */
.featured-topics {
  background-color: var(--color-bg);
  padding: 48px 0;
}

.featured-topics .section-heading {
  max-width: var(--container-width);
  margin: 0 auto 28px;
  padding: 0 20px;
}

.topic-grid {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.topic-card {
  display: block;
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.topic-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.topic-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.topic-card h3 {
  padding: 16px 20px 4px;
  font-size: 18px;
  color: var(--color-primary);
}

.topic-card:hover h3 {
  color: var(--color-accent);
}

.topic-card p {
  padding: 0 20px 20px;
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* ==========================================================================
   PAGES — 内页：题材分类页
   ========================================================================== */

.category-section {
  margin-bottom: 48px;
}

.category-section h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.category-section .section-desc {
  color: var(--color-text-light);
  font-size: 14px;
  margin-bottom: 28px;
}

.category-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.category-card {
  display: flex;
  gap: 20px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: box-shadow var(--transition-fast);
}

.category-card:hover {
  box-shadow: var(--shadow-md);
}

.category-cover {
  flex-shrink: 0;
  width: 140px;
}

.category-cover img {
  width: 140px;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.category-info {
  flex: 1;
  min-width: 0;
}

.category-info h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--color-primary);
}

.category-info p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 8px;
}

.category-info a {
  display: inline-block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-secondary);
}

.category-info a:hover {
  color: var(--color-accent);
}

/* 分类说明 */
.category-note {
  background-color: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 32px;
}

.category-note h2 {
  font-size: 20px;
  margin-bottom: 24px;
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.note-item {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--color-border);
}

.note-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.note-item p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 0;
}

.note-more {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 0;
}

.note-more a {
  color: var(--color-secondary);
  font-weight: 500;
}

.note-more a:hover {
  color: var(--color-accent);
}

/* ==========================================================================
   PAGES — 内页：阅读指南页
   ========================================================================== */

.guide-section {
  margin-bottom: 40px;
}

.guide-section h2 {
  font-size: 22px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-accent);
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-item {
  display: flex;
  gap: 16px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--color-secondary);
  color: var(--color-white);
  font-size: 16px;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
  min-width: 0;
}

.step-content h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.step-content p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 0;
}

.guide-section .section-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--color-text-light);
  background-color: var(--color-bg);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-accent);
}

/* 指南配图 */
.guide-figure {
  margin: 32px 0;
  background-color: var(--color-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.guide-figure img {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: cover;
}

.guide-figure figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--color-text-light);
  background-color: var(--color-white);
  border-top: 1px solid var(--color-border);
}

/* ==========================================================================
   PAGES — 内页：恋爱漫画推荐页
   ========================================================================== */

.page-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

.content-primary {
  min-width: 0;
}

.love-recommend-list h2,
.editor-review h2 {
  font-size: 22px;
  margin-bottom: 8px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-accent);
}

.love-recommend-list .section-desc,
.editor-review .section-desc {
  color: var(--color-text-light);
  font-size: 14px;
  margin-bottom: 24px;
}

.recommend-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}

.recommend-item:last-child {
  border-bottom: none;
}

.recommend-media {
  flex-shrink: 0;
  width: 120px;
}

.recommend-media img {
  width: 120px;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.recommend-info {
  flex: 1;
  min-width: 0;
}

.recommend-info h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.recommend-info h3 a {
  color: var(--color-primary);
}

.recommend-info h3 a:hover {
  color: var(--color-accent);
}

.recommend-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.recommend-tags .tag {
  padding: 4px 12px;
  font-size: 12px;
  border-radius: 12px;
}

.recommend-desc {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 10px;
}

.editor-note {
  font-size: 14px;
  color: var(--color-secondary);
  background-color: var(--color-bg);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-accent);
  margin-bottom: 0;
}

/* 编辑短评区 */
.editor-review {
  margin-top: 40px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.review-card {
  background-color: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--color-border);
}

.review-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.review-card p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 0;
}

.review-more {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 0;
}

.review-more a {
  color: var(--color-secondary);
  font-weight: 500;
}

.review-more a:hover {
  color: var(--color-accent);
}

/* 侧栏 */
.content-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.side-card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.side-card h2 {
  font-size: 17px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

.side-links li {
  margin-bottom: 10px;
}

.side-links a {
  font-size: 14px;
  color: var(--color-secondary);
  line-height: 1.6;
}

.side-links a:hover {
  color: var(--color-accent);
}

/* ==========================================================================
   PAGES — 内页：热血漫画推荐页
   ========================================================================== */

.recommend-list {
  margin-bottom: 40px;
}

.recommend-list .section-title,
.editorial-notes .section-title,
.related-links .section-title {
  font-size: 22px;
  margin-bottom: 8px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-accent);
}

.recommend-list .section-intro,
.editorial-notes .section-intro {
  color: var(--color-text-light);
  font-size: 14px;
  margin-bottom: 24px;
}

.hotblood .recommend-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}

.hotblood .recommend-item:last-child {
  border-bottom: none;
}

.item-cover {
  flex-shrink: 0;
  width: 120px;
}

.item-cover img {
  width: 120px;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.item-info {
  flex: 1;
  min-width: 0;
}

.item-info h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.item-info h3 a {
  color: var(--color-primary);
}

.item-info h3 a:hover {
  color: var(--color-accent);
}

.item-genre {
  font-size: 13px;
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: 8px;
}

.item-desc {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 10px;
}

.item-editorial {
  font-size: 14px;
  color: var(--color-secondary);
  background-color: var(--color-bg);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-accent);
  margin-bottom: 0;
}

.item-editorial strong {
  color: var(--color-primary);
  font-weight: 600;
}

/* 编辑笔记 */
.editorial-notes {
  background-color: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 40px;
}

.notes-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.notes-list li {
  background-color: var(--color-white);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  border: 1px solid var(--color-border);
}

.notes-list strong {
  display: block;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 4px;
}

.notes-tip {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 0;
}

.notes-tip a {
  color: var(--color-secondary);
  font-weight: 500;
}

.notes-tip a:hover {
  color: var(--color-accent);
}

/* 相关阅读 */
.related-links {
  padding: 24px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.related-links p {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 10px;
}

.related-links p:last-child {
  margin-bottom: 0;
}

.related-links a {
  color: var(--color-secondary);
  font-weight: 500;
}

.related-links a:hover {
  color: var(--color-accent);
}

/* ==========================================================================
   PAGES — 404 错误页
   ========================================================================== */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 60px 20px;
  background-color: var(--color-white);
}

.error-content {
  text-align: center;
  max-width: 480px;
}

.error-code {
  font-size: 72px;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 16px;
}

.error-content h1 {
  font-size: 28px;
  margin-bottom: 16px;
}

.error-desc {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 28px;
}

.error-back {
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--color-secondary);
  color: var(--color-white);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast);
}

.error-back:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
}

/* ==========================================================================
   RESPONSIVE — 响应式断点
   ========================================================================== */

/* 平板及以下 */
@media (max-width: 1024px) {
  .hero-shell {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-timeline {
    grid-column: 1;
  }

  .ranking-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-shell {
    grid-template-columns: 1fr 1fr;
  }

  .page-layout {
    grid-template-columns: 1fr;
  }

  .content-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

/* 手机端断点 */
@media (max-width: 768px) {
  .header-shell {
    height: auto;
    min-height: var(--header-h);
    flex-wrap: wrap;
    padding: 10px 16px;
    gap: 10px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    width: 100%;
    order: 3;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 8px 0;
    gap: 2px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    padding: 12px 16px;
    font-size: 15px;
    border-radius: var(--radius-sm);
  }

  .inner-main {
    padding: 16px 16px 48px;
  }

  .page-header {
    margin-bottom: 24px;
  }

  .page-title {
    font-size: 26px;
  }

  .hero-section {
    padding: 32px 0;
  }

  .hero-shell {
    padding: 0 16px;
  }

  .hero-copy h1 {
    font-size: 26px;
  }

  .hero-copy p {
    font-size: 15px;
  }

  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 0;
  }

  .timeline-item time {
    min-width: 0;
  }

  .category-strip {
    padding: 28px 16px 8px;
  }

  .tag-list {
    gap: 8px;
  }

  .tag {
    padding: 6px 14px;
    font-size: 13px;
  }

  .latest-updates {
    padding: 24px 16px;
  }

  .update-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .update-card {
    display: flex;
    gap: 14px;
  }

  .update-card img {
    width: 100px;
    height: 130px;
    flex-shrink: 0;
    object-fit: cover;
  }

  .update-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .ranking-section {
    padding: 32px 0;
  }

  .ranking-list {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0 16px;
  }

  .rank-item {
    flex-direction: row;
    align-items: center;
    padding: 14px 16px;
  }

  .rank-reason {
    flex: 1;
  }

  .guide-entry {
    padding: 32px 16px;
  }

  .guide-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .featured-topics {
    padding: 32px 0;
  }

  .topic-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 16px;
  }

  .topic-card img {
    height: 180px;
  }

  .footer-shell {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 16px 24px;
  }

  .footer-bottom {
    padding: 14px 16px;
  }

  /* 分类页 */
  .category-group {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .category-card {
    flex-direction: column;
    padding: 16px;
  }

  .category-cover,
  .category-cover img {
    width: 100%;
    height: 180px;
  }

  .note-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .category-note {
    padding: 20px 16px;
  }

  /* 指南页 */
  .step-item {
    padding: 16px;
  }

  .step-number {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  /* 恋爱页 */
  .content-side {
    grid-template-columns: 1fr;
  }

  .recommend-item {
    flex-direction: column;
    gap: 14px;
    padding: 16px 0;
  }

  .recommend-media,
  .recommend-media img {
    width: 100%;
    height: 200px;
  }

  .review-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* 热血页 */
  .hotblood .recommend-item {
    flex-direction: column;
    gap: 14px;
    padding: 16px 0;
  }

  .item-cover,
  .item-cover img {
    width: 100%;
    height: 200px;
  }

  .notes-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .editorial-notes {
    padding: 20px 16px;
  }

  /* 404 */
  .error-code {
    font-size: 56px;
  }
}

/* 小屏手机 */
@media (max-width: 480px) {
  .brand-name {
    font-size: 17px;
  }

  .update-card img {
    width: 84px;
    height: 112px;
  }

  .hero-copy h1 {
    font-size: 22px;
  }

  .section-heading h2 {
    font-size: 22px;
  }

  .rank-num {
    width: 26px;
    height: 26px;
    font-size: 13px;
  }
}

/* ==========================================================================
   ANIMATION — 滚动出现动画（不影响初始可见性）
   ========================================================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .update-card,
  .rank-item,
  .guide-card,
  .topic-card,
  .category-card,
  .note-item,
  .review-card,
  .step-item,
  .recommend-item {
    animation: fadeInUp 0.4s ease both;
  }

  .update-card:nth-child(2),
  .rank-item:nth-child(2),
  .category-card:nth-child(2),
  .note-item:nth-child(2),
  .review-card:nth-child(2),
  .step-item:nth-child(2),
  .recommend-item:nth-child(2) {
    animation-delay: 0.05s;
  }

  .update-card:nth-child(3),
  .rank-item:nth-child(3),
  .category-card:nth-child(3),
  .note-item:nth-child(3),
  .review-card:nth-child(3),
  .step-item:nth-child(3),
  .recommend-item:nth-child(3) {
    animation-delay: 0.1s;
  }

  .update-card:nth-child(4),
  .rank-item:nth-child(4),
  .category-card:nth-child(4),
  .note-item:nth-child(4),
  .step-item:nth-child(4),
  .recommend-item:nth-child(4) {
    animation-delay: 0.15s;
  }

  .update-card:nth-child(5),
  .rank-item:nth-child(5),
  .step-item:nth-child(5),
  .recommend-item:nth-child(5) {
    animation-delay: 0.2s;
  }

  .update-card:nth-child(6),
  .step-item:nth-child(6),
  .recommend-item:nth-child(6) {
    animation-delay: 0.25s;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
