/* ==========================================================================
   樱花漫画 · 整站样式表
   视觉方向：赛事门户风 · 高对比状态色 · 内容站清爽感
   ========================================================================== */

/* ==========================================================================
   01 · Base / 基础
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: #2b2b2b;
  background: #f7f4ee;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: #2b7be4;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #1a5fc0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  color: #161616;
  line-height: 1.4;
}

p {
  margin: 0;
}

figure {
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   02 · Layout / 全站布局骨架
   ========================================================================== */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

/* 页头 */
.site-header {
  background: #161616;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid #e8430f;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-name {
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 1px;
  line-height: 1;
}

.brand-name::before {
  content: "◆";
  color: #e8430f;
  margin-right: 6px;
  font-size: 18px;
}

/* 主导航 */
.site-nav {
  display: block;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li a {
  display: block;
  padding: 10px 18px;
  color: #c9c9c9;
  font-size: 15px;
  font-weight: 500;
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-list li a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-list li a.is-current {
  color: #ffffff;
  background: #e8430f;
  font-weight: 700;
}

/* 移动端汉堡按钮 */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: #ffffff;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* 页脚 */
.site-footer {
  background: #161616;
  color: #a0a0a0;
  margin-top: 0;
}

.footer-columns {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-col h2.footer-title {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
}

.footer-about p {
  font-size: 14px;
  line-height: 1.7;
  color: #a0a0a0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: #a0a0a0;
  font-size: 14px;
}

.footer-col ul li a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 24px;
}

.footer-bottom p {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 13px;
  color: #8a8a8a;
  text-align: left;
}

/* 面包屑 */
.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 0;
  font-size: 14px;
  color: #8a8f98;
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb a {
  color: #2b7be4;
}

.breadcrumb a:hover {
  color: #1a5fc0;
}

.breadcrumb-sep {
  color: #b0b5bd;
}

.breadcrumb-current {
  color: #6b7280;
}

/* 内页统一容器 */
.inner-main {
  width: 100%;
}

/* 页面标题区 */
.page-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 24px;
  position: relative;
}

.page-title {
  font-size: 30px;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 8px;
}

.page-description {
  font-size: 15px;
  color: #6b7280;
  max-width: 720px;
}

.header-ribbon {
  display: inline-block;
  width: 48px;
  height: 4px;
  background: #e8430f;
  border-radius: 2px;
  margin-top: 12px;
}

.page-title-bar {
  display: inline-block;
  width: 48px;
  height: 4px;
  background: #e8430f;
  border-radius: 2px;
  margin-top: 12px;
}

/* 通用区块标题 */
.section-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 20px;
  background: #e8430f;
  border-radius: 2px;
  flex-shrink: 0;
}

.section-intro {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 16px;
  max-width: 640px;
}

/* 通用链接 */
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #2b7be4;
}

.link-more::after {
  content: "→";
  transition: transform 0.2s ease;
}

.link-more:hover::after {
  transform: translateX(3px);
}

/* 相关链接导航 */
.related-links {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* ==========================================================================
   03 · Components / 通用组件
   ========================================================================== */

/* 状态色系统 */
.status-ongoing,
.tag-serial,
.status-serial {
  background: #1f9e5f;
  color: #ffffff;
}

.status-finished,
.tag-completed {
  background: #8a8f98;
  color: #ffffff;
}

.status-hiatus,
.tag-paused {
  background: #f29c38;
  color: #ffffff;
}

/* 状态角标 */
.status-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}

/* 题材标签 */
.tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
}

.tag-genre {
  background: #f0ede6;
  color: #4a4a4a;
  border: 1px solid #e2ddd2;
}

.tag-status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}

.tag-theme {
  background: #fff3e8;
  color: #e8430f;
  border: 1px solid #f5d5c4;
}

