/* ==========================================================================
   base — 全局基础样式
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #333333;
  background-color: #f5f5f5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: #333333;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #e63946;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.4;
  color: #333333;
}

h1 {
  font-size: 32px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 18px;
}

p {
  color: #333333;
}

/* ==========================================================================
   layout — 全站骨架布局
   ========================================================================== */

.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  color: #e63946;
  letter-spacing: 1px;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: block;
  padding: 8px 0;
  font-size: 16px;
  font-weight: 500;
  color: #333333;
  border-bottom: 2px solid transparent;
  line-height: 1.5;
}

.nav-list a:hover {
  color: #e63946;
  border-bottom-color: #e63946;
}

.nav-list a.is-current {
  color: #e63946;
  border-bottom-color: #e63946;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 4px;
}

.nav-toggle:hover {
  background-color: #f5f5f5;
}

.nav-toggle-line {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #333333;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.site-footer {
  background-color: #333333;
  color: #f5f5f5;
  margin-top: 64px;
  flex-shrink: 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 24px;
  display: flex;
  justify-content: space-between;
  gap: 48px;
}

.footer-brand {
  max-width: 320px;
}

.footer-slogan {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 14px;
  color: #aaaaaa;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-col-title {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  font-size: 14px;
  color: #aaaaaa;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #444444;
  padding: 20px 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: #888888;
  max-width: 1200px;
  margin: 0 auto;
}

/* ==========================================================================
   components — 通用组件
   ========================================================================== */

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #888888;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: #888888;
}

.breadcrumb a:hover {
  color: #e63946;
}

.breadcrumb-sep {
  color: #bbbbbb;
}

.breadcrumb-current {
  color: #333333;
  font-weight: 500;
}

/* 页面标题区 */
.page-header {
  margin-bottom: 32px;
}

.page-title {
  font-size: 32px;
  margin-bottom: 8px;
}

.page-description {
  font-size: 16px;
  color: #666666;
  line-height: 1.7;
  max-width: 720px;
}

/* 区块标题 */
.section-title {
  font-size: 24px;
  margin-bottom: 12px;
}

.section-desc,
.section-lead,
.section-intro {
  font-size: 16px;
  color: #666666;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 720px;
}

.section-note {
  font-size: 14px;
  color: #888888;
  background-color: #fafafa;
  border-left: 3px solid #e63946;
  padding: 12px 16px;
  margin-top: 24px;
  line-height: 1.6;
}

