.case-hub {
  --case-ink: #173039;
  --case-muted: #64777d;
  --case-teal: #168d89;
  --case-blue: #2d73c7;
  --case-line: #dce9e7;
  overflow: clip;
  background: #f3f8f7;
  color: var(--case-ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}

body:has(.case-hub) > header {
  background: #102c32;
}
.case-hub *,
.case-hub *::before,
.case-hub *::after {
  box-sizing: border-box;
}
.case-hub h1,
.case-hub h2,
.case-hub h3,
.case-hub p,
.case-hub figure {
  margin: 0;
}
.case-hub a {
  color: inherit;
  text-decoration: none;
}
.case-hub a:focus-visible {
  outline: 3px solid var(--case-teal);
  outline-offset: 4px;
}
.case-hub__shell {
  width: min(1280px, calc(100% - 64px));
  margin-inline: auto;
}

.case-hub__hero {
  position: relative;
  padding: calc(4.75rem + 62px) 0 54px;
  overflow: hidden;
  border-bottom: 1px solid #d7e9e6;
  background: #e8f5f2;
}
.case-hub__hero::before,
.case-hub__hero::after {
  position: absolute;
  border: 1px solid #168d8920;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.case-hub__hero::before {
  top: -315px;
  left: max(-190px, calc((100vw - 1280px) / 2 - 230px));
  width: 630px;
  height: 630px;
  box-shadow: 0 0 0 62px #168d890b;
}
.case-hub__hero::after {
  right: max(-110px, calc((100vw - 1280px) / 2 - 160px));
  bottom: -235px;
  width: 650px;
  height: 420px;
  box-shadow: 0 0 0 70px #2d73c708;
}
.case-hub__hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.case-hub__eyebrow {
  display: block;
  color: var(--case-teal);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
}
.case-hub__hero h1 {
  margin-top: 18px;
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 650;
  line-height: 1.2;
}
.case-hub__hero p {
  max-width: 730px;
  margin: 18px auto 0;
  color: var(--case-muted);
  font-size: 16px;
  line-height: 1.85;
}
.case-hub__stages {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  color: #517071;
  font-size: 12px;
  font-weight: 600;
}
.case-hub__stages i {
  width: 18px;
  height: 1px;
  background: #9ac1bd;
}

.case-hub__catalog {
  padding: 62px 0 76px;
}
.case-hub__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 42px;
  margin-bottom: 30px;
}
.case-hub__heading h2 {
  margin-top: 10px;
  font-size: clamp(25px, 2.8vw, 36px);
  font-weight: 650;
  line-height: 1.3;
}
.case-hub__more {
  display: inline-flex;
  min-height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid #c6dcda;
  border-radius: 6px;
  background: #fff;
  color: var(--case-ink);
  font-size: 13px;
  font-weight: 650;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}
.case-hub__more:hover {
  border-color: var(--case-teal);
  color: var(--case-teal);
  transform: translateY(-2px);
}
.case-hub__more > i:first-child {
  color: #fb7299;
  font-size: 18px;
}
.case-hub__more > i:last-child {
  color: var(--case-teal);
  font-size: 16px;
}
.case-hub__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.case-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 474px;
  flex-direction: column;
  padding: 25px 24px 22px;
  overflow: hidden;
  border: 1px solid var(--case-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 35px -34px #15484a80;
  transition:
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.case-card::after {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--case-teal), #64d4c2, var(--case-blue));
  content: "";
  opacity: 0;
  transform: scaleX(0.2);
  transform-origin: left;
  transition:
    opacity 0.28s ease,
    transform 0.4s ease;
}
.case-card:hover {
  border-color: #9bcac4;
  box-shadow: 0 26px 54px -34px #15484aaa;
  transform: translateY(-5px);
}
.case-card:hover::after {
  opacity: 1;
  transform: scaleX(1);
}
.case-card:has(.case-card__external-link) {
  cursor: pointer;
}
.case-card__external-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.case-card__external-link:focus-visible {
  border-radius: 8px;
  outline: 2px solid var(--case-teal);
  outline-offset: -3px;
}
.case-card__category {
  position: absolute;
  top: 0;
  right: 0;
  max-width: 52%;
  padding: 7px 12px;
  border-bottom-left-radius: 8px;
  background: #e8f5f2;
  color: var(--case-teal);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.3;
}
.case-card:nth-child(2) .case-card__category {
  background: #e9f2fb;
  color: #3472bb;
}
.case-card:nth-child(3) .case-card__category {
  background: #f8f0e5;
  color: #a76b23;
}
.case-card__title {
  display: flex;
  min-height: 50px;
  align-items: center;
  gap: 12px;
  padding-right: 28%;
}
.case-card__icon {
  flex: 0 0 auto;
  color: var(--case-teal);
  font-size: 27px;
}
.case-card__title h3 {
  min-width: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}