/* 步骤条（首页与内页通用结构） */
.path-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.path-step {
  background: #ffffff;
  border: 1px solid #ebe6dd;
  border-radius: 8px;
  padding: 24px;
  position: relative;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.path-step:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.path-step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #e8430f;
  color: #ffffff;
  font-weight: 800;
  font-size: 16px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.path-step h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.path-step p {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 10px;
}

.path-step a {
  font-size: 14px;
  font-weight: 600;
}

/* 滚动出现动画（仅增强，不隐藏初始内容） */
@media (prefers-reduced-motion: no-preference) {
  .cover-card,
  .feature-h-card,
  .path-step,
  .topic-entry,
  .suggestion-card {
    animation: fadeUp 0.5s ease both;
  }

  .cover-card:nth-child(2) { animation-delay: 0.05s; }
  .cover-card:nth-child(3) { animation-delay: 0.1s; }
  .cover-card:nth-child(4) { animation-delay: 0.15s; }
  .cover-card:nth-child(5) { animation-delay: 0.2s; }
  .cover-card:nth-child(6) { animation-delay: 0.25s; }
}

@keyframes fadeUp {
  from {
    transform: translateY(12px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ==========================================================================
   04 · Pages / 首页
   ========================================================================== */

.home-main {
  width: 100%;
}

/* Hero 区 */
.hero-section {
  background: #ffffff;
  border-bottom: 1px solid #ebe6dd;
}

.hero-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

/* 左：推荐封面 */
.hero-feature {
  background: #f7f4ee;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ebe6dd;
}

.feature-card-link {
  display: block;
  color: inherit;
}

.feature-card-link:hover .hero-feature-title {
  color: #e8430f;
}

.hero-cover {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e8e4dc;
}

.hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(22, 22, 22, 0.82);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 4px;
  backdrop-filter: blur(2px);
}

.hero-feature-text {
  padding: 20px 22px 24px;
}

.hero-feature-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

.hero-feature-desc {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 12px;
}

.hero-feature .link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #e8430f;
}

.hero-feature .link-arrow::after {
  content: "→";
  transition: transform 0.2s ease;
}

.hero-feature .link-arrow:hover::after {
  transform: translateX(3px);
}

/* 中：分类标签 */
.hero-categories {
  background: #ffffff;
  border-radius: 8px;
  padding: 24px;
  border: 1px solid #ebe6dd;
}

.hero-categories .section-title {
  margin-bottom: 6px;
}

.hero-categories .section-intro {
  margin-bottom: 18px;
}

.genre-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.genre-tag-list .tag-genre {
  padding: 6px 16px;
  font-size: 14px;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.genre-tag-list .tag-genre:hover {
  background: #e8430f;
  color: #ffffff;
  border-color: #e8430f;
}

/* 右：更新摘要 */
.hero-updates {
  background: #f7f4ee;
  border-radius: 8px;
  padding: 24px;
  border: 1px solid #ebe6dd;
}

.hero-updates .section-title {
  margin-bottom: 16px;
}

.update-summary-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 18px;
}

.update-summary-list .update-item {
  padding: 10px 0;
  border-bottom: 1px dashed #e2ddd2;
}

.update-summary-list .update-item:last-child {
  border-bottom: none;
}

.update-summary-list .update-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #2b2b2b;
}

.update-summary-list .update-item a:hover {
  color: #e8430f;
}

.update-summary-list .update-title {
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.update-summary-list .update-status {
  font-size: 12px;
  font-weight: 600;
  color: #1f9e5f;
  flex-shrink: 0;
}

.update-summary-list .update-chapter {
  display: block;
  font-size: 12px;
  color: #9ca3af;
  margin-top: 2px;
}

/* 状态图例条 */
.status-legend {
  background: #f7f4ee;
  border-bottom: 1px solid #ebe6dd;
}

.legend-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #4a4a4a;
}

.legend-item em {
  font-style: normal;
  font-weight: 500;
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-ongoing {
  background: #1f9e5f;
}

.dot-finished {
  background: #8a8f98;
}

.dot-hiatus {
  background: #f29c38;
}

/* 三栏主体 */
.main-body-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr;
  gap: 28px;
  align-items: start;
}

/* 左：封面墙 */
.cover-wall {
  min-width: 0;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.cover-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ebe6dd;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.cover-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.cover-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: #e8e4dc;
}

.cover-card figcaption {
  padding: 10px 14px 14px;
}

.cover-card .card-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #161616;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 中：编辑手记 */
.editor-note {
  min-width: 0;
}

.note-content {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #ebe6dd;
  padding: 22px;
  margin-bottom: 16px;
}

.note-content p {
  font-size: 14px;
  line-height: 1.8;
  color: #4a4a4a;
  margin-bottom: 14px;
}

.note-content p:last-child {
  margin-bottom: 0;
}

/* 右：人气榜单预览 */
.ranking-preview {
  min-width: 0;
}

.ranking-preview .ranking-list {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #ebe6dd;
  padding: 8px 0;
  margin-bottom: 16px;
  counter-reset: rank-counter;
}

.ranking-preview .ranking-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-bottom: 1px dashed #f0ede6;
}

