/* ============================================================
   典型案例 · 列表与详情页  v3.0
   深蓝 × 香槟金，与站点设计系统一致
   ============================================================ */

/* ---------- 列表页 · 筛选与搜索 ---------- */
.case-toolbar {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 20px; flex-wrap: wrap; margin-bottom: 30px;
}
.case-toolbar .case-filter { margin-bottom: 0; flex: 1 1 620px; }
.case-search {
  display: flex; align-items: center; gap: 9px; min-width: 290px; height: 40px;
  padding: 0 16px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; box-shadow: var(--shadow-1);
}
.case-search:focus-within { border-color: var(--blue-soft); box-shadow: 0 0 0 3px rgba(29, 85, 216, .09); }
.case-search svg { width: 16px; height: 16px; flex: none; color: var(--faint); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.case-search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font: 13.5px var(--font); color: var(--ink);
}
.case-search input::placeholder { color: var(--faint); }
.case-search span { flex: none; font-size: 12px; color: var(--faint); white-space: nowrap; }
.case-empty { text-align: center; color: var(--muted); font-size: 14px; padding: 64px 0; }

/* ---------- 详情页 · 深色标题区 ---------- */
.cd-hero {
  position: relative; overflow: hidden; color: #fff; padding: 58px 0 96px;
  background: linear-gradient(118deg, #071230 0%, #0d2150 52%, #123a72 100%);
}
.cd-hero-bg {
  position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image:
    linear-gradient(rgba(120, 165, 235, .10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 165, 235, .10) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 75%, transparent);
}
.cd-hero-bg::after {
  content: ""; position: absolute; right: -120px; top: -180px; width: 620px; height: 620px;
  border-radius: 50%; background: radial-gradient(circle, rgba(61, 123, 224, .32), transparent 68%);
}
.cd-hero .container { position: relative; z-index: 2; }
.cd-hero .crumb { color: rgba(255, 255, 255, .52); }
.cd-hero .crumb a { color: rgba(255, 255, 255, .76); }
.cd-hero-grid { display: grid; grid-template-columns: 1fr 292px; gap: 56px; align-items: end; margin-top: 34px; }
.cd-eyebrow { font-size: 11px; letter-spacing: .2em; font-weight: 700; color: var(--gold-2); }
.cd-hero h1 {
  font-size: clamp(30px, 4vw, 48px); line-height: 1.26; margin: 14px 0 0;
  letter-spacing: .01em; font-weight: 700;
}
.cd-tagline { font-size: 18px; color: var(--gold-2); margin-top: 14px; line-height: 1.6; }
.cd-lead { font-size: 14.6px; line-height: 1.95; color: rgba(255, 255, 255, .7); max-width: 780px; margin-top: 16px; }
.cd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.cd-chips i {
  font-style: normal; font-size: 12px; padding: 5px 14px; border-radius: 999px;
  border: 1px solid rgba(236, 214, 164, .34); color: var(--gold-2); background: rgba(236, 214, 164, .07);
}
.cd-hero-side {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 16px; padding: 6px 22px; backdrop-filter: blur(8px);
}
.cd-kv { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.cd-kv small { display: block; font-size: 11.5px; color: rgba(255, 255, 255, .5); letter-spacing: .08em; }
.cd-kv b { display: block; font-size: 14px; font-weight: 600; margin-top: 5px; line-height: 1.6; }
.cd-back { display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 16px; font-size: 12.5px; color: var(--gold-2); }
.cd-back .i { width: 14px; height: 14px; transform: rotate(180deg); }

/* ---------- 主体 ---------- */
.cd-main { padding-top: 0; }
.cd-cover {
  margin: -56px auto 0; position: relative; z-index: 5; max-width: 1000px;
  border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-2);
}
.cd-cover img { width: 100%; max-height: 520px; object-fit: cover; display: block; }
.cd-cover figcaption {
  display: flex; align-items: center; gap: 10px; padding: 14px 22px;
  font-size: 12.5px; color: var(--faint); background: #fff;
}
.cd-cover figcaption span { width: 24px; height: 2px; background: var(--gold); flex: none; }

.cd-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 34px; }
.cd-metric { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 20px; box-shadow: var(--shadow-1); }
.cd-metric b { display: block; font-size: 25px; color: var(--navy-800); font-variant-numeric: tabular-nums; line-height: 1.2; }
.cd-metric span { display: block; font-size: 13px; color: var(--gold-ink); font-weight: 700; margin-top: 6px; }
.cd-metric p { font-size: 12.5px; color: var(--muted); line-height: 1.75; margin-top: 10px; }

.cd-sec { margin-top: 68px; }
.cd-sec-head { margin-bottom: 26px; }
.cd-sec-head > span { font-size: 11px; letter-spacing: .18em; color: var(--gold-ink); font-weight: 700; }
.cd-sec-head h2 { font-size: 26px; margin-top: 9px; padding-left: 14px; border-left: 4px solid var(--gold); }
.cd-sec-head p { font-size: 13.5px; color: var(--muted); margin-top: 10px; }

