:root {
  --bg: #09070b;
  --panel: rgba(22, 12, 18, 0.78);
  --panel-border: rgba(255, 120, 120, 0.2);
  --text: #f6e9e6;
  --muted: #d3b8b2;
  --accent: #ff5b4d;
  --accent-2: #ffc04d;
  --danger: #d90032;
  --ok: #49d2b4;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at 20% 10%, #2b0b10 0%, transparent 40%),
    radial-gradient(circle at 80% 15%, #2a1425 0%, transparent 34%),
    radial-gradient(circle at 50% 80%, #21080d 0%, transparent 45%), var(--bg);
  color: var(--text);
  font-family: "Rajdhani", "Microsoft YaHei", sans-serif;
  min-height: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at 50% 30%, black 30%, transparent 85%);
  pointer-events: none;
  z-index: 0;
}

.ambient {
  position: fixed;
  border-radius: 999px;
  filter: blur(28px);
  opacity: 0.23;
  pointer-events: none;
  z-index: 0;
  animation: drift 14s ease-in-out infinite alternate;
}

.ambient-1 {
  width: 360px;
  height: 360px;
  background: #ff3d4f;
  top: 5%;
  left: -80px;
}

.ambient-2 {
  width: 420px;
  height: 420px;
  background: #ff9e4c;
  bottom: -120px;
  right: -100px;
  animation-duration: 18s;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(24px, -18px, 0) scale(1.08);
  }
}

.hero {
  position: relative;
  z-index: 1;
  padding: 28px 20px 14px;
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero h1 {
  margin: 0;
  font-family: "ZCOOL XiaoWei", serif;
  font-size: clamp(28px, 4vw, 50px);
  line-height: 1.15;
  color: #fff0eb;
  text-shadow: 0 0 14px rgba(255, 91, 77, 0.25);
  text-align: center;
}

.stage-layout {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 10px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.timeline {
  position: sticky;
  top: 20px;
  padding: 16px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.timeline__line {
  position: absolute;
  left: 30px;
  top: 30px;
  bottom: 26px;
  width: 2px;
  background: linear-gradient(
    180deg,
    rgba(255, 91, 77, 0.8),
    rgba(255, 255, 255, 0.08)
  );
  opacity: 0.6;
}

.timeline__dot {
  position: relative;
  width: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 8px;
  margin: 5px 0;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.timeline__dot:hover {
  background: rgba(255, 255, 255, 0.03);
}

.timeline__dot span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

.timeline__dot small {
  display: block;
  font-size: 15px;
  color: #ead2cd;
  font-weight: 600;
}

.timeline__dot.is-active {
  background: linear-gradient(
    90deg,
    rgba(255, 91, 77, 0.14),
    rgba(255, 255, 255, 0)
  );
}

.timeline__dot.is-active span {
  background: linear-gradient(135deg, #ff5b4d, #ff8d3a);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 0 5px rgba(255, 91, 77, 0.12);
}

.viewer {
  min-height: 520px;
}

.viewer__stack {
  position: relative;
  min-height: 520px;
}

.panel {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 16px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.985);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

.panel.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.panel__image-wrap,
.panel__text {
  border-radius: 20px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}

.panel__image-wrap {
  min-height: 430px;
  position: relative;
  isolation: isolate;
}

.panel__image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05),
    rgba(0, 0, 0, 0.16)
  );
  pointer-events: none;
}

.panel__text {
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.panel__text h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 2.3vw, 36px);
  line-height: 1.15;
  color: #fff4ef;
}

.panel__text p {
  margin: 0 0 14px;
  line-height: 1.6;
  color: var(--muted);
  font-size: 18px;
}

.metrics {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.metrics li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.metrics li span {
  font-size: 16px;
  font-weight: 600;
}

.metrics strong {
  font-size: 17px;
  color: #ffd8a6;
}

.risk-bar {
  margin: 8px 0 12px;
}

.risk-bar label {
  display: block;
  font-size: 15px;
  color: #f2cdc5;
  margin-bottom: 6px;
}

.risk-bar > div {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.risk-bar > div > span {
  display: block;
  width: var(--v);
  height: 100%;
  background: linear-gradient(90deg, #ff5b4d, #ffcf55);
  box-shadow: 0 0 20px rgba(255, 91, 77, 0.35);
  transform-origin: left center;
  animation: fillBar 1.1s ease;
}

@keyframes fillBar {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 91, 77, 0.13);
  border: 1px solid rgba(255, 91, 77, 0.18);
  color: #ffdfd8;
  font-size: 15px;
}

.signal-list {
  display: grid;
  gap: 8px;
}

.signal-list p {
  margin: 0;
  padding: 11px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #f0d4cd;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
}

.signal-list p span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5b4d;
  box-shadow: 0 0 10px rgba(255, 91, 77, 0.8);
  animation: blink 1.2s ease infinite;
}

.signal-list p:nth-child(2) span {
  animation-delay: 0.25s;
}
.signal-list p:nth-child(3) span {
  animation-delay: 0.5s;
}

@keyframes blink {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.45);
    opacity: 1;
  }
}

.warning-box {
  margin-top: 6px;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(
    180deg,
    rgba(217, 0, 50, 0.16),
    rgba(255, 91, 77, 0.05)
  );
  border: 1px solid rgba(255, 91, 77, 0.18);
}

.warning-box p {
  margin: 0;
  color: #ffe0d5;
  font-size: 16px;
}

.scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03) 0px,
    rgba(255, 255, 255, 0.03) 2px,
    transparent 2px,
    transparent 6px
  );
  opacity: 0.35;
  animation: scanMove 7s linear infinite;
  mix-blend-mode: soft-light;
}

@keyframes scanMove {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(12px);
  }
}

.heat-wave {
  position: absolute;
  inset: auto 10% 14% 8%;
  height: 30%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 100, 80, 0.36),
    transparent 70%
  );
  filter: blur(12px);
  animation: shimmer 2.5s ease-in-out infinite;
  mix-blend-mode: screen;
}

.heat-wave--2 {
  inset: auto 20% 24% 24%;
  height: 20%;
  animation-delay: 1.1s;
}

@keyframes shimmer {
  0%,
  100% {
    transform: scale(1) translateY(0);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1) translateY(-10px);
    opacity: 0.8;
  }
}

