/* ==========================================================================
   base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #333333;
  background-color: #F7F7F9;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: #4D96FF;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #2d7ae8;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.3;
  color: #333333;
}

h1 {
  font-size: 32px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 18px;
}

h4 {
  font-size: 16px;
}

p {
  margin: 0 0 12px;
}

/* ==========================================================================
   layout
   ========================================================================== */

.site-header {
  background-color: #FFFFFF;
  border-bottom: 2px solid #FFD93D;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #FF6B6B;
  color: #FFFFFF;
  font-size: 20px;
  font-weight: 700;
  border-radius: 8px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  color: #333333;
  letter-spacing: 0.5px;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li a {
  display: block;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  color: #333333;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-list li a:hover {
  background-color: #FFF5F5;
  color: #FF6B6B;
}

.nav-list li a.is-current {
  background-color: #FF6B6B;
  color: #FFFFFF;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #333333;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-footer {
  background-color: #2B2B3A;
  color: #C8C8D0;
  margin-top: 60px;
}

.footer-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 20px 20px;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 40px;
}

.footer-brand .brand-name {
  color: #FFFFFF;
  display: block;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: #A0A0B0;
  margin-bottom: 0;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-group h4 {
  color: #FFFFFF;
  font-size: 15px;
  margin-bottom: 14px;
}

.footer-group ul li a {
  display: inline-block;
  padding: 4px 0;
  font-size: 14px;
  color: #A0A0B0;
  transition: color 0.2s ease;
}

.footer-group ul li a:hover {
  color: #FFD93D;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: #808090;
  margin-bottom: 0;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0 0;
  font-size: 14px;
  color: #888888;
}

.breadcrumb a {
  color: #4D96FF;
}

.breadcrumb a:hover {
  color: #2d7ae8;
}

.breadcrumb-sep {
  color: #BBBBBB;
}

.breadcrumb-current {
  color: #666666;
}

/* 页面标题区 */
.page-header {
  padding: 24px 0 28px;
}

.page-title {
  font-size: 32px;
  color: #333333;
  margin-bottom: 10px;
}

.page-description {
  font-size: 16px;
  color: #666666;
  line-height: 1.7;
  max-width: 780px;
  margin-bottom: 0;
}

/* 内页通用 */
.inner-main {
  padding-bottom: 20px;
}

/* ==========================================================================
   components
   ========================================================================== */

/* 按钮 */
.btn-primary,
.btn-secondary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 44px;
}

.btn-primary {
  background-color: #FF6B6B;
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: #f55353;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.btn-secondary {
  background-color: #FFD93D;
  color: #333333;
}

.btn-secondary:hover {
  background-color: #f0c92e;
  color: #333333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 217, 61, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: #4D96FF;
  border: 2px solid #4D96FF;
}

.btn-outline:hover {
  background-color: #4D96FF;
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* 区块标题 */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: 26px;
  color: #333333;
  position: relative;
  padding-left: 14px;
}

.section-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background-color: #FF6B6B;
  border-radius: 2px;
}

.section-head p {
  font-size: 15px;
  color: #666666;
  margin-bottom: 0;
}