/* 卡片基础 */
.comic-card,
.subject-card,
.rank-item,
.guide-card,
.representative-item,
.setting-card,
.work-item {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comic-card:hover,
.subject-card:hover,
.rank-item:hover,
.guide-card:hover,
.representative-item:hover,
.setting-card:hover,
.work-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* 图片容器 */
.hero-figure,
.subject-card-media,
.representative-media,
.work-cover,
.guide-media,
.card-cover,
.update-thumb {
  overflow: hidden;
  background-color: #e8e8e8;
}

.hero-figure img,
.subject-card-media img,
.representative-media img,
.work-cover img,
.guide-media img,
.card-cover,
.update-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   pages — 首页
   ========================================================================== */

.home-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* hero */
.hero-section {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 56px 0 48px;
}

.hero-copy {
  flex: 1;
  max-width: 560px;
}

.hero-title {
  font-size: 34px;
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 17px;
  color: #555555;
  line-height: 1.8;
  margin-bottom: 24px;
}

.hero-cta {
  display: inline-block;
  background-color: #e63946;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 32px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.hero-cta:hover {
  background-color: #c92a35;
  color: #ffffff;
}

.hero-figure {
  flex: 1;
  border-radius: 8px;
  max-width: 520px;
}

.hero-figure img {
  aspect-ratio: 4 / 3;
  width: 100%;
  height: auto;
}

/* 今日推荐 */
.section-today {
  padding: 48px 0;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.comic-card {
  padding: 0 0 20px;
}

.comic-card .card-cover {
  aspect-ratio: 3 / 4;
  width: 100%;
  height: auto;
}

.card-title {
  font-size: 18px;
  margin: 16px 20px 6px;
}

.card-meta {
  font-size: 13px;
  color: #888888;
  margin: 0 20px 8px;
}

.card-reason {
  font-size: 14px;
  color: #555555;
  line-height: 1.6;
  margin: 0 20px;
}

/* 题材分类 */
.section-categories {
  padding: 48px 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.tag-item {
  display: inline-block;
  background-color: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 6px;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 500;
  color: #333333;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    color 0.2s ease;
}

.tag-item:hover {
  background-color: #e63946;
  border-color: #e63946;
  color: #ffffff;
}

/* 最近更新 */
.section-updates {
  padding: 48px 0;
}

.update-list {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 8px 24px;
}

.update-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}

.update-item:last-child {
  border-bottom: none;
}

.update-thumb {
  width: 80px;
  height: 60px;
  border-radius: 4px;
  flex-shrink: 0;
}

.update-info {
  flex: 1;
}

.update-title {
  font-size: 16px;
  margin-bottom: 4px;
}

.update-date {
  font-size: 13px;
  color: #888888;
}

.update-status {
  font-size: 13px;
  color: #e63946;
  background-color: #fdf0f0;
  padding: 4px 12px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* 人气榜单 */
.section-ranking {
  padding: 48px 0;
}

.ranking-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.rank-item {
  display: flex;
  gap: 16px;
  padding: 20px;
}

.rank-number {
  font-size: 28px;
  font-weight: 700;
  color: #e63946;
  line-height: 1.2;
  flex-shrink: 0;
}

.rank-content {
  flex: 1;
}

.rank-title {
  font-size: 17px;
  margin-bottom: 6px;
}

.rank-reason {
  font-size: 14px;
  color: #666666;
  line-height: 1.6;
}

/* 阅读指南入口 */
.section-guide {
  padding: 48px 0 64px;
}

.guide-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.guide-card {
  display: block;
  padding: 28px 32px;
  background-color: #ffffff;
}

.guide-card-title {
  font-size: 18px;
  margin-bottom: 8px;
  color: #333333;
}

.guide-card-text {
  font-size: 14px;
  color: #666666;
  line-height: 1.6;
}

/* ==========================================================================
   pages — 内页通用
   ========================================================================== */

.site-inner {
  flex: 1 0 auto;
}

.inner-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 0;
}

/* ==========================================================================
   pages — 题材分类页
   ========================================================================== */

.page-subject-classification .inner-main {
  padding-bottom: 64px;
}

/* 分类页侧栏布局 */
.page-subject-classification .sidebar-left {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}

.category-sidebar {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 24px;
  position: sticky;
  top: 84px;
}

.sidebar-title {
  font-size: 18px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.category-index-list li {
  margin-bottom: 4px;
}

.category-index-list a {
  display: block;
  padding: 8px 12px;
  font-size: 15px;
  color: #555555;
  border-radius: 4px;
}

.category-index-list a:hover {
  background-color: #f5f5f5;
  color: #e63946;
}

/* 题材网格 */
.subject-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.subject-card-media {
  aspect-ratio: 16 / 10;
  width: 100%;
  height: auto;
}

.subject-card {
  padding-bottom: 20px;
}

.subject-card-title {
  font-size: 18px;
  margin: 16px 20px 6px;
}

.subject-card-desc {
  font-size: 14px;
  color: #666666;
  line-height: 1.6;
  margin: 0 20px 12px;
}

.subject-card-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: #e63946;
  margin: 0 20px;
}

.subject-card-link:hover {
  text-decoration: underline;
}

/* 代表作品 */
.representative-section {
  margin-bottom: 48px;
}

.representative-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.representative-item {
  display: flex;
  gap: 20px;
  padding: 20px;
}

.representative-media {
  width: 140px;
  height: 100px;
  border-radius: 6px;
  flex-shrink: 0;
}

.representative-content {
  flex: 1;
}

.representative-title {
  font-size: 17px;
  margin-bottom: 4px;
}

.representative-tag {
  font-size: 13px;
  color: #e63946;
  margin-bottom: 8px;
}

.representative-desc {
  font-size: 14px;
  color: #666666;
  line-height: 1.6;
}

/* 分类小贴士 */
.tips-list {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 24px 32px;
}

.tips-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  font-size: 15px;
  color: #555555;
  line-height: 1.7;
}

.tips-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #e63946;
}

.tips-list li:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   pages — 阅读指南页
   ========================================================================== */

.page-reading-guide .inner-main {
  padding-bottom: 64px;
}

.guide-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

.guide-section {
  margin-bottom: 48px;
}

