/* =========================================================
   178漫画 · 全站样式表
   设计方向：儿童教育风 · 高对比友好色 · 圆润图形
   ========================================================= */

/* =========================================================
   Base
   ========================================================= */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #2D3436;
  background-color: #F7FFF7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #FF6B6B;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #e05555;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
  color: #2D3436;
}

p {
  margin: 0;
}

figure {
  margin: 0;
}

/* =========================================================
   Layout · 全站骨架
   ========================================================= */

.site-header {
  background-color: #ffffff;
  border-bottom: 3px solid #FFD93D;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}

.brand-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  flex-shrink: 0;
}

.brand-name {
  font-size: 26px;
  font-weight: 800;
  color: #FF6B6B;
  letter-spacing: 0.02em;
}

.brand-slogan {
  font-size: 12px;
  color: #7a8b8b;
  margin-top: 2px;
}

.site-nav {
  flex-shrink: 0;
}

.nav-list {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-list a {
  display: block;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 500;
  color: #2D3436;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-list a:hover {
  background-color: #F7FFF7;
  color: #FF6B6B;
}

.nav-list a.is-current {
  background-color: #FF6B6B;
  color: #ffffff;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.nav-toggle:hover {
  background-color: #F7FFF7;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 3px;
  background-color: #2D3436;
  border-radius: 3px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #7a8b8b;
  padding: 20px 0 0;
}

.breadcrumb a {
  color: #7a8b8b;
}

.breadcrumb a:hover {
  color: #FF6B6B;
}

.breadcrumb-sep {
  color: #b8c4c4;
}

.breadcrumb-current {
  color: #2D3436;
  font-weight: 500;
}

/* 页面标题区 */
.page-header {
  padding: 28px 0 24px;
}

.page-title {
  font-size: 32px;
  font-weight: 800;
  color: #2D3436;
  margin-bottom: 8px;
}

.page-description {
  font-size: 16px;
  color: #5d6d6d;
  max-width: 720px;
}

/* 内页布局 */
.layout-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.inner-main {
  min-width: 0;
}

/* 侧栏通用 */
.aside-links a,
.side-links a,
.sidebar-links a {
  display: block;
  padding: 8px 0;
  color: #5d6d6d;
  font-size: 15px;
  border-bottom: 1px dashed #e0ecec;
}

.aside-links a:hover,
.side-links a:hover,
.sidebar-links a:hover {
  color: #FF6B6B;
  padding-left: 4px;
}

/* 页脚 */
.site-footer {
  background-color: #2D3436;
  color: #c5d0d0;
  margin-top: 60px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px 24px;
}

.footer-brand {
  margin-bottom: 32px;
}

.footer-brand h2 {
  font-size: 24px;
  color: #ffffff;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 14px;
  color: #9aabab;
  max-width: 420px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.footer-col h3 {
  font-size: 15px;
  color: #FFD93D;
  margin-bottom: 12px;
  font-weight: 600;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: #c5d0d0;
  font-size: 14px;
}

.footer-col a:hover {
  color: #FFD93D;
}

.footer-bottom {
  border-top: 1px solid #3d4a4a;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 13px;
  color: #8fa0a0;
}

/* =========================================================
   Components · 通用组件
   ========================================================= */

/* 区块标题 */
.section-title {
  font-size: 26px;
  font-weight: 800;
  color: #2D3436;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 15px;
  color: #5d6d6d;
  margin-bottom: 20px;
}

.section-intro {
  font-size: 15px;
  color: #5d6d6d;
  margin-bottom: 24px;
}

.section-more {
  margin-top: 24px;
  text-align: center;
}

.section-more a {
  display: inline-block;
  padding: 8px 24px;
  border: 2px solid #FF6B6B;
  border-radius: 24px;
  font-weight: 600;
  font-size: 15px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.section-more a:hover {
  background-color: #FF6B6B;
  color: #ffffff;
}

/* 分类标签 */
.category-tag {
  display: inline-block;
  padding: 4px 14px;
  background-color: #4ECDC4;
  color: #ffffff;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

/* 更新条目 */
.update-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.update-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: 0 2px 8px rgba(45, 52, 54, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.update-item:hover {
  box-shadow: 0 4px 16px rgba(45, 52, 54, 0.1);
  transform: translateY(-2px);
}

.update-item img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.update-info {
  min-width: 0;
}

.update-info h3,
.update-info h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.update-info p {
  font-size: 14px;
  color: #7a8b8b;
}

.update-tag {
  display: inline-block;
  padding: 2px 10px;
  background-color: #F7FFF7;
  border: 1px solid #4ECDC4;
  color: #2a9d95;
  border-radius: 12px;
  font-size: 12px;
  margin-right: 8px;
}

.update-status {
  font-size: 13px;
  color: #7a8b8b;
}

.update-meta {
  font-size: 13px;
  color: #9aabab;
}

/* 榜单条目 */
.rank-number {
  font-size: 20px;
  font-weight: 800;
  color: #FFD93D;
  min-width: 36px;
  text-align: center;
  line-height: 1;
}

.rank-info h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}

.rank-reason {
  font-size: 14px;
  color: #7a8b8b;
}

/* =========================================================
   Components · 首页
   ========================================================= */

/* Hero */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px 0 40px;
}

.hero-content h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.3;
}

.hero-lead {
  font-size: 17px;
  color: #5d6d6d;
  margin-bottom: 28px;
  max-width: 460px;
}

.hero-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: 0 2px 8px rgba(45, 52, 54, 0.06);
  min-width: 80px;
}

.step-number {
  width: 28px;
  height: 28px;
  background-color: #FF6B6B;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.step-text {
  font-size: 13px;
  font-weight: 600;
  color: #2D3436;
  white-space: nowrap;
}

.step-arrow {
  font-size: 20px;
  color: #FFD93D;
  font-weight: 700;
  flex-shrink: 0;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-primary {
  background-color: #FF6B6B;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #e05555;
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: #ffffff;
  color: #FF6B6B;
  border: 2px solid #FF6B6B;
}

.btn-secondary:hover {
  background-color: #F7FFF7;
  color: #e05555;
  transform: translateY(-2px);
}

.hero-figure {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(45, 52, 54, 0.12);
}

.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* 分类导航带 */
.category-nav-section {
  padding: 40px 0;
}

.category-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.category-tag-list .category-tag {
  padding: 10px 22px;
  font-size: 15px;
  border-radius: 24px;
  background-color: #ffffff;
  color: #2D3436;
  border: 2px solid #e0ecec;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.category-tag-list .category-tag:hover {
  border-color: #FF6B6B;
  background-color: #FF6B6B;
  color: #ffffff;
}

/* 最近更新 */
.recent-updates-section {
  padding: 40px 0;
}

.update-group {
  margin-bottom: 32px;
}

.update-group h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 4px solid #FFD93D;
}

/* 榜单预览 */
.rankings-preview-section {
  padding: 40px 0;
}

.rank-preview-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rank-preview-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: 0 2px 8px rgba(45, 52, 54, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.rank-preview-item:hover {
  box-shadow: 0 4px 16px rgba(45, 52, 54, 0.1);
  transform: translateY(-2px);
}

.rank-preview-item .rank-number {
  font-size: 24px;
}

.rank-preview-item .rank-info {
  flex: 1;
}

.rank-preview-item .rank-info h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}

/* 指南入口 */
.guide-entry-section {
  padding: 40px 0;
}

.guide-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.guide-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(45, 52, 54, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.guide-card:hover {
  box-shadow: 0 4px 16px rgba(45, 52, 54, 0.1);
  transform: translateY(-2px);
}

.guide-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.guide-card p {
  font-size: 15px;
  color: #5d6d6d;
  margin-bottom: 16px;
}

.card-link {
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-link:hover {
  color: #e05555;
}

/* 版权说明 */
.copyright-note-section {
  padding: 32px 0;
  border-top: 1px solid #e0ecec;
}

.copyright-note-section h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.copyright-note-section p {
  font-size: 14px;
  color: #7a8b8b;
  margin-bottom: 8px;
  max-width: 780px;
}

/* =========================================================
   Pages · 分类页
   ========================================================= */

/* 侧栏在左的布局 */
.sidebar-left {
  grid-template-columns: 260px 1fr;
  align-items: start;
}

.sidebar-left .page-aside {
  grid-column: 1;
  grid-row: 1;
}

.sidebar-left .inner-main {
  grid-column: 2;
  grid-row: 1;
}

.page-aside {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(45, 52, 54, 0.06);
}

.aside-block {
  margin-bottom: 24px;
}

.aside-block:last-child {
  margin-bottom: 0;
}

.aside-block h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #FFD93D;
}

/* 分类区块 */
.category-section {
  margin-bottom: 48px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.section-heading h2 {
  font-size: 24px;
  font-weight: 800;
}

.category-desc {
  font-size: 15px;
  color: #5d6d6d;
  margin-bottom: 20px;
  max-width: 720px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.category-card {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(45, 52, 54, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.category-card:hover {
  box-shadow: 0 4px 16px rgba(45, 52, 54, 0.1);
  transform: translateY(-2px);
}

.card-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.card-body {
  padding: 16px 20px 20px;
}

.card-body h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}

.card-body p {
  font-size: 14px;
  color: #7a8b8b;
}

/* 代表作品 */
.featured-works {
  margin-bottom: 48px;
}

.works-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.work-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: 0 2px 8px rgba(45, 52, 54, 0.06);
}

.work-info h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.work-info p {
  font-size: 14px;
  color: #7a8b8b;
}

/* 相关链接 */
.related-links {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  flex-wrap: wrap;
}

.related-links-label {
  font-weight: 600;
  font-size: 15px;
  color: #2D3436;
}

.related-links-item {
  font-size: 15px;
  color: #FF6B6B;
}

.related-links-item:hover {
  color: #e05555;
}

/* =========================================================
   Pages · 指南页
   ========================================================= */

.page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.guide-section {
  margin-bottom: 40px;
}

.guide-section .section-title {
  font-size: 24px;
  margin-bottom: 16px;
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.guide-step {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px 24px;
  box-shadow: 0 2px 8px rgba(45, 52, 54, 0.06);
  position: relative;
}

.guide-step .step-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #FF6B6B;
}

.guide-step p {
  font-size: 15px;
  color: #5d6d6d;
}

.guide-figure {
  margin: 32px 0;
  border-radius: 8px;
  overflow: hidden;
}

.guide-figure img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.guide-figure figcaption {
  font-size: 13px;
  color: #9aabab;
  padding: 8px 0;
  text-align: center;
}

.guide-aside {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(45, 52, 54, 0.06);
}

.aside-card {
  margin-bottom: 24px;
}

.aside-card:last-child {
  margin-bottom: 0;
}

.aside-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #FFD93D;
}

/* 追更技巧 */
.tips-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tip-item {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: 0 2px 8px rgba(45, 52, 54, 0.06);
}

.tip-title {
  font-size: 16px;
  font-weight: 600;
  color: #4ECDC4;
  margin-bottom: 4px;
}

/* =========================================================
   Pages · 更新列表页
   ========================================================= */

.main-content {
  min-width: 0;
}

.update-group .section-title {
  font-size: 20px;
  margin-bottom: 8px;
}

.sidebar {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(45, 52, 54, 0.06);
}

.sidebar-block {
  margin-bottom: 24px;
}

.sidebar-block:last-child {
  margin-bottom: 0;
}

.sidebar-block h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #FFD93D;
}

.sidebar-links a,
.side-links a {
  display: block;
  padding: 8px 0;
  color: #5d6d6d;
  font-size: 15px;
  border-bottom: 1px dashed #e0ecec;
}

.sidebar-links a:hover,
.side-links a:hover {
  color: #FF6B6B;
  padding-left: 4px;
}

/* 更新提示 */
.update-tips {
  margin-top: 40px;
  padding: 24px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(45, 52, 54, 0.06);
}

.update-tips .section-title {
  font-size: 20px;
  margin-bottom: 12px;
}

.update-tips p {
  font-size: 15px;
  color: #5d6d6d;
  line-height: 1.8;
}

.update-tips a {
  font-weight: 600;
}

/* =========================================================
   Pages · 榜单页
   ========================================================= */

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: 0 2px 8px rgba(45, 52, 54, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  box-shadow: 0 4px 16px rgba(45, 52, 54, 0.1);
  transform: translateY(-2px);
}

.rank-item .rank-number {
  font-size: 26px;
  min-width: 40px;
}

.rank-media {
  flex-shrink: 0;
}

.rank-media img {
  width: 64px;
  height: 84px;
  object-fit: cover;
  border-radius: 6px;
}

.rank-item .rank-info {
  flex: 1;
  min-width: 0;
}

.rank-item .rank-info h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}

.rank-item .rank-reason {
  font-size: 14px;
  color: #7a8b8b;
}

.rank-tags {
  margin-top: 6px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.rank-tags .category-tag {
  font-size: 12px;
  padding: 2px 10px;
}

/* 推荐区 */
.recommendation-section {
  margin-top: 48px;
}

.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.recommendation-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: 0 2px 8px rgba(45, 52, 54, 0.06);
}

.recommendation-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.recommendation-card p {
  font-size: 13px;
  color: #7a8b8b;
}

.side-card {
  margin-bottom: 24px;
}

.side-card:last-child {
  margin-bottom: 0;
}

.side-card h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #FFD93D;
}

