/* ==========================================================================
   base — 全局基础样式
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #2d3748;
  background-color: #f5f7fa;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #3182ce;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #2b6cb0;
  text-decoration: underline;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #2d3748;
  font-weight: 700;
  line-height: 1.3;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 18px;
}

p {
  margin-bottom: 0.5em;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* 无障碍隐藏 */
.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-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #f5f7fa;
}

.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-logo:hover {
  text-decoration: none;
}

.brand-name {
  font-size: 22px;
  font-weight: 800;
  color: #2d3748;
  letter-spacing: 0;
}

.brand-slogan {
  font-size: 13px;
  color: #718096;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background-color: #f5f7fa;
  border: 1px solid #e2e8f0;
}

.nav-toggle-icon {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #2d3748;
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background-color: #2d3748;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list a {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  color: #4a5568;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-list a:hover {
  color: #3182ce;
  background-color: #edf2f7;
  text-decoration: none;
}

.nav-list a.is-current {
  color: #3182ce;
  background-color: #ebf4ff;
  font-weight: 600;
}

.site-main {
  flex: 1;
  width: 100%;
}

.home-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-footer {
  background-color: #ffffff;
  border-top: 1px solid #e2e8f0;
  margin-top: 48px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 24px;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo {
  font-size: 20px;
  font-weight: 800;
  color: #2d3748;
}

.footer-desc {
  font-size: 14px;
  color: #718096;
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-group h3 {
  font-size: 15px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 12px;
}

.footer-group ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-group a {
  font-size: 14px;
  color: #4a5568;
  text-decoration: none;
}

.footer-group a:hover {
  color: #3182ce;
  text-decoration: underline;
}

.footer-copyright {
  border-top: 1px solid #e2e8f0;
  margin-top: 32px;
  padding-top: 16px;
  text-align: center;
}

.footer-copyright p {
  font-size: 13px;
  color: #a0aec0;
  margin: 0;
}

/* 内页布局框架 */
.inner-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 0;
  width: 100%;
}

/* 侧栏在左的布局 */
.layout-shell.sidebar-left {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 0;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  width: 100%;
}

.layout-shell.sidebar-left .page-aside {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.layout-shell.sidebar-left .inner-main {
  max-width: none;
  padding: 0;
  min-width: 0;
}

/* 长尾页1的布局 */
.content-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 32px;
  align-items: start;
  width: 100%;
}

.content-layout .main-content {
  min-width: 0;
}

.content-layout .sidebar-area {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: #718096;
  margin-bottom: 16px;
}

.breadcrumb a {
  color: #3182ce;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  color: #cbd5e0;
}

.breadcrumb-current {
  color: #4a5568;
}

/* 页面标题区 */
.page-header {
  margin-bottom: 28px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 8px;
}

.page-description {
  font-size: 15px;
  color: #718096;
  line-height: 1.6;
  max-width: 720px;
}

/* ==========================================================================
   components — 通用组件
   ========================================================================== */

/* 按钮 */
.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background-color: #3182ce;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  text-decoration: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  background-color: #2b6cb0;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(49, 130, 206, 0.25);
}

.btn-secondary {
  display: inline-block;
  padding: 10px 24px;
  background-color: #ffffff;
  color: #3182ce;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #3182ce;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-secondary:hover {
  background-color: #ebf4ff;
  color: #2b6cb0;
  text-decoration: none;
}

/* 区块容器 */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 0;
}

.section-desc {
  font-size: 15px;
  color: #718096;
  margin: 8px 0 24px;
}

/* 侧栏通用 */
.page-aside .aside-box,
.page-aside .aside-card,
.page-aside .aside-block {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
}

.aside-title {
  font-size: 16px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #ebf4ff;
}

.aside-text {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 8px;
}

.aside-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aside-list a {
  font-size: 14px;
  color: #4a5568;
  text-decoration: none;
  display: block;
  padding: 4px 0;
}

.aside-list a:hover {
  color: #3182ce;
  text-decoration: underline;
}

/* 侧栏卡片（guide 页） */
.aside-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
}

.aside-card .aside-title {
  border-bottom: 2px solid #ebf4ff;
}

.aside-card p {
  font-size: 14px;
  color: #4a5568;
  margin-bottom: 8px;
}

.aside-card ul {
  margin-top: 8px;
}

/* 侧栏区块（longtail2 页） */
.aside-block {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
}

.aside-block h2 {
  font-size: 16px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #ebf4ff;
}

.aside-block p {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 8px;
}