.ranking-preview .ranking-item:last-child {
  border-bottom: none;
}

.ranking-preview .rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #f0ede6;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
  color: #6b7280;
  flex-shrink: 0;
}

.ranking-preview .ranking-item:nth-child(1) .rank-num {
  background: #e8430f;
  color: #ffffff;
}

.ranking-preview .ranking-item:nth-child(2) .rank-num {
  background: #f29c38;
  color: #ffffff;
}

.ranking-preview .ranking-item:nth-child(3) .rank-num {
  background: #f5b86e;
  color: #ffffff;
}

.ranking-preview .ranking-item a {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: #2b2b2b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-preview .ranking-item a:hover {
  color: #e8430f;
}

/* 专题预览 */
.feature-preview {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 40px;
}

.feature-horizontal-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-h-card {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #ebe6dd;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-h-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.feature-h-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #e8e4dc;
}

.feature-h-content {
  padding: 16px 18px 20px;
}

.feature-h-content h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.feature-h-content p {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 10px;
}

/* 阅读路径 */
.reading-path {
  background: #ffffff;
  border-top: 1px solid #ebe6dd;
  border-bottom: 1px solid #ebe6dd;
  padding: 40px 0;
}

.reading-path .section-title {
  max-width: 1200px;
  margin: 0 auto 20px;
  padding: 0 24px;
}

.reading-path .path-steps {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 首页相关链接 */
.home-main .related-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.related-links-label {
  font-size: 14px;
  font-weight: 700;
  color: #6b7280;
  margin-right: 4px;
}

.related-links-item {
  display: inline-block;
  padding: 6px 14px;
  background: #ffffff;
  border: 1px solid #e2ddd2;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #4a4a4a;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.related-links-item:hover {
  background: #e8430f;
  border-color: #e8430f;
  color: #ffffff;
}

/* ==========================================================================
   05 · Pages / 内页通用布局
   ========================================================================== */

/* 默认：主内容左，侧栏右 */
.page-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 40px;
}

.layout-sidebar-right {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

.layout-shell {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

/* 侧栏在左（catalog / guide） */
.sidebar-left {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

.sidebar-left .page-layout,
.guide-layout.sidebar-left {
  grid-template-columns: 260px 1fr;
}

.sidebar-left .topic-nav,
.sidebar-left .guide-toc {
  position: sticky;
  top: 84px;
}

/* 内容主区与侧栏 */
.content-main,
.main-content,
.topic-content,
.guide-content {
  min-width: 0;
}

.content-side,
.sidebar-area,
.topic-nav,
.guide-toc {
  min-width: 0;
}

/* ==========================================================================
   06 · Pages / 最新更新 updates.html
   ========================================================================== */

.update-list-section {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #ebe6dd;
  padding: 24px;
  margin-bottom: 24px;
}

.update-group {
  margin-bottom: 24px;
}

.update-group:last-child {
  margin-bottom: 0;
}

.group-title {
  font-size: 16px;
  font-weight: 700;
  color: #161616;
  padding-bottom: 8px;
  border-bottom: 2px solid #f0ede6;
  margin-bottom: 14px;
}

.update-list .update-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed #f0ede6;
}

.update-list .update-item:last-child {
  border-bottom: none;
}

.update-thumb {
  width: 72px;
  height: 54px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #e8e4dc;
}

.update-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.update-item .update-info {
  flex: 1;
  min-width: 0;
}

.update-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #161616;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.update-desc {
  display: block;
  font-size: 13px;
  color: #9ca3af;
}

.update-item .tag {
  flex-shrink: 0;
}

.update-item .tag-status {
  flex-shrink: 0;
}

/* 右侧状态图例 */
.status-legend-section {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #ebe6dd;
  padding: 24px;
}

.legend-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.legend-list .legend-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.legend-list .legend-dot {
  width: 12px;
  height: 12px;
  margin-top: 5px;
}

.legend-text {
  flex: 1;
}

.legend-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #161616;
  margin-bottom: 2px;
}

