:root {
  --bg-0: #e8dff5;
  --bg-1: #d4c4f0;
  --bg-2: #c9b5ea;
  --bg-3: #ddd0f5;
  --ink: #1a0f2e;
  --ink-soft: #5c4d7a;
  --glass: rgba(255, 255, 255, 0.42);
  --glass-line: rgba(255, 255, 255, 0.6);
  --accent: #a78bfa;
  --accent-2: #c4b5fd;
  --shadow: 0 20px 60px rgba(42, 26, 92, 0.18);
  --radius-xl: 30px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: "Manrope", "PingFang SC", "Helvetica Neue", sans-serif;
  background:
    radial-gradient(circle at 12% 9%, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0) 40%),
    radial-gradient(circle at 86% 11%, rgba(200, 170, 255, 0.44), rgba(200, 170, 255, 0) 34%),
    radial-gradient(circle at 54% 76%, rgba(230, 180, 255, 0.22), rgba(230, 180, 255, 0) 40%),
    linear-gradient(160deg, var(--bg-0) 0%, var(--bg-1) 42%, var(--bg-2) 76%, var(--bg-3) 100%);
}

body {
  padding: 1.2rem;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 400;
  font-family: "Instrument Serif", "Times New Roman", serif;
  letter-spacing: 0.01em;
}

p {
  margin: 0;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.atmosphere::before {
  content: "";
  position: absolute;
  inset: -16%;
  background:
    radial-gradient(circle at 20% 22%, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 35%),
    radial-gradient(circle at 78% 30%, rgba(200, 175, 255, 0.36), rgba(200, 175, 255, 0) 40%),
    radial-gradient(circle at 48% 86%, rgba(190, 160, 240, 0.26), rgba(190, 160, 240, 0) 44%);
  filter: blur(40px) saturate(115%);
  opacity: 0.9;
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: -22%;
  background: conic-gradient(
    from 32deg at 72% 34%,
    rgba(200, 175, 255, 0.24),
    rgba(220, 180, 255, 0.16),
    rgba(185, 200, 230, 0.16),
    rgba(200, 175, 255, 0.24)
  );
  filter: blur(60px) saturate(118%);
  opacity: 0.62;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.78;
  animation: float 16s ease-in-out infinite;
}

.blob-a {
  width: 35vw;
  height: 35vw;
  background: radial-gradient(circle at 30% 30%, #e8d5ff, #c9a8ff);
  top: -8vw;
  right: 8vw;
}

.blob-b {
  width: 30vw;
  height: 30vw;
  background: radial-gradient(circle at 30% 30%, #f0e0ff, #d4b8ff);
  left: -6vw;
  bottom: -5vw;
  animation-delay: -6s;
}

.blob-c {
  width: 18vw;
  height: 18vw;
  background: radial-gradient(circle at 30% 30%, #e0d0f8, #c8a8ff);
  left: 42vw;
  top: 20vh;
  animation-delay: -2s;
}

.grain {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(20, 35, 65, 0.08) 0.45px, transparent 0.45px);
  background-size: 3px 3px;
  opacity: 0.18;
}

.glass {
  border: 1px solid var(--glass-line);
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.6),
    rgba(255, 255, 255, 0.2) 42%,
    rgba(226, 241, 255, 0.32)
  );
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.nav-shell {
  position: sticky;
  top: 1rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  border-radius: 999px;
  padding: 0.75rem 1.05rem;
}

.brand {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: #1f355b;
  white-space: nowrap;
}

nav {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
}

.chip,
.story-btn,
.close-btn {
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(233, 244, 255, 0.45));
  color: #163259;
  border-radius: 999px;
  padding: 0.48rem 0.9rem;
  font-family: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.chip:hover,
.story-btn:hover,
.close-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(29, 72, 136, 0.18);
}

.chip.active {
  background: linear-gradient(135deg, rgba(142, 210, 255, 0.7), rgba(255, 255, 255, 0.65));
}

main {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.2rem;
}

.hero {
  border-radius: var(--radius-xl);
  padding: 2rem 1.9rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(260px, 0.86fr);
  gap: 1rem;
  align-items: stretch;
}

/* 轮播激活时右侧收窄 */
.hero-layout:has(.hero-main.has-lunbo) {
  grid-template-columns: 1.35fr minmax(220px, 0.65fr);
}

.hero-main {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: 1fr auto;
  gap: 0.8rem 1.2rem;
  min-width: 0;
}

/* ── 轮播激活时扩展为 3 列 ── */
.hero-main.has-lunbo {
  grid-template-columns: auto 1.1fr auto;
}

.hero-main.has-lunbo .hero-intro {
  max-width: clamp(190px, 20vw, 290px);
}

.hero-main.has-lunbo .hero-spotlight {
  grid-column: 3;
  max-width: 180px;
}

.hero-intro {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
}

/* ── 轮播容器 ─────────────────────────────────── */
.hero-lunbo {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  display: none; /* JS 加 .has-lunbo 后显示 */
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.46),
    rgba(220, 240, 255, 0.28)
  );
  box-shadow:
    0 16px 42px rgba(22, 61, 118, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  min-height: 200px;
}