/* ==========================================================================
   pages — 首页
   ========================================================================== */

/* 首屏 hero */
.hero-section {
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.hero-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero-index {
  background-color: #f5f7fa;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
}

.index-tip {
  font-size: 14px;
  color: #718096;
  margin-bottom: 12px;
}

.index-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.index-links a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: #4a5568;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.index-links a:hover {
  background-color: #edf2f7;
  color: #3182ce;
  text-decoration: none;
}

.hero-main {
  min-width: 0;
}

.hero-figure {
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #edf2f7;
}

.hero-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.hero-main h1 {
  font-size: 32px;
  font-weight: 800;
  color: #2d3748;
  margin-bottom: 12px;
}

.hero-desc {
  font-size: 16px;
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 640px;
}

/* 题材分类导航 */
.category-nav-section {
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.category-nav-section .section-inner {
  padding: 40px 0;
}

.category-nav-section h2 {
  font-size: 22px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 8px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-item {
  display: inline-block;
  padding: 8px 20px;
  background-color: #f5f7fa;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #4a5568;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tag-item:hover {
  background-color: #ebf4ff;
  border-color: #3182ce;
  color: #3182ce;
  text-decoration: none;
}

/* 最近更新 */
.recent-updates-section {
  background-color: #f5f7fa;
}

.recent-updates-section .section-inner {
  padding: 40px 0;
}

.recent-updates-section h2 {
  font-size: 22px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 8px;
}

.update-group {
  margin-bottom: 24px;
}

.update-date {
  font-size: 16px;
  font-weight: 600;
  color: #2d3748;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 12px;
}

.update-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.update-item {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.update-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.update-link {
  display: flex;
  gap: 12px;
  padding: 12px;
  text-decoration: none;
  color: #2d3748;
}

.update-link:hover {
  text-decoration: none;
}

.update-link img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.update-title {
  font-size: 15px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 4px;
}

.update-status {
  font-size: 13px;
  color: #3182ce;
}

/* 人气榜单预览 */
.ranking-preview-section {
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.ranking-preview-section .section-inner {
  padding: 40px 0;
}

.ranking-preview-section h2 {
  font-size: 22px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 8px;
}

.ranking-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.ranking-item {
  min-width: 0;
}

.ranking-card {
  display: block;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  text-decoration: none;
  transition: box-shadow 0.2s ease;
  height: 100%;
}

.ranking-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-decoration: none;
}

.ranking-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 8px;
}

.ranking-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 4px;
}

.ranking-card p {
  font-size: 13px;
  color: #718096;
  line-height: 1.5;
  margin: 0;
}

/* 阅读指南入口 */
.guide-entry-section {
  background-color: #f5f7fa;
}

.guide-entry-section .section-inner {
  padding: 40px 0;
}

.guide-entry-section h2 {
  font-size: 22px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 8px;
}

.guide-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.guide-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px;
  transition: box-shadow 0.2s ease;
}

.guide-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.guide-link {
  display: block;
  text-decoration: none;
  color: #2d3748;
}

.guide-link:hover {
  text-decoration: none;
}

.guide-link h3 {
  font-size: 18px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 8px;
}

.guide-link p {
  font-size: 14px;
  color: #718096;
  line-height: 1.6;
  margin: 0;
}

/* 长尾推荐预告 */
.longtail-preview-section {
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.longtail-preview-section .section-inner {
  padding: 40px 0;
}

.longtail-preview-section h2 {
  font-size: 22px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 8px;
}

.longtail-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.longtail-card {
  background-color: #f5f7fa;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.longtail-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.longtail-link {
  display: block;
  text-decoration: none;
  color: #2d3748;
}

.longtail-link:hover {
  text-decoration: none;
}

.longtail-link img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.longtail-link h3 {
  font-size: 18px;
  font-weight: 600;
  color: #2d3748;
  padding: 16px 20px 4px;
}

.longtail-link p {
  font-size: 14px;
  color: #718096;
  line-height: 1.6;
  padding: 0 20px 20px;
  margin: 0;
}

/* 反馈区 */
.feedback-section {
  background-color: #f5f7fa;
}

.feedback-section .section-inner {
  padding: 40px 0;
}

.feedback-section h2 {
  font-size: 22px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 12px;
}

.feedback-section p {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.6;
  max-width: 720px;
  margin-bottom: 8px;
}

.feedback-section .btn-secondary {
  margin-top: 12px;
}

/* ==========================================================================
   pages — 分类页
   ========================================================================== */

.page-category .category-list,
.page-category .category-guide {
  margin-bottom: 32px;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #ebf4ff;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.category-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  transition: box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.card-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 4px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: #2d3748;
}

.card-desc {
  font-size: 14px;
  color: #718096;
  line-height: 1.5;
  flex: 1;
}

.card-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: #3182ce;
  text-decoration: none;
  align-self: flex-start;
}

