/* ==========================================================================
   香香漫画 · 全站样式
   视觉方向：清爽编辑部折页感 / 白纸底色 / 蓝绿主操作 / 暖黄状态强调
   ========================================================================== */

/* ==========================================================================
   Base — 变量、重置、基础排版
   ========================================================================== */

:root {
  --color-bg: #F6F7F1;
  --color-surface: #FFFFFF;
  --color-primary: #14898F;
  --color-primary-dark: #0E6A6F;
  --color-primary-light: #E1F0F0;
  --color-accent: #F0B429;
  --color-accent-light: #FEF3D9;
  --color-text: #1F2933;
  --color-text-light: #52606D;
  --color-muted: #64748B;
  --color-border: #E2E8F0;
  --color-border-light: #EDF1F5;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
    sans-serif;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  --shadow-sm: 0 1px 2px rgba(31, 41, 51, 0.06);
  --shadow-md: 0 2px 8px rgba(31, 41, 51, 0.08);
  --shadow-lift: 0 6px 16px rgba(31, 41, 51, 0.1);

  --container-width: 1200px;
  --content-width: 820px;
  --sidebar-width: 300px;
  --gap-main: 32px;

  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 站点主体容器：全站统一视觉壳 */
.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary-dark);
}

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.35;
  color: var(--color-text);
  font-weight: 700;
}

/* 数字等宽，用于榜单、步骤编号 */
.pick-number,
.step-no,
.step-number,
.chain-state {
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Layout — 页头、页脚、页面骨架、两栏结构
   ========================================================================== */

/* ---------- 站点页头 ---------- */

.site-header {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: 0;
}

.brand-tagline {
  font-size: 13px;
  color: var(--color-muted);
  display: none;
}

/* 桌面导航 */
.site-nav {
  display: block;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 8px 12px;
  font-size: 15px;
  color: var(--color-text-light);
  border-radius: var(--radius-sm);
  line-height: 1.4;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--color-primary);
  background-color: var(--color-primary-light);
}

.nav-item.is-current .nav-link,
.nav-link.is-current {
  color: var(--color-primary);
  font-weight: 700;
  background-color: var(--color-primary-light);
}

/* 移动端汉堡按钮（桌面隐藏） */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  background-color: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  gap: 5px;
  flex-shrink: 0;
}

.nav-toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--color-text);
  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);
}

/* ---------- 页面布局骨架 ---------- */

/* 首页布局：主页 + 右侧辅助栏 */
.page-layout.home-layout {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
  gap: var(--gap-main);
  align-items: start;
  flex: 1;
  width: 100%;
}

/* 内页布局：主内容 + 右侧栏 */
.page-layout:not(.home-layout) {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
  gap: var(--gap-main);
  align-items: start;
  flex: 1;
  width: 100%;
}

/* 部分内页使用 layout-shell / 单栏布局（themes 页的标签走廊区） */
.layout-shell {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px 40px;
  flex: 1;
  width: 100%;
}

/* themes 页特殊：主内容 + 右侧辅助栏 */
.page-themes .layout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
  gap: var(--gap-main);
  align-items: start;
}

/* 首页主区 */
.home-main {
  min-width: 0;
}

/* 内页主区 */
.inner-main {
  min-width: 0;
}

/* 首页 aside */
.home-aside {
  min-width: 0;
}

/* 内页 aside（不同页面使用不同 class，统一收敛） */
.sidebar,
.site-aside,
.sidebar-area,
.content-sidebar {
  min-width: 0;
}

/* themes 页：site-aside 是右侧栏 */
.page-themes .site-aside {
  min-width: 0;
}

/* themes 页移动端额外 aside 提示（默认隐藏） */
.mobile-aside-note {
  display: none;
}

