/* ============================================================
   base —— 全局基础样式
   ============================================================ */
:root {
  --color-dark: #1a1a2e;
  --color-accent: #e94560;
  --color-navy: #0f3460;
  --color-navy-light: #16213e;
  --color-bg: #f5f5f5;
  --color-white: #ffffff;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-border: #e0e0e0;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --container-width: 1200px;
  --radius: 8px;
  --transition: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-navy);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-dark);
  font-weight: 700;
  line-height: 1.3;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.125rem;
}

p {
  margin-bottom: 1rem;
}

/* ============================================================
   layout —— 全站布局骨架
   ============================================================ */

/* 页头 */
.site-header {
  background-color: var(--color-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-white);
}

.brand-slogan {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.brand:hover .brand-name {
  color: var(--color-accent);
}

/* 导航 */
.site-nav .nav-list {
  display: flex;
  gap: 0.25rem;
}

.nav-list li a {
  display: block;
  padding: 0.5rem 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
  border-radius: 4px;
}

.nav-list li a:hover {
  color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-list li a.is-current {
  background-color: var(--color-accent);
  color: var(--color-white);
  font-weight: 700;
}

/* 移动端汉堡按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* 页面主体 */
.site-main {
  min-height: 60vh;
}

.inner-main {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.breadcrumb a {
  color: var(--color-navy);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb-sep {
  color: #aaa;
}

.breadcrumb-current {
  color: var(--color-text-light);
}

/* 页头标题区 */
.page-header {
  margin-bottom: 2rem;
}

.page-title {
  font-size: 2rem;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.page-description {
  color: var(--color-text-light);
  font-size: 1rem;
  max-width: 720px;
}

/* 页脚 */
.site-footer {
  background-color: var(--color-dark);
  color: rgba(255, 255, 255, 0.8);
  margin-top: 3rem;
}

.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1.5rem;
}

.footer-brand {
  margin-bottom: 1.5rem;
}

.footer-slogan {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-heading {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.footer-col ul li a:hover {
  color: var(--color-white);
}

.footer-bottom {
  padding-top: 1.5rem;
  text-align: center;
}

.copyright {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* ============================================================
   components —— 通用组件
   ============================================================ */

/* 按钮 */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
  transition: background-color var(--transition), color var(--transition), transform var(--transition);
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: #d63350;
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-navy);
  border: 2px solid var(--color-navy);
}

.btn-secondary:hover {
  background-color: var(--color-navy);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* 侧栏 */
.sidebar {
  min-width: 0;
}

.sidebar-card {
  background-color: var(--color-white);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.sidebar-title {
  font-size: 1rem;
  color: var(--color-dark);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-accent);
}

.sidebar-list li,
.sidebar-links li {
  margin-bottom: 0.5rem;
}

.sidebar-list li a,
.sidebar-links li a {
  display: block;
  padding: 0.375rem 0;
  color: var(--color-text);
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--color-border);
}

.sidebar-list li a:hover,
.sidebar-links li a:hover {
  color: var(--color-accent);
  padding-left: 0.25rem;
}

/* ============================================================
   pages —— 首页
   ============================================================ */

/* 首屏焦点区 */
.hero-section {
  background-color: var(--color-navy-light);
  padding: 3rem 0 0;
}

.hero-content {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-text h1 {
  color: var(--color-white);
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.hero-lead {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.0625rem;
  margin-bottom: 1.5rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-ctas .btn-primary {
  background-color: var(--color-accent);
}

.hero-ctas .btn-secondary {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--color-white);
}

.hero-ctas .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.hero-figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.hero-figure img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.hero-quick-links {
  max-width: var(--container-width);
  margin: 2.5rem auto 0;
  padding: 1.25rem;
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-quick-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.08);
  transition: background-color var(--transition), color var(--transition);
}

.hero-quick-links a:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
}

/* 通用区块样式 */
.genre-nav-section,
.recent-updates-section,
.ranking-section,
.guide-entry-section,
.longtail-preview-section {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

.section-title {
  font-size: 1.5rem;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.section-desc {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

/* 题材标签导航 */
.genre-tag-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.genre-tag {
  display: block;
  text-align: center;
  padding: 1.25rem 0.75rem;
  background-color: var(--color-white);
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  font-weight: 600;
  color: var(--color-navy);
  border: 2px solid transparent;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.genre-tag:hover {
  border-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 最近更新 */
.update-group {
  margin-bottom: 1.5rem;
}

.update-date {
  font-size: 1rem;
  color: var(--color-navy);
  margin-bottom: 0.75rem;
  padding-left: 0.75rem;
  border-left: 4px solid var(--color-accent);
}

.update-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.update-item {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  background-color: var(--color-white);
  border-radius: var(--radius);
  padding: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: box-shadow var(--transition), transform var(--transition);
}

.update-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.update-item img {
  width: 64px;
  height: 88px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.update-info {
  min-width: 0;
}

.update-info a {
  display: block;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.25rem;
  font-size: 0.9375rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.update-info a:hover {
  color: var(--color-accent);
}

.update-status {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--color-accent);
  background-color: rgba(233, 69, 96, 0.1);
  padding: 0.125rem 0.5rem;
  border-radius: 10px;
}

/* 人气榜单 */
.ranking-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.ranking-item {
  background-color: var(--color-white);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}

.ranking-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.rank-number {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background-color: var(--color-accent);
  color: var(--color-white);
  font-size: 0.8125rem;
  font-weight: 700;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.ranking-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.ranking-info a {
  display: block;
  font-weight: 600;
  color: var(--color-dark);
  font-size: 0.9375rem;
  margin-bottom: 0.375rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-info a:hover {
  color: var(--color-accent);
}

.ranking-reason {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 阅读指南入口 */
.guide-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.guide-card {
  background-color: var(--color-white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  border-left: 4px solid var(--color-navy);
  transition: box-shadow var(--transition), transform var(--transition);
}

.guide-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.guide-card-title {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.guide-card-text {
  color: var(--color-text-light);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.card-link {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.9375rem;
}

.card-link:hover {
  color: var(--color-navy);
}

/* 长尾推荐预告 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background-color: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: box-shadow var(--transition), transform var(--transition);
}

.feature-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.feature-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.feature-card h3 {
  padding: 1rem 1rem 0.25rem;
  font-size: 1.125rem;
}

.feature-excerpt {
  padding: 0 1rem;
  color: var(--color-text-light);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.feature-link {
  display: inline-block;
  margin: 0 1rem 1rem;
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.9375rem;
}

.feature-link:hover {
  color: var(--color-navy);
}

/* ============================================================
   pages —— 题材分类页 (genres.html)
   ============================================================ */

/* 侧栏在左的布局 */
.page-layout.sidebar-left {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

.page-layout.sidebar-left .sidebar {
  order: 1;
}

.page-layout.sidebar-left .inner-main {
  order: 2;
  padding-top: 0;
}

.page-layout.sidebar-left .inner-main .breadcrumb {
  margin-top: 1.5rem;
}

/* 题材列表 */
.genre-list {
  margin-bottom: 2.5rem;
}

.genre-list h2 {
  margin-bottom: 1rem;
}

.section-intro {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.genre-item {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 1.5rem;
  align-items: center;
  background-color: var(--color-white);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: box-shadow var(--transition);
}

.genre-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.genre-text h3 {
  margin-bottom: 0.5rem;
  color: var(--color-navy);
}

.genre-text p {
  color: var(--color-text-light);
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
}

.genre-link {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.875rem;
}

.genre-link:hover {
  color: var(--color-navy);
}

.genre-media {
  border-radius: 4px;
  overflow: hidden;
}

.genre-img {
  width: 160px;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
}

/* 分类详情 */
.genre-detail {
  background-color: var(--color-white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.genre-detail h2 {
  margin-bottom: 0.75rem;
  color: var(--color-navy);
}

.genre-detail p {
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

/* ============================================================
   pages —— 阅读指南页 (guide.html)
   ============================================================ */

.guide-content {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
}

.guide-article {
  min-width: 0;
}

.guide-section {
  background-color: var(--color-white);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.guide-section h2 {
  color: var(--color-navy);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-accent);
}

.guide-section h3 {
  margin: 1.25rem 0 0.5rem;
  color: var(--color-dark);
  font-size: 1.0625rem;
}

.guide-section p {
  color: var(--color-text);
  margin-bottom: 0.875rem;
}

.guide-figure {
  margin: 1rem 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.guide-figure img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.guide-figure figcaption {
  padding: 0.625rem 1rem;
  background-color: var(--color-bg);
  font-size: 0.8125rem;
  color: var(--color-text-light);
}

.guide-tip {
  background-color: rgba(233, 69, 96, 0.08);
  border-left: 4px solid var(--color-accent);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1rem 0;
}

.tip-label {
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
  font-size: 0.9375rem;
}

.guide-tip p:last-child {
  margin-bottom: 0;
  color: var(--color-text);
}

/* FAQ */
.faq-list {
  margin-top: 1rem;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-item summary {
  padding: 0.875rem 1rem;
  font-weight: 600;
  color: var(--color-dark);
  cursor: pointer;
  background-color: var(--color-white);
  transition: background-color var(--transition);
}

.faq-item summary:hover {
  background-color: var(--color-bg);
}

.faq-item p {
  padding: 0 1rem 0.875rem;
  color: var(--color-text-light);
  font-size: 0.9375rem;
}

/* 指南侧栏 */
.guide-aside {
  min-width: 0;
}

.aside-card {
  background-color: var(--color-white);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.aside-card h2 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-accent);
  color: var(--color-dark);
}

.aside-links li {
  margin-bottom: 0.5rem;
}

.aside-links li a {
  color: var(--color-text);
  font-size: 0.9375rem;
  display: block;
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--color-border);
}

.aside-links li a:hover {
  color: var(--color-accent);
  padding-left: 0.25rem;
}

/* ============================================================
   pages —— 恋爱漫画推荐 (romance.html)
   ============================================================ */

.page-layout.sidebar-right {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
}

.page-layout.sidebar-right .main-content {
  min-width: 0;
}

.page-layout.sidebar-right .sidebar {
  order: 2;
}

/* 推荐列表 */
.recommend-section {
  margin-bottom: 2.5rem;
}

.recommend-section h2 {
  margin-bottom: 1rem;
}

.recommend-section .section-intro {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.manga-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.25rem;
  background-color: var(--color-white);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: box-shadow var(--transition), transform var(--transition);
}

.manga-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.manga-cover {
  border-radius: 4px;
  overflow: hidden;
}

.manga-cover img {
  width: 120px;
  height: 160px;
  object-fit: cover;
  border-radius: 4px;
}

.manga-info {
  min-width: 0;
}

.manga-info h3 {
  font-size: 1.0625rem;
  color: var(--color-dark);
  margin-bottom: 0.375rem;
}

.manga-tags {
  font-size: 0.8125rem;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.manga-desc {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

.manga-point {
  font-size: 0.875rem;
  color: var(--color-navy);
  background-color: rgba(15, 52, 96, 0.06);
  padding: 0.375rem 0.75rem;
  border-radius: 4px;
  display: inline-block;
  margin: 0;
}

/* 看点分析 */
.analysis-section {
  background-color: var(--color-white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.analysis-section h2 {
  color: var(--color-navy);
  margin-bottom: 0.75rem;
}

.analysis-section .section-intro {
  color: var(--color-text-light);
  margin-bottom: 1.25rem;
}

.analysis-section h3 {
  color: var(--color-dark);
  margin: 1.25rem 0 0.5rem;
  font-size: 1.0625rem;
}

.analysis-section p {
  color: var(--color-text);
  margin-bottom: 0.875rem;
}

/* ============================================================
   pages —— 热血漫画推荐 (action.html)
   ============================================================ */

.layout-shell.sidebar-right {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
}

.layout-shell.sidebar-right .main-content {
  min-width: 0;
}

.layout-shell.sidebar-right .sidebar {
  order: 2;
}

/* 推荐列表 */
.recommend-list-section {
  margin-bottom: 2.5rem;
}

.recommend-list-section .section-title {
  margin-bottom: 1rem;
}

.recommend-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.25rem;
  background-color: var(--color-white);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: box-shadow var(--transition), transform var(--transition);
}

.recommend-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.item-figure {
  border-radius: 4px;
  overflow: hidden;
}

.item-cover {
  width: 180px;
  height: 140px;
  object-fit: cover;
  border-radius: 4px;
}

.item-info {
  min-width: 0;
}

.item-title {
  font-size: 1.0625rem;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.item-desc {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  margin-bottom: 0.625rem;
}

.item-highlight {
  font-size: 0.875rem;
  color: var(--color-accent);
  background-color: rgba(233, 69, 96, 0.08);
  padding: 0.375rem 0.75rem;
  border-radius: 4px;
  display: inline-block;
  margin: 0;
}

/* 燃点分析 */
.analysis-section .analysis-list {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
}

.analysis-list li {
  margin-bottom: 0.5rem;
  color: var(--color-text);
  position: relative;
  padding-left: 0.5rem;
}

.analysis-list li::before {
  content: "";
  position: absolute;
  left: -1rem;
  top: 0.625rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent);
}

.analysis-list strong {
  color: var(--color-navy);
}

/* ============================================================
   pages —— 404 页面
   ============================================================ */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 3rem 1.25rem;
}

.error-section {
  text-align: center;
  max-width: 480px;
}

.error-code {
  font-size: 5rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 1rem;
}

.error-section h1 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.error-desc {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.error-link {
  display: inline-block;
  background-color: var(--color-navy);
  color: var(--color-white);
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
}

.error-link:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
}

/* ============================================================
   responsive —— 响应式
   ============================================================ */

@media (max-width: 1024px) {
  .genre-tag-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .ranking-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .ranking-item:nth-child(4),
  .ranking-item:nth-child(5) {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  /* 导航切换 */
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background-color: var(--color-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }

  .site-nav .nav-list {
    display: none;
    flex-direction: column;
    padding: 0.5rem 1rem 1rem;
    gap: 0.125rem;
  }

  .site-nav .nav-list.is-open {
    display: flex;
  }

  .nav-list li a {
    padding: 0.75rem 0.875rem;
  }

  /* 首页 hero */
  .hero-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-text h1 {
    font-size: 1.75rem;
  }

  .hero-figure img {
    height: 240px;
  }

  .hero-quick-links {
    gap: 0.625rem;
  }

  /* 首页模块 */
  .genre-tag-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .update-list {
    grid-template-columns: 1fr;
  }

  .ranking-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .guide-card-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  /* 内页布局 */
  .page-layout.sidebar-left,
  .page-layout.sidebar-right,
  .layout-shell.sidebar-right,
  .guide-content {
    grid-template-columns: 1fr;
  }

  .page-layout.sidebar-left .sidebar,
  .page-layout.sidebar-right .sidebar,
  .layout-shell.sidebar-right .sidebar,
  .guide-aside {
    order: 2;
    margin-top: 1.5rem;
  }

  .page-layout.sidebar-left .inner-main {
    order: 1;
  }

  /* 题材分类条目 */
  .genre-item {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .genre-img {
    width: 100%;
    height: 180px;
  }

  /* 推荐条目 */
  .manga-item {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .manga-cover img {
    width: 100%;
    height: 200px;
  }

  .recommend-item {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .item-cover {
    width: 100%;
    height: 200px;
  }

  /* 页脚 */
  .footer-nav {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .page-header {
    margin-bottom: 1.5rem;
  }

  .page-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0 1rem;
  }

  .brand-name {
    font-size: 1.0625rem;
  }

  .brand-slogan {
    font-size: 0.6875rem;
  }

  .hero-section {
    padding-top: 2rem;
  }

  .hero-content {
    padding: 0 1rem;
  }

  .hero-text h1 {
    font-size: 1.5rem;
  }

  .hero-figure img {
    height: 200px;
  }

  .hero-quick-links {
    flex-direction: column;
    align-items: center;
    padding: 1rem;
  }

  .hero-quick-links a {
    width: 100%;
    text-align: center;
  }

  .genre-nav-section,
  .recent-updates-section,
  .ranking-section,
  .guide-entry-section,
  .longtail-preview-section {
    padding: 2rem 1rem;
  }

  .genre-tag-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
  }

  .genre-tag {
    padding: 1rem 0.5rem;
    font-size: 0.875rem;
  }

  .ranking-list {
    grid-template-columns: 1fr;
  }

  .ranking-item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 0.75rem;
    padding: 0.75rem;
  }

  .ranking-item img {
    height: 96px;
    margin-bottom: 0;
  }

  .rank-number {
    top: auto;
    left: auto;
    right: 0.5rem;
    bottom: 0.5rem;
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }

  .ranking-reason {
    -webkit-line-clamp: 1;
  }

  .inner-main {
    padding: 1rem 1rem 2.5rem;
  }

  .breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    flex-wrap: wrap;
  }

  .page-description {
    font-size: 0.9375rem;
  }

  .guide-section,
  .genre-detail,
  .analysis-section {
    padding: 1.25rem;
  }

  .guide-figure img {
    height: 180px;
  }

  .error-code {
    font-size: 3.5rem;
  }
}