/* 卡片通用 */
.topic-card,
.guide-card,
.category-card,
.analysis-card,
.analysis-item,
.side-card,
.aside-card,
.sidebar-card {
  background-color: #FFFFFF;
  border-radius: 8px;
  border: 1px solid #EEEEEE;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.topic-card:hover,
.guide-card:hover,
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   pages · 首页
   ========================================================================== */

.home-main {
  padding-top: 0;
}

/* 首屏 */
.hero-section {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 60px 0 56px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.hero-copy h1 {
  font-size: 40px;
  line-height: 1.25;
  color: #333333;
  margin-bottom: 16px;
}

.hero-copy p {
  font-size: 16px;
  color: #555555;
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-figure {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.hero-figure img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

/* 题材分类导航带 */
.category-nav-section {
  padding: 48px 0;
  border-top: 1px solid #EEEEEE;
  border-bottom: 1px solid #EEEEEE;
  background-color: #FFFFFF;
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.cat-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 44px;
}

.cat-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cat-love {
  background-color: #FFE8E8;
  color: #FF6B6B;
}

.cat-action {
  background-color: #FFF3D6;
  color: #E6A800;
}

.cat-work {
  background-color: #E4F5E6;
  color: #4CAF50;
}

.cat-life {
  background-color: #E6F0FF;
  color: #4D96FF;
}

.cat-all {
  background-color: #F0F0F5;
  color: #666666;
}

.cat-tag:hover {
  color: inherit;
  transform: translateY(-2px);
}

.cat-love:hover {
  background-color: #ffd4d4;
}

.cat-action:hover {
  background-color: #ffe8ad;
}

.cat-work:hover {
  background-color: #cde9d0;
}

.cat-life:hover {
  background-color: #cfe0ff;
}

.cat-all:hover {
  background-color: #e2e2ea;
}

/* 最近更新 */
.recent-updates-section {
  padding: 48px 0;
}

.update-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.update-item {
  display: flex;
  gap: 14px;
  background-color: #FFFFFF;
  border-radius: 8px;
  border: 1px solid #EEEEEE;
  padding: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.update-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.07);
}

.update-item img {
  width: 88px;
  height: 118px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.update-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.update-info h3 {
  font-size: 15px;
  color: #333333;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  background-color: #FF6B6B;
  color: #FFFFFF;
  border-radius: 20px;
}

.status {
  font-size: 13px;
  color: #888888;
}

/* 人气榜单 */
.ranking-section {
  padding: 48px 0;
  background-color: #FFFFFF;
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
  border-top: 1px solid #EEEEEE;
  border-bottom: 1px solid #EEEEEE;
}

.ranking-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.ranking-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: #F7F7F9;
  border-radius: 8px;
  padding: 16px;
  position: relative;
}

.rank-num {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: #FFD93D;
  color: #333333;
  font-size: 14px;
  font-weight: 700;
  border-radius: 6px;
  z-index: 1;
}

.ranking-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
}

.rank-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rank-detail h3 {
  font-size: 15px;
  color: #333333;
}

.rank-detail p {
  font-size: 13px;
  color: #888888;
  line-height: 1.5;
  margin-bottom: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.more-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #4D96FF;
}

.more-link:hover {
  color: #2d7ae8;
}

/* 阅读指南入口 */
.guide-entry-section {
  padding: 48px 0;
}

.guide-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.guide-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guide-card h3 {
  font-size: 20px;
  color: #333333;
}

.guide-card p {
  font-size: 14px;
  color: #666666;
  line-height: 1.7;
  margin-bottom: 8px;
}

.guide-card a {
  font-size: 14px;
  font-weight: 600;
  color: #4D96FF;
  align-self: flex-start;
}

.guide-card a:hover {
  color: #2d7ae8;
}

/* 专题预告 */
.featured-topics-section {
  padding: 48px 0;
}

.topic-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.topic-card {
  display: flex;
  gap: 20px;
  padding: 20px;
  overflow: hidden;
}

.topic-card img {
  width: 140px;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.topic-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.topic-info h3 {
  font-size: 20px;
  color: #333333;
}

.topic-info p {
  font-size: 14px;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.topic-info a {
  font-size: 14px;
  font-weight: 600;
  color: #4D96FF;
  align-self: flex-start;
}

.topic-info a:hover {
  color: #2d7ae8;
}

/* ==========================================================================
   pages · 题材分类页
   ========================================================================== */

.category-index {
  padding: 8px 0 40px;
}

.category-index > h2,
.category-details > h2,
.topic-entry > h2,
.category-tips > h2 {
  font-size: 24px;
  color: #333333;
  margin-bottom: 8px;
  position: relative;
  padding-left: 14px;
}

.category-index > h2::before,
.category-details > h2::before,
.topic-entry > h2::before,
.category-tips > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background-color: #FF6B6B;
  border-radius: 2px;
}

.section-note {
  font-size: 15px;
  color: #666666;
  margin-bottom: 24px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.category-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.category-card-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.category-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.category-card-body h3 {
  font-size: 17px;
  color: #333333;
}

.category-card-body p {
  font-size: 13px;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 8px;
  flex: 1;
}

.category-link {
  font-size: 13px;
  font-weight: 600;
  color: #4D96FF;
}

.category-link:hover {
  color: #2d7ae8;
}

.category-details {
  padding: 24px 0 40px;
}

.details-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.detail-item {
  background-color: #FFFFFF;
  border-radius: 8px;
  border: 1px solid #EEEEEE;
  padding: 20px;
}

.detail-item h3 {
  font-size: 16px;
  color: #333333;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid #FFD93D;
}

.detail-item p {
  font-size: 13px;
  color: #666666;
  line-height: 1.7;
  margin-bottom: 0;
}

.topic-entry {
  padding: 24px 0 40px;
}

.topic-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.topic-entry-grid .topic-card {
  display: flex;
  gap: 16px;
  padding: 16px;
  align-items: center;
}

.topic-card-media img {
  width: 120px;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
}

.topic-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.topic-card-body h3 {
  font-size: 18px;
  color: #333333;
}

.topic-card-body p {
  font-size: 13px;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.topic-entry-grid .topic-card a {
  font-size: 13px;
  font-weight: 600;
  color: #4D96FF;
  align-self: flex-start;
}

.category-tips {
  padding: 24px 0 20px;
  background-color: #FFFFFF;
  border-radius: 8px;
  border: 1px solid #EEEEEE;
  padding: 28px;
  margin-bottom: 20px;
}

.category-tips p {
  font-size: 14px;
  color: #555555;
  line-height: 1.8;
  margin-bottom: 8px;
}

/* ==========================================================================
   pages · 阅读指南页
   ========================================================================== */

.guide-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
  padding-bottom: 40px;
}

.guide-content {
  min-width: 0;
}

.guide-section {
  background-color: #FFFFFF;
  border-radius: 8px;
  border: 1px solid #EEEEEE;
  padding: 28px;
  margin-bottom: 24px;
}

.guide-section h2 {
  font-size: 22px;
  color: #333333;
  margin-bottom: 14px;
  position: relative;
  padding-left: 14px;
}

.guide-section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background-color: #FF6B6B;
  border-radius: 2px;
}

.guide-section p {
  font-size: 15px;
  color: #555555;
  line-height: 1.8;
  margin-bottom: 12px;
}

.guide-section p a {
  font-weight: 600;
}

.guide-figure {
  margin: 20px 0;
  border-radius: 8px;
  overflow: hidden;
}

.guide-figure img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.guide-figure figcaption {
  font-size: 13px;
  color: #888888;
  text-align: center;
  padding: 10px 0 4px;
}

.tips-list {
  margin: 12px 0;
  padding: 0;
}

.tips-list li {
  position: relative;
  padding: 8px 0 8px 24px;
  font-size: 15px;
  color: #555555;
  line-height: 1.7;
}

.tips-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 16px;
  width: 8px;
  height: 8px;
  background-color: #6BCB77;
  border-radius: 50%;
}

.tips-list li strong {
  color: #333333;
  margin-right: 4px;
}

.related-links {
  background-color: #FFFFFF;
  border-radius: 8px;
  border: 1px solid #EEEEEE;
  padding: 24px 28px;
}

.related-links h2 {
  font-size: 20px;
  color: #333333;
  margin-bottom: 12px;
}

.related-links p {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 0;
}

.related-links p a {
  display: inline-block;
  padding: 6px 14px;
  background-color: #F0F0F5;
  color: #555555;
  font-size: 14px;
  border-radius: 20px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.related-links p a:hover {
  background-color: #FF6B6B;
  color: #FFFFFF;
}

.guide-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 88px;
}

.aside-card {
  padding: 20px;
}

.aside-card h3 {
  font-size: 16px;
  color: #333333;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #FFD93D;
}

.aside-nav li a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: #555555;
  border-bottom: 1px solid #F0F0F5;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.aside-nav li:last-child a {
  border-bottom: none;
}

.aside-nav li a:hover {
  color: #FF6B6B;
  padding-left: 6px;
}

/* ==========================================================================
   pages · 恋爱漫画推荐
   ========================================================================== */

.page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
  padding-bottom: 40px;
}