/* 所有内页 aside 卡片统一风格 */
.sidebar-card,
.aside-card,
.side-card,
.aside-block {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

/* ---------- 内页面包屑与页标题 ---------- */

.breadcrumb {
  font-size: 14px;
  margin: 20px 0 0;
  color: var(--color-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.breadcrumb a {
  color: var(--color-muted);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb-sep {
  color: var(--color-border);
}

.breadcrumb-current {
  color: var(--color-text);
  font-weight: 600;
}

.page-header {
  margin: 16px 0 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border-light);
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}

.page-description {
  font-size: 16px;
  color: var(--color-text-light);
  margin-top: 8px;
  max-width: 720px;
  line-height: 1.8;
}

/* ---------- 内页区块标题 ---------- */

.section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
  padding-left: 14px;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 2px;
  background-color: var(--color-primary);
}

.section-desc {
  font-size: 15px;
  color: var(--color-text-light);
  margin-bottom: 20px;
  max-width: 720px;
}

/* ---------- 统一页脚 ---------- */

.site-footer {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border-light);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 36px 20px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 24px;
}

.footer-brand {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.7;
}

.footer-col-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
}

.footer-nav-list li {
  margin-bottom: 8px;
}

.footer-link {
  font-size: 14px;
  color: var(--color-text-light);
}

.footer-link:hover {
  color: var(--color-primary);
}

.footer-boundary-text {
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.7;
}

.footer-bottom {
  border-top: 1px solid var(--color-border-light);
  padding: 14px 20px;
  text-align: center;
}

.copyright {
  font-size: 13px;
  color: var(--color-muted);
}

/* ==========================================================================
   Components — 通用组件
   ========================================================================== */

/* ---------- 链接与按钮 ---------- */

.inline-link {
  color: var(--color-primary);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.inline-link:hover {
  border-bottom-color: var(--color-primary);
}

.text-link {
  color: var(--color-primary);
  font-weight: 600;
}

.btn {
  display: inline-block;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary-light);
}

/* ---------- 表格 ---------- */

.table-scroll,
.record-table-wrap,
.dictionary-table-wrap,
.theme-list-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
}

.data-table,
.record-table,
.dictionary-table,
.theme-table {
  width: 100%;
  font-size: 14px;
  line-height: 1.6;
}

.data-table th,
.data-table td,
.record-table th,
.record-table td,
.dictionary-table th,
.dictionary-table td,
.theme-table th,
.theme-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--color-border-light);
  vertical-align: top;
}

.data-table thead th,
.record-table thead th,
.dictionary-table thead th,
.theme-table thead th {
  background-color: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-weight: 700;
  white-space: nowrap;
}

.data-table tbody tr:last-child td,
.record-table tbody tr:last-child td,
.dictionary-table tbody tr:last-child td,
.theme-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover,
.record-table tbody tr:hover,
.theme-table tbody tr:hover {
  background-color: #F8FAFC;
}

.table-footnote {
  font-size: 13px;
  color: var(--color-muted);
  margin-top: 10px;
}

/* 状态标签 */
.status-tag {
  display: inline-block;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 10px;
  line-height: 1.6;
  white-space: nowrap;
}

.status-serial {
  background-color: var(--color-accent-light);
  color: #9A6B00;
}

.status-complete {
  background-color: #E6F7E6;
  color: #1E7A34;
}

.status-done {
  background-color: #E6F7E6;
  color: #1E7A34;
}

/* ---------- 内链相关模块 ---------- */

.related-links {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border-light);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.related-links-label {
  font-size: 14px;
  color: var(--color-muted);
  margin-right: 4px;
}

.related-links-item {
  display: inline-block;
  padding: 4px 12px;
  font-size: 14px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  color: var(--color-text-light);
  transition: all 0.2s ease;
}

.related-links-item:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background-color: var(--color-primary-light);
}

/* ---------- 图片与 figure ---------- */

.entry-card-media img,
.cover-media img,
.scene-card-media img,
.step-media img,
.panel-diagram,
.guide-figure-img,
.flow-image,
.themes-main-image,
.content-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

