/* ============================================================
   Muse 实战案例库 - 主次分明 · 项目名称突出 · 其余元素弱化
   大标题主导视觉焦点 · 辅助信息极致克制 · 温暖透气
   ============================================================ */

:root {
  /* 温暖燕麦低反差背景体系 */
  --bg-primary: #f5efe6;          /* 温暖燕麦纸底色 */
  --bg-card: #ffffff;             /* 纯净温暖白卡片 */
  --bg-subtle: #f7f2ea;           /* 极淡暖米微底 */
  --bg-tag: #ece4d8;              /* 弱化辅助标签底 */

  /* 极细微弱分割线 */
  --border-subtle: #e8ded2;       /* 极轻微弱砂线 */
  --border-card: #e4d8c9;         /* 卡片轮廓线 */

  /* 强烈的文本主次对比 */
  --text-title: #171310;          /* 【主】项目名称与核心标题：浓郁深黑暖棕 (绝对视觉核心) */
  --text-secondary: #63574c;      /* 【次】一句话价值：中暖灰褐色 (柔和衬托) */
  --text-muted: #8f8071;          /* 【弱】辅助元信息：浅暖灰 (弱化存在感) */
  --text-dim: #b5a798;            /* 【极弱】分割点与占位符 */

  /* 极克制的强调色 */
  --accent-caramel: #b45309;
  --accent-rose: #be123c;

  /* 规范尺寸 */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 9999px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* 细腻低对比阴影 */
  --shadow-sm: 0 1px 3px rgba(34, 29, 25, 0.03);
  --shadow-card: 0 2px 8px -1px rgba(34, 29, 25, 0.04), 0 1px 2px rgba(34, 29, 25, 0.02);
  --shadow-hover: 0 12px 28px -4px rgba(34, 29, 25, 0.08), 0 2px 6px rgba(34, 29, 25, 0.03);
  --shadow-modal: 0 20px 48px -8px rgba(34, 29, 25, 0.2);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
  background-color: var(--bg-primary);
  color: var(--text-title);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  width: 100%;
  line-height: 1.6;
  background-color: var(--bg-primary);
}

/* 核心布局容器 */
.app-container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 24px 20px 80px;
  position: relative;
  z-index: 10;
}

/* 背景柔光 (极度克制，不抢视觉) */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.25;
}

.bg-glow-1 {
  width: 500px;
  height: 500px;
  top: -150px;
  left: 20%;
  background: radial-gradient(circle, rgba(254, 243, 199, 0.5) 0%, transparent 70%);
}

.bg-glow-2 {
  width: 450px;
  height: 450px;
  top: 400px;
  right: -80px;
  background: radial-gradient(circle, rgba(254, 215, 170, 0.35) 0%, transparent 70%);
}

/* --- 顶部 Header --- */
.site-header {
  margin-bottom: 24px;
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Monimuse 形象与灵动微动效 */
.monimuse-avatar-wrap {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: moniFloat 4s ease-in-out infinite;
  cursor: pointer;
  filter: drop-shadow(0 2px 6px rgba(180, 83, 9, 0.15));
}

.monimuse-avatar {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* 眨眼动效 */
.moni-eye {
  transform-origin: center;
  animation: moniBlink 4.5s infinite;
}

@keyframes moniFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes moniBlink {
  0%, 92%, 100% {
    transform: scaleY(1);
  }
  94%, 96% {
    transform: scaleY(0.1);
  }
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: #2b231d;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.site-title {
  font-size: 1.35rem;
  font-weight: 850;
  letter-spacing: -0.01em;
  color: var(--text-title);
}

.site-subtitle {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 1px;
}

/* 语言切换器 (CH / EN) */
.lang-switch-wrap {
  display: inline-flex;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px 6px;
  gap: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 3px 9px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.16s ease;
  line-height: 1.2;
}

.lang-btn:hover {
  color: var(--text-title);
}

.lang-btn.active {
  background: #171310;
  color: #ffffff;
  font-weight: 750;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.lang-sep {
  font-size: 0.68rem;
  color: var(--text-dim);
}

/* 统计面板 (弱化衬托) */
.stats-panel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text-title);
  font-feature-settings: "tnum";
  line-height: 1.2;
}

.stat-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.stat-divider {
  width: 1px;
  height: 18px;
  background-color: var(--border-subtle);
}

/* --- 本期头条 (Featured Card - 标题极其突出) --- */
.section-featured {
  margin-bottom: 26px;
}

.featured-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.featured-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.featured-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

/* 弱化顶部标签 */
.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 750;
  background: #fef3c7;
  color: #92400e;
}

