/* ==========================================================
   base — 基础变量与全局重置
   ========================================================== */
:root {
  --color-bg: #f5f5f5;
  --color-surface: #ffffff;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-text-muted: #888888;
  --color-primary: #2c6fbb;
  --color-primary-dark: #1f568f;
  --color-primary-light: #e8f0f9;
  --color-accent: #e67e22;
  --color-accent-light: #fdf0e3;
  --color-border: #e5e5e5;
  --color-border-light: #f0f0f0;
  --color-tag-bg: #eef3f8;
  --color-tag-text: #2c6fbb;
  --color-rank-1: #e67e22;
  --color-rank-2: #8a8a8a;
  --color-rank-3: #b87333;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.08);
  --container-width: 1200px;
  --header-height: 64px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
}

* {
  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.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary-dark);
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  line-height: 1.4;
  font-weight: 700;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 18px;
}

/* 视觉隐藏，仅供屏幕阅读器 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================
   layout — 全站布局骨架
   ========================================================== */

/* 全站容器宽度 */
.header-inner,
.footer-inner,
.site-main,
.layout-shell,
.main-content,
.sidebar-content {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* 页头 */
.site-header {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
}

.brand-slogan {
  font-size: 13px;
  color: var(--color-text-muted);
  display: none;
}

/* 主导航 */
.site-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li {
  position: relative;
}

.nav-list a {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  line-height: 1.4;
}

.nav-list a:hover {
  color: var(--color-primary);
  background-color: var(--color-primary-light);
}

.nav-list a.is-current {
  color: var(--color-primary);
  font-weight: 700;
  background-color: var(--color-primary-light);
}

/* 移动端汉堡按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* 主内容区 */
.site-main {
  flex: 1;
  padding-top: 40px;
  padding-bottom: 60px;
}

.site-main.inner-main {
  padding-top: 32px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--color-text-muted);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb-sep {
  color: #cccccc;
  font-size: 12px;
}

.breadcrumb-current {
  color: var(--color-text);
}

/* 页面标题区 */
.page-header {
  margin-bottom: 32px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
}

.page-description {
  font-size: 16px;
  color: var(--color-text-light);
  max-width: 720px;
  line-height: 1.7;
}

/* 页脚 */
.site-footer {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border-light);
  margin-top: auto;
}

.footer-inner {
  padding-top: 40px;
  padding-bottom: 24px;
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-brand {
  flex: 0 0 auto;
  width: 240px;
}

.footer-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  display: block;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

.footer-links {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  min-width: 280px;
}

.footer-col h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul a {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.5;
}

.footer-col ul a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid var(--color-border-light);
  padding: 16px 20px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* 内页双栏布局（guide / action 共用） */
.layout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
  padding-top: 32px;
  padding-bottom: 60px;
}

.layout-shell > .site-main,
.layout-shell > .sidebar-content {
  padding-top: 0;
  padding-bottom: 0;
}

/* 侧栏 */
.sidebar-content,
.guide-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.sidebar-card,
.sidebar-block {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}

.sidebar-card h3,
.sidebar-block h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-primary-light);
}

.sidebar-card ul li,
.sidebar-block ul li {
  margin-bottom: 10px;
  padding-left: 14px;
  position: relative;
}

.sidebar-card ul li::before,
.sidebar-block ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-primary);
  opacity: 0.4;
}

.sidebar-card ul a,
.sidebar-block ul a {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.5;
}

.sidebar-card ul a:hover,
.sidebar-block ul a:hover {
  color: var(--color-primary);
}

/* ==========================================================
   components — 通用组件
   ========================================================== */

/* 按钮 */
.btn-primary,
.btn-secondary,
.btn-home,
.btn-category,
.btn-guide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.5;
  min-height: 44px;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  color: #ffffff;
}

.btn-secondary {
  background-color: var(--color-surface);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary-light);
  color: var(--color-primary-dark);
}

/* 区块标题通用下划线 */
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-primary-light);
}