figure {
  margin: 0;
}

.figure-caption,
.panel-caption,
.guide-figure-caption {
  font-size: 13px;
  color: var(--color-muted);
  text-align: center;
  margin-top: 8px;
  padding: 0 8px;
}

/* ==========================================================================
   Components — 首页模块
   ========================================================================== */

/* ---------- 首屏对比台 ---------- */

.hero-compare {
  padding: 28px 0 8px;
}

.hero-copy {
  margin-bottom: 24px;
}

.hero-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--color-text);
  margin-bottom: 10px;
}

.hero-lead {
  font-size: 16px;
  color: var(--color-text-light);
  max-width: 680px;
  line-height: 1.8;
}

.hero-entry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.entry-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.entry-card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.entry-card-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--color-primary-light);
}

.entry-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entry-card-title {
  font-size: 20px;
  margin: 16px 20px 6px;
}

.entry-card-text {
  font-size: 14px;
  color: var(--color-text-light);
  margin: 0 20px 12px;
  line-height: 1.7;
}

.entry-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 20px;
  margin-bottom: 12px;
}

.entry-tag {
  display: inline-block;
  padding: 2px 10px;
  font-size: 12px;
  background-color: var(--color-primary-light);
  color: var(--color-primary-dark);
  border-radius: 10px;
}

.entry-link {
  display: inline-block;
  margin: auto 20px 16px;
  padding: 8px 16px;
  background-color: var(--color-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-align: center;
  transition: background-color 0.2s ease;
  align-self: flex-start;
}

.entry-link:hover {
  background-color: var(--color-primary-dark);
  color: #fff;
}

/* ---------- 收录状态横条 ---------- */

.status-strip {
  margin: 28px 0 8px;
  background-color: var(--color-accent-light);
  border: 1px solid #F5E3B8;
  border-radius: var(--radius-md);
  padding: 12px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.status-strip-text {
  color: #7A5B00;
  flex: 1;
  min-width: 200px;
}

.status-strip-link {
  color: #7A5B00;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

/* ---------- 封面书架 ---------- */

.shelf-section,
.observation-section,
.editor-picks,
.reading-path {
  margin-top: 40px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 24px 24px 20px;
  box-shadow: var(--shadow-sm);
}

.section-heading-row {
  margin-bottom: 20px;
}

.section-heading-row .section-title {
  margin-bottom: 6px;
}

.section-heading-row .section-title::before {
  display: none;
}

.section-intro {
  font-size: 14px;
  color: var(--color-muted);
  max-width: 680px;
}

.shelf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cover-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
}

.cover-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.cover-media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: var(--color-primary-light);
}

.cover-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-title {
  font-size: 16px;
  font-weight: 700;
  margin: 10px 12px 2px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cover-genre {
  font-size: 13px;
  color: var(--color-primary);
  margin: 0 12px 6px;
  font-weight: 500;
}

.cover-note {
  font-size: 13px;
  color: var(--color-muted);
  margin: 0 12px 36px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cover-status {
  position: absolute;
  bottom: 10px;
  left: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent);
  background-color: rgba(255, 255, 255, 0.9);
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid #F5E3B8;
}

.shelf-more-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--color-muted);
  text-align: center;
}

/* ---------- 收录观察表 ---------- */

.observation-section .section-heading-row .section-title {
  color: var(--color-primary-dark);
}

/* ---------- 编读榜 ---------- */

.picks-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pick-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background-color: #FAFBF7;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.pick-item:hover {
  background-color: var(--color-accent-light);
  border-color: #F5E3B8;
}

.pick-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  min-width: 48px;
  text-align: center;
  padding-top: 2px;
  font-variant-numeric: tabular-nums;
}

.pick-content {
  flex: 1;
}

.pick-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 2px;
}

.pick-audience {
  font-size: 13px;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 2px;
}

