/* ============================================================
   base — 全局基础
   ============================================================ */
:root {
  --color-primary: #4A90D9;
  --color-accent: #F5A623;
  --color-bg: #F8F9FA;
  --color-text: #333333;
  --color-white: #FFFFFF;
  --color-border: #E5E8EB;
  --color-text-light: #666666;
  --color-text-lighter: #888888;
  --color-tag-love: #F08A8A;
  --color-tag-hot: #E86A5E;
  --color-tag-work: #5B8DB8;
  --color-tag-daily: #7FB77E;
  --color-tag-fantasy: #9B8AC4;
  --radius-sm: 4px;
  --radius-md: 8px;
  --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.6;
  color: var(--color-text);
  background-color: var(--color-bg);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #357ABD;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 18px;
}

p {
  margin-bottom: 12px;
}

/* ============================================================
   layout — 全站布局骨架
   ============================================================ */

/* 站点主体：统一背景与最小高度 */
.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg);
}

.site-header {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  flex-shrink: 0;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
}

.brand-slogan {
  font-size: 12px;
  color: var(--color-text-lighter);
}

.site-nav {
  flex-shrink: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 10px 14px;
  font-size: 15px;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  color: var(--color-primary);
  background-color: rgba(74, 144, 217, 0.08);
}

.nav-link.is-current {
  color: var(--color-primary);
  font-weight: 600;
  background-color: rgba(74, 144, 217, 0.1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle-line {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 1px;
}

/* 主内容区 */
.site-main {
  flex: 1;
  width: 100%;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* 内页主容器 */
.inner-main {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px 60px;
  width: 100%;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0 0;
  font-size: 14px;
  color: var(--color-text-lighter);
}

.breadcrumb a {
  color: var(--color-text-lighter);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb-sep {
  color: #C0C4CC;
}

.breadcrumb-current {
  color: var(--color-text);
}

/* 页面标题区 */
.page-header {
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 36px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.page-description {
  font-size: 16px;
  color: var(--color-text-light);
  line-height: 1.6;
  max-width: 720px;
}

/* 页脚 */
.site-footer {
  background-color: var(--color-white);
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 32px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.footer-brand-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
}

.footer-desc {
  font-size: 14px;
  color: var(--color-text-lighter);
  margin-top: 4px;
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-link {
  font-size: 14px;
  color: var(--color-text-light);
}

.footer-link:hover {
  color: var(--color-primary);
}

.footer-copyright {
  width: 100%;
  font-size: 13px;
  color: var(--color-text-lighter);
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

/* ============================================================
   components — 通用组件
   ============================================================ */

/* 区块标题 */
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.section-desc {
  font-size: 15px;
  color: var(--color-text-light);
  margin-bottom: 24px;
  max-width: 720px;
}

.section-intro {
  font-size: 15px;
  color: var(--color-text-light);
  margin-bottom: 24px;
}

/* 题材标签（首页分类导航） */
.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.category-tag {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-white);
  border-radius: var(--radius-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  color: var(--color-white);
}

.tag-love {
  background-color: var(--color-tag-love);
}

.tag-hot {
  background-color: var(--color-tag-hot);
}

.tag-work {
  background-color: var(--color-tag-work);
}

.tag-daily {
  background-color: var(--color-tag-daily);
}

.tag-fantasy {
  background-color: var(--color-tag-fantasy);
}

/* 通用标签（内页作品标签） */
.tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 13px;
  line-height: 1.4;
  border-radius: var(--radius-sm);
  background-color: rgba(74, 144, 217, 0.1);
  color: var(--color-primary);
}

.tag-romance {
  background-color: rgba(240, 138, 138, 0.15);
  color: #D96A6A;
}

.tag-school {
  background-color: rgba(91, 141, 184, 0.15);
  color: #4A7BA3;
}

.tag-hotblood {
  background-color: rgba(232, 106, 94, 0.15);
  color: #C95A4E;
}

.tag-action {
  background-color: rgba(155, 138, 196, 0.15);
  color: #7A6BA8;
}

.tag-drama {
  background-color: rgba(245, 166, 35, 0.15);
  color: #C98A1A;
}

.tag-mystery {
  background-color: rgba(90, 110, 130, 0.15);
  color: #506070;
}

.tag-thriller {
  background-color: rgba(80, 70, 60, 0.15);
  color: #605548;
}

.tag-healing {
  background-color: rgba(127, 183, 126, 0.15);
  color: #5A9A59;
}

.tag-life {
  background-color: rgba(120, 140, 100, 0.15);
  color: #6A7A55;
}

.tag-team {
  background-color: rgba(74, 144, 217, 0.15);
  color: #357ABD;
}

.tag-outdoor {
  background-color: rgba(100, 160, 130, 0.15);
  color: #4D8A6E;
}

.tag-sports {
  background-color: rgba(230, 120, 80, 0.15);
  color: #C06A45;
}

.tag-psychological {
  background-color: rgba(130, 110, 150, 0.15);
  color: #6A5A80;
}

/* 作品卡片网格 */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.work-card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.work-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.work-card .work-title {
  font-size: 16px;
  font-weight: 600;
  padding: 12px 12px 4px;
}

.work-card .work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 12px 0;
}

.work-card .work-status {
  font-size: 13px;
  color: var(--color-text-lighter);
  padding: 4px 12px 12px;
}

/* 相关阅读卡片（guide 页） */
.related-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.related-link-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.related-link-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(74, 144, 217, 0.1);
}

.related-link-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
}

.related-link-desc {
  font-size: 14px;
  color: var(--color-text-lighter);
  line-height: 1.5;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 40px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--color-primary);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  color: var(--color-primary);
}

.faq-item p {
  padding: 0 20px 16px;
  font-size: 15px;
  color: var(--color-text-light);
}

/* ============================================================
   pages — 首页
   ============================================================ */

/* 首屏 hero */
.hero-section {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 32px 0;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.hero-feature {
  min-width: 0;
}

.hero-link {
  display: block;
}

.hero-figure {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-caption {
  padding: 0 4px;
}

.hero-tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 13px;
  border-radius: var(--radius-sm);
  background-color: var(--color-accent);
  color: var(--color-white);
  margin-bottom: 8px;
}

.hero-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.hero-desc {
  font-size: 15px;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.hero-cta {
  display: inline-block;
  padding: 8px 20px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.hero-cta:hover {
  background-color: #357ABD;
  color: var(--color-white);
}

.hero-side {
  background-color: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 20px;
}

.side-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary);
}

.side-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.side-item {
  border-bottom: 1px dashed var(--color-border);
  padding-bottom: 10px;
}

.side-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.side-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--color-text);
}

.side-link:hover {
  color: var(--color-primary);
}

.side-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-status {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--color-text-lighter);
}