/* 图片容器通用 */
figure {
  margin: 0;
}

figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 卡片通用hover效果 */
.quick-card,
.guide-card,
.topic-card,
.category-card,
.work-card,
.comic-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-card:hover,
.guide-card:hover,
.topic-card:hover,
.category-card:hover,
.work-card:hover,
.comic-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* ==========================================================
   pages — 页面专属样式
   ========================================================== */

/* ---------- 首页 ---------- */

/* 首屏 hero */
.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 480px;
  gap: 48px;
  align-items: center;
  padding: 48px 0 40px;
}

.hero-content h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-text);
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 16px;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 24px;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-figure {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--color-border-light);
}

.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 快速导航 */
.quick-entry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.quick-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow-card);
  min-height: 64px;
}

.quick-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  font-size: 18px;
  flex-shrink: 0;
}

.quick-card span:last-child {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
}

/* 题材分类导航带 */
.category-strip {
  margin-bottom: 48px;
}

.category-strip h2,
.recent-updates h2,
.rankings-preview h2,
.guide-entry h2,
.featured-topics h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-primary-light);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-item {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background-color: var(--color-tag-bg);
  color: var(--color-tag-text);
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
  min-height: 40px;
}

.tag-item:hover {
  background-color: var(--color-primary);
  color: #ffffff;
}

/* 最近更新 */
.recent-updates {
  margin-bottom: 48px;
}

.update-group {
  margin-bottom: 28px;
}

.update-group h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 3px solid var(--color-primary);
}

.update-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.update-list li {
  display: flex;
  gap: 12px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 12px;
  align-items: center;
}

.update-list figure {
  width: 72px;
  height: 96px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.update-list figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.update-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.update-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.update-tag {
  font-size: 12px;
  color: var(--color-primary);
  background-color: var(--color-primary-light);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  align-self: flex-start;
}

.update-status {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* 人气榜单预览 */
.rankings-preview {
  margin-bottom: 48px;
}

.ranking-list {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 8px 24px;
}

.ranking-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border-light);
}

.ranking-list li:last-child {
  border-bottom: none;
}

.rank-num {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-muted);
  min-width: 32px;
  text-align: center;
  line-height: 1.4;
}

.ranking-list li:nth-child(1) .rank-num {
  color: var(--color-rank-1);
}

.ranking-list li:nth-child(2) .rank-num {
  color: var(--color-rank-2);
}

.ranking-list li:nth-child(3) .rank-num {
  color: var(--color-rank-3);
}

.rank-body h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.rank-body p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* 阅读指南入口 */
.guide-entry {
  margin-bottom: 48px;
}

.guide-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.guide-card {
  display: block;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.guide-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.guide-card p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* 专题预告 */
.featured-topics {
  margin-bottom: 0;
}

.topic-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.topic-card {
  display: block;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.topic-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--color-primary);
}

.topic-card:nth-child(2)::before {
  background-color: var(--color-accent);
}

.topic-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.topic-card p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ---------- 分类页 ---------- */

.category-grid {
  margin-bottom: 48px;
}

.category-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.category-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}

.category-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.category-card p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 10px;
}

.card-link a {
  font-size: 14px;
  font-weight: 600;
}

/* 分类页网格 */
.category-grid .section-title {
  margin-bottom: 24px;
}

.category-grid .category-card {
  display: flex;
  flex-direction: column;
}

.category-grid .card-link {
  margin-top: auto;
}

/* 代表作品区 */
.representative-works {
  margin-bottom: 0;
}

.work-item {
  display: flex;
  gap: 20px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.work-item img {
  width: 120px;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.work-info h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.work-info p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ---------- 阅读指南页 ---------- */

.guide-section {
  margin-bottom: 40px;
}

.guide-section > h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-primary-light);
}