.pick-reason {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ---------- 阅读路径摘要 ---------- */

.path-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.path-step {
  background-color: #FAFBF7;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  position: relative;
}

.step-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  background-color: var(--color-primary-light);
  padding: 2px 10px;
  border-radius: 10px;
  margin-bottom: 8px;
}

.step-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.step-text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
}

.path-demo-link {
  display: inline-block;
  padding: 8px 20px;
  background-color: var(--color-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: background-color 0.2s ease;
}

.path-demo-link:hover {
  background-color: var(--color-primary-dark);
  color: #fff;
}

/* ---------- 首页侧栏 ---------- */

.home-aside {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.aside-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary-light);
}

.dict-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dict-item {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border-light);
}

.dict-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.dict-term {
  font-weight: 700;
  color: var(--color-primary-dark);
  font-size: 15px;
  margin-bottom: 2px;
}

.dict-def {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
}

.aside-text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 8px;
}

.aside-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  margin-top: 4px;
}

/* ==========================================================================
   Components — 内页通用区块
   ========================================================================== */

/* ---------- 场景卡（scenes 页） ---------- */

.scene-card-section {
  margin-bottom: 36px;
}

.scene-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.scene-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.scene-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.scene-card-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--color-primary-light);
}

.scene-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scene-card-content {
  padding: 14px 18px 16px;
}

.scene-card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.scene-card-meta {
  font-size: 13px;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 6px;
}

.scene-card-text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 10px;
}

.scene-card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
}

/* ---------- 场景匹配说明 ---------- */

.match-section {
  margin-bottom: 20px;
}

.match-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.match-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.match-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 6px;
}

.match-card-text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
}

.match-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--color-muted);
}

/* ---------- 内页侧栏 ---------- */

.sidebar-title,
.aside-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary-light);
}

.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-list-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  line-height: 1.6;
}

.sidebar-term {
  font-weight: 700;
  color: var(--color-primary-dark);
  flex-shrink: 0;
}

.sidebar-def {
  color: var(--color-text-light);
  text-align: right;
}

.sidebar-note {
  font-size: 13px;
  color: var(--color-muted);
  margin-top: 12px;
}

.sidebar-note a {
  font-weight: 600;
}

/* ---------- 题材走廊与书单（themes 页） ---------- */

.themes-section {
  margin-bottom: 36px;
}

.tag-corridor {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-item {
  display: inline-block;
}

.tag-link {
  display: flex;
  flex-direction: column;
  padding: 10px 18px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  min-width: 100px;
}

.tag-link:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background-color: var(--color-primary-light);
}

.tag-meta {
  font-size: 12px;
  font-weight: 400;
  color: var(--color-muted);
  margin-top: 2px;
}

/* 题材书单表 */

.theme-table .book-name {
  font-weight: 600;
  color: var(--color-text);
}

/* ---------- 浏览说明（themes 页） ---------- */

.note-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.note-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.note-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 6px;
}

.note-text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ---------- 题材配图 ---------- */

.themes-media-section {
  margin-bottom: 20px;
}

.themes-figure {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow-sm);
}

.themes-main-image {
  border-radius: var(--radius-md);
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

/* ---------- themes 页侧栏 ---------- */

.aside-card {
  margin-bottom: 20px;
}

.aside-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  counter-reset: step-counter;
}

.aside-step {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  padding-left: 28px;
  position: relative;
}

.aside-step::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- 演示步骤（demo 页） ---------- */

.demo-steps-section,
.panel-fields-section {
  margin-bottom: 32px;
}

.demo-steps-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.demo-step-item {
  display: flex;
  gap: 16px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--color-primary);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.step-content {
  flex: 1;
  min-width: 0;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-media {
  margin: 12px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--color-primary-light);
  aspect-ratio: 16 / 9;
}

.step-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.step-detail-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.step-detail-row {
  display: flex;
  gap: 8px;
  font-size: 14px;
  line-height: 1.7;
}