.guide-section .section-title {
  font-size: 22px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f0f0;
}

.steps-list {
  counter-reset: step;
}

.step-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
}

.step-item:last-child {
  border-bottom: none;
}

.step-number {
  width: 36px;
  height: 36px;
  background-color: #e63946;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

.step-content {
  flex: 1;
}

.step-title {
  font-size: 17px;
  margin-bottom: 6px;
}

.step-text {
  font-size: 15px;
  color: #555555;
  line-height: 1.7;
}

/* 阅读设置 */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.setting-card {
  padding: 24px;
}

.setting-name {
  font-size: 16px;
  margin-bottom: 8px;
}

.setting-desc {
  font-size: 14px;
  color: #666666;
  line-height: 1.6;
}

/* 指南配图 */
.guide-media {
  border-radius: 8px;
  margin-bottom: 24px;
}

.guide-media img {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
}

.guide-media figcaption {
  font-size: 13px;
  color: #888888;
  padding: 12px 16px;
  background-color: #ffffff;
  border-radius: 0 0 8px 8px;
}

/* 相关阅读 */
.guide-related,
.related-links {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 24px;
}

.related-title {
  font-size: 18px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.related-links li,
.guide-related li {
  margin-bottom: 12px;
}

.related-links a,
.guide-related a {
  font-size: 15px;
  color: #555555;
  line-height: 1.6;
  display: block;
}

.related-links a:hover,
.guide-related a:hover {
  color: #e63946;
}

/* ==========================================================================
   pages — 职场漫画页
   ========================================================================== */

.page-workplace-comics .inner-main {
  padding-bottom: 64px;
}

.page-workplace-comics .layout-shell {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}

.main-content {
  min-width: 0;
}

.works-section {
  margin-bottom: 48px;
}

.work-item {
  display: flex;
  gap: 24px;
  padding: 24px;
  margin-bottom: 24px;
}

.work-cover {
  width: 180px;
  height: 120px;
  border-radius: 6px;
  flex-shrink: 0;
}

.work-cover img {
  aspect-ratio: 3 / 2;
  width: 100%;
  height: auto;
}

.work-info {
  flex: 1;
  min-width: 0;
}

.work-title {
  font-size: 18px;
  margin-bottom: 8px;
}

.work-desc {
  font-size: 14px;
  color: #666666;
  line-height: 1.7;
}

.analysis-section p {
  font-size: 15px;
  color: #555555;
  line-height: 1.8;
  margin-bottom: 16px;
}

/* 正文内链接 */
.in-content-links {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 24px;
  margin-top: 48px;
}

.in-content-links li {
  margin-bottom: 12px;
}

.in-content-links a {
  font-size: 15px;
  color: #555555;
}

.in-content-links a:hover {
  color: #e63946;
}

/* 右侧推荐 */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 84px;
}

.sidebar-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 24px;
}

.sidebar-title {
  font-size: 17px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.sidebar-links li {
  margin-bottom: 12px;
}

.sidebar-links a {
  font-size: 14px;
  color: #555555;
  line-height: 1.6;
  display: block;
}

.sidebar-links a:hover {
  color: #e63946;
}

/* ==========================================================================
   pages — 生活漫画页
   ========================================================================== */

.page-life-comics .inner-main {
  padding-bottom: 64px;
}

.page-life-comics .page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

.page-life-comics .content-section {
  margin-bottom: 48px;
}

.works-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.work-item {
  display: flex;
  gap: 24px;
  padding: 24px;
}

.work-meta {
  font-size: 13px;
  color: #888888;
  margin-bottom: 8px;
}

.work-reason {
  font-size: 14px;
  color: #e63946;
  margin-top: 10px;
  line-height: 1.6;
}

.related-list li {
  margin-bottom: 12px;
}

.related-list a {
  font-size: 15px;
  color: #555555;
  line-height: 1.6;
  display: block;
}

.related-list a:hover {
  color: #e63946;
}

/* ==========================================================================
   pages — 404
   ========================================================================== */

.site-error {
  min-height: 100vh;
}

.error-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.error-section {
  text-align: center;
  max-width: 560px;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 56px 48px;
}

.error-code {
  font-size: 72px;
  font-weight: 700;
  color: #e63946;
  line-height: 1;
  margin-bottom: 16px;
}

.error-title {
  font-size: 28px;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 16px;
  color: #666666;
  margin-bottom: 32px;
}

.error-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 24px;
}