/* =========================================================
   Pages · 专题页
   ========================================================= */

.topic-section {
  margin-bottom: 56px;
}

.topic-heading {
  margin-bottom: 20px;
}

.topic-heading h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

.topic-heading p {
  font-size: 15px;
  color: #5d6d6d;
  max-width: 720px;
}

.topic-content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 28px;
}

.topic-figure {
  border-radius: 8px;
  overflow: hidden;
}

.topic-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.topic-figure figcaption {
  font-size: 13px;
  color: #9aabab;
  padding: 8px 0;
  text-align: center;
}

.topic-text h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #FF6B6B;
}

.topic-text p {
  font-size: 15px;
  color: #5d6d6d;
  margin-bottom: 12px;
  line-height: 1.8;
}

.topic-works {
  margin-top: 24px;
}

.topic-works > h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 4px solid #FFD93D;
}

.work-card-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.work-card {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(45, 52, 54, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.work-card:hover {
  box-shadow: 0 4px 16px rgba(45, 52, 54, 0.1);
  transform: translateY(-2px);
}

.work-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.work-card-body {
  padding: 12px 16px 16px;
}

.work-card-body h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.work-card-body p {
  font-size: 13px;
  color: #7a8b8b;
}

.topic-summary {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(45, 52, 54, 0.06);
}

.topic-summary h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
}

.topic-summary p {
  font-size: 15px;
  color: #5d6d6d;
  margin-bottom: 8px;
  line-height: 1.8;
}

.topic-sidebar {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(45, 52, 54, 0.06);
}

.sidebar-card {
  margin-bottom: 24px;
}

.sidebar-card:last-child {
  margin-bottom: 0;
}

.sidebar-card h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #FFD93D;
}