/* 【突出核心】：头条项目大标题 */
.featured-title {
  font-size: 1.6rem;
  font-weight: 850;
  color: var(--text-title);
  line-height: 1.35;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.featured-title:hover {
  color: var(--accent-caramel);
}

/* 【弱化衬托】：一句话价值 */
.featured-valueline {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 900px;
}

.featured-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.featured-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.featured-source-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.featured-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* --- 热门榜 Top 5 --- */
.section-trending {
  margin-bottom: 28px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-icon {
  font-size: 1.1rem;
}

.section-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-title);
}

.section-hint {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-left: 4px;
}

.trending-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.trending-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.18s ease;
  min-height: 120px;
}

.trending-card:hover {
  transform: translateY(-2px);
  border-color: #cfbeab;
  box-shadow: var(--shadow-hover);
}

.trending-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.rank-badge {
  font-size: 0.75rem;
  font-weight: 800;
  font-family: var(--font-mono);
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--text-muted);
}

.rank-badge.rank-1 {
  background: #fef3c7;
  color: #92400e;
}

.trending-heat {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* Top 5 项目标题突出 */
.trending-title {
  font-size: 0.88rem;
  font-weight: 750;
  color: var(--text-title);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trending-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* --- 工具栏 Toolbar --- */
.section-main {
  margin-top: 4px;
}

.toolbar {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.toolbar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 240px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  height: 38px;
  padding: 0 36px 0 38px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-title);
  font-size: 0.86rem;
  outline: none;
  transition: all 0.16s ease;
}

.search-box input:focus {
  background: #ffffff;
  border-color: #8c7e70;
}

.search-box input::placeholder {
  color: var(--text-dim);
}

.clear-search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e2d7c9;
  border: none;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.select-wrap select {
  height: 38px;
  padding: 0 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 550;
  outline: none;
  cursor: pointer;
}

.fav-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 550;
  cursor: pointer;
  white-space: nowrap;
}

.fav-filter-btn:hover {
  background: #eee6db;
}

.fav-filter-btn.active {
  background: #fff1f2;
  border-color: #fecdd3;
  color: var(--accent-rose);
}

.fav-filter-btn.active svg {
  fill: var(--accent-rose);
}

.fav-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 6px;
  font-size: 0.7rem;
  font-weight: 750;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.06);
  color: inherit;
}

/* 分类标签导航栏 (自适应平铺展开 · 彻底杜绝遮挡与截断) */
.category-tabs-wrapper {
  width: 100%;
  overflow: visible;
  padding: 6px 0 2px;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.cat-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 550;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.16s ease;
  line-height: 1.3;
}

.cat-tab-btn:hover {
  background: #eae0d2;
  color: var(--text-title);
  border-color: #cfbeab;
}

.cat-tab-btn.active {
  background: #171310;
  border-color: #171310;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(23, 19, 16, 0.18);
}

.cat-count {
  font-size: 0.68rem;
  background: rgba(0, 0, 0, 0.06);
  padding: 1px 5px;
  border-radius: var(--radius-full);
}

.cat-tab-btn.active .cat-count {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* --- 结果统计栏 --- */
.grid-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding: 0 2px;
}