.legend-text span {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
}

.legend-note {
  font-size: 13px;
  color: #9ca3af;
  border-top: 1px dashed #e2ddd2;
  padding-top: 12px;
  line-height: 1.6;
}

/* 追更节奏提示 */
.tracking-tip {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #ebe6dd;
  margin-bottom: 24px;
}

.tracking-tip .section-title {
  margin-bottom: 8px;
}

.tracking-tip > p {
  font-size: 14px;
  color: #4a4a4a;
  margin-bottom: 12px;
}

.tracking-tip > p a {
  font-weight: 600;
  margin-right: 16px;
}

/* 相关入口 */
.related-links .section-title {
  margin-bottom: 16px;
}

.related-links ul li {
  margin-bottom: 10px;
}

.related-links ul li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
}

.related-links ul li a::before {
  content: "▸";
  color: #e8430f;
}

/* ==========================================================================
   07 · Pages / 题材索引 catalog.html
   ========================================================================== */

.topic-nav {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #ebe6dd;
  padding: 20px;
}

.aside-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f0ede6;
}

.topic-nav-list li {
  margin-bottom: 4px;
}

.topic-nav-list li a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #4a4a4a;
  transition: background 0.2s ease, color 0.2s ease;
}

.topic-nav-list li a:hover {
  background: #fff3e8;
  color: #e8430f;
}

/* 题材词条 */
.topic-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.topic-entry {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #ebe6dd;
  padding: 24px;
  scroll-margin-top: 84px;
}

.entry-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #161616;
}

.entry-desc {
  font-size: 14px;
  color: #4a4a4a;
  margin-bottom: 14px;
  line-height: 1.8;
}

.entry-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  align-items: flex-start;
}

.entry-label {
  display: inline-block;
  flex-shrink: 0;
  min-width: 72px;
  padding: 2px 10px;
  background: #f0ede6;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  text-align: center;
}

.entry-meta p {
  font-size: 14px;
  color: #4a4a4a;
  line-height: 1.7;
}

.entry-links {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #e2ddd2;
}

.entry-links a {
  font-size: 14px;
  font-weight: 600;
}

.entry-links a::after {
  content: " →";
}

/* 题材配图 */
.topic-media {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ebe6dd;
  background: #e8e4dc;
}

.topic-media img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
}

.topic-media figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: #6b7280;
  background: #ffffff;
}

/* 搭配阅读建议 */
.reading-suggestion {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 40px;
}

.suggestion-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.suggestion-card {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #ebe6dd;
  padding: 22px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.suggestion-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.suggestion-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.suggestion-card p {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 10px;
}

.suggestion-card a {
  font-size: 14px;
  font-weight: 600;
}

/* ==========================================================================
   08 · Pages / 人气榜单 ranking.html
   ========================================================================== */

.ranking-section {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #ebe6dd;
  padding: 24px;
  margin-bottom: 24px;
}

.ranking-section .ranking-list {
  counter-reset: rank-counter;
}

.ranking-section .ranking-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed #f0ede6;
}

.ranking-section .ranking-item:last-child {
  border-bottom: none;
}

.ranking-position {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #f0ede6;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 800;
  color: #6b7280;
  flex-shrink: 0;
}

.ranking-section .ranking-item:nth-child(1) .ranking-position {
  background: #e8430f;
  color: #ffffff;
}