/* =========================================================
   Pages · 404
   ========================================================= */

.error-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
  display: flex;
  justify-content: center;
}

.error-content {
  text-align: center;
  max-width: 480px;
}

.error-code {
  font-size: 72px;
  font-weight: 800;
  color: #FF6B6B;
  line-height: 1;
  margin-bottom: 16px;
}

.error-content h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 16px;
  color: #5d6d6d;
  margin-bottom: 8px;
}

.error-tip {
  font-size: 14px;
  color: #9aabab;
  margin-bottom: 24px;
}

.error-back {
  display: inline-block;
  padding: 12px 32px;
  background-color: #FF6B6B;
  color: #ffffff;
  border-radius: 24px;
  font-weight: 600;
  font-size: 16px;
  transition: background-color 0.2s ease;
}

.error-back:hover {
  background-color: #e05555;
  color: #ffffff;
}

/* =========================================================
   Responsive · 响应式
   ========================================================= */

/* 桌面端默认：主内容 + 右侧栏 */
.page-layout {
  grid-template-columns: 1fr 300px;
  align-items: start;
}

.page-layout .main-content,
.page-layout .inner-main {
  grid-column: 1;
  grid-row: 1;
}

.page-layout .sidebar,
.page-layout .guide-aside,
.page-layout .topic-sidebar {
  grid-column: 2;
  grid-row: 1;
}