.hero-main.has-lunbo .hero-lunbo {
  display: block;
}

/* 单张幻灯片 */
.lunbo-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.05);
  transition:
    opacity 700ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 700ms cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.lunbo-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

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

/* 左右箭头按鈕 */
.lunbo-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: #1a3a6a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow:
    0 4px 16px rgba(20, 60, 120, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: all 260ms cubic-bezier(0.34, 1.56, 0.64, 1);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.lunbo-prev { left: 0.62rem; }
.lunbo-next { right: 0.62rem; }

.lunbo-arrow:hover {
  background: rgba(255, 255, 255, 0.82);
  transform: translateY(-50%) scale(1.1);
  box-shadow:
    0 6px 22px rgba(20, 60, 120, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.lunbo-arrow:active {
  transform: translateY(-50%) scale(0.96);
}

/* 圆点指示器 */
.lunbo-dots {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.62);
}

.lunbo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(60, 110, 190, 0.35);
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.lunbo-dot.active {
  width: 16px;
  border-radius: 999px;
  background: rgba(87, 168, 255, 0.88);
}

.lunbo-dot:hover:not(.active) {
  background: rgba(87, 168, 255, 0.5);
  transform: scale(1.2);
}

.hero-spotlight {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  transition: transform 400ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.hero-spotlight:hover {
  transform: translateY(-5px) scale(1.03);
}

.spotlight-frame {
  position: relative;
  width: clamp(140px, 13vw, 200px);
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(220, 238, 255, 0.3));
  box-shadow:
    0 16px 40px rgba(22, 61, 118, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.spotlight-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 480ms ease;
}

.spotlight-frame img.fading {
  opacity: 0;
}

.spotlight-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.18rem 0.52rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.66rem;
  color: #1a3d6b;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.hero-spotlight figcaption {
  text-align: center;
  max-width: clamp(140px, 13vw, 200px);
}

.hero-spotlight figcaption strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: #102545;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-spotlight figcaption small {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.74rem;
  color: #4a6b94;
}

.live-clock {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  margin-top: 0.15rem;
}

.live-clock em {
  font-style: normal;
  color: var(--accent);
  font-size: 0.82rem;
  animation: blink 1s step-end infinite;
}

.clock-digit {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.11em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.hero h1 {
  margin-top: 0.5rem;
  font-size: clamp(1.75rem, 3.7vw, 3.2rem);
  line-height: 1.03;
  max-width: 12.8ch;
}

.hero-meta {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 0.55rem;
}

/* 轮播模式下 meta 卡片更紧凑 */
.hero-main.has-lunbo .hero-meta {
  margin-top: 0.45rem;
}

.hero-meta article {
  border-radius: var(--radius-md);
  padding: 0.9rem;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

/* 轮播模式下卡片更紧凑 */
.hero-main.has-lunbo .hero-meta article {
  padding: 0.6rem 0.8rem;
}

.hero-meta span,
.hero-meta small {
  color: var(--ink-soft);
  font-size: 0.8rem;
}

/* 轮播模式下统计文字略小 */
.hero-main.has-lunbo .hero-meta span,
.hero-main.has-lunbo .hero-meta small {
  font-size: 0.74rem;
}

.hero-meta strong {
  display: inline-block;
  margin: 0.3rem 0;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 600;
  color: #102545;
}

/* 轮播模式下数字略小 */
.hero-main.has-lunbo .hero-meta strong {
  font-size: clamp(1.1rem, 1.8vw, 1.6rem);
  margin: 0.15rem 0;
}

.hero-side {
  position: relative;
  display: grid;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 0.68rem;
}

.hero-side::before {
  content: "";
  position: absolute;
  inset: -6% -8% auto auto;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.hero-side-card {
  position: relative;
  z-index: 1;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.55),
    rgba(225, 239, 255, 0.36) 48%,
    rgba(193, 220, 248, 0.33)
  );
  padding: 0.85rem 0.92rem;
  box-shadow:
    0 16px 26px rgba(22, 61, 118, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.hero-side-card span {
  color: #416289;
  font-size: 0.77rem;
  letter-spacing: 0.04em;
}

.hero-side-card strong {
  display: block;
  margin-top: 0.38rem;
  color: #0f2c54;
  font-size: clamp(1.04rem, 1.6vw, 1.38rem);
  font-weight: 700;
}

.hero-side-card small {
  display: block;
  margin-top: 0.26rem;
  color: #4a6b94;
  font-size: 0.8rem;
}

.hero-chip-cloud {
  margin-top: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.44rem;
}

.hero-place-chip {
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  padding: 0.24rem 0.58rem;
  font-size: 0.75rem;
  color: #214a7d;
  background: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

.experience-head {
  display: grid;
  gap: 0.45rem;
  padding: 0 0.25rem;
}

.experience-head h2 {
  font-size: clamp(1.5rem, 2.7vw, 2.2rem);
}

.experience-head p {
  max-width: 68ch;
  color: var(--ink-soft);
  line-height: 1.55;
}

.river-shell {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 1rem;
}

.progress {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 4;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  color: #284775;
}

.river {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  height: clamp(460px, 58vh, 640px);
  border-radius: calc(var(--radius-xl) - 6px);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.36),
    rgba(235, 245, 255, 0.24) 45%,
    rgba(183, 225, 255, 0.2)
  );
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  will-change: scroll-position;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.track,
.card-layer {
  position: absolute;
  inset: 0;
  width: 6200px;
  height: 100%;
}

.track {
  z-index: 1;
}

.track path {
  fill: none;
  stroke: rgba(123, 181, 241, 0.75);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 10 10;
}

.card-layer {
  z-index: 3;
}

.memory-card {
  position: absolute;
  width: clamp(120px, 9vw, 168px);
  aspect-ratio: 3/4;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 18px;
  padding: 0.4rem;
  background: linear-gradient(
    130deg,
    rgba(255, 255, 255, 0.55),
    rgba(255, 255, 255, 0.16),
    rgba(205, 236, 255, 0.34)
  );
  box-shadow: 0 24px 36px rgba(19, 60, 114, 0.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  cursor: pointer;
  transition: transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 320ms ease;
  scroll-snap-align: center;
  will-change: transform;
  transform: translateZ(0);
  -webkit-tap-highlight-color: transparent;
}

.memory-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 30px 44px rgba(18, 69, 133, 0.24);
}

.memory-card img {
  width: 100%;
  height: calc(100% - 1.65rem);
  object-fit: cover;
  border-radius: 14px;
}

.memory-card time {
  display: block;
  margin-top: 0.28rem;
  font-size: 0.72rem;
  color: #2f4f7d;
  text-align: center;
}

.compare {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 1rem 1.2rem;
  border-radius: var(--radius-xl);
  padding: 1.45rem 1.35rem 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.58),
    rgba(224, 238, 255, 0.34) 52%,
    rgba(191, 222, 248, 0.34)
  );
  box-shadow:
    0 30px 60px rgba(26, 53, 98, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  transform: translateY(10px) scale(0.995);
  opacity: 0.92;
  transition:
    transform 680ms cubic-bezier(0.2, 0.75, 0.2, 1),
    opacity 640ms ease;
}

.compare.in-view {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.compare::before,
.compare::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.compare-refraction {
  position: absolute;
  inset: -24% -12%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(112deg, rgba(255, 255, 255, 0) 24%, rgba(255, 255, 255, 0.5) 39%, rgba(255, 255, 255, 0) 58%),
    linear-gradient(102deg, rgba(141, 212, 255, 0) 34%, rgba(141, 212, 255, 0.22) 44%, rgba(141, 212, 255, 0) 61%);
  transform: translateX(-18%) rotate(-6deg);
  filter: blur(0.5px);
}

.compare.refract-run .compare-refraction {
  animation: refractSweep 1600ms cubic-bezier(0.18, 0.9, 0.22, 1) 1 both;
}

.compare::before {
  inset: -35% auto auto -20%;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0) 72%);
}

.compare::after {
  left: 1rem;
  right: 1rem;
  top: 5.3rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(165, 199, 239, 0.8), rgba(255, 255, 255, 0));
}

.compare > div {
  position: relative;
  z-index: 2;
}

.compare h3 {
  font-size: clamp(1.28rem, 2.2vw, 1.72rem);
}

.compare > div p {
  margin-top: 0.35rem;
  color: var(--ink-soft);
}

.compare .story-btn {
  justify-self: end;
  align-self: center;
  z-index: 2;
  width: auto;
  min-width: 150px;
  padding: 0.62rem 1.2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, rgba(161, 220, 255, 0.9), rgba(255, 255, 255, 0.82));
  box-shadow: 0 10px 24px rgba(38, 102, 178, 0.22);
}

