/* 成功案例移动端：沿用首页手机端的文字层级、间距与紧凑操作方式。 */
.cases-mobile-slider-dots { display: none; }

@media (max-width: 820px) {
  html,
  body { min-width: 0; overflow-x: hidden; }

  body[data-page="cases"] .container { width: min(calc(100% - 36px), 680px); }
  body[data-page="cases"] main > .section { padding: 36px 0; }

  /* 页头只保留品牌和菜单，首屏行动入口放在正文中。 */
  body[data-page="cases"] .site-header { position: sticky; top: 0; z-index: 200; }
  body[data-page="cases"] .header-inner { min-height: 58px; gap: 12px; }
  body[data-page="cases"] .brand { flex-basis: 108px; }
  body[data-page="cases"] .brand img { width: 108px; }
  body[data-page="cases"] .main-nav,
  body[data-page="cases"] .header-inner .button-small { display: none !important; }
  body[data-page="cases"] .nav-toggle { display: inline-flex !important; flex: 0 0 34px; width: 34px; height: 34px; margin-left: auto; }
  body[data-page="cases"] .compact-nav { position: fixed; top: 58px; right: 12px; left: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 6px; }

  /* 首屏沿用统一的手机端背景取景与文字层级。 */
  #case-intro.cases-hero { height: 338px !important; min-height: 338px !important; overflow: hidden; background: #102947; }
  #case-intro.cases-hero::before { z-index: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .86), rgba(0, 0, 0, .64)), var(--cases-hero-image) calc(100% + 145px) center / auto 100% no-repeat; opacity: 1; }
  #case-intro .cases-hero-grid { display: block; height: 338px !important; min-height: 338px !important; padding: 0; }
  #case-intro .cases-hero-banner-reserve { display: none; }
  #case-intro .inner-hero-copy { display: flex; flex-direction: column; height: 338px !important; min-height: 338px !important; padding: 48px 18px 18px; transform: translateY(5px); }
  #case-intro .inner-hero-copy h1 { max-width: 330px; margin: 0 0 12px; color: #fff; font-size: clamp(22px, 6vw, 25px); line-height: 1.4; }
  #case-intro .inner-hero-copy > p { max-width: 340px; color: rgba(255, 255, 255, .88); font-size: clamp(13px, 3.5vw, 14px); line-height: 1.7; }
  #case-intro .inner-hero-actions { display: none; }
  #case-intro .inner-hero-actions .button { display: inline-flex; width: fit-content; min-width: 0; min-height: 32px; padding: 0 12px; border-radius: 5px; font-size: 12px; }
  #case-intro .inner-hero-actions .button-ghost { display: none; }
  .cases-hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; margin: 24px 0 0; }
  .cases-hero-stats > div { display: flex; align-items: center; min-width: 0; min-height: 58px; padding: 0 4px; text-align: left; }
  .cases-hero-stats > div:first-child { padding-left: 0; }
  .cases-hero-stats > div:last-child { padding-right: 0; }
  #case-intro .cases-hero-stat-icon { width: 22px; height: 22px; margin: 0 6px 0 0; background: #e3b366; }
  #case-intro .cases-hero-stats strong { color: #fff; font-size: 20px; font-weight: 400; }
  #case-intro .cases-hero-stats em { color: #fff; font-size: 14px; font-weight: 400; }
  #case-intro .cases-hero-stats span { overflow: hidden; margin-top: 4px; color: #fff; font-size: 9px; font-weight: 400; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
  #case-intro .cases-hero-banner-reserve { display: none; }

  /* 地图与数据以一张紧凑的深色信息面板呈现。 */
  #case-scale.cases-section { padding: 36px 0 18px; }
  #case-scale.cases-section > .container { padding: 20px 16px; border: 0; border-radius: 8px; box-shadow: none; }
  #case-scale .section-heading { margin: 0 0 14px; }
  #case-scale .section-heading > span { gap: 8px; margin-bottom: 8px; font-size: 11px; }
  #case-scale .section-heading > span::before,
  #case-scale .section-heading > span::after { width: 28px; }
  #case-scale .section-heading h2 { font-size: 19px; line-height: 1.38; }
  #case-scale .case-scale-map { height: auto; margin: 0; aspect-ratio: 16 / 10; }

  /* 筛选保留完整功能：标签横向滑动，搜索框单独一行。 */
  #case-list > .container { padding: 0; border: 0; border-radius: 0; background: transparent; }
  #case-list.section { padding-top: 18px; }
  #case-list .section-heading { margin: 0 0 18px; }
  #case-list .section-heading > span { gap: 8px; margin-bottom: 8px; font-size: 11px; }
  #case-list .section-heading > span::before,
  #case-list .section-heading > span::after { width: 28px; }
  #case-list .section-heading h2 { margin: 0 0 8px; font-size: 19px; line-height: 1.38; }
  #case-list .section-heading p { margin: 0; font-size: 12px; line-height: 1.65; }
  #case-list .filter-bar { display: block; overflow-x: hidden; overflow-y: hidden; margin: 0 0 14px; padding: 8px 6px; border: 1px solid rgba(190, 140, 78, .38); border-radius: 6px; background: rgba(255, 255, 255, .76); scrollbar-width: none; }
  #case-list .filter-bar::-webkit-scrollbar { display: none; }
  #case-list .filter-bar > span { display: block; margin: 0 0 6px; color: #8f6738; font-size: 11px; font-weight: 600; }
  #case-list .filter-bar > button { display: inline-flex; align-items: center; justify-content: center; min-height: 26px; margin: 0 3px 0 0; padding: 0 7px; border-radius: 5px; font-size: 10px; line-height: 1; white-space: nowrap; }
  #case-list .filter-bar > button:last-of-type { margin-right: 0; }
  #case-list .case-search { display: flex; width: 100%; margin: 8px 0 0; }
  #case-list .case-search input { height: 32px; font-size: 11px; }
  /* 案例列表沿用新闻小卡的左图右文结构；分页脚本每页固定渲染 6 条。 */
  #case-list .wire-grid-3 { display: grid; grid-template-columns: 1fr; gap: 10px; overflow: visible; margin: 0; padding: 0; }
  #case-list .matrix-card { display: grid; grid-template-columns: minmax(0, 49%) minmax(0, 1fr); width: 100%; min-height: 112px; border-radius: 7px; transform: none !important; transition: none; }
  #case-list .matrix-card > .image-placeholder { min-height: 112px; aspect-ratio: auto; background-position: center; background-size: cover !important; }
  #case-list .matrix-card-body { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 0; padding: 10px 30px 10px 12px; }
  #case-list .matrix-card-body small { margin-bottom: 4px; font-size: 10px; }
  #case-list .matrix-card-body h3 { margin: 0 0 4px; font-size: 14px; line-height: 1.4; }
  #case-list .matrix-card-body p { display: -webkit-box; overflow: hidden; margin: 0; font-size: 11px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  #case-list .matrix-card-body::after { right: 11px; bottom: 10px; display: block; color: #c58a2c; content: "→"; font-size: 20px; font-weight: 600; line-height: 1; }
  .cases-mobile-slider-dots { display: none; }
  .cases-mobile-slider-dots button { display: block; width: 5px; height: 5px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: #d8d8d8; transition: width .2s ease, background-color .2s ease; }
  .cases-mobile-slider-dots button.is-active { width: 18px; border-radius: 5px; background: #ae752e; }
  #case-list .case-pagination { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; overflow: visible; align-items: center; gap: 6px; margin-top: 18px; padding: 0; }
  #case-list .case-page-numbers { display: flex; overflow-x: auto; gap: 6px; min-width: 0; padding: 2px 0; scrollbar-width: none; }
  #case-list .case-page-numbers::-webkit-scrollbar { display: none; }
  #case-list .case-page-button { flex: 0 0 auto; min-width: 29px; height: 29px; padding: 0 8px; border-radius: 5px; font-size: 10px; }
  #case-list .case-page-status { grid-column: 1 / -1; margin: 0; font-size: 10px; text-align: center; }

  /* 全国服务保留完整地图及信息，不用固定高度裁切。 */
  #case-service.section { padding: 0 0 36px; }
  #case-service > .container.split-feature { display: flex; flex-direction: column; min-height: 0; border-radius: 8px; box-shadow: none; }
  #case-service .split-feature-image { order: 1; min-height: 0; aspect-ratio: 16 / 9; background-position: center; background-size: contain !important; background-repeat: no-repeat; }
  #case-service .case-service-map { min-height: 0; aspect-ratio: 16 / 10; background: #102947; }
  #case-service .case-service-map .case-scale-map { height: 100%; margin: 0; }
  #case-service .case-map-inset { right: 8px; bottom: 7px; width: 62px; height: 78px; padding: 4px 3px 3px; }
  #case-service .case-map-inset-title { margin-bottom: 1px; font-size: 8px; }
  #case-service .split-feature-copy { order: 0; padding: 18px 15px; }
  #case-service .card-label { margin: 0 0 8px; font-size: 11px; }
  #case-service .split-feature-copy h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.4; }
  #case-service .split-feature-copy > p:not(.card-label) { font-size: 11px; line-height: 1.6; }
  #case-service .split-meta { grid-template-columns: 78px minmax(0, 1fr); margin-top: 12px; }
  #case-service .split-meta b,
  #case-service .split-meta span { min-height: 38px; font-size: 11px; }
  #case-service .split-meta b::before { width: 16px; height: 16px; margin-right: 6px; }

  /* 底部行动区同步其它栏目：图标与文案同排，按钮保持内容宽度。 */
  .cases-final-cta { padding: 0 0 36px; }
  .cases-final-cta .container { align-items: center; flex-direction: row; flex-wrap: wrap; gap: 12px; min-height: 0; padding: 20px 18px; border-radius: 8px; }
  .cases-final-cta .container > i { width: 36px; height: 36px; }
  .cases-final-cta .container > div:not(.cases-final-cta-actions) { flex: 1 1 0; min-width: 0; }
  .cases-final-cta h2 { margin: 0 0 5px; font-size: 16px; line-height: 1.35; }
  .cases-final-cta p { font-size: 11px; line-height: 1.5; }
  .cases-final-cta-actions { flex: 0 0 100%; width: 100%; margin: 0; }
  .cases-final-cta .button { justify-content: flex-start; width: fit-content; min-height: 31px; padding: 0 10px; border-radius: 5px; font-size: 11px; }
  .cases-final-cta .button span { font-size: 14px; }
}