.spark-particles {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 18% 30%,
      rgba(255, 245, 190, 0.7) 0 2px,
      transparent 3px
    ),
    radial-gradient(
      circle at 28% 45%,
      rgba(255, 180, 130, 0.65) 0 1.8px,
      transparent 3px
    ),
    radial-gradient(
      circle at 52% 36%,
      rgba(255, 230, 160, 0.6) 0 2px,
      transparent 3px
    ),
    radial-gradient(
      circle at 70% 60%,
      rgba(255, 175, 120, 0.55) 0 2px,
      transparent 3px
    ),
    radial-gradient(
      circle at 82% 42%,
      rgba(255, 230, 190, 0.5) 0 1.5px,
      transparent 3px
    );
  animation: floatSpark 4s ease-in-out infinite alternate;
  opacity: 0.6;
}

@keyframes floatSpark {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-8px);
  }
}

.bacteria-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.bacteria-layer::before,
.bacteria-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      ellipse 10px 5px at 14% 23%,
      rgba(116, 255, 82, 0.8),
      transparent 70%
    ),
    radial-gradient(
      ellipse 9px 4px at 28% 50%,
      rgba(166, 255, 84, 0.8),
      transparent 70%
    ),
    radial-gradient(
      ellipse 11px 5px at 46% 40%,
      rgba(116, 255, 82, 0.8),
      transparent 70%
    ),
    radial-gradient(
      ellipse 8px 4px at 57% 24%,
      rgba(255, 203, 66, 0.75),
      transparent 70%
    ),
    radial-gradient(
      ellipse 10px 4px at 20% 58%,
      rgba(116, 255, 82, 0.75),
      transparent 70%
    ),
    radial-gradient(
      ellipse 9px 4px at 82% 34%,
      rgba(255, 203, 66, 0.75),
      transparent 70%
    );
  animation: swarm 10s linear infinite;
  opacity: 0.8;
}

.bacteria-layer::after {
  animation-duration: 14s;
  animation-direction: reverse;
  filter: blur(0.4px);
  opacity: 0.45;
}

@keyframes swarm {
  from {
    transform: translateX(-2%) translateY(0) rotate(0deg);
  }
  50% {
    transform: translateX(2%) translateY(-2%) rotate(1deg);
  }
  to {
    transform: translateX(-2%) translateY(2%) rotate(0deg);
  }
}

.blood-entry canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.organ-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.organ-dot {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ff5b4d;
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 0 rgba(255, 91, 77, 0.45);
  animation: organPulse 2s ease infinite;
  cursor: pointer;
}

.organ-dot::after {
  content: attr(data-label);
  position: absolute;
  top: 50%;
  left: calc(100% + 8px);
  transform: translateY(-50%);
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 600;
  background: rgba(12, 10, 14, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.organ-dot:hover::after,
.organ-dot.is-hover::after {
  opacity: 1;
}

.organ-dot.lungs {
  top: 30%;
  left: 48%;
}
.organ-dot.liver {
  top: 47%;
  left: 46%;
  animation-delay: 0.4s;
}
.organ-dot.gut {
  top: 63%;
  left: 49%;
  animation-delay: 0.8s;
}
.organ-dot.kidney {
  top: 76%;
  left: 47%;
  animation-delay: 1.2s;
}

@keyframes organPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 91, 77, 0.45);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(255, 91, 77, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 91, 77, 0);
  }
}

.progress-map {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 12px auto 14px;
  padding: 0 20px;
}

.progress-map h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #fff0eb;
}

.progress-track {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px;
  box-shadow: var(--shadow);
}

.progress-track__fill {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #ffb54d 0%,
    #ff6b4d 40%,
    #db1a3d 75%,
    #8d1028 100%
  );
  width: 10%;
  transition: width 0.4s ease;
  box-shadow: 0 0 26px rgba(255, 91, 77, 0.25);
}

.progress-track__labels {
  margin-top: 6px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  color: #e8c6bf;
  font-size: 12px;
}

@media (min-width: 1025px) {
  .stage-layout {
    min-height: 0;
  }

  .panel {
    align-items: stretch;
  }

  .panel__image-wrap {
    min-height: min(430px, 52vh);
  }

  .panel__text {
    min-height: min(430px, 52vh);
  }
}

