/* ==========================================
   客户案例独立页 · Case Studies
   仅承载本页新增样式，案例卡片主体（.case-hero /
   .case-story-* / .case-metrics）复用 css/style.css
   ========================================== */

/* ---------- 页面顶部 ---------- */
.cases-hero {
  padding: 56px 0 28px;
  background: var(--bg-pearl-slate);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.cases-hero::after {
  content: "";
  position: absolute;
  right: -140px;
  top: -170px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.14) 0%, transparent 62%);
  border-radius: 50%;
  pointer-events: none;
}

.cases-hero .container { position: relative; z-index: 1; }

.cases-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--blue);
  background: var(--blue-bg);
  border: 1px solid var(--blue-lit);
  border-radius: 100px;
  padding: 6px 15px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.cases-hero h1 {
  font-size: 34px;
  line-height: 1.22;
  color: var(--ink);
  letter-spacing: -.025em;
  font-weight: 800;
  margin-bottom: 14px;
}

.cases-hero h1 em {
  font-style: normal;
  background: var(--grad-title);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cases-hero p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-4);
  max-width: 720px;
}

/* ---------- 顶部数据条 ---------- */
.cases-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.cases-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cases-stat-v {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  font-family: var(--font-sans);
  letter-spacing: -.02em;
}

.cases-stat-v em {
  font-style: normal;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-4);
  margin-left: 3px;
  letter-spacing: 0;
}

.cases-stat-l {
  font-size: 13px;
  color: var(--ink-5);
  font-weight: 600;
}

/* ---------- 列表主体 ---------- */
.cases-body {
  padding: 52px 0 96px;
  background: var(--paper);
}

/* ---------- 案例筛选（三维平铺，白底轻量） ---------- */
/* 白底、无灰容器、与卡片间距 24px；底部细分隔线区分内容；中文无衬线 */
.cases-body .case-filter-nav {
  display: block;                  /* 覆盖 style.css 的 display:flex，保证三行纵向排列 */
  margin-bottom: 24px;
  padding: 16px 0;                 /* 上下内边距 16px */
  background: #fff;                /* 白底，取消灰容器 */
  font-family: var(--font-sans);
}

/* 每行：左侧分类名（固定 88px、左对齐）+ 右侧选项组（同一起点对齐） */
.filter-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 12px;             /* 行间距 12px，用留白区分不加独立框 */
}
.filter-row:last-of-type { margin-bottom: 0; }

.filter-row-label {
  flex: 0 0 88px;
  width: 88px;
  font-size: 14px;
  font-weight: 600;                 /* 分类名加粗，与选项拉开层级 */
  color: #334155;
  line-height: 34px;               /* 与首行选项高度对齐 */
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;                    /* 允许选项自然换行收缩 */
}

