/* ============================================================
   里番动漫在线看 - 全站样式表
   极简品牌风 · 白底黑字 · 红色强调
   ============================================================ */

/* ============================================================
   Base —— 基础样式
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -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.7;
  color: #1a1a1a;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: #1a1a1a;
  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.3;
  color: #1a1a1a;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 18px;
}

h4 {
  font-size: 16px;
}

p {
  margin-bottom: 1em;
}

/* ============================================================
   Layout —— 全站骨架
   ============================================================ */

/* ---- 页头 ---- */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.02em;
}

.logo-text::first-letter {
  color: #e63946;
}

/* ---- 主导航 ---- */
.site-nav {
  display: flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  align-items: center;
  gap: 6px;
}

.nav-toggle-icon {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #1a1a1a;
  position: relative;
  transition: background-color 0.2s ease;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background-color: #1a1a1a;
  transition: transform 0.2s ease;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.nav-toggle-text {
  font-size: 14px;
  color: #1a1a1a;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li a {
  display: block;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: #1a1a1a;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-list li a:hover {
  color: #e63946;
  background-color: #f4f4f4;
}

.nav-list li a.is-current {
  color: #e63946;
  font-weight: 700;
}

/* ---- 主内容容器 ---- */
.site-main {
  min-height: 60vh;
}

.home-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.inner-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

/* ---- 面包屑 ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: #888888;
  margin-bottom: 24px;
}

.breadcrumb a {
  color: #888888;
}

.breadcrumb a:hover {
  color: #e63946;
}

.breadcrumb-sep {
  color: #cccccc;
}

.breadcrumb-current {
  color: #1a1a1a;
  font-weight: 500;
}

/* ---- 页面标题区 ---- */
.page-header {
  margin-bottom: 40px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.page-description {
  font-size: 16px;
  color: #666666;
  max-width: 720px;
}

/* ---- 页脚 ---- */
.site-footer {
  background-color: #1a1a1a;
  color: #cccccc;
  margin-top: 64px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  color: #999999;
  max-width: 320px;
}

.footer-heading {
  font-size: 15px;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-links ul li,
.footer-theme ul li {
  margin-bottom: 8px;
}

.footer-links ul li a,
.footer-theme ul li a {
  font-size: 14px;
  color: #999999;
  transition: color 0.2s ease;
}

.footer-links ul li a:hover,
.footer-theme ul li a:hover {
  color: #ffffff;
}

.copyright {
  grid-column: 1 / -1;
  font-size: 13px;
  color: #777777;
  border-top: 1px solid #333333;
  padding-top: 24px;
  margin-top: 24px;
  margin-bottom: 0;
}

/* ============================================================
   Components —— 通用组件
   ============================================================ */

/* ---- 按钮 ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, transform 0.15s ease;
  min-height: 44px;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background-color: #e63946;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #c92a35;
  color: #ffffff;
}

.btn-secondary {
  background-color: transparent;
  border-color: #1a1a1a;
  color: #1a1a1a;
}

.btn-secondary:hover {
  border-color: #e63946;
  color: #e63946;
}

/* ---- 区块标题 ---- */
.section-title {
  font-size: 22px;
  margin-bottom: 8px;
}

.section-desc {
  font-size: 15px;
  color: #666666;
  margin-bottom: 24px;
}

.section-intro {
  font-size: 15px;
  color: #666666;
  margin-bottom: 24px;
}

/* ---- 更多链接 ---- */
.more-link {
  display: inline-block;
  margin-top: 24px;
  font-size: 15px;
  font-weight: 600;
  color: #e63946;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.more-link:hover {
  border-bottom-color: #e63946;
}

/* ---- 相关链接 ---- */
.related-links {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #f0f0f0;
}

.related-links-label {
  font-size: 14px;
  font-weight: 600;
  color: #888888;
  margin-right: 16px;
}

.related-links-item {
  display: inline-block;
  font-size: 14px;
  color: #666666;
  padding: 6px 12px;
  margin: 4px 8px 4px 0;
  background-color: #f4f4f4;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.related-links-item:hover {
  background-color: #e63946;
  color: #ffffff;
}

/* ---- 图片容器 ---- */
figure {
  margin: 0;
}

figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   Pages —— 首页
   ============================================================ */

/* ---- 首屏 Hero ---- */
.hero-section {
  padding: 64px 0 48px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}

.hero-tagline {
  font-size: 17px;
  color: #666666;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-figure {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-color: #f4f4f4;
}

.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- 题材分类导航 ---- */
.category-nav-section {
  padding: 48px 0;
  border-top: 1px solid #f0f0f0;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-item {
  display: inline-block;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 500;
  background-color: #f4f4f4;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.tag-item:hover {
  background-color: #e63946;
  color: #ffffff;
}

/* ---- 最近更新 ---- */
.update-section {
  padding: 48px 0;
  border-top: 1px solid #f0f0f0;
}

.update-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.update-item {
  background-color: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.update-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.update-link {
  display: block;
  height: 100%;
}

.update-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background-color: #f4f4f4;
}

.update-info {
  padding: 16px;
}

.update-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.update-date {
  font-size: 13px;
  color: #999999;
}

/* ---- 人气榜单预览 ---- */
.ranking-preview-section {
  padding: 48px 0;
  border-top: 1px solid #f0f0f0;
}

.ranking-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.ranking-item {
  background-color: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 16px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ranking-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.rank-number {
  display: inline-block;
  font-size: 24px;
  font-weight: 700;
  color: #e63946;
  margin-bottom: 12px;
}

.ranking-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 12px;
  background-color: #f4f4f4;
}

.rank-content {
  min-width: 0;
}

.rank-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-reason {
  font-size: 13px;
  color: #888888;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- 阅读指南入口 ---- */
.guide-entry-section {
  padding: 48px 0;
  border-top: 1px solid #f0f0f0;
}

.guide-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.guide-card {
  background-color: #f4f4f4;
  border-radius: 8px;
  padding: 32px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.guide-card:hover {
  background-color: #ececec;
  transform: translateY(-2px);
}

.guide-card-title {
  font-size: 18px;
  margin-bottom: 12px;
}

.guide-card p {
  font-size: 14px;
  color: #666666;
  margin-bottom: 20px;
}

.card-link {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: #e63946;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.card-link:hover {
  border-bottom-color: #e63946;
}

/* ============================================================
   Pages —— 内页通用
   ============================================================ */

/* ---- 分类页 ---- */
.category-section {
  margin-bottom: 48px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.category-card {
  background-color: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.category-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.category-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #f4f4f4;
}

.category-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-name {
  font-size: 18px;
  padding: 16px 16px 8px;
}

.category-desc {
  font-size: 14px;
  color: #666666;
  padding: 0 16px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.category-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #e63946;
  margin: 0 16px 16px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.category-link:hover {
  border-bottom-color: #e63946;
}

.category-note {
  background-color: #f4f4f4;
  border-radius: 8px;
  padding: 32px;
}

.category-note p {
  font-size: 14px;
  color: #666666;
  line-height: 1.7;
}

.category-note a {
  color: #e63946;
  font-weight: 500;
}

.category-note a:hover {
  text-decoration: underline;
}

/* ---- 阅读指南页 ---- */
.guide-hero-figure {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 7;
  margin-bottom: 40px;
  background-color: #f4f4f4;
}

.guide-hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-steps {
  margin-bottom: 48px;
}

.steps-list {
  counter-reset: step;
}

.step-item {
  position: relative;
  padding: 24px 24px 24px 72px;
  background-color: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  margin-bottom: 16px;
  counter-increment: step;
}

.step-item::before {
  content: counter(step);
  position: absolute;
  left: 24px;
  top: 24px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #e63946;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-item h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.step-item p {
  font-size: 15px;
  color: #666666;
  margin-bottom: 0;
}

/* ---- 追更技巧 ---- */
.tracking-tips {
  margin-bottom: 48px;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.tip-card {
  background-color: #f4f4f4;
  border-radius: 8px;
  padding: 24px;
}

.tip-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.tip-card p {
  font-size: 14px;
  color: #666666;
  margin-bottom: 0;
}

/* ---- FAQ ---- */
.guide-faq {
  margin-bottom: 48px;
}

.faq-item {
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  margin-bottom: 12px;
  background-color: #ffffff;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: #e63946;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item[open] summary {
  background-color: #f4f4f4;
}

.faq-item p {
  padding: 0 24px 20px;
  font-size: 14px;
  color: #666666;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ---- 内页相关链接 ---- */
.related-list li {
  margin-bottom: 8px;
}

.related-list li a {
  font-size: 15px;
  color: #e63946;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.related-list li a:hover {
  border-bottom-color: #e63946;
}

/* ---- 榜单页 ---- */
.module-block {
  margin-bottom: 48px;
}

.ranking-items {
  counter-reset: rank;
}

.ranking-items .ranking-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px;
  margin-bottom: 16px;
  background-color: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ranking-items .ranking-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.ranking-cover-wrap {
  position: relative;
  flex-shrink: 0;
  width: 120px;
  border-radius: 6px;
  overflow: hidden;
}

.ranking-cover {
  width: 120px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background-color: #f4f4f4;
}

.ranking-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: #e63946;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.ranking-info {
  flex: 1;
  min-width: 0;
}

.ranking-title {
  font-size: 18px;
  margin-bottom: 8px;
}

.ranking-reason {
  font-size: 14px;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 0;
}

.ranking-notes {
  background-color: #f4f4f4;
  border-radius: 8px;
  padding: 32px;
}

.notes-list {
  margin-bottom: 16px;
}

.notes-list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: #666666;
  line-height: 1.7;
  margin-bottom: 8px;
}

.notes-list li::before {
  content: "·";
  position: absolute;
  left: 6px;
  color: #e63946;
  font-weight: 700;
}

.notes-tip {
  font-size: 14px;
  color: #888888;
}

.notes-tip a {
  color: #e63946;
  font-weight: 500;
}

.related-title {
  font-size: 18px;
  margin-bottom: 16px;
}

/* ---- 更新页 ---- */
.update-timeline {
  margin-bottom: 48px;
}

.timeline-group {
  margin-bottom: 32px;
}

.timeline-date {
  font-size: 16px;
  color: #e63946;
  font-weight: 700;
  padding-bottom: 8px;
  border-bottom: 2px solid #e63946;
  margin-bottom: 20px;
  display: inline-block;
}

.update-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.update-items .update-item {
  background-color: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.update-items .update-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.update-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background-color: #f4f4f4;
}

.update-info {
  padding: 16px;
}

.update-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.update-meta {
  font-size: 13px;
  color: #999999;
  margin-bottom: 4px;
}

.update-status {
  display: inline-block;
  font-size: 12px;
  color: #e63946;
  background-color: #fdf0f0;
  padding: 2px 8px;
  border-radius: 4px;
}

.update-notes {
  background-color: #f4f4f4;
  border-radius: 8px;
  padding: 32px;
}

.update-notes p {
  font-size: 14px;
  color: #666666;
  line-height: 1.7;
}

/* ---- 长尾页 ---- */
.article-body {
  margin-bottom: 48px;
}

.recommend-item {
  display: flex;
  gap: 24px;
  padding: 24px;
  background-color: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s ease;
}

.recommend-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.recommend-media {
  flex-shrink: 0;
  width: 180px;
  border-radius: 6px;
  overflow: hidden;
  background-color: #f4f4f4;
}

.recommend-media img {
  width: 180px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.recommend-content {
  flex: 1;
  min-width: 0;
}

.recommend-content h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.recommend-tag {
  display: inline-block;
  font-size: 12px;
  color: #e63946;
  background-color: #fdf0f0;
  padding: 2px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.recommend-content p {
  font-size: 14px;
  color: #666666;
  line-height: 1.7;
  margin-bottom: 12px;
}

.recommend-summary {
  background-color: #f4f4f4;
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 48px;
}

.recommend-summary p {
  font-size: 14px;
  color: #666666;
  margin-bottom: 12px;
}

.summary-list {
  margin: 16px 0;
}

.summary-list li {
  padding: 8px 0;
  font-size: 14px;
  color: #666666;
  border-bottom: 1px solid #e0e0e0;
}

.summary-list li:last-child {
  border-bottom: none;
}

.summary-list strong {
  color: #1a1a1a;
  font-weight: 600;
}

.recommend-summary a {
  color: #e63946;
  font-weight: 500;
  margin-right: 16px;
}

.recommend-summary a:hover {
  text-decoration: underline;
}

/* ---- 404 页 ---- */
.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 48px 24px;
}

.error-panel {
  text-align: center;
  max-width: 560px;
}

.error-code {
  font-size: 72px;
  font-weight: 700;
  color: #e63946;
  line-height: 1;
  margin-bottom: 16px;
}

.error-title {
  font-size: 24px;
  margin-bottom: 16px;
}

.error-desc {
  font-size: 16px;
  color: #666666;
  margin-bottom: 32px;
}

.error-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.error-help {
  font-size: 14px;
  color: #999999;
}

/* ============================================================
   Responsive —— 响应式
   ============================================================ */

/* ---- 平板 1024px ---- */
@media (max-width: 1024px) {
  .update-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .ranking-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .update-items {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .copyright {
    grid-column: 1 / -1;
  }
}

/* ---- 手机 768px ---- */
@media (max-width: 768px) {
  .header-inner {
    height: 56px;
    padding: 0 16px;
  }

  .nav-toggle {
    display: flex;
    min-height: 44px;
    padding: 8px 12px;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-icon {
    background-color: transparent;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
    transform: rotate(45deg);
    top: 0;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
    transform: rotate(-45deg);
    top: 0;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li a {
    padding: 14px 24px;
    border-radius: 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .site-nav {
    position: relative;
  }

  .home-main {
    padding: 0 16px;
  }

  .inner-main {
    padding: 24px 16px 48px;
  }

  .hero-section {
    padding: 40px 0 32px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-figure {
    aspect-ratio: 16 / 10;
  }

  .category-nav-section,
  .update-section,
  .ranking-preview-section,
  .guide-entry-section {
    padding: 32px 0;
  }

  .update-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .ranking-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .guide-cards {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 16px 24px;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .tips-grid {
    grid-template-columns: 1fr;
  }

  .update-items {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .ranking-items .ranking-item {
    flex-direction: row;
    gap: 16px;
    padding: 16px;
  }

  .ranking-cover-wrap,
  .ranking-cover {
    width: 90px;
  }

  .recommend-item {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }

  .recommend-media,
  .recommend-media img {
    width: 100%;
    aspect-ratio: 16 / 10;
  }

  .step-item {
    padding: 20px 20px 20px 60px;
  }

  .step-item::before {
    left: 16px;
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .related-links-label {
    display: block;
    margin-bottom: 8px;
  }

  .breadcrumb {
    margin-bottom: 16px;
  }

  .page-header {
    margin-bottom: 24px;
  }

  .page-title {
    font-size: 24px;
  }
}

/* ---- 小屏 480px ---- */
@media (max-width: 480px) {
  .update-list {
    grid-template-columns: 1fr;
  }

  .ranking-list {
    grid-template-columns: 1fr;
  }

  .update-items {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .error-actions .btn {
    width: 100%;
  }

  .error-code {
    font-size: 56px;
  }

  .category-note,
  .ranking-notes,
  .update-notes,
  .recommend-summary {
    padding: 24px;
  }

  .guide-card {
    padding: 24px;
  }

  .ranking-items .ranking-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .ranking-cover-wrap,
  .ranking-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .timeline-date {
    font-size: 15px;
  }
}