@media (max-width: 1024px) {
  .hero {
    padding: 20px 12px 10px;
  }

  .stage-layout {
    grid-template-columns: 1fr;
  }

  .timeline {
    position: static;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    padding: 10px;
  }

  .timeline__line {
    display: none;
  }

  .timeline__dot {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 4px;
    padding: 8px 4px;
  }

  .timeline__dot span {
    margin: 0 auto;
  }

  .timeline__dot small {
    font-size: 11px;
    line-height: 1.2;
  }

  .viewer__stack {
    min-height: 700px;
  }

  .panel {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .panel__image-wrap {
    min-height: 340px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 16px 12px 10px;
  }

  .stage-layout,
  .progress-map {
    padding: 0 12px;
  }

  .panel__text {
    padding: 14px;
  }

  .progress-track__labels {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Page-to-page horizontal slide (wheel controlled) */
body > .hero,
body > .stage-layout,
body > .progress-map {
  transition:
    transform 0.65s cubic-bezier(0.22, 0.85, 0.2, 1),
    opacity 0.45s ease,
    filter 0.45s ease;
  will-change: transform, opacity;
}

body.is-page2-open > .hero,
body.is-page2-open > .stage-layout,
body.is-page2-open > .progress-map {
  transform: translateX(-10vw) scale(0.985);
  opacity: 0.18;
  filter: blur(2px);
  pointer-events: none;
}

.page-nav {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(18, 12, 18, 0.72);
  color: #fff1ea;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    background-color 0.25s ease;
}

.page-nav:hover {
  background: rgba(255, 91, 77, 0.18);
  transform: translateY(-50%) translateX(-2px);
}

body.is-page2-open .page-nav {
  opacity: 0;
  pointer-events: none;
}

.page-dots {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 42;
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(12, 10, 14, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.page-dots__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.page-dots__dot.is-active {
  background: #ff6f4a;
  box-shadow: 0 0 0 4px rgba(255, 111, 74, 0.18);
  transform: scale(1.08);
}

.next-page-overlay {
  position: fixed;
  inset: 0;
  z-index: 35;
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  transition:
    transform 0.68s cubic-bezier(0.2, 0.86, 0.2, 1),
    opacity 0.35s ease;
  display: grid;
  align-items: stretch;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-snap-type: none;
  scroll-padding-top: 22px;
}

/* Hide page-2 scrollbar (keep scroll behavior) */
.next-page-overlay {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* old Edge/IE */
}
.next-page-overlay::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.next-page-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.next-page-overlay__bg {
  position: absolute;
  inset: 0;
  background: #000;
  backdrop-filter: blur(5px);
}

.next-page-overlay__content {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  width: calc(100% - 40px);
  margin: 0 auto;
  padding: 80px 0 80px;
}

.challenge-section {
  display: grid;
  gap: 14px;
  margin-top: 6px;
}

.challenge-section__title {
  margin: 0;
  text-align: center;
  color: #fff2eb;
  font-family: "ZCOOL XiaoWei", serif;
  font-size: clamp(24px, 2.4vw, 36px);
  letter-spacing: 0.02em;
  text-shadow: 0 0 16px rgba(255, 110, 62, 0.18);
}

.challenge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.challenge-card {
  position: relative;
  min-height: 230px;
  padding: 18px 16px 16px 18px;
  border-radius: 18px;
  background:
    radial-gradient(
      circle at 85% 80%,
      rgba(255, 116, 48, 0.08),
      transparent 42%
    ),
    linear-gradient(180deg, rgba(26, 12, 12, 0.88), rgba(14, 8, 10, 0.86));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.015),
    0 18px 40px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.challenge-card__accent {
  position: absolute;
  left: 16px;
  top: 18px;
  width: 4px;
  height: 60px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff7b2f, rgba(255, 123, 47, 0.1));
  box-shadow: 0 0 18px rgba(255, 123, 47, 0.35);
}

.challenge-card__num {
  position: absolute;
  top: 6px;
  right: 14px;
  font-size: 68px;
  line-height: 1;
  font-weight: 700;
  color: rgba(255, 120, 40, 0.08);
  user-select: none;
  pointer-events: none;
}

.challenge-card h3 {
  margin: 0 0 10px;
  padding-left: 18px;
  color: #ff8c3f;
  font-size: 21px;
  line-height: 1.22;
  font-weight: 700;
}

.challenge-card p {
  margin: 0;
  color: #f0e4df;
  font-size: 15px;
  line-height: 1.6;
}

.challenge-card__emphasis {
  margin-top: 12px;
  padding: 7px 10px;
  border-radius: 10px;
  color: #ffd8b2;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  border: 1px solid rgba(255, 140, 63, 0.16);
  background: rgba(255, 140, 63, 0.06);
}

.challenge-card__line {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 12px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff7a2f, rgba(255, 122, 47, 0.15));
  box-shadow:
    0 0 18px rgba(255, 122, 47, 0.25),
    0 8px 20px rgba(255, 122, 47, 0.08);
  opacity: 0.9;
}

.challenge-section__closing {
  padding: 14px 16px;
  border-radius: 14px;
  text-align: center;
  color: #fff0e6;
  font-size: 18px;
  font-weight: 700;
  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(255, 118, 42, 0.12),
      transparent 70%
    ),
    rgba(20, 10, 12, 0.75);
  border: 1px solid rgba(255, 140, 63, 0.18);
  box-shadow: 0 0 24px rgba(255, 122, 47, 0.08) inset;
}

.page-placeholder {
  min-height: min(720px, calc(100vh - 40px));
  display: grid;
  place-items: center;
  color: rgba(255, 240, 235, 0.9);
  font-family: "ZCOOL XiaoWei", serif;
  font-size: clamp(42px, 8vw, 120px);
  letter-spacing: 0.08em;
  border-radius: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(18, 10, 16, 0.28);
}

.bacteria-page {
  display: grid;
  gap: 14px;
}

.bacteria-overview {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.bacteria-overview__title h2 {
  margin: 0 0 6px;
  color: #fff2ec;
  font-size: clamp(22px, 2.3vw, 32px);
  line-height: 1.2;
}

.bacteria-overview__title p {
  margin: 0;
  color: #e6c5bf;
  font-size: 15px;
}

.bacteria-overview__bars {
  display: grid;
  gap: 10px;
}

.share-bar {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.share-bar__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.share-bar__head span {
  color: #f5e2dc;
  font-size: 15px;
  font-weight: 600;
}

.share-bar__head strong {
  color: #ffe1b9;
  font-size: 14px;
}

.share-bar__track {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.share-bar__track span {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  transform-origin: left center;
  animation: fillBar 1.2s ease both;
}

.share-bar--pseudo .share-bar__track span {
  background: linear-gradient(90deg, #ff6c53, #ffbf57);
  box-shadow: 0 0 22px rgba(255, 108, 83, 0.28);
}

.share-bar--staph .share-bar__track span {
  background: linear-gradient(90deg, #ff4d74, #ff8b50);
  box-shadow: 0 0 22px rgba(255, 77, 116, 0.28);
}

.bacteria-overview__note {
  margin: 0;
  color: #ceb0ab;
  font-size: 12px;
  line-height: 1.5;
}

.bacteria-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.bacteria-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: 240px auto;
  border-radius: 18px;
}

.bacteria-card__media {
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.bacteria-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
}

.bacteria-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 45%,
    rgba(10, 8, 12, 0.55) 100%
  );
  pointer-events: none;
}

.bacteria-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff5ef;
  background: rgba(14, 10, 14, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bacteria-card__body {
  padding: 14px;
  display: grid;
  gap: 8px;
}

.bacteria-card__body h3 {
  margin: 0;
  color: #fff3ed;
  font-size: 25px;
  line-height: 1.2;
}

.bacteria-card__body .latin {
  margin: 0;
  color: #ffcdbf;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.bacteria-card__body .desc {
  margin: 0;
  color: #e4c5bf;
  line-height: 1.55;
  font-size: 14px;
}

.fact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 7px;
}

.fact-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.fact-list li span {
  color: #ecd3cd;
  font-size: 13px;
  font-weight: 600;
}

.fact-list li strong {
  color: #ffe4b8;
  font-size: 13px;
  text-align: right;
}

.bacteria-action {
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr auto;
  gap: 12px;
  align-items: center;
}

.bacteria-action__left h3 {
  margin: 0 0 6px;
  color: #fff3ed;
  font-size: 20px;
}

.bacteria-action__left p {
  margin: 0;
  color: #dfc1ba;
  line-height: 1.55;
  font-size: 14px;
}

.bacteria-action__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: center;
}

.bacteria-action__chips span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 91, 77, 0.1);
  border: 1px solid rgba(255, 91, 77, 0.16);
  color: #ffe4dc;
  font-size: 13px;
}

.next-page-overlay.is-open .bacteria-overview,
.next-page-overlay.is-open .bacteria-card,
.next-page-overlay.is-open .bacteria-action {
  animation: page2Rise 0.55s cubic-bezier(0.2, 0.86, 0.2, 1) both;
}

.next-page-overlay.is-open .bacteria-card:nth-child(2) {
  animation-delay: 0.06s;
}

.next-page-overlay.is-open .bacteria-action {
  animation-delay: 0.12s;
}

@keyframes page2Rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .bacteria-grid {
    grid-template-columns: 1fr;
  }

  .bacteria-card {
    grid-template-rows: 210px auto;
  }

  .bacteria-action {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 640px) {
  .share-bar__head {
    align-items: flex-start;
  }

  .bacteria-card__body h3 {
    font-size: 21px;
  }

  .fact-list li {
    flex-direction: column;
    align-items: flex-start;
  }

  .fact-list li strong {
    text-align: left;
  }
}

/* Page 2 simplified layout: centered title + two image cards with share bars */
.hero--next {
  justify-content: center !important;
}

.hero--next h1 {
  width: 100%;
  text-align: center !important;
}

.bacteria-page {
  gap: 16px;
}

.bacteria-grid {
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.bacteria-card {
  grid-template-rows: minmax(320px, 46vh) auto;
}

.bacteria-card__media {
  border-bottom: none;
}

.bacteria-card__badge,
.bacteria-card__body .desc,
.fact-list {
  display: none !important;
}

.bacteria-card__body {
  padding: 12px 14px 14px;
  gap: 8px;
}

.bacteria-card__body h3 {
  font-size: clamp(24px, 2vw, 30px);
}

.bacteria-card__body .latin {
  font-size: 14px;
  opacity: 0.9;
}

.img-share {
  margin-top: 2px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.img-share__track {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.img-share__track span {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  transform-origin: left center;
  animation: fillBar 0.9s ease both;
}

.img-share--pseudo .img-share__track span {
  background: linear-gradient(90deg, #ff6c53, #ffc04f);
  box-shadow: 0 0 18px rgba(255, 108, 83, 0.3);
}

.img-share--staph .img-share__track span {
  background: linear-gradient(90deg, #ff4d74, #ff8f56);
  box-shadow: 0 0 18px rgba(255, 77, 116, 0.28);
}

.img-share strong {
  min-width: 58px;
  text-align: right;
  color: #ffe5bf;
  font-size: clamp(28px, 2.4vw, 38px);
  line-height: 1;
  letter-spacing: 0.01em;
}

.bacteria-page__actions {
  justify-content: center;
}

.bacteria-focus {
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
  align-items: center;
}

.bacteria-focus__text h3 {
  margin: 0 0 6px;
  color: #fff2ec;
  font-size: clamp(18px, 1.5vw, 24px);
  line-height: 1.25;
}

.bacteria-focus__text p {
  margin: 0;
  color: #e2c2bc;
  font-size: 14px;
  line-height: 1.5;
}

.bacteria-focus__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

.bacteria-focus__chips span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 91, 77, 0.1);
  border: 1px solid rgba(255, 91, 77, 0.16);
  color: #ffe4dc;
  font-size: 13px;
}

.challenge-section {
  display: grid;
  gap: 14px;
  margin-top: 4px;
}

.challenge-section__title {
  margin: 0;
  text-align: center;
  color: #fff2eb;
  font-family: "ZCOOL XiaoWei", serif;
  font-size: clamp(24px, 2.4vw, 36px);
  letter-spacing: 0.02em;
  text-shadow: 0 0 16px rgba(255, 110, 62, 0.18);
}

.challenge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.challenge-card {
  position: relative;
  min-height: 230px;
  padding: 18px 16px 14px 18px;
  border-radius: 18px;
  background:
    radial-gradient(
      circle at 85% 80%,
      rgba(255, 116, 48, 0.08),
      transparent 42%
    ),
    linear-gradient(180deg, rgba(26, 12, 12, 0.88), rgba(14, 8, 10, 0.86));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.015),
    0 18px 40px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.challenge-card__accent {
  position: absolute;
  left: 16px;
  top: 18px;
  width: 4px;
  height: 60px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff7b2f, rgba(255, 123, 47, 0.1));
  box-shadow: 0 0 18px rgba(255, 123, 47, 0.35);
}

.challenge-card__num {
  position: absolute;
  top: 6px;
  right: 14px;
  font-size: 68px;
  line-height: 1;
  font-weight: 700;
  color: rgba(255, 120, 40, 0.08);
  pointer-events: none;
  user-select: none;
}

.challenge-card h3 {
  margin: 0 0 10px;
  padding-left: 18px;
  color: #ff8c3f;
  font-size: 22px;
  line-height: 1.22;
  font-weight: 700;
  text-wrap: balance;
}

.challenge-card p {
  margin: 0;
  color: #f0e4df;
  font-size: 15px;
  line-height: 1.65;
}

.challenge-card__emphasis {
  margin-top: 12px;
  color: #ffd8b2;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 140, 63, 0.16);
  background: rgba(255, 140, 63, 0.06);
}

.challenge-card__line {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff7a2f, rgba(255, 122, 47, 0.15));
  box-shadow:
    0 0 18px rgba(255, 122, 47, 0.25),
    0 8px 20px rgba(255, 122, 47, 0.08);
  opacity: 0.9;
}

.challenge-section--secondary .challenge-card h3 {
  color: #ff9d5b;
}

.challenge-section__closing {
  padding: 14px 16px;
  border-radius: 14px;
  text-align: center;
  color: #fff0e6;
  font-size: 18px;
  font-weight: 700;
  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(255, 118, 42, 0.12),
      transparent 70%
    ),
    rgba(20, 10, 12, 0.75);
  border: 1px solid rgba(255, 140, 63, 0.18);
  box-shadow: 0 0 24px rgba(255, 122, 47, 0.08) inset;
}

@media (max-width: 1024px) {
  .bacteria-card {
    grid-template-rows: 240px auto;
  }
}

@media (max-width: 768px) {
  .bacteria-grid {
    grid-template-columns: 1fr;
  }

  .bacteria-focus {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .challenge-grid {
    grid-template-columns: 1fr;
  }

  .challenge-card {
    min-height: 0;
  }

  .challenge-card__num {
    font-size: 56px;
  }
}

/* Stage 5 red risk cue */
.mods-danger-tip {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: linear-gradient(
    180deg,
    rgba(217, 0, 50, 0.18),
    rgba(255, 91, 77, 0.08)
  );
  border: 1px solid rgba(255, 91, 77, 0.22);
  color: #ffd6d0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

/* Icon style for next-page button */
.page-nav.page-nav--next {
  width: 52px;
  height: 52px;
  padding: 0 !important;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(26, 16, 22, 0.9),
    rgba(18, 10, 18, 0.78)
  );
}

.page-nav.page-nav--next > span {
  display: block;
  font-size: 34px;
  line-height: 1;
  color: #fff3ec;
  transform: translateX(1px);
}

.page-nav.page-nav--next:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 91, 77, 0.28),
    rgba(18, 10, 18, 0.88)
  );
}