.compare .story-btn:hover {
  box-shadow: 0 14px 26px rgba(38, 102, 178, 0.28);
}

.compare-panel {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  min-height: 380px;
  perspective: 1200px;
}

.compare-panel::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8%;
  bottom: 8%;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(146, 183, 231, 0.85), rgba(255, 255, 255, 0));
}

.compare-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.65), rgba(214, 232, 250, 0.36));
  box-shadow:
    0 16px 30px rgba(21, 64, 124, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.compare-card::before {
  content: "";
  position: absolute;
  inset: -25% -10% auto;
  height: 70%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.compare-card:hover {
  transform: translateY(-6px) rotateX(1.2deg);
  box-shadow:
    0 24px 34px rgba(17, 60, 122, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.compare-card img {
  width: 100%;
  height: clamp(280px, 27vh, 350px);
  object-fit: cover;
  filter: saturate(1.03) contrast(1.02);
}

.compare-copy {
  padding: 0.92rem 0.9rem 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.76);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(230, 241, 255, 0.48));
}

.compare-copy h4 {
  font-size: 1.1rem;
}

.compare-copy p {
  margin-top: 0.25rem;
  color: #385984;
  font-size: 0.86rem;
}

.modal {
  width: min(620px, 92vw);
  border: none;
  border-radius: 24px;
  padding: 0.65rem;
}

.modal::backdrop {
  background: rgba(9, 20, 37, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.close-btn {
  position: absolute;
  top: 0.72rem;
  right: 0.72rem;
  z-index: 2;
}

.modal img {
  width: 100%;
  height: auto;
  max-height: 68vh;
  object-fit: cover;
  border-radius: 18px;
}

.modal-copy {
  padding: 0.8rem 0.45rem 0.2rem;
}

#modalDate {
  color: #3f6290;
  font-size: 0.8rem;
}

#modalTitle {
  margin-top: 0.3rem;
  font-size: 1.5rem;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) translateX(0px);
  }
  50% {
    transform: translateY(-16px) translateX(10px);
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes refractSweep {
  0% {
    opacity: 0;
    transform: translateX(-18%) rotate(-6deg);
  }
  18% {
    opacity: 0.4;
  }
  70% {
    opacity: 0.16;
  }
  100% {
    opacity: 0;
    transform: translateX(24%) rotate(-4deg);
  }
}

@media (max-width: 920px) {
  .nav-shell {
    border-radius: 26px;
    flex-wrap: wrap;
    padding: 0.6rem 0.8rem;
    gap: 0.5rem;
  }

  .brand {
    font-size: 0.72rem;
  }

  nav {
    order: 1;
    width: 100%;
    padding-bottom: 0.3rem;
  }

  .chip {
    padding: 0.4rem 0.7rem;
    font-size: 0.76rem;
  }

  .story-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.76rem;
  }

  .hero {
    padding: 1.2rem 1rem;
    will-change: auto;
    transform: translateZ(0);
  }

  .hero h1 {
    font-size: clamp(1.4rem, 5.5vw, 2rem);
    max-width: none;
    line-height: 1.2;
  }

  .hero-intro .eyebrow {
    font-size: 0.7rem;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  /* 平板及以下隐藏轮播，恢复简单布局 */
  .hero-main.has-lunbo {
    grid-template-columns: 1fr;
  }

  .hero-main.has-lunbo .hero-lunbo {
    display: none;
  }

  .hero-main.has-lunbo .hero-intro {
    max-width: none;
  }

  .hero-main.has-lunbo .hero-spotlight {
    grid-column: 1;
    grid-row: 2;
    max-width: none;
  }

  .hero h1 {
    max-width: none;
  }

  /* 平板端 hero-side 改为单列 + 圆角边框 */
  .hero-side {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 0.75rem;
  }

  .hero-side-card {
    background: rgba(255, 255, 255, 0.45);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 0.9rem 1rem;
  }

  .hero-meta {
    grid-template-columns: 1fr;
  }

  .track,
  .card-layer {
    width: 5000px;
  }

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

  .compare .story-btn {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  body {
    padding: 0.75rem;
  }

  .river {
    height: 420px;
  }

  .track,
  .card-layer {
    width: 4200px;
  }

  .compare-panel {
    grid-template-columns: 1fr;
  }

  .compare-panel::before {
    display: none;
  }

  /* 手机端重新设计 hero 布局 - Apple 风格 */
  .hero {
    padding: 1.2rem 1rem 1.5rem;
  }

  .hero-layout {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
  }

  /* 标题区域 - 最上面 */
  .hero-main {
    order: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .hero-intro {
    text-align: center;
  }

  .hero-intro .eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.6;
    font-weight: 500;
  }

  .hero h1 {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
    line-height: 1.3;
    margin: 0.4rem 0 0;
    font-weight: 600;
    letter-spacing: -0.03em;
  }

  /* 精选回忆 - 横向布局 */
  .hero-spotlight {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
    max-width: none;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.6);
  }

  .spotlight-frame {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .hero-spotlight figcaption {
    text-align: left;
    max-width: none;
    flex: 1;
  }

  .spotlight-caption-title {
    font-size: 0.9rem;
    line-height: 1.35;
    font-weight: 600;
    margin-bottom: 0.2rem;
    letter-spacing: -0.01em;
  }

  .spotlight-caption-date {
    font-size: 0.72rem;
    opacity: 0.7;
    font-weight: 400;
  }

  /* 统计卡片区域 - 最下面 */
  .hero-side {
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-top: 0;
  }

  .hero-side-card {
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.6);
  }

  .hero-side-card span {
    font-size: 0.68rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    opacity: 0.65;
    font-weight: 500;
  }

  .hero-side-card strong {
    font-size: clamp(1.35rem, 5.5vw, 1.8rem);
    margin: 0.2rem 0 0.1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1;
  }

  .hero-side-card small {
    font-size: 0.68rem;
    opacity: 0.6;
    font-weight: 400;
  }

  /* 足迹标签云 */
  .hero-chip-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.25rem;
  }

  .hero-place-chip {
    font-size: 0.68rem;
    padding: 0.3rem 0.65rem;
    background: rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    font-weight: 500;
  }

  .compare-card img {
    height: 220px;
  }
}