.section-intro {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 24px;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.guide-step-card {
  display: flex;
  gap: 16px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.step-media {
  width: 120px;
  height: 90px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
}

.step-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.step-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.step-content p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 6px;
}

/* 指南页相关阅读 */
.guide-related {
  background-color: var(--color-primary-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 40px;
}

.guide-related p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.8;
}

.guide-related a {
  font-weight: 600;
  margin-right: 16px;
  white-space: nowrap;
}

/* ---------- 恋爱漫画页 ---------- */

.article-content {
  max-width: 800px;
}

.romance-types {
  margin-bottom: 48px;
}

.romance-types > h2,
.recommend-list > h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-primary-light);
}

.romance-types > p,
.recommend-list > p {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 24px;
}

.type-block {
  margin-bottom: 32px;
  padding: 24px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
}

.type-block h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
}

.type-block p {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.type-figure {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.type-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.type-figure figcaption {
  font-size: 13px;
  color: var(--color-text-muted);
  padding: 8px 4px 0;
  text-align: center;
}

/* 推荐列表 */
.work-card {
  display: flex;
  gap: 16px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.work-card img {
  width: 96px;
  height: 128px;
  object-fit: cover;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.work-info h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 6px;
}

.work-info p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* 文内相关推荐 */
.related-inline {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin: 32px 0;
}

.related-inline p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.8;
}

.related-inline a {
  font-weight: 600;
  margin-right: 16px;
  white-space: nowrap;
}

/* 文末相关链接 */
.related-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--color-border-light);
  padding-top: 20px;
  margin-top: 32px;
}

.related-links-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.related-links-item {
  font-size: 14px;
  color: var(--color-primary);
  background-color: var(--color-primary-light);
  padding: 4px 12px;
  border-radius: 999px;
}

.related-links-item:hover {
  background-color: var(--color-primary);
  color: #ffffff;
}

/* ---------- 热血漫画页 ---------- */

.layout-shell.sidebar-right {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.main-content {
  max-width: none;
  padding: 0;
}

.action-recommend-list {
  margin-bottom: 48px;
}

.action-recommend-list > h2,
.action-elements > h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-primary-light);
}

.comic-card {
  display: flex;
  gap: 20px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.comic-cover {
  width: 120px;
  height: 160px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comic-info h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 6px;
}

.comic-tags {
  font-size: 13px;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.comic-info p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

.action-elements {
  margin-bottom: 40px;
}

.element-block {
  margin-bottom: 24px;
  padding: 24px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
}

.element-block h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
}

.element-block p {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.block-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.inner-links {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.inner-links p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.8;
}

.inner-links a {
  font-weight: 600;
  margin-right: 16px;
  white-space: nowrap;
}

/* ---------- FAQ 页 ---------- */

.faq-section {
  margin-bottom: 40px;
}

.faq-section > h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-primary-light);
}

.content-media-inline {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 24px;
}

.content-media-inline img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-media-inline figcaption {
  font-size: 13px;
  color: var(--color-text-muted);
  padding: 8px 4px 0;
  text-align: center;
}

.faq-list {
  margin-top: 8px;
}

.faq-item {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  min-height: 48px;
  position: relative;
  padding-right: 44px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--color-primary);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-item[open] summary {
  color: var(--color-primary);
}

.faq-answer {
  padding: 0 20px 18px;
  border-top: 1px solid var(--color-border-light);
  padding-top: 14px;
}

.faq-answer p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
}

.faq-answer a {
  font-weight: 600;
}

/* FAQ 说明区 */
.faq-note {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.faq-note h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
}

.note-content p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
}

.note-content a {
  font-weight: 600;
  margin-right: 16px;
  white-space: nowrap;
}

/* ---------- 404 页 ---------- */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
}

.error-content {
  text-align: center;
  max-width: 560px;
}

.error-code {
  font-size: 72px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 16px;
}

.error-content h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 24px;
}

.error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.btn-home {
  background-color: var(--color-primary);
  color: #ffffff;
}

.btn-home:hover {
  background-color: var(--color-primary-dark);
  color: #ffffff;
}