@media (max-width: 768px) {
  .challenge-grid {
    grid-template-columns: 1fr !important;
  }

  .challenge-card {
    min-height: 0 !important;
  }

  .challenge-card__num {
    font-size: 56px !important;
  }
}

/* Final override: one-column larger challenge containers */
.bacteria-page .challenge-grid {
  grid-template-columns: 1fr !important;
  gap: 18px !important;
}

.bacteria-page .challenge-card {
  min-height: 290px !important;
  padding: 22px 22px 20px 24px !important;
  border-radius: 20px !important;
}

.bacteria-page .challenge-card__accent {
  left: 18px !important;
  top: 22px !important;
  height: 72px !important;
  width: 5px !important;
}

.bacteria-page .challenge-card__num {
  font-size: 86px !important;
  right: 18px !important;
  top: 10px !important;
}

.bacteria-page .challenge-card h3 {
  font-size: clamp(24px, 2vw, 30px) !important;
  padding-left: 22px !important;
  margin-bottom: 12px !important;
}

.bacteria-page .challenge-card p {
  font-size: 17px !important;
  line-height: 1.7 !important;
}

.bacteria-page .challenge-card__emphasis {
  margin-top: 14px !important;
  padding: 10px 12px !important;
  font-size: 16px !important;
}

.bacteria-page .challenge-card__line {
  left: 20px !important;
  right: 20px !important;
  bottom: 14px !important;
  height: 5px !important;
}

