/* =========================
  Hero
========================= */
.case-hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 84px;
  background: linear-gradient(135deg, #f8fcff 0%, #edf7ff 100%);
  border-bottom: 1px solid rgba(168, 198, 224, 0.45);
}

.case-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0.86) 100%),
    url("../backgrounds/business_introduce.png");
  background-size: cover;
  background-position: center;
  opacity: 0.95;
}

.case-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(42, 143, 180, 0.10), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(42, 143, 180, 0.10), transparent 28%);
}

.case-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.case-label {
  margin: 0 0 22px;
  color: #2a8fb4;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.case-hero h1 {
  margin: 0;
  color: #0b2f57;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.case-hero h1::after {
  content: "";
  display: block;
  width: 52px;
  height: 2px;
  margin: 22px auto 0;
  background: #0b2f57;
}

.case-hero-lead {
  margin: 30px 0 0;
  color: #34485f;
  font-size: 17px;
  font-weight: 600;
  line-height: 2;
}

.case-anchor-nav {
  display: inline-flex;
  gap: 10px;
  margin-top: 42px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(168, 198, 224, 0.72);
  box-shadow: 0 12px 30px rgba(10, 50, 90, 0.08);
}

.case-anchor-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  padding: 12px 18px;
  border-radius: 999px;
  color: #0b2f57;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.25s ease;
}

.case-anchor-nav a:hover {
  background: #0b2f57;
  color: #fff;
}

.case-section {
  padding: 96px 0;
  background: #ffffff;
}

.case-container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.case-section-heading {
  text-align: center;
  margin-bottom: 48px;
}

.case-section-heading h2 {
  margin: 0;
  color: #0b2f57;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.case-heading-line {
  display: block;
  width: 52px;
  height: 2px;
  margin: 16px auto 22px;
  background: #0b2f57;
}

.case-section-description {
  margin: 0;
  color: #34485f;
  font-size: 15px;
  line-height: 2;
  font-weight: 500;
}

/* Case Cards */
.case-list {
  display: grid;
  gap: 28px;
}

.case-card {
  display: grid;
  grid-template-columns: 38% 1fr; /* 升级为 38% 黄金弹性占比，横向画幅更舒展，完美消除图片左右宽度被截断的视觉缺陷 */
  overflow: hidden;
  border: 1px solid rgba(168, 198, 224, 0.75);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(10, 50, 90, 0.06);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s ease;
}

.case-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(10, 50, 90, 0.12);
  border-color: rgba(11, 95, 159, 0.5);
}

.case-image {
  position: relative;
  min-height: 268px;
  background: #e9f3fb;
  overflow: hidden;
}

.case-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.case-card:hover .case-image img {
  transform: scale(1.06);
}

.case-no-image {
  position: absolute;
  inset: 0;
  background: #e9f3fb;
}

.case-number {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  padding: 11px 18px;
  background: #0b5f9f;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.case-content {
  position: relative;
  padding: 34px 36px 28px;
}

.case-category {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 5px 10px;
  border-radius: 4px;
  background: #e8f4ff;
  color: #0b5f9f;
  font-size: 12px;
  font-weight: 700;
}

.case-content h3 {
  margin: 0 0 14px;
  color: #0b2f57;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.5;
}

.case-summary {
  margin: 0 0 24px;
  color: #2f4054;
  font-size: 14.5px;
  line-height: 1.95;
  font-weight: 500;
}