/* 双栏长文 */
.cd-copy { column-count: 2; column-gap: 46px; }
.cd-copy p { font-size: 14.6px; line-height: 1.95; color: #33415c; margin-bottom: 15px; break-inside: avoid; text-align: justify; }
.cd-copy p:first-child {
  column-span: all; font-size: 16px; line-height: 1.9; color: var(--ink);
  padding: 2px 0 16px 18px; border-left: 3px solid var(--gold);
  margin-bottom: 22px; background: linear-gradient(90deg, rgba(200, 166, 112, .06), transparent 60%);
}
.cd-copy p:last-child { margin-bottom: 0; }

/* 项目亮点 */
.cd-highlights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cd-hl { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px 22px; transition: .3s; }
.cd-hl:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: #d9e2f4; }
.cd-hl i { font-style: normal; font-size: 12px; font-weight: 700; color: var(--gold-ink); letter-spacing: .1em; }
.cd-hl h3 { font-size: 16px; margin: 12px 0 10px; }
.cd-hl p { font-size: 13px; color: var(--muted); line-height: 1.8; }

/* 应用子系统 */
.cd-scope { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cd-scope-item { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px 22px 32px; }
.cd-scope-dot { position: absolute; left: 16px; top: 28px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.cd-scope-item h3 { font-size: 15.5px; margin-bottom: 8px; }
.cd-scope-item p { font-size: 13px; color: var(--muted); line-height: 1.8; }

/* 实施流程 */
.cd-flow { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.cd-flow::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: 26px; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--blue-soft)); opacity: .38;
}
.cd-flow-step { position: relative; padding: 0 12px; text-align: center; }
.cd-flow-num {
  position: relative; z-index: 2; width: 52px; height: 52px; margin: 0 auto 18px;
  border-radius: 50%; display: grid; place-items: center; background: #fff;
  border: 2px solid var(--gold); color: var(--gold-ink); font-weight: 700; font-size: 15px;
  box-shadow: var(--shadow-1);
}
.cd-flow-step h3 { font-size: 14.5px; margin-bottom: 8px; line-height: 1.5; }
.cd-flow-step p { font-size: 12.5px; color: var(--muted); line-height: 1.75; }

/* 图文讲解 */
.cd-srow { display: grid; grid-template-columns: 1.06fr .94fr; gap: 48px; align-items: center; margin-bottom: 46px; }
.cd-srow:last-child { margin-bottom: 0; }
.cd-srow.is-flip .cd-sfig { order: 2; }
.cd-srow.is-flip .cd-stxt { order: 1; }
.cd-sfig {
  margin: 0; border-radius: 16px; overflow: hidden; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-1); transition: transform .4s ease, box-shadow .4s ease;
}
.cd-sfig:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.cd-sfig img { width: 100%; display: block; }
.cd-sfig figcaption { font-size: 11.5px; color: var(--faint); padding: 11px 18px; border-top: 1px solid var(--line); background: #fafbfe; }
.cd-snum { font-size: 11px; letter-spacing: .16em; color: var(--gold-ink); }
.cd-stxt h3 { font-size: 22px; line-height: 1.45; margin: 12px 0 15px; }
.cd-stxt > p { font-size: 14.5px; line-height: 1.95; color: var(--muted); }
.cd-stxt ul { margin: 18px 0 0; padding: 0; list-style: none; }
.cd-stxt li { position: relative; padding-left: 20px; font-size: 13.5px; color: #33415c; line-height: 2; }
.cd-stxt li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* 图集 */
.cd-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cd-gitem { position: relative; display: block; border-radius: 14px; overflow: hidden; background: var(--navy-900); aspect-ratio: 16 / 10; border: 1px solid var(--line); }
.cd-gitem img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cd-gitem:hover img { transform: scale(1.06); }
.cd-gitem span { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 16px 12px; font-size: 12px; color: #fff; background: linear-gradient(transparent, rgba(4, 11, 28, .84)); }

/* 相关案例与 CTA */
.cd-related { grid-template-columns: repeat(3, 1fr); }
.cd-cta {
  margin-top: 72px; display: flex; justify-content: space-between; align-items: center; gap: 26px;
  padding: 34px 40px; border-radius: 18px; color: #fff;
  background: linear-gradient(120deg, #071230, #0d2150 70%, #123a72);
  box-shadow: var(--shadow-2);
}
.cd-cta h3 { font-size: 20px; }
.cd-cta p { font-size: 13.5px; color: rgba(255, 255, 255, .66); margin-top: 8px; }
.cd-cta .btn { flex: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1120px) {
  .cd-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .cd-hero-side { max-width: 420px; }
  .cd-highlights { grid-template-columns: repeat(2, 1fr); }
  .cd-scope { grid-template-columns: repeat(2, 1fr); }
  .cd-srow { gap: 30px; }
  .cd-stxt h3 { font-size: 19px; }
}
@media (max-width: 900px) {
  .cd-metrics { grid-template-columns: repeat(2, 1fr); }
  .cd-flow { grid-template-columns: repeat(2, 1fr); gap: 22px 0; }
  .cd-flow::before { display: none; }
  .cd-srow, .cd-srow.is-flip { grid-template-columns: 1fr; gap: 22px; }
  .cd-srow.is-flip .cd-sfig, .cd-srow.is-flip .cd-stxt { order: 0; }
  .cd-gallery { grid-template-columns: repeat(2, 1fr); }
  .cd-related { grid-template-columns: repeat(2, 1fr); }
  .case-search { flex: 1 1 100%; }
}
@media (max-width: 720px) {
  .cd-hero { padding: 44px 0 78px; }
  .cd-hero h1 { font-size: 28px; }
  .cd-cover { margin-top: -40px; }
  .cd-sec { margin-top: 52px; }
  .cd-copy { column-count: 1; }
  .cd-copy p:first-child { padding-left: 14px; }
  .cd-highlights, .cd-scope, .cd-gallery, .cd-related { grid-template-columns: 1fr; }
  .cd-flow { grid-template-columns: 1fr; gap: 24px; }
  .cd-flow-num { margin-bottom: 12px; }
  .cd-cta { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
  .cd-stxt h3 { font-size: 19px; }
  .case-toolbar .case-filter { flex: 1 1 100%; }
}