.btn-category,
.btn-guide {
  background-color: var(--color-surface);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-category:hover,
.btn-guide:hover {
  background-color: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.error-help {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ==========================================================
   responsive — 响应式断点
   ========================================================== */

/* 平板及以下 */
@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
  }

  .update-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .update-list li:last-child {
    grid-column: span 2;
  }

  .layout-shell,
  .layout-shell.sidebar-right {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
  }
}

/* 手机端 */
@media (max-width: 768px) {
  .header-inner {
    height: auto;
    min-height: var(--header-height);
    flex-wrap: wrap;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .brand {
    margin-right: auto;
  }

  /* 汉堡按钮显示 */
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex-basis: 100%;
    display: block;
    order: 3;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0;
    gap: 0;
    border-top: 1px solid var(--color-border-light);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list a {
    padding: 12px 16px;
    font-size: 16px;
    border-radius: var(--radius-sm);
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* 首页 hero */
  .hero-section {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 0 24px;
  }

  .hero-content h1 {
    font-size: 26px;
  }

  .hero-figure {
    aspect-ratio: 16 / 9;
  }

  .quick-entry {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 32px;
  }

  .quick-card {
    min-height: 56px;
  }

  .category-strip,
  .recent-updates,
  .rankings-preview,
  .guide-entry,
  .featured-topics {
    margin-bottom: 32px;
  }

  .tag-list {
    gap: 8px;
  }

  .tag-item {
    padding: 6px 14px;
    font-size: 13px;
  }

  .update-list {
    grid-template-columns: 1fr;
  }

  .update-list li:last-child {
    grid-column: auto;
  }

  .guide-cards,
  .topic-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ranking-list {
    padding: 8px 16px;
  }

  /* 内页布局全部重排为单列 */
  .layout-shell,
  .layout-shell.sidebar-right {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .sidebar-content,
  .guide-sidebar {
    position: static;
    margin-top: 32px;
  }

  .site-main.inner-main {
    padding-top: 24px;
    padding-bottom: 40px;
  }

  .page-header {
    margin-bottom: 24px;
  }

  .page-title {
    font-size: 24px;
  }

  /* 分类页网格 */
  .category-grid {
    margin-bottom: 32px;
  }

  .category-card {
    padding: 16px;
  }

  .work-item {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }

  .work-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  /* 指南步骤 */
  .guide-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .guide-step-card {
    flex-direction: column;
    padding: 16px;
  }

  .step-media {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .guide-related {
    padding: 16px;
  }

  .guide-related a,
  .related-inline a,
  .inner-links a,
  .note-content a {
    display: inline-block;
    margin-right: 12px;
    margin-bottom: 6px;
  }

  /* 作品卡片 */
  .work-card,
  .comic-card {
    flex-direction: column;
    padding: 16px;
  }

  .work-card img,
  .comic-cover {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .type-block,
  .element-block {
    padding: 16px;
  }

  .related-links {
    gap: 8px;
  }

  /* FAQ */
  .faq-item summary {
    padding: 14px 44px 14px 16px;
    font-size: 14px;
  }

  .faq-answer {
    padding: 12px 16px 16px;
  }

  .faq-note {
    padding: 16px;
  }

  /* 页脚 */
  .footer-inner {
    flex-direction: column;
    gap: 24px;
    padding-top: 32px;
  }

  .footer-brand {
    width: 100%;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 20px;
    min-width: 0;
  }

  /* 404 */
  .error-code {
    font-size: 56px;
  }

  .error-content h1 {
    font-size: 20px;
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .error-actions a {
    width: 100%;
  }
}

/* 超小屏 */
@media (max-width: 390px) {
  .brand-slogan {
    display: none;
  }

  .hero-content h1 {
    font-size: 24px;
  }

  .tag-item {
    padding: 6px 12px;
    font-size: 12px;
  }

  .update-list li {
    padding: 10px;
  }

  .update-list figure {
    width: 64px;
    height: 88px;
  }

  .rank-num {
    min-width: 24px;
    font-size: 18px;
  }
}