.bacteria-page .challenge-section__title {
  font-size: clamp(28px, 2.8vw, 42px) !important;
  margin-top: 6px !important;
}

.bacteria-page .challenge-section__closing {
  font-size: 20px !important;
  padding: 16px 18px !important;
}

/* Comfort pass: more spacious, less dense challenge layout */
.bacteria-page .challenge-section {
  gap: 28px !important;
  margin-top: 26px !important;
}

.bacteria-page .challenge-section__title {
  font-size: clamp(32px, 3vw, 48px) !important;
  letter-spacing: 0.03em !important;
  margin-bottom: 2px !important;
}

.bacteria-page .challenge-grid--vertical {
  max-width: 1160px;
  margin: 0 auto;
  gap: 34px !important;
}

.bacteria-page .challenge-card {
  min-height: auto !important;
  padding: 30px 34px 28px 38px !important;
  border-radius: 24px !important;
  background:
    radial-gradient(
      circle at 82% 78%,
      rgba(255, 122, 47, 0.045),
      transparent 50%
    ),
    linear-gradient(180deg, rgba(10, 8, 8, 0.92), rgba(4, 4, 4, 0.96)) !important;
  border: 1px solid rgba(255, 145, 92, 0.12) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 24px 50px rgba(0, 0, 0, 0.34),
    0 0 24px rgba(255, 122, 47, 0.03) !important;
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.35s ease;
}

.bacteria-page .challenge-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  box-shadow:
    0 0 0 1px rgba(255, 86, 86, 0.18),
    0 0 18px rgba(255, 86, 86, 0.16),
    0 0 42px rgba(255, 70, 70, 0.08);
  transition: opacity 0.35s ease;
}

.bacteria-page .challenge-card.is-inview {
  border-color: rgba(255, 108, 92, 0.22) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    0 22px 52px rgba(0, 0, 0, 0.38),
    0 0 26px rgba(255, 80, 80, 0.06),
    0 0 60px rgba(255, 75, 75, 0.05) !important;
  transform: translateY(-2px);
}

.bacteria-page .challenge-card.is-inview::before {
  opacity: 1;
  animation: challengeGlowPulse 1.8s ease-in-out infinite;
}

@keyframes challengeGlowPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(255, 86, 86, 0.15),
      0 0 14px rgba(255, 86, 86, 0.12),
      0 0 34px rgba(255, 70, 70, 0.06);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255, 110, 110, 0.24),
      0 0 22px rgba(255, 90, 90, 0.22),
      0 0 56px rgba(255, 70, 70, 0.12);
  }
}

.bacteria-page .challenge-card__accent {
  left: 22px !important;
  top: 28px !important;
  width: 6px !important;
  height: 82px !important;
  border-radius: 999px !important;
  background: linear-gradient(
    180deg,
    #ff7f2f 0%,
    rgba(255, 127, 47, 0.18) 75%,
    rgba(255, 127, 47, 0) 100%
  ) !important;
  box-shadow:
    0 0 10px rgba(255, 127, 47, 0.2),
    0 0 24px rgba(255, 127, 47, 0.16),
    0 0 44px rgba(255, 127, 47, 0.08) !important;
  filter: saturate(0.95);
}

.bacteria-page .challenge-card__num {
  font-size: 104px !important;
  top: 8px !important;
  right: 22px !important;
  color: rgba(255, 130, 45, 0.06) !important;
}

.bacteria-page .challenge-card h3 {
  padding-left: 26px !important;
  margin: 0 0 14px !important;
  font-size: clamp(28px, 2.35vw, 36px) !important;
  line-height: 1.2 !important;
  color: #ff8f43 !important;
}

.bacteria-page .challenge-card p {
  font-size: clamp(18px, 1.45vw, 23px) !important;
  line-height: 1.8 !important;
  color: #f5ece8 !important;
  max-width: 92ch;
}

.bacteria-page .challenge-card__emphasis {
  margin-top: 16px !important;
  padding: 12px 14px !important;
  border-radius: 12px !important;
  font-size: clamp(17px, 1.2vw, 20px) !important;
  line-height: 1.5 !important;
  color: #ffe3bf !important;
  border: 1px solid rgba(255, 140, 63, 0.2) !important;
  background: linear-gradient(
    180deg,
    rgba(255, 140, 63, 0.075),
    rgba(255, 140, 63, 0.03)
  ) !important;
  box-shadow: inset 0 0 18px rgba(255, 140, 63, 0.03);
}

.bacteria-page .challenge-card__line {
  left: 30px !important;
  right: 30px !important;
  bottom: 16px !important;
  height: 5px !important;
  background: linear-gradient(
    90deg,
    #ff7d31 0%,
    #ff9a58 55%,
    rgba(255, 157, 95, 0.18) 100%
  ) !important;
  box-shadow:
    0 0 8px rgba(255, 125, 49, 0.16),
    0 0 22px rgba(255, 125, 49, 0.16),
    0 14px 36px rgba(255, 125, 49, 0.06) !important;
  filter: blur(0.05px);
}

.bacteria-page .challenge-card.is-inview .challenge-card__line {
  box-shadow:
    0 0 10px rgba(255, 132, 70, 0.22),
    0 0 26px rgba(255, 125, 49, 0.24),
    0 14px 38px rgba(255, 125, 49, 0.08) !important;
}