.case-points {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(168, 198, 224, 0.45);
  background: linear-gradient(135deg, #ffffff 0%, #f4f9fd 100%);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(10, 50, 90, 0.02), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.case-card:hover .case-points {
  border-color: rgba(11, 95, 159, 0.35);
  box-shadow: 0 6px 24px rgba(10, 50, 90, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.case-content h3 + .case-points {
  margin-top: 24px;
}

.case-points div {
  padding: 22px 20px;
  border-right: 1px solid rgba(168, 198, 224, 0.3);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.case-points div:last-child {
  border-right: none;
}

/* 仅在非触摸设备/大屏上启用格子悬停微动，体验更灵动 */
@media (hover: hover) {
  .case-points div:hover {
    background-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 16px rgba(10, 50, 90, 0.05);
    z-index: 2;
  }
  
  .case-points div:first-child:hover {
    border-top-left-radius: 9px;
    border-bottom-left-radius: 9px;
  }
  
  .case-points div:last-child:hover {
    border-top-right-radius: 9px;
    border-bottom-right-radius: 9px;
  }
}

.case-points h4 {
  position: relative;
  padding-left: 12px;
  margin: 0 0 10px;
  color: #0b5f9f;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  display: flex;
  align-items: center;
}

.case-points h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 3px;
  background: linear-gradient(to bottom, #1fa7aa 0%, #0b5f9f 100%);
  border-radius: 2px;
  transition: transform 0.3s ease;
}

.case-points div:hover h4::before {
  transform: scaleY(1.2);
}

.case-points p {
  margin: 0;
  color: #3b5067;
  font-size: 13px;
  line-height: 1.7;
  font-weight: 500;
  word-break: break-all;
  overflow-wrap: break-word;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.case-tags span {
  display: inline-flex;
  padding: 6px 11px;
  border-radius: 999px;
  background: #edf6ff;
  color: #0b5f9f;
  font-size: 12px;
  font-weight: 700;
}

/* =========================
  Responsive
========================= */
@media (max-width: 1023px) {
  .case-card {
    grid-template-columns: 1fr;
  }

  .case-image {
    width: 100%;
    aspect-ratio: 16 / 9; /* 升级为 16:9 黄金纵横比，高度随宽度百分之百动态自适应 */
    min-height: auto;
  }

  .case-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: auto;
    object-fit: cover;
  }

  .case-points {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-points div {
    border-right: 1px solid rgba(168, 198, 224, 0.3);
    border-bottom: 1px solid rgba(168, 198, 224, 0.3);
  }

  /* 偶数项（右侧列）取消右边框 */
  .case-points div:nth-child(2n) {
    border-right: none;
  }

  /* 最后两项（第二行）取消下边框 */
  .case-points div:nth-child(3),
  .case-points div:nth-child(4) {
    border-bottom: none;
  }

  /* 悬停圆角适配 */
  @media (hover: hover) {
    .case-points div:nth-child(1):hover {
      border-top-left-radius: 9px;
    }
    .case-points div:nth-child(2):hover {
      border-top-right-radius: 9px;
    }
    .case-points div:nth-child(3):hover {
      border-bottom-left-radius: 9px;
    }
    .case-points div:nth-child(4):hover {
      border-bottom-right-radius: 9px;
    }
  }
}

@media (max-width: 767px) {
  .case-container {
    width: min(100% - 32px, 1120px);
  }

  .case-hero {
    padding: 76px 0 60px;
  }

  .case-hero h1 {
    font-size: 34px;
  }

  .case-hero-lead {
    margin-top: 24px;
    font-size: 14px;
    line-height: 1.9;
  }

  .case-hero-lead br {
    display: none;
  }

  .case-anchor-nav {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    margin-top: 34px;
    border-radius: 18px;
    gap: 6px;
  }

  .case-anchor-nav a {
    width: 100%;
    min-width: 0;
    border-radius: 12px;
  }

  .case-section {
    padding: 64px 0;
  }

  .case-section-heading {
    margin-bottom: 38px;
  }

  .case-section-heading h2 {
    font-size: 25px;
  }

  .case-card {
    border-radius: 10px;
  }

  .case-image {
    width: 100%;
    aspect-ratio: 16 / 9; /* 保持 16:9 黄金画幅，手机端完美高宽弹性自适应 */
    min-height: auto;
  }

  .case-image img {
    min-height: auto;
  }

  .case-content {
    padding: 26px 20px 24px;
  }

  .case-content h3 {
    font-size: 21px;
  }

  .case-summary {
    font-size: 14px;
  }

  .case-points {
    grid-template-columns: 1fr;
  }

  .case-points div {
    padding: 16px 18px;
    border-right: none;
    border-bottom: 1px solid rgba(168, 198, 224, 0.25);
  }

  .case-points div:last-child {
    border-bottom: none;
  }

  /* 悬浮圆角适配 */
  @media (hover: hover) {
    .case-points div:first-child:hover {
      border-radius: 9px 9px 0 0;
    }
    .case-points div:last-child:hover {
      border-radius: 0 0 9px 9px;
    }
  }
}