/* 桌面端侧栏在左 */
.sidebar-left {
  grid-template-columns: 260px 1fr;
}

.sidebar-left .page-aside {
  grid-column: 1;
  grid-row: 1;
}

.sidebar-left .inner-main {
  grid-column: 2;
  grid-row: 1;
}

/* 平板 */
@media (max-width: 1024px) {
  .hero-section {
    gap: 24px;
  }

  .hero-content h1 {
    font-size: 30px;
  }

  .topic-content-block {
    grid-template-columns: 1fr;
  }

  .work-card-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 手机 */
@media (max-width: 768px) {
  .header-inner {
    min-height: 60px;
    padding: 0 16px;
  }

  .brand-name {
    font-size: 22px;
  }

  .brand-slogan {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-bottom: 3px solid #FFD93D;
    box-shadow: 0 4px 16px rgba(45, 52, 54, 0.1);
    z-index: 99;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    padding: 12px 16px;
    gap: 4px;
    align-items: stretch;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    padding: 12px 16px;
    border-radius: 8px;
  }

  /* 首页 */
  .hero-section {
    grid-template-columns: 1fr;
    padding: 32px 0 24px;
  }

  .hero-content h1 {
    font-size: 26px;
  }

  .hero-steps {
    gap: 6px;
  }

  .step-item {
    padding: 10px 12px;
    min-width: 64px;
  }

  .step-text {
    font-size: 12px;
  }

  .step-arrow {
    font-size: 16px;
  }

  .hero-cta {
    gap: 12px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 10px 20px;
    font-size: 15px;
  }

  .category-nav-section,
  .recent-updates-section,
  .rankings-preview-section,
  .guide-entry-section,
  .copyright-note-section {
    padding: 24px 0;
  }

  .guide-entry-grid {
    grid-template-columns: 1fr;
  }

  .category-tag-list {
    gap: 8px;
  }

  .category-tag-list .category-tag {
    padding: 8px 16px;
    font-size: 14px;
  }

  /* 内页 */
  .layout-shell,
  .page-layout {
    grid-template-columns: 1fr !important;
    padding: 0 16px;
  }

  .sidebar-left .page-aside,
  .sidebar-left .inner-main,
  .page-layout .main-content,
  .page-layout .inner-main,
  .page-layout .sidebar,
  .page-layout .guide-aside,
  .page-layout .topic-sidebar {
    grid-column: 1;
    grid-row: auto;
  }

  .page-aside,
  .sidebar,
  .guide-aside,
  .topic-sidebar {
    order: 2;
    margin-top: 24px;
  }

  .page-header {
    padding: 20px 0 16px;
  }

  .page-title {
    font-size: 24px;
  }

  .breadcrumb {
    padding-top: 16px;
    font-size: 13px;
  }

  /* 分类页 */
  .category-grid {
    grid-template-columns: 1fr;
  }

  /* 榜单页 */
  .recommendation-grid {
    grid-template-columns: 1fr;
  }

  .rank-item {
    padding: 12px 16px;
    gap: 12px;
  }

  .rank-item .rank-number {
    font-size: 22px;
    min-width: 32px;
  }

  .rank-media img {
    width: 52px;
    height: 68px;
  }

  /* 专题页 */
  .topic-heading h2 {
    font-size: 24px;
  }

  .work-card-list {
    grid-template-columns: 1fr;
  }

  .topic-summary {
    padding: 20px;
  }

  /* 更新页 */
  .update-item {
    padding: 10px 12px;
    gap: 12px;
  }

  .update-item img {
    width: 56px;
    height: 76px;
  }

  /* 页脚 */
  .footer-inner {
    padding: 32px 16px 20px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 4px;
  }

  /* 404 */
  .error-main {
    padding: 48px 16px;
  }

  .error-code {
    font-size: 56px;
  }
}

/* 小屏手机 */
@media (max-width: 390px) {
  .header-inner {
    padding: 0 12px;
  }

  .brand-name {
    font-size: 20px;
  }

  .hero-content h1 {
    font-size: 22px;
  }

  .hero-steps {
    gap: 4px;
  }

  .step-item {
    padding: 8px 10px;
    min-width: 56px;
  }

  .step-text {
    font-size: 11px;
  }

  .step-arrow {
    font-size: 14px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 10px 16px;
    font-size: 14px;
  }

  .update-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .update-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .rank-item {
    flex-wrap: wrap;
  }

  .rank-media {
    order: 2;
  }

  .rank-item .rank-info {
    order: 3;
    flex-basis: calc(100% - 60px);
  }
}