.ranking-section .ranking-item:nth-child(2) .ranking-position {
  background: #f29c38;
  color: #ffffff;
}

.ranking-section .ranking-item:nth-child(3) .ranking-position {
  background: #f5b86e;
  color: #ffffff;
}

.ranking-card {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.ranking-cover {
  width: 72px;
  height: 54px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #e8e4dc;
}

.ranking-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-info {
  flex: 1;
  min-width: 0;
}

.ranking-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #161616;
  margin-bottom: 2px;
}

.ranking-desc {
  display: block;
  font-size: 13px;
  color: #9ca3af;
}

.ranking-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.rank-label {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 500;
}

/* 榜单依据说明 */
.ranking-note {
  background: #f7f4ee;
  border-radius: 8px;
  border: 1px solid #ebe6dd;
  padding: 22px 24px;
  margin-bottom: 24px;
}

.ranking-note .section-title {
  margin-bottom: 8px;
}

.ranking-note p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 8px;
}

.ranking-note p:last-child {
  margin-bottom: 0;
}

/* 右侧迷你专题 */
.sidebar-area {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #ebe6dd;
  padding: 20px;
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-title {
  font-size: 16px;
  font-weight: 700;
  padding-bottom: 8px;
  border-bottom: 2px solid #f0ede6;
}

.mini-feature {
  display: block;
  background: #f7f4ee;
  border-radius: 8px;
  padding: 16px;
  border: 1px solid #ebe6dd;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.mini-feature:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.mini-feature-tag {
  display: inline-block;
  padding: 2px 10px;
  background: #e8430f;
  color: #ffffff;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}

.mini-feature-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #161616;
  margin-bottom: 4px;
}

.mini-feature-desc {
  display: block;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
}

.sidebar-guide {
  background: #fff3e8;
  border-radius: 8px;
  padding: 16px;
  border: 1px solid #f5d5c4;
}

.sidebar-guide p {
  font-size: 14px;
  color: #4a4a4a;
  line-height: 1.7;
}

.sidebar-guide a {
  font-weight: 600;
}

/* 相关阅读入口 */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.related-card {
  display: block;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #ebe6dd;
  padding: 18px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.related-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.related-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #161616;
  margin-bottom: 4px;
}

.related-desc {
  display: block;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
}

/* ==========================================================================
   09 · Pages / 编辑专题 feature.html
   ========================================================================== */

.feature-list {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 32px;
}

.feature-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #ebe6dd;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.feature-media {
  background: #e8e4dc;
}

.feature-media img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
}

.feature-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-content h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.feature-audience {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 12px;
  background: #fff3e8;
  color: #e8430f;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 14px;
  color: #4a4a4a;
  line-height: 1.8;
  margin-bottom: 14px;
}

.feature-link {
  font-size: 14px;
  font-weight: 600;
  align-self: flex-start;
}

.feature-link::after {
  content: " →";
}

/* 专题路径 */
.feature-path {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
  background: #ffffff;
  border-top: 1px solid #ebe6dd;
  border-bottom: 1px solid #ebe6dd;
}

.path-intro {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 20px;
  max-width: 640px;
}

.feature-path .path-steps {
  max-width: 1200px;
}

/* 下期提示 */
.feature-next {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
}

.feature-next p {
  font-size: 14px;
  color: #4a4a4a;
  margin-bottom: 12px;
}

.feature-next a {
  font-size: 14px;
  font-weight: 600;
}

/* ==========================================================================
   10 · Pages / 阅读指南 guide.html
   ========================================================================== */

.guide-toc {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #ebe6dd;
  padding: 20px;
}

.toc-inner {
  position: sticky;
  top: 84px;
}

.toc-inner h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f0ede6;
}

.toc-inner ul li {
  margin-bottom: 4px;
}

.toc-inner ul li a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #4a4a4a;
  transition: background 0.2s ease, color 0.2s ease;
}

.toc-inner ul li a:hover {
  background: #fff3e8;
  color: #e8430f;
}

