/* 案例区按一张主卡与三张横向卡组织，图片和文案沿用现有内容。 */
.medical-layout #cases {
  border-top: 0;
  background: linear-gradient(180deg, #f6faff 0%, #fff 88%);
}
.medical-layout #cases > .container { width: min(1320px, calc(100% - 104px)); }
.medical-layout .cases-layout { grid-template-columns: 1.08fr 1fr; gap: 24px; }
.medical-layout .case-featured, .medical-layout .case-item {
  border: 0;
  box-shadow: 0 12px 32px rgba(40, 84, 126, .09);
}
.medical-layout .case-featured { min-height: 576px; border-radius: 17px; }
/* 主图沿用右侧缩略图的宽高比例，避免固定高度裁掉人物和诊室环境。 */
.medical-layout .case-photo { flex: 0 0 auto; height: auto; aspect-ratio: 202 / 132; border-radius: 15px; }
.medical-layout .case-photo img {
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transform: none;
}
.medical-layout .case-photo-caption {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 28px 30px 17px;
  background: linear-gradient(0deg, rgba(28, 52, 64, .44), transparent);
  color: #fff;
  font: 500 9px/1.5 'Segoe UI', sans-serif;
  letter-spacing: 1.4px;
}
.medical-layout .case-photo-caption span:last-child { font-size: 16px; font-weight: 400; }
.medical-layout .case-featured .case-body {
  display: flex;
  flex-direction: column;
  padding: 24px 28px 30px;
}
.medical-layout .case-main-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; min-width: 0; }
.medical-layout .case-featured .case-meta { margin-bottom: 14px; }
.medical-layout .case-category { gap: 8px; letter-spacing: 0; font-weight: 600; }
.medical-layout .case-category::before { display: none; }
.medical-layout .case-category svg { flex: 0 0 auto; width: 21px; height: 21px; }
.medical-layout .case-featured .case-category {
  min-height: 30px;
  padding: 3px 13px;
  border-radius: 999px;
  background: #fff0e9;
  color: #f26a2c;
  font-size: 12px;
}
.medical-layout .case-featured .case-category svg { width: 17px; height: 17px; }
.medical-layout .case-featured .case-title { font-size: 23px; line-height: 1.35; color: #1e2e3c; }
.medical-layout .case-featured .case-desc { margin-top: 12px; font-size: 13px; line-height: 1.7; }
.medical-layout .case-featured .case-tags { margin-top: 18px; gap: 8px; }
.medical-layout .case-featured .case-tags > span { padding: 3px 14px; border: 0; border-radius: 999px; background: #f4f7fa; font-size: 11px; line-height: 1.7; }
.medical-layout .case-featured .case-cta {
  min-width: 140px;
  min-height: 36px;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  padding: 6px 19px;
  border-radius: 999px;
  background: linear-gradient(110deg, #ff914e, #ff6629);
  box-shadow: 0 6px 15px rgba(236, 101, 46, .18);
  color: #fff !important;
  font-size: 13px;
}
.medical-layout .case-stack { grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 14px; }
.medical-layout .case-item {
  grid-template-columns: 202px minmax(0, 1fr);
  gap: 24px;
  min-width: 0;
  padding: 16px 20px 16px 16px;
  border-radius: 14px;
  text-decoration: none;
}
/* 项目卡仅展示现场信息，方案跳转统一由左侧按钮承接。 */
@media (hover: hover) {
  .medical-layout #cases .case-item:hover {
    transform: none;
    box-shadow: 0 12px 32px rgba(40, 84, 126, .09);
  }
}
.medical-layout .case-thumb.crop-county,
.medical-layout .case-thumb.crop-chest,
.medical-layout .case-thumb.crop-plasma { width: 100%; height: 132px; aspect-ratio: auto; }
/* 按现场照片边界取景，缩略图尺寸变化时避免露出 PPT 的相邻图片。 */
.medical-layout #cases .case-thumb { --case-thumb-height: 132px; }
.medical-layout #cases .case-thumb img { top: 50%; left: 50%; }
.medical-layout #cases .case-thumb.crop-county img {
  width: max(326.7%, calc(var(--case-thumb-height) * 4.92));
  transform: translate(-24.17%, -37.6%);
}
/* 胸痛中心合影保留完整横幅和人物，余白由缩略图背景承接。 */
.medical-layout #cases .case-thumb.crop-chest img {
  width: min(400%, calc(var(--case-thumb-height) * 7.36));
  transform: translate(-62.5%, -73.3%);
  clip-path: inset(61.3% 25% 14.65% 50%);
}
.medical-layout #cases .case-thumb.crop-plasma img {
  width: max(578.5%, calc(var(--case-thumb-height) * 5.55));
  transform: translate(-78.66%, -41.2%);
}
.medical-layout .case-copy { min-width: 0; }
.medical-layout .case-item .case-meta { margin-bottom: 7px; }
.medical-layout .case-item .case-category { font-size: 12px; }
.medical-layout .case-item .case-title { font-size: 18px; line-height: 1.4; color: #20303d; }
.medical-layout .case-item .case-desc { margin-top: 6px; font-size: 13px; line-height: 1.7; -webkit-line-clamp: 2; }
@media (max-width: 1100px) {
  .medical-layout #cases > .container { width: min(900px, calc(100% - 64px)); }
  .medical-layout .cases-layout { grid-template-columns: 1fr; }
  .medical-layout .case-featured { min-height: 0; }
  .medical-layout .case-stack { grid-template-rows: none; grid-auto-rows: auto; }
}
@media (max-width: 700px) {
  .medical-layout #cases > .container { width: calc(100% - 32px); }
  .medical-layout .cases-layout { gap: 16px; }
  .medical-layout .case-photo { aspect-ratio: 88 / 64; }
  .medical-layout .case-photo-caption { padding: 22px 18px 12px; font-size: 8px; }
  .medical-layout .case-featured .case-body { display: block; padding: 20px 20px 26px; }
  .medical-layout .case-featured .case-title { font-size: 20px; }
  .medical-layout .case-featured .case-desc { font-size: 12px; }
  .medical-layout .case-featured .case-cta { margin-top: 20px; }
  /* 手机标题和正文横跨整行，小图只与场景分类并排，避免长标题挤在窄栏。 */
  .medical-layout .case-item { grid-template-columns: 88px minmax(0, 1fr); align-items: center; gap: 12px; padding: 16px; }
  .medical-layout .case-copy { display: contents; }
  .medical-layout .case-item .case-meta { margin-bottom: 0; }
  .medical-layout .case-item .case-title,
  .medical-layout .case-item .case-desc { grid-column: 1 / -1; }
  .medical-layout .case-item .case-desc { margin-top: 0; }
  .medical-layout .case-thumb.crop-county,
  .medical-layout .case-thumb.crop-chest,
  .medical-layout .case-thumb.crop-plasma { height: 64px; }
  .medical-layout #cases .case-thumb { --case-thumb-height: 64px; }
  .medical-layout .case-item .case-category { gap: 4px; font-size: 10px; }
  .medical-layout .case-category svg { width: 16px; height: 16px; }
  .medical-layout .case-item .case-title { font-size: 14px; }
  .medical-layout .case-item .case-desc { font-size: 11px; -webkit-line-clamp: 3; }
}