.step-detail-term {
  font-weight: 700;
  color: var(--color-primary-dark);
  flex-shrink: 0;
  min-width: 64px;
}

.step-detail-desc {
  color: var(--color-text-light);
}

/* ---------- 阅读面板字段说明（demo 页） ---------- */

.panel-fields-section {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.panel-fields-media {
  margin-bottom: 16px;
}

.panel-figure {
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: #FAFBF7;
}

.panel-diagram {
  aspect-ratio: 16 / 8;
  object-fit: cover;
  width: 100%;
}

.panel-fields-notes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fields-note-text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
}

.fields-note-text strong {
  color: var(--color-primary-dark);
}

.demo-boundary-note {
  background-color: var(--color-accent-light);
  border: 1px solid #F5E3B8;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 14px;
  color: #7A5B00;
  margin: 24px 0;
}

/* ---------- demo 页相关链接 ---------- */

.related-links-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
}

.related-links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.related-link {
  display: inline-block;
  padding: 6px 14px;
  font-size: 14px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  color: var(--color-text-light);
  transition: all 0.2s ease;
}

.related-link:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background-color: var(--color-primary-light);
}

/* ---------- demo 页侧栏 ---------- */

.path-overview-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.aside-card-desc {
  font-size: 14px;
  color: var(--color-muted);
  margin-bottom: 14px;
  line-height: 1.6;
}

.path-overview-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.path-overview-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 14px;
}

.path-overview-item:last-child {
  border-bottom: none;
}

.path-node-label {
  color: var(--color-muted);
  flex-shrink: 0;
  font-size: 13px;
  width: 48px;
}

.path-node-link {
  color: var(--color-primary);
  font-weight: 600;
}

.aside-card-tip {
  font-size: 13px;
  color: var(--color-muted);
  margin-top: 12px;
  line-height: 1.6;
}

.aside-card-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
}

/* ---------- 更新收录（updates 页） ---------- */

.record-section {
  margin-bottom: 36px;
}

.content-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 14px;
  background-color: var(--color-primary-light);
}

.content-media img {
  aspect-ratio: 16 / 6;
  object-fit: cover;
  width: 100%;
}

.section-note {
  font-size: 15px;
  color: var(--color-text-light);
  margin-bottom: 16px;
  line-height: 1.7;
}

.record-table-wrap {
  margin-bottom: 8px;
}

/* 收录流程（updates 页与 feedback 页共用 flow-steps） */

.flow-section {
  margin-bottom: 36px;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.flow-step {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.flow-step-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.step-no {
  width: 28px;
  height: 28px;
  background-color: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.flow-step-head h3 {
  font-size: 16px;
  font-weight: 700;
}

.flow-step-body p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 4px;
}

/* 收录范围 */

.scope-section {
  margin-bottom: 20px;
}

.scope-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.scope-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.scope-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 6px;
}

.scope-card p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
}

.scope-more {
  font-size: 14px;
  color: var(--color-muted);
  margin-top: 12px;
}

/* updates 侧栏 */

.order-chain {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.order-chain li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border-light);
}

.order-chain li:last-child {
  border-bottom: none;
}

.chain-state {
  font-weight: 700;
  color: var(--color-primary-dark);
  flex-shrink: 0;
  min-width: 64px;
}

.chain-desc {
  color: var(--color-text-light);
  line-height: 1.6;
}

.side-intro,
.side-note {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 8px;
}

.side-note {
  font-size: 13px;
  color: var(--color-muted);
  margin-top: 12px;
}

/* ---------- 阅读指引（guide 页） ---------- */

.guide-media-section {
  margin-bottom: 28px;
}

.guide-figure {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow-sm);
}

.guide-figure-img {
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: var(--radius-md);
  width: 100%;
}

/* 字段字典 */

.field-dictionary {
  margin-bottom: 36px;
}

.dictionary-table-wrap {
  margin-top: 12px;
}

/* FAQ */