.case-card__content {
  display: flex;
  min-height: 104px;
  flex: 1 0 auto;
  flex-direction: column;
  padding-top: 16px;
}
.case-card__content > strong {
  min-height: 1.6em;
  color: #36736f;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.6;
}
.case-card__content > p {
  margin-top: 10px;
  color: var(--case-muted);
  font-size: 12px;
  line-height: 1.75;
}
.case-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 5px;
  margin-top: auto;
  padding-top: 14px;
}
.case-card__meta span {
  padding: 3px 6px;
  border: 1px solid #dce8e6;
  border-radius: 4px;
  color: #6c8281;
  font-size: 8px;
  font-weight: 650;
  line-height: 1.3;
}
.case-card__media,
.case-card__placeholder {
  position: relative;
  height: 178px;
  flex: 0 0 auto;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid #e1ebea;
  border-radius: 6px;
  background: #f2f7f6;
}
.case-card__media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, #ffffff38 50%, transparent 70%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translateX(-100%);
  transition:
    transform 0.55s ease,
    opacity 0.2s ease;
}
.case-card:hover .case-card__media::after {
  opacity: 1;
  transform: translateX(100%);
}
.case-card__media img,
.case-card__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.35s ease;
}
.case-card__media iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.case-card:hover .case-card__media img,
.case-card:hover .case-card__media video {
  filter: saturate(1.08) contrast(1.03);
  transform: scale(1.045);
}
.case-card__media--video {
  z-index: 3;
  background: #102c32;
}
.case-card__video-badge {
  position: absolute;
  z-index: 1;
  bottom: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid #ffffff4d;
  border-radius: 999px;
  background: #102c32ad;
  color: #fff;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.04em;
  pointer-events: none;
  backdrop-filter: blur(6px);
}
.case-card__video-badge i {
  color: #77e8d2;
  font-size: 12px;
}
.case-card__placeholder {
  display: grid;
  place-items: center;
  background:
    linear-gradient(#168d890a 1px, transparent 1px), linear-gradient(90deg, #168d890a 1px, transparent 1px), #f3f8f7;
  background-size: 22px 22px;
  color: #a7cfca;
  font-size: 46px;
}

.case-hub__empty {
  padding: 80px 24px;
  border: 1px dashed #b8d4d0;
  border-radius: 8px;
  color: var(--case-muted);
  text-align: center;
}
.case-hub__empty > span {
  color: var(--case-teal);
  font-size: 42px;
}
.case-hub__empty h2 {
  margin-top: 12px;
  font-size: 20px;
}
.case-hub__empty p {
  margin-top: 8px;
  font-size: 13px;
}
.case-hub__cta {
  padding: 30px 0;
  border-top: 1px solid #dce9e7;
  background: #fff;
}
.case-hub__cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.case-hub__cta-inner > div {
  display: flex;
  align-items: baseline;
  gap: 18px;
}
.case-hub__cta strong {
  font-size: 18px;
}
.case-hub__cta span {
  color: var(--case-muted);
  font-size: 13px;
}
.case-hub__cta a {
  display: inline-flex;
  min-height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 9px 17px;
  border-radius: 6px;
  background: var(--case-teal);
  color: #fff;
  font-weight: 650;
}
.case-hub__cta a span {
  color: inherit;
}

@media (max-width: 980px) {
  .case-hub__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .case-hub__shell {
    width: calc(100% - 36px);
  }
  .case-hub__hero {
    padding: calc(4.75rem + 42px) 0 42px;
  }
  .case-hub__hero h1 {
    font-size: 36px;
  }
  .case-hub__hero p {
    font-size: 14px;
  }
  .case-hub__stages {
    gap: 8px;
  }
  .case-hub__stages i {
    width: 10px;
  }
  .case-hub__catalog {
    padding: 48px 0 56px;
  }
  .case-hub__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
  }
  .case-hub__more {
    align-self: stretch;
  }
  .case-hub__grid {
    grid-template-columns: 1fr;
  }
  .case-card {
    min-height: 458px;
  }
  .case-hub__cta-inner,
  .case-hub__cta-inner > div {
    align-items: flex-start;
    flex-direction: column;
  }
  .case-hub__cta-inner > div {
    gap: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .case-card,
  .case-card__media img {
    transition: none;
  }
}