.btn-back-home,
.btn-browse {
  display: inline-block;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 6px;
}

.btn-back-home {
  background-color: #e63946;
  color: #ffffff;
}

.btn-back-home:hover {
  background-color: #c92a35;
  color: #ffffff;
}

.btn-browse {
  background-color: #f5f5f5;
  color: #333333;
  border: 1px solid #dddddd;
}

.btn-browse:hover {
  background-color: #e8e8e8;
  color: #333333;
}

.error-tip {
  font-size: 14px;
  color: #888888;
}

.error-tip a {
  color: #e63946;
}

.error-tip a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   responsive — 响应式
   ========================================================================== */

@media (max-width: 1024px) {
  .header-inner {
    padding: 0 20px;
  }

  .nav-list {
    gap: 20px;
  }

  .home-main,
  .inner-main {
    padding-left: 20px;
    padding-right: 20px;
  }

  .subject-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-subject-classification .sidebar-left {
    grid-template-columns: 200px 1fr;
    gap: 24px;
  }

  .guide-layout,
  .page-life-comics .page-layout {
    grid-template-columns: 1fr 260px;
    gap: 32px;
  }

  .page-workplace-comics .layout-shell {
    grid-template-columns: 1fr 240px;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 60px;
    padding: 0 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px 16px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list a {
    padding: 14px 8px;
    border-bottom: none;
    border-left: 3px solid transparent;
    font-size: 16px;
  }

  .nav-list a.is-current {
    border-left-color: #e63946;
  }

  /* 首页 */
  .hero-section {
    flex-direction: column;
    padding: 32px 0 24px;
    gap: 24px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-figure {
    width: 100%;
    max-width: 100%;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ranking-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .guide-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .update-item {
    flex-wrap: wrap;
    gap: 12px;
  }

  .update-thumb {
    width: 64px;
    height: 48px;
  }

  .update-status {
    margin-left: auto;
  }

  /* 内页布局降为单列 */
  .page-subject-classification .sidebar-left,
  .page-workplace-comics .layout-shell,
  .page-life-comics .page-layout,
  .guide-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .category-sidebar,
  .sidebar,
  .guide-related,
  .related-links {
    position: static;
  }

  .subject-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .representative-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .representative-item {
    flex-direction: column;
  }

  .representative-media {
    width: 100%;
    height: 160px;
  }

  .settings-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .work-item {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }

  .work-cover {
    width: 100%;
    height: auto;
  }

  .work-cover img {
    aspect-ratio: 16 / 9;
  }

  /* 页脚 */
  .footer-inner {
    flex-direction: column;
    gap: 32px;
    padding: 40px 20px 20px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 24px;
  }

  .footer-col {
    flex: 1 1 140px;
  }

  /* 404 */
  .error-section {
    padding: 40px 24px;
  }

  .error-code {
    font-size: 56px;
  }

  .error-actions {
    flex-direction: column;
    gap: 12px;
  }

  .btn-back-home,
  .btn-browse {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 20px;
  }

  .header-inner {
    padding: 0 12px;
  }

  .home-main,
  .inner-main {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .section-today,
  .section-categories,
  .section-updates,
  .section-ranking,
  .section-guide {
    padding: 32px 0;
  }

  .tag-list {
    gap: 10px;
  }

  .tag-item {
    padding: 8px 16px;
    font-size: 14px;
  }

  .update-list {
    padding: 8px 16px;
  }

  .update-title {
    font-size: 15px;
  }

  .rank-item {
    padding: 16px;
  }

  .rank-number {
    font-size: 24px;
  }

  .guide-card {
    padding: 20px;
  }

  .page-title {
    font-size: 26px;
  }

  .page-description {
    font-size: 15px;
  }

  .breadcrumb {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .step-item {
    gap: 14px;
    padding: 16px 0;
  }

  .step-number {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .step-title {
    font-size: 16px;
  }

  .step-text {
    font-size: 14px;
  }

  .subject-card-title {
    font-size: 17px;
  }

  .representative-item {
    padding: 16px;
  }

  .representative-media {
    height: 140px;
  }

  .footer-bottom {
    padding: 16px 12px;
  }

  .footer-bottom p {
    font-size: 12px;
  }
}