/* 内容区 */
.guide-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.starter-path-section,
.glossary-section,
.faq-section {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #ebe6dd;
  padding: 24px;
  scroll-margin-top: 84px;
}

.path-figure {
  border-radius: 8px;
  overflow: hidden;
  background: #e8e4dc;
  margin-bottom: 18px;
}

.path-figure img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
}

.starter-steps {
  counter-reset: starter-counter;
}

.starter-steps .step-item {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed #f0ede6;
}

.starter-steps .step-item:last-child {
  border-bottom: none;
}

.starter-steps .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #e8430f;
  color: #ffffff;
  font-weight: 800;
  font-size: 16px;
  border-radius: 6px;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-body {
  flex: 1;
  min-width: 0;
}

.step-body h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.step-body p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.7;
}

/* 术语表 */
.glossary-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.glossary-item {
  padding: 12px 0;
  border-bottom: 1px dashed #f0ede6;
}

.glossary-item:last-child {
  border-bottom: none;
}

.glossary-item dt {
  font-size: 15px;
  font-weight: 700;
  color: #161616;
  margin-bottom: 2px;
}

.glossary-item dd {
  margin: 0;
  font-size: 14px;
  color: #4a4a4a;
  line-height: 1.7;
}

/* FAQ */
.faq-item {
  border: 1px solid #ebe6dd;
  border-radius: 8px;
  margin-bottom: 10px;
  background: #faf8f4;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-item summary {
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  color: #161616;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: #e8430f;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 18px 14px;
}

.faq-answer p {
  font-size: 14px;
  color: #4a4a4a;
  line-height: 1.8;
}

/* 指南页相关链接 */
.guide-content .related-links {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #ebe6dd;
  padding: 24px;
}

.guide-content .related-links h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.guide-content .related-links > p {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 12px;
}

.related-list li {
  margin-bottom: 8px;
}

.related-list li a {
  font-size: 14px;
  font-weight: 500;
}

.related-list li a::before {
  content: "▸ ";
  color: #e8430f;
}

/* ==========================================================================
   11 · Pages / 站内说明 about.html
   ========================================================================== */

.about-position {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.position-copy {
  min-width: 0;
}

.position-copy h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
}

.position-copy p {
  font-size: 14px;
  color: #4a4a4a;
  line-height: 1.8;
  margin-bottom: 12px;
}

.position-copy p:last-child {
  margin-bottom: 0;
}

.position-figure {
  border-radius: 8px;
  overflow: hidden;
  background: #e8e4dc;
  border: 1px solid #ebe6dd;
}

.position-figure img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
}

/* 边界清单 */
.about-boundary {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
  border-top: 1px solid #ebe6dd;
}

.about-boundary .section-intro {
  margin-bottom: 20px;
}

.boundary-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.boundary-item {
  display: flex;
  gap: 14px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #ebe6dd;
  padding: 18px;
}

.boundary-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff3e8;
  color: #e8430f;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.boundary-content {
  min-width: 0;
}

.boundary-content h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.boundary-content p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.7;
}

/* 问题分类表 */
.about-troubleshoot {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
  border-top: 1px solid #ebe6dd;
}

.troubleshoot-table-wrap {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #ebe6dd;
  overflow-x: auto;
}

.troubleshoot-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.troubleshoot-table th {
  background: #f7f4ee;
  color: #161616;
  font-weight: 700;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid #e2ddd2;
}

.troubleshoot-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f0ede6;
  color: #4a4a4a;
  vertical-align: top;
  line-height: 1.7;
}

.troubleshoot-table tr:last-child td {
  border-bottom: none;
}

.troubleshoot-table td a {
  font-weight: 600;
}

/* 反馈须知 */
.about-feedback {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
  border-top: 1px solid #ebe6dd;
}

.about-feedback h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
}

.about-feedback p {
  font-size: 14px;
  color: #4a4a4a;
  line-height: 1.8;
  max-width: 760px;
}