.bacteria-page .challenge-section__closing {
  max-width: 1160px;
  margin: 4px auto 0 !important;
  padding: 18px 22px !important;
  border-radius: 18px !important;
  font-size: clamp(20px, 1.6vw, 26px) !important;
  line-height: 1.45 !important;
  border-color: rgba(255, 150, 80, 0.2) !important;
}

@media (max-width: 1024px) {
  .bacteria-page .challenge-grid--vertical {
    gap: 22px !important;
  }

  .bacteria-page .challenge-card {
    padding: 22px 20px 20px 22px !important;
    border-radius: 18px !important;
  }

  .bacteria-page .challenge-card__num {
    font-size: 76px !important;
    right: 14px !important;
  }

  .bacteria-page .challenge-card h3 {
    font-size: 25px !important;
    padding-left: 20px !important;
  }

  .bacteria-page .challenge-card p {
    font-size: 17px !important;
    line-height: 1.7 !important;
  }

  .bacteria-page .challenge-card__emphasis {
    font-size: 15px !important;
    padding: 10px 12px !important;
  }
}

/* Page 2 all-black background override */
.next-page-overlay__bg {
  background: #000 !important;
}

.next-page-overlay__content {
  background: #000 !important;
}

.next-page-overlay .glass-card,
.next-page-overlay .bacteria-card,
.next-page-overlay .bacteria-focus,
.next-page-overlay .challenge-card,
.next-page-overlay .challenge-section__closing {
  background: #000 !important;
}

/* Hard lock page-2 viewport to pure black (including side margins) */
.next-page-overlay {
  background: #000 !important;
}

.next-page-overlay__bg {
  background: #000 !important;
  backdrop-filter: none !important;
}

body.is-page2-open .bg-grid,
body.is-page2-open .ambient {
  opacity: 0 !important;
}

body.is-page2-open > .hero,
body.is-page2-open > .stage-layout,
body.is-page2-open > .progress-map {
  opacity: 0 !important;
  filter: none !important;
}

.hero--next {
  justify-content: flex-start;
  padding: 18px 6px 12px;
}

.hero--next h1 {
  text-align: left;
  font-size: clamp(26px, 3vw, 42px);
}

.next-page-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  align-items: start;
}