/* 题材分类导航区 */
.category-nav-section {
  padding: 40px 0;
}

/* 最近更新 */
.recent-updates-section {
  padding: 40px 0;
  background-color: var(--color-white);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.update-group {
  margin-bottom: 24px;
}

.update-date {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 3px solid var(--color-primary);
}

.update-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.update-item {
  background-color: var(--color-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.update-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.update-link {
  display: block;
  padding: 12px;
}

.update-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.update-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.update-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.update-status {
  font-size: 13px;
  color: var(--color-accent);
}

/* 人气榜单预览 */
.ranking-section {
  padding: 40px 0;
}

.ranking-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.ranking-item {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ranking-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.ranking-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
}

.ranking-number {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.2;
  flex-shrink: 0;
  min-width: 32px;
}

.ranking-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.ranking-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
}

.ranking-reason {
  font-size: 14px;
  color: var(--color-text-lighter);
  line-height: 1.5;
}

/* 阅读指南入口 */
.guide-entry-section {
  padding: 40px 0;
  background-color: var(--color-white);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.guide-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.guide-card {
  background-color: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--color-border);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.guide-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(74, 144, 217, 0.1);
}

.guide-card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.guide-card-desc {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.guide-card-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
}

.guide-card-link:hover {
  color: #357ABD;
}

/* 长尾推荐预告 */
.longtail-section {
  padding: 40px 0;
}

.longtail-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.longtail-card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.longtail-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.longtail-link {
  display: block;
}

.longtail-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.longtail-content {
  padding: 20px;
}

.longtail-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text);
}

.longtail-desc {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.longtail-cta {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
}

.longtail-cta:hover {
  color: #357ABD;
}

/* ============================================================
   pages — 题材分类页（topic）
   ============================================================ */

.category-list {
  margin-bottom: 48px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.category-card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.category-card-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.category-card-body {
  padding: 16px;
}

.category-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.category-desc {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.5;
  margin-bottom: 12px;
}

.category-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
}

.category-link:hover {
  color: #357ABD;
}

.representative-works {
  margin-bottom: 48px;
}

.topic-note {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--color-border);
}

.note-content p {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.7;
}

.note-content p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   pages — 阅读指南页（guide）
   ============================================================ */

.guide-intro-section {
  margin-bottom: 48px;
}

.guide-intro-content {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 32px;
  align-items: start;
}

.guide-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.guide-intro-text p {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.7;
}

.guide-intro-text p:last-child {
  margin-bottom: 0;
}

.reading-tips-section {
  margin-bottom: 48px;
}