.card-link:hover {
  text-decoration: underline;
}

.category-guide .guide-text {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 12px;
}

/* ==========================================================================
   pages — 阅读指南页
   ========================================================================== */

.page-guide .guide-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.guide-section h2 {
  font-size: 20px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #ebf4ff;
}

.guide-section > p {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 16px;
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.guide-step {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
}

.guide-step h3 {
  font-size: 15px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 4px;
}

.guide-step p {
  font-size: 14px;
  color: #718096;
  line-height: 1.6;
  margin: 0;
}

.guide-figure {
  margin: 16px 0;
  background-color: #edf2f7;
  border-radius: 8px;
  overflow: hidden;
}

.guide-figure img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.guide-figure figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: #718096;
  background-color: #ffffff;
  border-top: 1px solid #e2e8f0;
}

.guide-tips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.guide-tip {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
}

.guide-tip h3 {
  font-size: 15px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 4px;
}

.guide-tip p {
  font-size: 14px;
  color: #718096;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   pages — 长尾页1（恋爱漫画推荐）
   ========================================================================== */

.page-longtail1 .recommend-list {
  margin-bottom: 32px;
}

.page-longtail1 .recommend-list h2 {
  font-size: 20px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #ebf4ff;
}

.recommend-item {
  display: flex;
  gap: 16px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.item-cover {
  flex-shrink: 0;
  width: 100px;
}

.item-cover img {
  width: 100px;
  height: 140px;
  object-fit: cover;
  border-radius: 4px;
}

.item-info {
  flex: 1;
  min-width: 0;
}

.item-info h3 {
  font-size: 17px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 4px;
}

.item-tags {
  font-size: 13px;
  color: #3182ce;
  margin-bottom: 6px;
}

.item-info > p {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 6px;
}

.recommend-reason {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.6;
  background-color: #f5f7fa;
  border-left: 3px solid #3182ce;
  padding: 8px 12px;
  border-radius: 0 4px 4px 0;
  margin-bottom: 6px;
}

.suitable-for {
  font-size: 13px;
  color: #718096;
}

.selection-guide {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
}

.selection-guide h2 {
  font-size: 20px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #ebf4ff;
}

.selection-guide > p {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 12px;
}

.guide-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.guide-list li {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
}

.guide-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background-color: #3182ce;
  border-radius: 50%;
}

.guide-list strong {
  font-weight: 600;
  color: #2d3748;
}

.selection-guide a {
  font-size: 14px;
  font-weight: 500;
  margin-right: 16px;
  display: inline-block;
}

.sidebar-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
}

.sidebar-card h2 {
  font-size: 16px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #ebf4ff;
}

.sidebar-card p {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 8px;
}

/* ==========================================================================
   pages — 长尾页2（热血漫画推荐）
   ========================================================================== */

.page-longtail2 .content-section {
  margin-bottom: 32px;
}

.content-section h2 {
  font-size: 20px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #ebf4ff;
}

.section-intro {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 16px;
}

.recommend-media {
  flex-shrink: 0;
  width: 100px;
}

.recommend-media img {
  width: 100px;
  height: 140px;
  object-fit: cover;
  border-radius: 4px;
}

.recommend-body {
  flex: 1;
  min-width: 0;
}

.recommend-body h3 {
  font-size: 17px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 4px;
}

.recommend-body > p {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 6px;
}

.highlight-text {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.6;
  background-color: #f5f7fa;
  border-left: 3px solid #ed8936;
  padding: 8px 12px;
  border-radius: 0 4px 4px 0;
  margin-bottom: 6px;
}

.highlight-text strong {
  font-weight: 600;
  color: #2d3748;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 16px 0;
}

.comparison-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
}

.comparison-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 6px;
}

.comparison-card p {
  font-size: 14px;
  color: #718096;
  line-height: 1.6;
  margin: 0;
}

.content-section > p {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 12px;
}

.content-section > p a {
  display: inline-block;
  margin-right: 16px;
  font-weight: 500;
}

.related-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 24px;
}

.related-links-label {
  font-size: 14px;
  font-weight: 600;
  color: #2d3748;
}

.related-links-item {
  font-size: 14px;
  color: #3182ce;
  text-decoration: none;
}