.glass-card {
  background: rgba(20, 12, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.next-card {
  padding: 16px;
}

.next-card--list h2 {
  margin: 0 0 12px;
  font-size: 26px;
  color: #fff0ea;
}

.next-list {
  display: grid;
  gap: 10px;
}

.next-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.next-item__idx {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ff5b4d, #ff964a);
  box-shadow: 0 8px 18px rgba(255, 91, 77, 0.22);
}

.next-item h3 {
  margin: 0 0 4px;
  font-size: 18px;
  color: #fff1eb;
}

.next-item p {
  margin: 0;
  line-height: 1.5;
  color: #e1c0ba;
  font-size: 14px;
}

.next-page-side {
  display: grid;
  gap: 12px;
}

.next-card--visual {
  min-height: 360px;
  display: grid;
  place-items: center;
}

.next-visual {
  position: relative;
  width: 100%;
  height: 320px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.next-visual__ring {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(255, 105, 84, 0.3);
  animation: pulse 4.5s ease-out infinite;
}

.next-visual__ring--2 {
  width: 300px;
  height: 300px;
  animation-delay: 1.2s;
  opacity: 0.7;
}

.next-visual__core {
  position: relative;
  z-index: 1;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff4ef;
  font-weight: 700;
  background: radial-gradient(circle at 30% 30%, #ff9c63, #ff5b4d 62%, #a6102f);
  box-shadow:
    0 0 0 10px rgba(255, 91, 77, 0.08),
    0 20px 35px rgba(0, 0, 0, 0.35);
}

.next-visual__tags {
  position: absolute;
  inset: 0;
}

.next-visual__tags span {
  position: absolute;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(12, 10, 14, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffe9e1;
  font-size: 13px;
}

.next-visual__tags span:nth-child(1) {
  top: 14%;
  left: 14%;
}
.next-visual__tags span:nth-child(2) {
  top: 24%;
  right: 10%;
}
.next-visual__tags span:nth-child(3) {
  bottom: 22%;
  left: 18%;
}
.next-visual__tags span:nth-child(4) {
  bottom: 14%;
  right: 20%;
}
.next-visual__tags span:nth-child(5) {
  top: 50%;
  right: 8%;
  transform: translateY(-50%);
}

.next-card--hint p {
  margin: 0 0 10px;
  line-height: 1.55;
  color: #ebccc5;
  font-size: 15px;
}

.page-actions {
  display: flex;
  gap: 8px;
}

@media (max-width: 1024px) {
  .next-page-overlay__content {
    width: calc(100% - 24px);
    padding-bottom: 60px;
  }

  .next-page-grid {
    grid-template-columns: 1fr;
  }

  .page-nav {
    top: auto;
    bottom: 56px;
    right: 12px;
    transform: none;
  }

  .page-nav:hover {
    transform: translateX(-2px);
  }

  .hero--next h1 {
    text-align: center;
    width: 100%;
  }
}

/* Desktop final adjustments: prevent overlap, unify image heights, force fill */
@media (min-width: 1025px) {
  .viewer,
  .viewer__stack {
    min-height: 600px !important;
  }

  .panel__image-wrap {
    height: min(545px, 66vh) !important;
    min-height: 0 !important;
    align-self: start !important;
  }

  .panel__image-wrap > img {
    width: 100% !important;
    height: 100% !important;
    display: block;
    object-fit: cover !important;
    object-position: center center !important;
  }

  .panel__text {
    align-self: start !important;
  }

  .progress-map {
    margin-top: 28px !important;
    margin-bottom: 18px !important;
  }
}

/* Fine tune for one-line stage title + slightly taller center image */
.panel__text h2 {
  font-size: clamp(22px, 1.95vw, 30px);
}

@media (min-width: 1025px) {
  .panel {
    align-items: start !important;
    transition: opacity 0.35s ease !important;
    transform: none !important;
  }

  .panel.is-visible {
    transform: none !important;
  }

  .panel__image-wrap {
    min-height: min(545px, 66vh) !important;
    align-self: start !important;
  }

  .panel__text {
    min-height: min(455px, 56vh) !important;
    align-self: start !important;
  }
}

/* Page 2: "???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????" snap pages */
.design-snap {
  margin-top: 18px;
}

.design-intro {
  min-height: calc(100vh - 130px);
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 12px 0 6px;
  scroll-snap-align: none;
  scroll-snap-stop: normal;
  scroll-margin-top: 22px;
}

.design-section__title {
  margin: 0;
  text-align: center;
  color: #fff2eb;
  font-family: "ZCOOL XiaoWei", serif;
  font-size: clamp(38px, 3.6vw, 60px);
  line-height: 2;
  letter-spacing: 0.03em;
  text-shadow: 0 0 16px rgba(255, 110, 62, 0.18);
}

.design-section__lead {
  margin: 0 auto;
  max-width: 1180px;
  color: #f5e1db;
  font-size: clamp(20px, 1.55vw, 28px);
  line-height: 3.9;
  text-align: center;
}

.design-pages {
  display: grid;
  gap: 0;
}

.deep-dive {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}

.deep-dive__text {
  text-align: center;
  display: grid;
  gap: 6px;
}

.deep-dive__headline {
  margin: 0;
  font-family: "ZCOOL XiaoWei", serif;
  font-size: clamp(26px, 2.6vw, 40px);
  color: #fff2ec;
  letter-spacing: 0.02em;
  text-shadow: 0 0 16px rgba(255, 110, 62, 0.16);
}

.deep-dive__sub {
  margin: 0;
  color: #e6c5bf;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.6;
}

.deep-dive__player {
  position: relative;
  overflow: hidden;
  padding: 0;
  border-radius: 22px;
  width: min(1150px, 100%);
  margin: 0 auto;
  background:
    radial-gradient(
      circle at 20% 10%,
      rgba(255, 108, 83, 0.16),
      transparent 55%
    ),
    #000;
  border: 1px solid rgba(255, 150, 80, 0.14);
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 170, 110, 0.08);
  aspect-ratio: 16 / 9;
}

.deep-dive__video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  object-fit: cover;
}

.deep-dive__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  color: #fff3ec;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 120, 80, 0.18),
    rgba(0, 0, 0, 0.68) 62%,
    rgba(0, 0, 0, 0.92) 100%
  );
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.deep-dive__play > span {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 32px;
  background: linear-gradient(135deg, #ff5b4d, #ffb04d);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.35),
    0 0 0 10px rgba(255, 91, 77, 0.1),
    0 0 60px rgba(255, 120, 80, 0.18);
  transform: translateX(2px);
}

.deep-dive__play > strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.95;
}

.deep-dive__player.is-playing .deep-dive__play {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.985);
}

.design-page {
  min-height: calc(100vh - 120px);
  display: grid;
  align-content: center;
  padding: 18px 0;
  scroll-snap-align: none;
  scroll-snap-stop: normal;
  scroll-margin-top: 22px;
}

.design-page__card {
  position: relative;
  max-width: 1360px;
  margin: 0 auto;
  --design-icon-size: 0px;
  padding: 28px 30px 58px 36px;
  border-radius: 24px;
  background:
    radial-gradient(
      circle at 14% 18%,
      rgba(255, 91, 77, 0.08),
      transparent 48%
    ),
    radial-gradient(
      circle at 86% 26%,
      rgba(255, 170, 95, 0.06),
      transparent 44%
    ),
    linear-gradient(180deg, rgba(255, 91, 77, 0.04), rgba(0, 0, 0, 0.98) 62%),
    #000;
  border: 1px solid rgba(255, 150, 80, 0.24);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 22px 56px rgba(0, 0, 0, 0.48);
  overflow: hidden;
  min-height: min(480px, calc(100vh - 340px));
  display: grid;
  align-content: center;
}

.design-page__card--with-icon {
  --design-icon-size: clamp(258px, 27vw, 384px);
}

/* Full-in-view glow (activated by JS adding .is-glow-active) */
.design-page__card.is-glow-active {
  animation: designCardGlowPulse 1.65s ease-in-out infinite;
}

@keyframes designCardGlowPulse {
  0%,
  100% {
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.02),
      0 22px 56px rgba(0, 0, 0, 0.48),
      0 0 0 1px rgba(255, 175, 110, 0.28),
      0 0 42px rgba(255, 140, 85, 0.28),
      0 0 120px rgba(255, 110, 75, 0.16),
      0 0 220px rgba(255, 95, 70, 0.08);
  }
  50% {
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.025),
      0 22px 56px rgba(0, 0, 0, 0.48),
      0 0 0 1px rgba(255, 210, 150, 0.42),
      0 0 62px rgba(255, 170, 110, 0.42),
      0 0 160px rgba(255, 120, 80, 0.24),
      0 0 320px rgba(255, 95, 70, 0.14);
  }
}

/* Remove rotating border box; keep outer glow pulse only */
.design-page__card::after {
  content: none !important;
}

/* ???????????????????????????????
   ????????/?????????? */
.is-page2-open .design-page__card--with-icon {
  --design-icon-size: 0px;
}

/* (intentionally blank) */

.design-page__card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff7f2f, rgba(255, 127, 47, 0.08));
  box-shadow:
    0 0 18px rgba(255, 127, 47, 0.22),
    0 0 42px rgba(255, 127, 47, 0.08);
}

.design-corner-icon {
  position: absolute;
  right: 22px;
  bottom: 14px;
  width: var(--design-icon-size);
  height: var(--design-icon-size);
  border-radius: 999px;
  display: grid;
  place-items: center;
  z-index: 1;
  isolation: isolate;
  pointer-events: none;
  background: transparent;
}

.design-corner-icon.is-scroll-route {
  position: fixed;
  left: 0;
  top: 0;
  right: auto;
  bottom: auto;
  z-index: 9999;
  transform: translate3d(var(--route-x, 0px), var(--route-y, 0px), 0)
    scale(var(--route-s, 1));
  opacity: var(--route-o, 0);
  will-change: transform, opacity;
}

.design-corner-icon.is-scroll-route.is-hidden {
  opacity: 0;
}

.design-corner-icon.is-static-hidden {
  visibility: hidden;
}

.design-corner-icon::before {
  content: "";
  position: absolute;
  width: 72%;
  height: 72%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 185, 110, 0.26) 0%,
    rgba(255, 140, 85, 0.16) 34%,
    rgba(255, 120, 70, 0.08) 55%,
    rgba(255, 120, 70, 0) 78%
  );
  filter: blur(14px);
  opacity: 0.9;
  z-index: 0;
}

.design-corner-icon__ripple {
  position: absolute;
  width: 64%;
  height: 64%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.99);
  border-radius: 50%;
  border: 2px solid rgba(255, 165, 85, 0.62);
  box-shadow:
    0 0 0 1px rgba(255, 230, 190, 0.18),
    0 0 10px rgba(255, 170, 95, 0.24),
    0 0 28px rgba(255, 120, 70, 0.2);
  opacity: 0;
  filter: saturate(1.12);
  z-index: 1;
  animation: designCornerRipple 3.35s cubic-bezier(0.2, 0.72, 0.24, 1) infinite;
}