/* 选项：高 34px、内边距 12px、圆角 8px；默认无背景、无边框 */
.case-filter-btn {
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  background: transparent;
  border: none;
  color: #475569;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
/* 悬停：深灰文字 + 中性浅灰背景（区别于选中态的浅蓝底） */
.case-filter-btn:hover { background: #F1F5F9; color: #334155; }
/* 选中：浅蓝底 + 品牌蓝字 + 600 字重，统一圆角 6px */
.case-filter-btn.active {
  background: #EEF4FF;
  color: #2563EB;
  font-weight: 600;
  border: none;
}
/* 选中项悬停仍保持选中态（.active 在后定义，特异性一致时胜出） */
.case-filter-btn.active:hover { background: #EEF4FF; color: #2563EB; }

/* 结果数量 + 清除筛选（三组下方同一行） */
.filter-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #EEF0F4;   /* 分隔线：筛选三行与结果/案例之间 */
  font-size: 13.5px;
  color: #64748B;
}
.filter-count b { color: #334155; font-weight: 700; }
.filter-clear {
  padding: 0;
  background: none;
  border: none;
  color: #2563EB;
  font-size: 13px;
  cursor: pointer;
}
.filter-clear:hover { text-decoration: underline; }
.filter-clear[hidden] { display: none; }

/* 手机端：三个维度名称保留，选项在各自组内自然换行，不串组 */
@media (max-width: 800px) {
  .filter-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .filter-row-label {
    flex: 0 0 auto;   /* 纵向排列时 88px 会变成高度，须重置 */
    width: auto;
    line-height: 1.4;
  }
  .filter-chips { width: 100%; }
}

/* ---------- 卡片多维标签 ---------- */
.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.case-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft, #eff6ff);
  color: var(--accent, #2563eb);
  border: 1px solid #dbeafe;
}

/* 能力标签：AI 元数据引擎实际展示的能力；浅灰胶囊，与分类标签（蓝底）区分 */
.case-caps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.case-cap {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #E2E8F0;
}

/* 筛选隐藏 / 入场动画（.is-filtered-out / .case-anim 定义在 css/style.css，
   首页与案例独立页共用） */
.cases-body .case-metrics {
  margin-top: 4px;
}

/* 案例 · 在线报告入口 */
.case-report-link {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.case-report-link a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--bronze);
  transition: all .2s ease;
}

.case-report-link a:hover {
  color: var(--bronze-bright);
  transform: translateX(3px);
}

/* ---------- 客户评价 ---------- */
.cases-testi {
  padding: 0 0 96px;
  background: var(--paper);
}

.cases-testi-head {
  text-align: center;
  margin-bottom: 40px;
}

.cases-testi-head .sec-tag {
  display: inline-block;
  margin-bottom: 14px;
}

.cases-testi-head h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.02em;
}

.cases-testi-head h2 em {
  font-style: normal;
  background: var(--grad-title);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.testi-card {
  background: var(--bg-slate);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: all .3s ease;
}

.testi-card:hover {
  background: #ffffff;
  border-color: var(--bronze);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.testi-quote {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-3);
  flex: 1;
  position: relative;
  padding-left: 2px;
}

.testi-quote::before {
  content: "“";
  font-family: var(--font-serif);
  font-size: 40px;
  line-height: 1;
  color: var(--bronze-bright);
  opacity: .5;
  display: block;
  height: 20px;
}

.testi-who {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.testi-who strong {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
}

.testi-who span {
  font-size: 12.5px;
  color: var(--ink-5);
}

/* ---------- 底部 CTA ---------- */
.cases-cta {
  background: var(--bg-dark-section);
  color: #ffffff;
  padding: 84px 0;
  border-top: 1px solid var(--line-dark);
}

.cases-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.cases-cta-copy {
  max-width: 660px;
}

.cases-cta-copy h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 900;
  line-height: 1.3;
  color: #ffffff;
  margin-bottom: 16px;
  text-wrap: balance;
}

.cases-cta-copy h2 em {
  font-style: normal;
  color: var(--bronze-lit);
}

.cases-cta-copy p {
  font-size: 15.5px;
  line-height: 1.8;
  color: #cbd5e1;
}

.cases-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 260px;
}

.cases-cta-tel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: var(--bronze-lit);
  font-weight: 700;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .cases-stats { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .testi-grid { grid-template-columns: 1fr; gap: 16px; }
  .cases-cta-inner { flex-direction: column; align-items: flex-start; gap: 32px; }
  .cases-cta-actions { width: 100%; }
}

@media (max-width: 768px) {
  .cases-hero { padding: 52px 0 28px; }
  .cases-hero h1 { font-size: 27px; }
  .cases-hero p { font-size: 14.5px; }
  .cases-stat-v { font-size: 24px; }
  .cases-body { padding: 44px 0 64px; }
  .cases-testi { padding-bottom: 64px; }
  .cases-testi-head h2 { font-size: 25px; }
  .cases-cta { padding: 60px 0; }
  .case-hero { padding: 26px 22px; }
  .case-hero h3 { font-size: 19px; }
  .case-metrics { grid-template-columns: 1fr; }
}

/* ==========================================
   案例详情页 · Case Detail
   目录页（cases/index.html）点击进入每个案例的
   独立 html，复用 .case-hero / .case-story-* /
   .case-metrics（定义在 css/style.css）
   ========================================== */

/* 详情页头部：返回目录 + 行业标签 + 元信息 */
.case-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-4);
  margin-bottom: 18px;
  transition: color .2s ease;
}
.case-back-link:hover { color: var(--blue); }

.case-detail-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--bronze);
  border: 1px solid var(--bronze-lit);
  border-radius: 100px;
  padding: 6px 15px;
  margin-bottom: 18px;
}

.case-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 38px;
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.case-detail-meta .cdm {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.case-detail-meta .cdm-k {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink-5);
  text-transform: uppercase;
}
.case-detail-meta .cdm-v {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

/* 详情页正文容器（居中收窄，聚焦单个案例） */
.case-detail-body {
  padding: 56px 0 24px;
  background: var(--paper);
}
.case-detail-body .case-hero {
  margin: 0 auto;
  max-width: 940px;
  box-shadow: var(--shadow-md);
}

/* 详情页「相关案例 / 下一步」 */
.case-detail-next {
  background: var(--paper);
  padding: 24px 0 92px;
}
.case-detail-next .container { max-width: 940px; }
.case-detail-next h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 18px;
}
.case-detail-next .cdn-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
}
.case-detail-next a.cdn-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  transition: all .2s ease;
}
.case-detail-next a.cdn-link:hover { color: var(--blue); transform: translateX(3px); }
.case-detail-next a.cdn-link.back { color: var(--ink-4); }
.case-detail-next a.cdn-link.back:hover { color: var(--blue); }

@media (max-width: 768px) {
  .case-detail-meta { gap: 14px 24px; }
  .case-detail-body { padding: 36px 0 16px; }
}

/* 列表标题（左对齐，作为案例区内容起点；右侧弱提示新标签页打开） */
.cases-list-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-bottom: 18px;
}
.cases-list-head h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.02em;
  margin-bottom: 6px;
}
.cases-list-head p {
  font-size: 15px;
  color: var(--ink-4);
  line-height: 1.6;
}
.cases-list .case-filter-nav {
  margin-top: 16px;
}