.related-links-item:hover {
  text-decoration: underline;
}

/* ==========================================================================
   pages — 404 页
   ========================================================================== */

.site-error .error-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
  text-align: center;
}

.error-section {
  margin-bottom: 48px;
}

.error-section h1 {
  font-size: 32px;
  font-weight: 800;
  color: #2d3748;
  margin-bottom: 8px;
}

.error-code {
  font-size: 72px;
  font-weight: 800;
  color: #3182ce;
  line-height: 1;
  margin-bottom: 16px;
}

.error-desc {
  font-size: 16px;
  color: #718096;
  max-width: 480px;
  margin: 0 auto 24px;
}

.error-action {
  display: inline-block;
  padding: 12px 28px;
  background-color: #3182ce;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.error-action:hover {
  background-color: #2b6cb0;
  color: #ffffff;
  text-decoration: none;
}

.error-links {
  margin-top: 32px;
}

.error-links h2 {
  font-size: 18px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 16px;
}

.error-links ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
}

.error-links a {
  display: block;
  padding: 12px 16px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 14px;
  color: #4a5568;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.error-links a:hover {
  border-color: #3182ce;
  color: #3182ce;
  text-decoration: none;
}

/* ==========================================================================
   responsive — 响应式适配
   ========================================================================== */

/* 平板 */
@media (max-width: 1024px) {
  .ranking-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .update-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .guide-tips {
    grid-template-columns: repeat(2, 1fr);
  }

  .comparison-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .error-links ul {
    grid-template-columns: repeat(2, 1fr);
  }

  .layout-shell.sidebar-left {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 24px;
  }

  .content-layout {
    grid-template-columns: minmax(0, 1fr) 200px;
    gap: 24px;
  }

  .hero-shell {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 24px;
  }
}

/* 手机端 */
@media (max-width: 768px) {
  .header-inner {
    height: auto;
    min-height: 56px;
    padding: 8px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .brand-slogan {
    display: none;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .site-nav {
    width: 100%;
    order: 3;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 8px 0;
    width: 100%;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    padding: 12px 16px;
    font-size: 15px;
    border-radius: 0;
  }

  .home-main {
    padding: 0 16px;
  }

  .inner-main {
    padding: 16px 16px 0;
  }

  .layout-shell.sidebar-left {
    display: block;
    padding: 16px 16px 0;
  }

  .layout-shell.sidebar-left .page-aside {
    position: static;
    order: 2;
    margin-bottom: 24px;
  }

  .content-layout {
    display: block;
    padding: 16px 16px 0;
  }

  .content-layout .sidebar-area {
    position: static;
    margin-top: 24px;
  }

  .hero-shell {
    display: block;
    padding: 32px 0;
  }

  .hero-index {
    margin-bottom: 24px;
  }

  .hero-img {
    height: 200px;
  }

  .hero-main h1 {
    font-size: 26px;
  }

  .section-inner {
    padding: 32px 0;
  }

  .update-list {
    grid-template-columns: 1fr;
  }

  .ranking-list {
    grid-template-columns: 1fr;
  }

  .guide-cards {
    grid-template-columns: 1fr;
  }

  .longtail-cards {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .guide-tips {
    grid-template-columns: 1fr;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .recommend-item {
    flex-direction: column;
  }

  .item-cover {
    width: 100%;
  }

  .item-cover img {
    width: 100%;
    height: 200px;
  }

  .recommend-media {
    width: 100%;
  }

  .recommend-media img {
    width: 100%;
    height: 200px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 16px 16px;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .error-links ul {
    grid-template-columns: 1fr;
  }

  .error-main {
    padding: 48px 16px;
  }

  .error-code {
    font-size: 48px;
  }

  .page-header {
    margin-bottom: 20px;
  }

  .page-title {
    font-size: 24px;
  }

  .footer-copyright {
    margin-top: 24px;
  }
}

/* 小屏手机 */
@media (max-width: 480px) {
  .footer-links {
    grid-template-columns: 1fr;
  }

  .tag-list {
    gap: 8px;
  }

  .tag-item {
    padding: 6px 14px;
    font-size: 13px;
  }

  .update-link {
    flex-direction: row;
  }

  .update-link img {
    width: 64px;
    height: 88px;
  }

  .hero-main h1 {
    font-size: 24px;
  }

  .hero-desc {
    font-size: 15px;
  }

  .breadcrumb {
    font-size: 13px;
  }

  .guide-figure img {
    height: 160px;
  }
}