.design-corner-icon__ripple:nth-child(1) {
  animation-delay: 0s;
}
.design-corner-icon__ripple:nth-child(2) {
  animation-delay: 1.12s;
}
.design-corner-icon__ripple:nth-child(3) {
  animation-delay: 2.24s;
}

.design-corner-icon__img {
  width: 64%;
  height: 64%;
  object-fit: contain;
  border-radius: 16px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.35))
    drop-shadow(0 0 24px rgba(255, 122, 47, 0.22));
  transform: translateY(-1px);
}

@keyframes designCornerRipple {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.32);
  }
  12% {
    opacity: 1;
  }
  55% {
    opacity: 0.38;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.5);
  }
}

.design-row__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "pain design"
    "goal goal";
  gap: 22px;
  align-items: start;
  padding-right: calc(var(--design-icon-size) + 22px);
}

.design-row__grid::after {
  content: "";
  position: absolute;
  left: 6px;
  right: calc(var(--design-icon-size) + 36px);
  bottom: -26px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff5b4d, rgba(255, 91, 77, 0.12));
  box-shadow:
    0 0 10px rgba(255, 91, 77, 0.22),
    0 10px 26px rgba(255, 91, 77, 0.08);
  opacity: 0.9;
}

.design-cell:nth-child(1) {
  grid-area: pain;
}

.design-cell:nth-child(2) {
  grid-area: design;
}

.design-cell:nth-child(3) {
  grid-area: goal;
}

.design-cell {
  padding: 18px 20px;
  border-radius: 18px;
  background:
    radial-gradient(
      circle at 85% 80%,
      rgba(255, 116, 48, 0.06),
      transparent 46%
    ),
    linear-gradient(
      180deg,
      rgba(255, 110, 62, 0.04),
      rgba(255, 255, 255, 0.01)
    ),
    rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.012);
}

.design-k {
  font-size: 32px;
  font-family: "ZCOOL XiaoWei", serif;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: rgba(255, 210, 185, 0.9);
}

.design-v {
  margin-top: 6px;
  color: #fff2eb;
  font-size: clamp(39px, 3.225vw, 60px);
  line-height: 1.45;
  font-weight: 720;
}

.design-cell:nth-child(2) .design-v {
  color: #ff8f43;
}

.design-cell:nth-child(3) .design-v {
  color: #f5ece8;
  font-weight: 560;
  font-size: clamp(33px, 2.325vw, 42px);
  line-height: 1.75;
}

.design-page:last-child .design-cell:nth-child(3) .design-v {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .design-section__lead {
    text-align: left;
  }

  .design-intro,
  .design-page {
    min-height: auto;
    padding: 10px 0;
  }

  .design-page__card {
    max-width: 100%;
    padding: 16px 14px 52px 14px;
    border-radius: 18px;
    min-height: auto;
  }

  .design-page__card::before {
    top: 0;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 4px;
    border-radius: 999px;
  }

  .design-row__grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "pain"
      "design"
      "goal";
    gap: 12px;
    padding-right: 0;
  }

  .design-v {
    font-size: clamp(18px, 4.6vw, 22px);
  }

  .design-row__grid::after {
    right: 8px;
    left: 8px;
    bottom: -18px;
  }

  .design-corner-icon {
    right: 14px;
    bottom: 10px;
    width: clamp(236px, 60vw, 336px);
    height: clamp(236px, 60vw, 336px);
  }
}

/* Page 2: Explore + Footer (reference-style block tiles) */
.explore-project {
  margin-top: 54px;
  padding: 26px 0 14px;
}

.explore-project__head {
  text-align: center;
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.explore-project__title {
  margin: 0;
  font-family: "ZCOOL XiaoWei", serif;
  font-size: clamp(28px, 2.8vw, 44px);
  letter-spacing: 0.03em;
  color: #ffae62;
  text-shadow: 0 0 16px rgba(255, 174, 98, 0.18);
}

.explore-project__sub {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.5;
}

.explore-project__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 10px;
}

.explore-project .deep-dive {
  margin: 8px auto 30px;
}

.explore-tile {
  appearance: none;
  border: 1px solid rgba(95, 255, 245, 0.14);
  background: linear-gradient(
    180deg,
    rgba(0, 136, 146, 0.5),
    rgba(0, 82, 90, 0.56)
  );
  color: #e9fffd;
  border-radius: 18px;
  padding: 18px 16px 16px;
  cursor: pointer;
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  display: grid;
  justify-items: center;
  gap: 12px;
  min-height: 118px;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background-color 0.22s ease;
}

.explore-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(95, 255, 245, 0.24);
  box-shadow:
    0 22px 44px rgba(0, 0, 0, 0.46),
    0 0 0 1px rgba(95, 255, 245, 0.08),
    0 0 38px rgba(0, 210, 214, 0.08);
}

.explore-tile:active {
  transform: translateY(0);
}

.explore-tile__icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(
    135deg,
    rgba(255, 198, 116, 0.9),
    rgba(255, 142, 66, 0.92)
  );
  color: #fff;
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.28),
    0 0 0 6px rgba(255, 172, 98, 0.14);
}

.explore-tile__icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.explore-tile__label {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #eaffff;
}

.page2-footer {
  margin-top: 22px;
  padding: 20px 0 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(
    180deg,
    rgba(0, 120, 126, 0.22),
    rgba(0, 60, 64, 0.35)
  );
}

.page2-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 12px 18px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: center;
}

.page2-footer__brand {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
  align-items: center;
}

.page2-footer__logoWrap {
  width: 220px;
  height: 220px;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.page2-footer__logoWrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.page2-footer__brandName {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #ffbd74;
  line-height: 1.15;
}

.page2-footer__brandTagline {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  font-weight: 700;
}

.page2-footer__contactTitle {
  font-size: 18px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 10px;
}

.page2-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.page2-footer__list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: center;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.35;
}

.page2-footer__liIcon {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.7);
}

.page2-footer__liIcon svg {
  width: 18px;
  height: 18px;
  display: block;
}

@media (max-width: 1024px) {
  .explore-project__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page2-footer__inner {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 520px) {
  .explore-project__grid {
    grid-template-columns: 1fr;
  }

  .page2-footer__brand {
    grid-template-columns: 192px 1fr;
  }

  .page2-footer__logoWrap {
    width: 192px;
    height: 192px;
  }
}