/* 相关入口 */
.about-related {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.related-link-card {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #ebe6dd;
  padding: 20px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.related-link-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.related-link-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.related-link-card p {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 10px;
}

.related-link-card a {
  font-size: 14px;
  font-weight: 600;
}

/* ==========================================================================
   12 · Pages / 404 错误页
   ========================================================================== */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  background: #f7f4ee;
}

.error-panel {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #ebe6dd;
  padding: 48px 40px;
  text-align: center;
  max-width: 480px;
  width: 100%;
}

.error-code {
  font-size: 64px;
  font-weight: 900;
  color: #e8430f;
  line-height: 1;
  margin-bottom: 12px;
}

.error-panel h1 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
}

.error-panel p {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 24px;
}

.error-home-btn {
  display: inline-block;
  padding: 10px 28px;
  background: #e8430f;
  color: #ffffff;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s ease;
}

.error-home-btn:hover {
  background: #c9360a;
  color: #ffffff;
}

/* ==========================================================================
   13 · Responsive / 响应式
   ========================================================================== */

/* 平板 */
@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr 1fr;
  }

  .hero-updates {
    grid-column: 1 / -1;
  }

  .main-body-layout {
    grid-template-columns: 1fr 1fr;
  }

  .ranking-preview {
    grid-column: 1 / -1;
  }

  .layout-sidebar-right,
  .layout-shell {
    grid-template-columns: 1fr 280px;
    gap: 24px;
  }

  .sidebar-left {
    grid-template-columns: 220px 1fr;
    gap: 24px;
  }

  .sidebar-left .page-layout,
  .guide-layout.sidebar-left {
    grid-template-columns: 220px 1fr;
  }

  .footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* 手机 */