.results-count {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.reset-filter-link {
  background: none;
  border: none;
  color: var(--accent-caramel);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

/* ============================================================
   案例卡片网格 Cases Grid - 标题绝对突出 · 弱化其余元素
   ============================================================ */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.case-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 22px 20px 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.case-card:hover {
  transform: translateY(-3px);
  border-color: #bfaea0;
  box-shadow: var(--shadow-hover);
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.card-badges {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 弱化的顶部小标签 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 550;
  line-height: 1.4;
}

.badge-cat {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 0;
  font-size: 0.72rem;
  font-weight: 600;
}

.badge-prompt-dot {
  background: #fef3c7;
  color: #92400e;
  font-weight: 650;
}

.badge-grade {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  background: transparent;
}

.card-fav-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.card-fav-btn:hover {
  color: var(--accent-rose);
}

.card-fav-btn.active {
  color: var(--accent-rose);
}

.card-fav-btn.active svg {
  fill: var(--accent-rose);
}

/* ============================================================
   【绝对核心焦点】：项目名称 / 案例大标题
   字号加大、字重加深、行高舒适，一眼就看到标题！
   ============================================================ */
.card-title {
  font-size: 1.15rem;
  font-weight: 850;
  color: var(--text-title);
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  transition: color 0.15s ease;
}

.case-card:hover .card-title {
  color: var(--accent-caramel);
}

/* ============================================================
   【弱化辅助】：一句话价值
   去掉所有背景方框，自然纯净小字，安静衬托标题
   ============================================================ */
.card-valueline {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   【弱化辅助】：指标条
   单色微标，极轻柔和
   ============================================================ */
.card-stats-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.stat-tag {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--text-muted);
  font-weight: 550;
}

.stat-tag.stat-score {
  color: #92400e;
  font-weight: 700;
}

.stat-tag.stat-heat {
  color: #9a3412;
  font-weight: 700;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.74rem;
  color: var(--text-muted);
}

.card-source-info {
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 550;
  transition: color 0.15s ease;
}

.source-link-btn:hover {
  color: var(--accent-caramel);
  text-decoration: underline;
}

.card-detail-action {
  color: var(--text-title);
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

/* --- 空状态 Empty State --- */
.empty-state {
  text-align: center;
  padding: 50px 20px;
  background: var(--bg-card);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
}

.empty-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.empty-title {
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--text-title);
  margin-bottom: 4px;
}

.empty-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* --- 按钮组件 --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.16s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: #171310;
  color: #ffffff;
}

.btn-primary:hover {
  background: #332b25;
}

.btn-outline {
  background: var(--bg-card);
  border-color: var(--border-subtle);
  color: var(--text-title);
}

.btn-outline:hover {
  background: var(--bg-subtle);
}

.btn-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-icon:hover {
  background: #e6dcce;
  color: var(--text-title);
}

/* --- 详情弹窗 Modal (层次分明) --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(23, 19, 16, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.97) translateY(8px);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-container {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 18px 24px 12px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
}

.modal-header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.modal-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-fav-btn.active {
  color: var(--accent-rose);
}

.modal-fav-btn.active svg {
  fill: var(--accent-rose);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* 弹窗项目名称突出 */
.modal-title {
  font-size: 1.4rem;
  font-weight: 850;
  color: var(--text-title);
  line-height: 1.35;
  margin-bottom: 10px;
}

.modal-valueline {
  font-size: 0.92rem;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  line-height: 1.6;
}

.modal-section {
  margin-bottom: 22px;
}

.modal-section:last-child {
  margin-bottom: 0;
}

.modal-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-title);
  margin-bottom: 8px;
}

.modal-section-icon {
  font-size: 1rem;
}

.modal-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* 步骤编号样式 */
.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #dfd4c5;
  color: #3b3127;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-content {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* 提示词代码块 */
.prompt-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.prompt-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  background: #eae0d0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.7rem;
  font-weight: 650;
  color: var(--text-muted);
}

.prompt-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 2px 7px;
  color: var(--text-title);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
}

.prompt-code {
  display: block;
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: #78350f;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

/* 避坑提示警告框 */
.pitfalls-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 12px;
  color: #92400e;
  font-size: 0.88rem;
  line-height: 1.55;
}

/* 产出与证据卡片 */
.output-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: 12px;
}

.output-text {
  font-size: 0.88rem;
  color: #166534;
  line-height: 1.55;
}

.output-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #15803d;
  font-size: 0.78rem;
  text-decoration: none;
  font-weight: 600;
}

/* 弹窗来源信息栏 */
.source-verify-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.source-meta-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.modal-footer {
  padding: 12px 24px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* --- 页脚 --- */
.site-footer {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.footer-source {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.footer-note {
  font-size: 0.74rem;
  color: var(--text-dim);
}

/* --- Toast --- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #171310;
  color: #fbf9f6;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 550;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* --- 响应式适配 (Responsive) --- */
@media (max-width: 1024px) {
  .trending-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .app-container {
    padding: 16px 14px 60px;
  }

  .header-main {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px;
  }

  .stats-panel {
    width: 100%;
    justify-content: space-around;
  }

  .featured-card {
    padding: 18px;
  }

  .featured-title {
    font-size: 1.25rem;
  }

  .trending-grid {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 6px;
    gap: 10px;
  }

  .trending-grid::-webkit-scrollbar {
    display: none;
  }

  .trending-card {
    flex: 0 0 220px;
    min-width: 220px;
  }

  .toolbar {
    padding: 14px 12px;
  }

  .category-tabs {
    gap: 6px;
  }

  .cat-tab-btn {
    padding: 5px 10px;
    font-size: 0.78rem;
  }

  .toolbar-top {
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar-actions {
    justify-content: space-between;
  }

  .select-wrap select {
    flex: 1;
  }

  .cases-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }

  .modal-container {
    max-height: 92vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .modal-header {
    padding: 14px 16px;
  }

  .modal-body {
    padding: 16px;
  }

  .modal-footer {
    padding: 10px 16px;
  }
}