.faq-section {
  margin-bottom: 28px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 40px;
  transition: background-color 0.2s ease;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--color-primary);
  font-weight: 400;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-question {
  background-color: var(--color-primary-light);
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.8;
}

.faq-answer p {
  margin-bottom: 8px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* 路径提示 */

.path-tip {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.path-tip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.path-tip-list a {
  display: inline-block;
  padding: 4px 12px;
  font-size: 14px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  color: var(--color-text-light);
  transition: all 0.2s ease;
}

.path-tip-list a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background-color: var(--color-primary-light);
}

/* guide 侧栏 */

.sidebar-link-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-link {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--color-text-light);
  border-radius: var(--radius-sm);
  background-color: #FAFBF7;
  border: 1px solid var(--color-border-light);
  transition: all 0.2s ease;
}

.sidebar-link:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background-color: var(--color-primary-light);
}

/* ---------- 版权反馈（feedback 页） ---------- */

.boundary-section,
.feedback-flow-section,
.copyright-section {
  margin-bottom: 36px;
}

.boundary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.boundary-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 6px;
}

.card-text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* feedback 流程步骤（与 updates 共 flow-steps，但结构不同） */

.feedback-flow-section .flow-steps {
  grid-template-columns: repeat(3, 1fr);
}

.feedback-flow-section .flow-step {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.feedback-flow-section .step-number {
  width: 32px;
  height: 32px;
  font-size: 15px;
  flex-shrink: 0;
}

.feedback-flow-section .step-title {
  font-size: 16px;
  margin-bottom: 4px;
}

.feedback-flow-section .step-desc {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
}

.flow-figure {
  margin-top: 16px;
}

.flow-image {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.copyright-block {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.copyright-text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 8px;
}

.copyright-text:last-child {
  margin-bottom: 0;
}

/* feedback 侧栏 */

.content-sidebar .sidebar-inner {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.sidebar-desc {
  font-size: 14px;
  color: var(--color-muted);
  margin-bottom: 14px;
  line-height: 1.6;
}

.sidebar-card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 2px;
}

.sidebar-card-text {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.6;
}

.sidebar-link-block {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border-light);
}

.sidebar-link-text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ---------- 404 页 ---------- */

.error-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.error-section {
  text-align: center;
  max-width: 520px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-md);
}

.error-code {
  font-size: 56px;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}

.error-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: var(--color-text-light);
  margin-bottom: 24px;
  line-height: 1.8;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.error-help {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.7;
}

.error-help a {
  font-weight: 600;
}

/* ==========================================================================
   Responsive — 响应式断点
   ========================================================================== */

/* ---------- 小桌面 / 窄屏（≤ 1100px） ---------- */