@media (max-width: 768px) {
  .header-inner {
    min-height: 56px;
    padding: 0 16px;
  }

  .brand-name {
    font-size: 19px;
  }

  /* 汉堡菜单 */
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #161616;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    padding: 12px 16px;
    gap: 2px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list li a {
    padding: 12px 16px;
    font-size: 16px;
    border-radius: 6px;
  }

  /* 面包屑 */
  .breadcrumb {
    padding: 14px 16px 0;
    font-size: 13px;
  }

  /* 页面标题 */
  .page-header {
    padding: 24px 16px 20px;
  }

  .page-title {
    font-size: 24px;
  }

  .page-description {
    font-size: 14px;
  }

  /* 首页 Hero */
  .hero-layout {
    grid-template-columns: 1fr;
    padding: 20px 16px;
    gap: 16px;
  }

  .hero-updates {
    grid-column: auto;
  }

  .hero-feature-text {
    padding: 16px 18px 20px;
  }

  .hero-feature-title {
    font-size: 20px;
  }

  .hero-categories,
  .hero-updates {
    padding: 18px;
  }

  /* 状态图例 */
  .legend-inner {
    padding: 12px 16px;
    gap: 12px 24px;
    justify-content: flex-start;
  }

  /* 首页三栏主体 */
  .main-body-layout {
    grid-template-columns: 1fr;
    padding: 24px 16px;
    gap: 24px;
  }

  .ranking-preview {
    grid-column: auto;
  }

  .cover-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  /* 专题预览 */
  .feature-preview {
    padding: 0 16px 32px;
  }

  .feature-horizontal-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* 阅读路径 */
  .reading-path {
    padding: 28px 0;
  }

  .reading-path .section-title {
    padding: 0 16px;
  }

  .reading-path .path-steps {
    padding: 0 16px;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .path-step {
    padding: 18px;
  }

  /* 首页相关链接 */
  .home-main .related-links {
    padding: 24px 16px;
    gap: 8px;
  }

  /* 内页布局 */
  .page-layout {
    padding: 0 16px 32px;
  }

  .layout-sidebar-right,
  .layout-shell {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .layout-sidebar-right .content-side,
  .layout-shell .sidebar-area {
    order: -1;
    margin-bottom: 20px;
  }

  .content-side,
  .sidebar-area {
    margin-bottom: 20px;
  }

  /* updates 页：先 H1 与内容，再侧栏 */
  .layout-sidebar-right .content-main {
    order: 1;
  }

  .layout-sidebar-right .content-side {
    order: 2;
  }

  /* 侧栏在左的页面 */
  .sidebar-left {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .sidebar-left .page-layout,
  .guide-layout.sidebar-left {
    grid-template-columns: 1fr;
  }

  .sidebar-left .topic-nav,
  .sidebar-left .guide-toc {
    position: static;
    margin-bottom: 20px;
  }

  .topic-content {
    order: 1;
  }

  .topic-nav {
    order: 2;
  }

  /* catalog 手机端：词条在前，目录汇总在后 */
  .topic-nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .topic-nav-list li {
    margin-bottom: 0;
  }

  .topic-nav-list li a {
    padding: 6px 12px;
    font-size: 13px;
    border: 1px solid #e2ddd2;
    border-radius: 20px;
  }

  /* guide 手机端：内容在前，目录汇总在后 */
  .guide-content {
    order: 1;
  }

  .guide-toc {
    order: 2;
  }

  .toc-inner {
    position: static;
  }

  .toc-inner ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .toc-inner ul li {
    margin-bottom: 0;
  }

  .toc-inner ul li a {
    padding: 6px 12px;
    font-size: 13px;
    border: 1px solid #e2ddd2;
    border-radius: 20px;
  }

  /* updates 页条目 */
  .update-list-section,
  .status-legend-section,
  .tracking-tip {
    padding: 18px;
  }

  .update-list .update-item {
    gap: 10px;
  }

  .update-thumb {
    width: 60px;
    height: 45px;
  }

  /* ranking 页 */
  .ranking-section {
    padding: 18px;
  }

  .ranking-section .ranking-item {
    gap: 12px;
  }

  .ranking-cover {
    width: 60px;
    height: 45px;
  }

  .ranking-meta {
    display: none;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* feature 页 */
  .feature-list {
    padding: 0 16px 28px;
  }

  .feature-card {
    grid-template-columns: 1fr;
  }

  .feature-media img {
    min-height: 160px;
    max-height: 200px;
  }

  .feature-content {
    padding: 18px;
  }

  .feature-path {
    padding: 28px 16px;
  }

  .feature-path .path-steps {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .feature-next {
    padding: 24px 16px;
  }

  /* guide 页 */
  .starter-path-section,
  .glossary-section,
  .faq-section {
    padding: 18px;
  }

  .starter-steps .step-item {
    gap: 12px;
  }

  /* about 页 */
  .about-position {
    grid-template-columns: 1fr;
    padding: 0 16px 24px;
    gap: 16px;
  }

  .about-boundary,
  .about-troubleshoot,
  .about-feedback {
    padding: 24px 16px;
  }

  .boundary-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .troubleshoot-table-wrap {
    overflow-x: auto;
  }

  .troubleshoot-table {
    min-width: 560px;
  }

  .about-related {
    grid-template-columns: 1fr;
    padding: 0 16px 32px;
    gap: 12px;
  }

  /* 页脚 */
  .footer-columns {
    grid-template-columns: 1fr 1fr;
    padding: 32px 16px 24px;
    gap: 24px;
  }

  .footer-bottom {
    padding: 16px;
  }

  .footer-bottom p {
    font-size: 12px;
  }

  /* 404 */
  .error-main {
    padding: 48px 16px;
  }

  .error-panel {
    padding: 32px 24px;
  }

  .error-code {
    font-size: 48px;
  }
}

/* 小屏手机 */
@media (max-width: 480px) {
  .cover-grid {
    grid-template-columns: 1fr;
  }

  .suggestion-list {
    grid-template-columns: 1fr;
  }

  .update-list .update-item {
    flex-wrap: wrap;
  }

  .update-item .tag {
    display: none;
  }

  .ranking-section .ranking-item {
    flex-wrap: wrap;
  }

  .ranking-cover {
    width: 72px;
    height: 54px;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ==========================================================================
   14 · Reduced Motion / 减少动效
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 程序验收反馈：移动端正文优先 */
@media (max-width: 768px) {
  .site-main :is(.page-content, .main-content, .content-main) {
    order: 1;
  }

  .site-main :is(aside, .sidebar) {
    order: 2;
  }
}
