.case-page {
  overflow: visible;
}

.case-nav {
  position: sticky;
  z-index: 10;
  top: 0;
  padding: calc(env(safe-area-inset-top, 0px) + 13px) 18px 13px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.case-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1f5ca8;
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
}

.case-back > span:first-child {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: #edf3fb;
  font-size: 17px;
}

.case-hero {
  position: relative;
  overflow: hidden;
  padding: 35px 22px 31px;
  color: #fff;
  background: linear-gradient(155deg, #081d36, #174c83);
}

.case-hero::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -45px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(77, 167, 255, 0.2);
}

.case-eyebrow,
.case-section-number {
  color: #62adff;
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.08em;
}

.case-hero h1 {
  position: relative;
  z-index: 1;
  margin: 9px 0 12px;
  font-size: 29px;
  line-height: 1.25;
}

.case-hero > p:last-child {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.7;
}

.case-section {
  padding: 27px 22px 0;
}

.case-section h2 {
  margin: 5px 0 14px;
  font-size: 22px;
}

.pain-solution-grid {
  display: grid;
  gap: 10px;
}

.pain-solution-grid article {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fafc;
}

.pain-solution-grid article:nth-child(2n) {
  transform: translateX(5px);
}

.pain-solution-grid h3 {
  margin: 0 0 7px;
  font-size: 15px;
}

.pain-solution-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.case-timeline {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-timeline li {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 10px;
  padding: 13px;
  border-radius: 14px;
  background: #eff5ff;
}

.case-timeline span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.result-grid article {
  padding: 15px 8px;
  border-radius: 15px;
  background: #edf8f3;
  text-align: center;
}

.result-grid article:nth-child(2n) {
  background: #fff5e7;
}

.result-grid strong {
  display: block;
  color: #287057;
  font-size: 21px;
}

.result-grid article:nth-child(2n) strong {
  color: #a86d21;
}

.result-grid span {
  color: #527164;
  font-size: 11px;
}

.case-result-summary {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.proof-group {
  margin-top: 18px;
}

.proof-group h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.proof-deck {
  display: flex;
  gap: 10px;
  margin-right: -22px;
  padding: 2px 22px 10px 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.proof-deck::-webkit-scrollbar {
  display: none;
}

.proof-item {
  position: relative;
  flex: 0 0 78%;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  color: inherit;
  text-align: left;
  scroll-snap-align: start;
  cursor: pointer;
}

.proof-item img,
.proof-item video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.proof-group:first-of-type .proof-item video {
  object-position: center 24%;
}

.proof-item-copy {
  display: block;
  padding: 11px 12px;
  font-size: 13px;
  font-weight: 760;
}

.proof-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: rgba(7, 24, 46, 0.72);
  box-shadow: 0 6px 18px rgba(7, 24, 46, 0.28);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.proof-video-play::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid #fff;
}

.proof-item::after {
  content: "↗";
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(7, 24, 46, 0.7);
}

.case-quote {
  margin: 27px 22px 0;
  padding: 18px;
  border-radius: 18px 18px 18px 5px;
  background: #fff4df;
  color: #765724;
}

.case-quote blockquote {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

.case-quote figcaption {
  margin-top: 10px;
  font-size: 12px;
}

.privacy-note {
  margin: 16px 22px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.case-cta {
  margin: 25px 22px 34px;
  padding: 20px;
  border-radius: 20px;
  background: #eef5ff;
  text-align: center;
}

.case-cta h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.case-cta button {
  width: 100%;
  padding: 13px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #2675d6, #4b9fff);
  font: inherit;
  font-weight: 780;
  cursor: pointer;
}

.page-shell .case-cta-button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 10px 24px rgba(50, 123, 212, 0.22);
  animation: case-cta-pulse 4.8s ease-in-out infinite;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.page-shell .case-cta-button::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 28%, rgba(255, 255, 255, 0.58) 48%, transparent 68%);
  transform: translateX(-135%);
  animation: case-cta-shimmer 4.8s ease-in-out infinite;
}

.page-shell .case-cta-button > span {
  position: relative;
  z-index: 1;
}

.page-shell .case-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(50, 123, 212, 0.32);
}

.page-shell .case-cta-button:active {
  transform: translateY(1px) scale(0.985);
}

@keyframes case-cta-pulse {
  0%,
  100% {
    box-shadow: 0 10px 24px rgba(50, 123, 212, 0.22);
  }

  50% {
    box-shadow: 0 14px 30px rgba(50, 123, 212, 0.34);
  }
}

@keyframes case-cta-shimmer {
  0% {
    transform: translateX(-135%);
  }

  23%,
  100% {
    transform: translateX(135%);
  }
}

.case-cta a {
  display: inline-block;
  margin-top: 12px;
  color: #2d609d;
  font-size: 12px;
  text-decoration: none;
}

.case-back:focus-visible,
.proof-item:focus-visible,
.case-cta button:focus-visible {
  outline: 3px solid rgba(61, 130, 255, 0.45);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .page-shell .case-cta-button,
  .page-shell .case-cta-button::after {
    animation: none;
  }

  .page-shell .case-cta-button {
    transition: none;
  }
}

@media (max-width: 360px) {
  .case-hero,
  .case-section {
    padding-right: 17px;
    padding-left: 17px;
  }

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

  .proof-deck {
    margin-right: -17px;
    padding-right: 17px;
  }

  .case-quote,
  .privacy-note,
  .case-cta {
    margin-right: 17px;
    margin-left: 17px;
  }
}

/* AI 口播成片使用真实竖版画面，两列并排展示，首屏可同时看到两条内容。 */
.proof-group:first-of-type .proof-deck {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-right: 0;
  padding-right: 0;
  overflow: visible;
}

.proof-group:first-of-type .proof-item {
  min-width: 0;
  width: 100%;
  flex: none;
}

.proof-group:first-of-type .proof-item video {
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: center;
}