@media (max-width: 1100px) {
  .brand-tagline {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .footer-col:nth-child(4) {
    grid-column: span 1;
  }

  .footer-col:nth-child(5) {
    grid-column: span 3;
    margin-top: 8px;
  }
}

/* ---------- 平板（≤ 900px） ---------- */

@media (max-width: 900px) {
  .page-layout.home-layout,
  .page-layout:not(.home-layout),
  .page-themes .layout-shell {
    grid-template-columns: 1fr;
  }

  /* 首页辅助栏在 main 之后自然排列 */
  .home-aside {
    margin-top: 0;
  }

  /* themes 页：site-aside 在移动端放 main 之后 */
  .page-themes .site-aside {
    margin-top: 0;
  }

  /* themes 页：移动端额外 aside 提示显示在 main 内容末尾 */
  .mobile-aside-note {
    display: block;
    margin-bottom: 20px;
  }

  .page-themes .site-aside {
    display: none;
  }

  .shelf-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-entry-grid {
    gap: 14px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-col:nth-child(1) {
    grid-column: span 2;
  }

  .footer-col:nth-child(5) {
    grid-column: span 2;
  }
}

/* ---------- 手机（≤ 640px） ---------- */

@media (max-width: 640px) {
  html {
    font-size: 15px;
  }

  .header-inner {
    height: 64px;
    padding: 0 16px;
  }

  .brand-name {
    font-size: 19px;
  }

  /* 汉堡按钮显示，导航列表收起 */
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border-light);
    box-shadow: 0 8px 16px rgba(31, 41, 51, 0.08);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    gap: 2px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    padding: 12px 16px;
    font-size: 16px;
    border-radius: var(--radius-sm);
  }

  .page-layout.home-layout,
  .page-layout:not(.home-layout),
  .layout-shell,
  .page-themes .layout-shell {
    padding: 0 16px 32px;
  }

  .hero-compare {
    padding-top: 20px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-entry-grid {
    grid-template-columns: 1fr;
  }

  .entry-card {
    margin-bottom: 0;
  }

  .shelf-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .cover-title {
    font-size: 15px;
  }

  .cover-note {
    font-size: 12px;
  }

  .status-strip {
    padding: 10px 14px;
    font-size: 13px;
  }

  .shelf-section,
  .observation-section,
  .editor-picks,
  .reading-path {
    padding: 16px 14px;
  }

  .path-steps {
    grid-template-columns: 1fr;
  }

  .picks-list {
    gap: 8px;
  }

  .pick-item {
    padding: 10px 12px;
    gap: 10px;
  }

  .pick-number {
    font-size: 22px;
    min-width: 32px;
  }

  .page-header {
    margin: 12px 0 20px;
  }

  .page-title {
    font-size: 24px;
  }

  .page-description {
    font-size: 15px;
  }

  .section-title {
    font-size: 20px;
  }

  .scene-grid {
    grid-template-columns: 1fr;
  }

  .match-grid {
    grid-template-columns: 1fr;
  }

  .note-grid {
    grid-template-columns: 1fr;
  }

  .scope-cards {
    grid-template-columns: 1fr;
  }

  .boundary-grid {
    grid-template-columns: 1fr;
  }

  .flow-steps,
  .feedback-flow-section .flow-steps {
    grid-template-columns: 1fr;
  }

  .demo-step-item {
    flex-direction: column;
    padding: 16px;
  }

  .step-number {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .step-media {
    aspect-ratio: 16 / 10;
  }

  .breadcrumb {
    font-size: 13px;
    margin-top: 14px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 16px 20px;
  }

  .footer-col:nth-child(1),
  .footer-col:nth-child(5) {
    grid-column: span 1;
  }

  .error-section {
    padding: 32px 20px;
  }

  .error-code {
    font-size: 40px;
  }

  .error-title {
    font-size: 20px;
  }

  .error-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .tag-link {
    min-width: 0;
    padding: 8px 14px;
  }

  .themes-main-image {
    aspect-ratio: 4 / 3;
  }

  .content-media img {
    aspect-ratio: 4 / 3;
  }

  .flow-image {
    aspect-ratio: 4 / 3;
  }

  .panel-diagram {
    aspect-ratio: 4 / 3;
  }

  .guide-figure-img {
    aspect-ratio: 4 / 3;
  }

  .entry-card-media {
    aspect-ratio: 16 / 10;
  }

  .scene-card-media {
    aspect-ratio: 16 / 10;
  }

  .faq-question {
    font-size: 15px;
    padding: 12px 40px 12px 14px;
  }

  .faq-answer {
    padding: 0 14px 14px;
    font-size: 13px;
  }
}

/* ---------- 超小屏（≤ 380px） ---------- */

@media (max-width: 380px) {
  .shelf-grid {
    grid-template-columns: 1fr;
  }

  .cover-media {
    aspect-ratio: 16 / 10;
  }

  .entry-card-title {
    font-size: 18px;
    margin: 12px 14px 4px;
  }

  .entry-card-text {
    margin: 0 14px 10px;
  }

  .entry-tag-list {
    padding: 0 14px;
  }

  .entry-link {
    margin: auto 14px 14px;
  }
}