.main-content {
  min-width: 0;
}

.recommend-block,
.analysis-block,
.related-block {
  margin-bottom: 32px;
}

.recommend-block > h2,
.analysis-block > h2,
.related-block > h2 {
  font-size: 24px;
  color: #333333;
  margin-bottom: 8px;
  position: relative;
  padding-left: 14px;
}

.recommend-block > h2::before,
.analysis-block > h2::before,
.related-block > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background-color: #FF6B6B;
  border-radius: 2px;
}

.section-desc {
  font-size: 15px;
  color: #666666;
  margin-bottom: 24px;
}

.work-item {
  display: flex;
  gap: 20px;
  background-color: #FFFFFF;
  border-radius: 8px;
  border: 1px solid #EEEEEE;
  padding: 18px;
  margin-bottom: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.work-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.07);
}

.work-media img {
  width: 110px;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.work-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.work-info h3 {
  font-size: 18px;
  color: #333333;
}

.work-tags {
  font-size: 13px;
  color: #4D96FF;
  margin-bottom: 4px;
}

.work-tags .tag {
  display: inline-block;
  padding: 2px 10px;
  background-color: #E6F0FF;
  color: #4D96FF;
  border-radius: 16px;
  font-size: 12px;
  margin-right: 6px;
}

.work-desc {
  font-size: 14px;
  color: #555555;
  line-height: 1.7;
  margin-bottom: 4px;
}

.work-point {
  font-size: 13px;
  color: #888888;
  line-height: 1.6;
  margin-bottom: 0;
  padding: 8px 12px;
  background-color: #F7F7F9;
  border-radius: 6px;
  border-left: 3px solid #FFD93D;
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.analysis-card {
  padding: 20px;
}

.analysis-card h3 {
  font-size: 16px;
  color: #333333;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid #FFD93D;
}

.analysis-card p {
  font-size: 14px;
  color: #666666;
  line-height: 1.7;
  margin-bottom: 0;
}

.related-block {
  background-color: #FFFFFF;
  border-radius: 8px;
  border: 1px solid #EEEEEE;
  padding: 24px 28px;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.related-links a {
  display: inline-block;
  padding: 6px 14px;
  background-color: #F0F0F5;
  color: #555555;
  font-size: 14px;
  border-radius: 20px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.related-links a:hover {
  background-color: #FF6B6B;
  color: #FFFFFF;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 88px;
}

.sidebar-card {
  padding: 20px;
}

.sidebar-card h3 {
  font-size: 16px;
  color: #333333;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #FFD93D;
}

.sidebar-card ul li a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: #555555;
  border-bottom: 1px solid #F0F0F5;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.sidebar-card ul li:last-child a {
  border-bottom: none;
}

.sidebar-card ul li a:hover {
  color: #FF6B6B;
  padding-left: 6px;
}

/* ==========================================================================
   pages · 热血漫画推荐
   ========================================================================== */

.content-main {
  min-width: 0;
}

.recommend-section,
.analysis-section,
.related-section {
  margin-bottom: 32px;
}

.recommend-section > h2,
.analysis-section > h2,
.related-section > h2 {
  font-size: 24px;
  color: #333333;
  margin-bottom: 8px;
  position: relative;
  padding-left: 14px;
}

.recommend-section > h2::before,
.analysis-section > h2::before,
.related-section > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background-color: #FF6B6B;
  border-radius: 2px;
}

.work-card {
  display: flex;
  gap: 20px;
  background-color: #FFFFFF;
  border-radius: 8px;
  border: 1px solid #EEEEEE;
  padding: 18px;
  margin-bottom: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.work-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.07);
}

.work-cover img {
  width: 110px;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.work-card .work-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.work-card .work-info h3 {
  font-size: 18px;
  color: #333333;
}

.work-tags {
  font-size: 13px;
  color: #E6A800;
  margin-bottom: 4px;
}

.work-tags .tag {
  display: inline-block;
  padding: 2px 10px;
  background-color: #FFF3D6;
  color: #E6A800;
  border-radius: 16px;
  font-size: 12px;
  margin-right: 6px;
}

.work-desc {
  font-size: 14px;
  color: #555555;
  line-height: 1.7;
  margin-bottom: 4px;
}

.work-point {
  font-size: 13px;
  color: #888888;
  line-height: 1.6;
  margin-bottom: 0;
  padding: 8px 12px;
  background-color: #F7F7F9;
  border-radius: 6px;
  border-left: 3px solid #FF6B6B;
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.analysis-item {
  padding: 20px;
}

.analysis-item h3 {
  font-size: 16px;
  color: #333333;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid #FFD93D;
}

.analysis-item p {
  font-size: 14px;
  color: #666666;
  line-height: 1.7;
  margin-bottom: 0;
}

.related-section {
  background-color: #FFFFFF;
  border-radius: 8px;
  border: 1px solid #EEEEEE;
  padding: 24px 28px;
}

.related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.related-list li a {
  display: inline-block;
  padding: 6px 14px;
  background-color: #F0F0F5;
  color: #555555;
  font-size: 14px;
  border-radius: 20px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.related-list li a:hover {
  background-color: #FF6B6B;
  color: #FFFFFF;
}

.content-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 88px;
}

.side-card {
  padding: 20px;
}

.side-card h3 {
  font-size: 16px;
  color: #333333;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #FFD93D;
}

.side-links li a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: #555555;
  border-bottom: 1px solid #F0F0F5;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.side-links li:last-child a {
  border-bottom: none;
}

.side-links li a:hover {
  color: #FF6B6B;
  padding-left: 6px;
}

/* ==========================================================================
   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: 520px;
}

.error-code {
  font-size: 96px;
  font-weight: 700;
  color: #FF6B6B;
  line-height: 1;
  margin-bottom: 20px;
}

.error-content h1 {
  font-size: 28px;
  color: #333333;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 16px;
  color: #666666;
  line-height: 1.7;
  margin-bottom: 28px;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.error-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background-color: #FF6B6B;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  min-height: 44px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.error-btn:hover {
  background-color: #f55353;
  color: #FFFFFF;
  transform: translateY(-2px);
}

.error-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background-color: transparent;
  color: #4D96FF;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  border: 2px solid #4D96FF;
  min-height: 44px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.error-link:hover {
  background-color: #4D96FF;
  color: #FFFFFF;
}

/* ==========================================================================
   responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 48px 0;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .hero-figure img {
    height: 320px;
  }

  .ranking-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .category-grid,
  .details-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .update-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .guide-layout,
  .page-layout {
    grid-template-columns: 1fr 260px;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .header-shell {
    height: 60px;
    padding: 0 16px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: #FFFFFF;
    border-bottom: 2px solid #FFD93D;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    display: block;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px;
    gap: 2px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li a {
    padding: 12px 16px;
    font-size: 16px;
    border-radius: 6px;
  }

  .site-main {
    padding: 0 16px;
  }

  .hero-section {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 36px 0 32px;
  }

  .hero-copy {
    align-items: center;
    text-align: center;
  }

  .hero-copy h1 {
    font-size: 30px;
  }

  .hero-copy p {
    font-size: 15px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-figure img {
    height: 260px;
  }

  .category-nav-section,
  .ranking-section {
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .category-tags {
    gap: 10px;
  }

  .cat-tag {
    padding: 10px 18px;
    font-size: 14px;
  }

  .update-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .ranking-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .ranking-item img {
    height: 140px;
  }

  .guide-cards,
  .topic-cards,
  .topic-entry-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .topic-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .topic-card img {
    width: 100%;
    height: 200px;
  }

  .guide-layout,
  .page-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .guide-aside,
  .sidebar,
  .content-side {
    position: static;
    order: 2;
    margin-top: 24px;
  }

  .guide-content,
  .main-content,
  .content-main {
    order: 1;
  }

  .category-grid,
  .details-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .category-card {
    flex-direction: row;
    align-items: center;
  }

  .category-card-media {
    width: 120px;
    flex-shrink: 0;
  }

  .category-card-media img {
    height: 150px;
    border-radius: 8px 0 0 8px;
  }

  .analysis-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .work-item,
  .work-card {
    flex-direction: column;
    gap: 12px;
  }

  .work-media img,
  .work-cover img {
    width: 100%;
    height: 200px;
  }

  .page-header {
    padding: 16px 0 20px;
  }

  .page-title {
    font-size: 26px;
  }

  .footer-shell {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 16px 16px;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .error-code {
    font-size: 72px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary,
  .hero-actions .btn-outline {
    width: 100%;
  }

  .ranking-list {
    grid-template-columns: 1fr;
  }

  .ranking-item {
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }

  .ranking-item img {
    width: 80px;
    height: 110px;
    flex-shrink: 0;
  }

  .rank-num {
    position: static;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }

  .rank-detail {
    flex: 1;
  }

  .category-card {
    flex-direction: column;
    align-items: stretch;
  }

  .category-card-media {
    width: 100%;
  }

  .category-card-media img {
    border-radius: 8px 8px 0 0;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .guide-section {
    padding: 20px;
  }

  .related-links p {
    flex-direction: column;
  }

  .related-links p a {
    text-align: center;
  }
}