.tips-list {
  counter-reset: tip-counter;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tip-item {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  border: 1px solid var(--color-border);
  position: relative;
  padding-left: 64px;
  counter-increment: tip-counter;
}

.tip-item::before {
  content: counter(tip-counter);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tip-item h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}

.tip-item p {
  font-size: 15px;
  color: var(--color-text-light);
  margin-bottom: 0;
  line-height: 1.6;
}

.faq-section {
  margin-bottom: 48px;
}

.related-links-section {
  margin-bottom: 0;
}

/* ============================================================
   pages — 恋爱漫画推荐页（romance）
   ============================================================ */

.featured-works {
  margin-bottom: 48px;
}

.work-media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.work-info {
  padding: 12px 16px 16px;
}

.work-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.work-synopsis {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.work-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 13px;
  border-radius: var(--radius-sm);
  background-color: rgba(240, 138, 138, 0.15);
  color: #D96A6A;
}

.recommendation-reasons {
  margin-bottom: 48px;
}

.reason-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.reason-item {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--color-border);
}

.reason-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-primary);
}

.reason-text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 0;
}

.related-links {
  margin-bottom: 0;
}

.related-desc {
  font-size: 15px;
  color: var(--color-text-light);
  margin-bottom: 20px;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.related-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.related-link:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(74, 144, 217, 0.1);
  color: var(--color-primary);
}

/* ============================================================
   pages — 热血漫画推荐页（hotblood）
   ============================================================ */

.work-showcase {
  margin-bottom: 48px;
}

.showcase-item {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 24px;
  align-items: center;
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--color-border);
  margin-bottom: 20px;
}

.showcase-item:nth-child(even) {
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
}

.showcase-item:nth-child(even) .showcase-media {
  order: 2;
}

.showcase-media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.showcase-content {
  min-width: 0;
}

.showcase-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.showcase-desc {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 12px;
}

.topic-tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 13px;
  border-radius: var(--radius-sm);
  background-color: rgba(232, 106, 94, 0.12);
  color: #C95A4E;
  margin-right: 8px;
}

.topic-tag:last-child {
  margin-right: 0;
}

.reason-list {
  margin-bottom: 48px;
}

.reason-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.reason-items .reason-item {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--color-border);
}

.reason-items .reason-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-primary);
}

.reason-items .reason-text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 0;
}

.related-reading {
  margin-bottom: 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.related-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(74, 144, 217, 0.1);
}

.related-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
}

.related-card-desc {
  font-size: 14px;
  color: var(--color-text-lighter);
  line-height: 1.5;
}

/* ============================================================
   pages — 404 页
   ============================================================ */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 60px 20px;
}

.error-content {
  text-align: center;
  max-width: 480px;
}

.error-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.error-desc {
  font-size: 16px;
  color: var(--color-text-light);
  margin-bottom: 24px;
}

.error-back {
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.error-back:hover {
  background-color: #357ABD;
  color: var(--color-white);
}

/* ============================================================
   responsive — 响应式
   ============================================================ */

@media (max-width: 992px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-side {
    order: 2;
  }

  .guide-intro-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .showcase-item {
    grid-template-columns: 1fr;
  }

  .showcase-item:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .showcase-item:nth-child(even) .showcase-media {
    order: 0;
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: auto;
    min-height: var(--header-height);
    padding: 8px 16px;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    width: 100%;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 8px 0 16px;
    gap: 0;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    padding: 12px 8px;
    font-size: 16px;
    border-radius: var(--radius-sm);
  }

  .inner-main {
    padding: 0 16px 40px;
  }

  .breadcrumb {
    padding-top: 16px;
  }

  .page-header {
    padding: 20px 0 16px;
    margin-bottom: 24px;
  }

  .page-title {
    font-size: 24px;
  }

  .page-description {
    font-size: 15px;
  }

  .container {
    padding: 0 16px;
  }

  .hero-section {
    padding: 20px 0;
  }

  .hero-title {
    font-size: 20px;
  }

  .category-nav-section,
  .recent-updates-section,
  .ranking-section,
  .guide-entry-section,
  .longtail-section {
    padding: 28px 0;
  }

  .category-tags {
    gap: 8px;
  }

  .category-tag {
    padding: 8px 14px;
    font-size: 14px;
  }

  .update-list,
  .works-grid,
  .ranking-list,
  .category-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }

  .guide-cards,
  .longtail-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tip-item {
    padding-left: 56px;
  }

  .tip-item::before {
    left: 16px;
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    padding: 24px 16px;
  }

  .footer-links {
    gap: 16px;
  }

  .footer-copyright {
    margin-top: 4px;
    padding-top: 12px;
  }

  .reason-list,
  .reason-items {
    grid-template-columns: 1fr;
  }

  .related-links-grid,
  .related-list,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .error-title {
    font-size: 36px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 20px;
  }

  h3 {
    font-size: 17px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-slogan {
    font-size: 11px;
  }

  .update-list,
  .works-grid,
  .ranking-list,
  .category-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
  }

  .update-link {
    padding: 8px;
  }

  .ranking-link {
    padding: 12px;
  }

  .ranking-number {
    font-size: 20px;
    min-width: 28px;
  }

  .side-list {
    gap: 8px;
  }

  .showcase-item {
    padding: 16px;
  }

  .work-info {
    padding: 10px 12px 12px;
  }
}
