:root {
  --ink: #17365d;
  --muted: #5b7190;
  --blue: #4f8cff;
  --cyan: #25d6d0;
  --yellow: #ffc84d;
  --orange: #ff9b55;
  --purple: #9b72ff;
  --surface: rgba(255, 255, 255, 0.94);
  --shadow: 0 16px 44px rgba(50, 98, 154, 0.16);
  --page-max: 1180px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 8% 4%, rgba(255, 215, 90, 0.33), transparent 22%),
    radial-gradient(circle at 90% 12%, rgba(88, 220, 218, 0.28), transparent 24%),
    linear-gradient(180deg, #f8fcff 0%, #eef7ff 48%, #fff8ed 100%);
  padding-bottom: 112px;
}

button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.park-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 78px;
  padding: 10px max(18px, env(safe-area-inset-left));
  border-bottom: 1px solid rgba(100, 151, 205, 0.14);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 7px 24px rgba(45, 92, 145, 0.08);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  text-decoration: none;
  font-weight: 900;
  color: #315a86;
}
.brand-mark img { width: 52px; height: 52px; object-fit: contain; }
.brand-mark span { font-size: 15px; letter-spacing: 0.03em; }

.park-title {
  margin: 0;
  text-align: center;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1;
  letter-spacing: 0.06em;
  font-weight: 1000;
  background: linear-gradient(105deg, #4e8cff 0%, #2fd1cf 24%, #ffc94e 49%, #ff7d97 73%, #966fff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 10px rgba(84, 137, 220, 0.18));
  animation: title-flow 5.5s linear infinite, title-float 3.4s ease-in-out infinite;
}

.back-study {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border: 2px solid rgba(79, 140, 255, 0.2);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(54, 103, 162, 0.1);
  text-decoration: none;
  font-size: 16px;
  font-weight: 900;
  color: #315a86;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.back-study:hover, .back-study:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(79, 140, 255, 0.46);
  box-shadow: 0 12px 26px rgba(54, 103, 162, 0.17);
  outline: none;
}

.page-shell { width: min(var(--page-max), calc(100% - 28px)); margin: 22px auto 0; }
.hero-carousel {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 7;
  min-height: 300px;
  border: 7px solid rgba(255, 255, 255, 0.94);
  border-radius: 34px;
  background: #dcefff;
  box-shadow: var(--shadow);
  isolation: isolate;
}
.hero-track, .hero-slide { position: absolute; inset: 0; }
.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity .7s ease;
}
.hero-slide.is-active { opacity: 1; pointer-events: auto; z-index: 1; }
.hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  will-change: transform;
  transform: scale(1.04);
}
.hero-slide.is-active:nth-child(6n+1) img { animation: hero-push 4.2s ease-out both; }
.hero-slide.is-active:nth-child(6n+2) img { animation: hero-pan-left 4.2s ease-out both; }
.hero-slide.is-active:nth-child(6n+3) img { animation: hero-pan-right 4.2s ease-out both; }
.hero-slide.is-active:nth-child(6n+4) img { animation: hero-rise 4.2s ease-out both; }
.hero-slide.is-active:nth-child(6n+5) img { animation: hero-fall 4.2s ease-out both; }
.hero-slide.is-active:nth-child(6n) img { animation: hero-drift 4.2s ease-out both; }
.hero-slide:nth-child(1) img { object-position: center 47%; }
.hero-slide:nth-child(2) img { object-position: center 45%; }
.hero-slide:nth-child(3) img { object-position: center 48%; }
.hero-slide:nth-child(4) img { object-position: center 43%; }
.hero-slide:nth-child(5) img { object-position: center 50%; }
.hero-slide:nth-child(6) img { object-position: center 43%; }
.hero-slide:nth-child(7) img { object-position: center 49%; }
.hero-slide:nth-child(8) img { object-position: center 45%; }
.hero-slide:nth-child(9) img { object-position: center 50%; }
.hero-shine {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.2), transparent 26%), linear-gradient(0deg, rgba(14,55,94,.08), transparent 28%);
}

.park-intro { margin: 22px 4px 14px; text-align: center; }
.park-intro h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); color: #244f7c; }
.park-intro p { margin: 8px 0 0; font-size: 17px; line-height: 1.8; color: var(--muted); }
.gateway-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 18px; }
.gateway-card {
  position: relative;
  display: grid;
  grid-template-columns: 130px 1fr auto;
  align-items: center;
  min-height: 190px;
  overflow: hidden;
  padding: 24px 28px;
  border: 4px solid rgba(255,255,255,.9);
  border-radius: 30px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s ease;
}
.gateway-card::before, .gateway-card::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.gateway-card::before { width: 170px; height: 170px; right: -42px; top: -60px; background: rgba(255,255,255,.35); }
.gateway-card::after { width: 105px; height: 105px; left: -26px; bottom: -42px; background: rgba(255,255,255,.42); }
.gateway-card:hover, .gateway-card:focus-visible { transform: translateY(-7px) scale(1.01); box-shadow: 0 22px 52px rgba(50, 98, 154, .23); outline: none; }
.gateway-card:active { transform: translateY(-1px) scale(.99); }
.gateway-letter { background: linear-gradient(135deg, #dcecff 0%, #eef7ff 56%, #d7f9f3 100%); border-color: rgba(91, 153, 255, .36); }
.gateway-sound { background: linear-gradient(135deg, #fff5d8 0%, #fff9ec 55%, #ffe4ca 100%); border-color: rgba(255, 181, 70, .38); }
.gateway-icon {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 34px;
  font-size: 58px;
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.7), 0 15px 28px rgba(68, 110, 158, .13);
  animation: icon-bob 3.2s ease-in-out infinite;
}
.gateway-letter .gateway-icon { background: linear-gradient(145deg, #76afff, #4d86ff); color:#fff; }
.gateway-sound .gateway-icon { background: linear-gradient(145deg, #ffc64c, #ff955b); animation-delay: -.9s; }
.gateway-copy { position: relative; z-index: 2; min-width: 0; }
.gateway-kicker { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.72); font-size: 14px; font-weight: 900; color: #4d6e94; }
.gateway-copy h3 { margin: 10px 0 7px; font-size: clamp(26px, 3vw, 38px); line-height: 1.2; }
.gateway-copy p { margin: 0; font-size: 17px; line-height: 1.7; color: #526d8b; }
.gateway-go { position: relative; z-index: 2; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.9); box-shadow: 0 9px 22px rgba(53, 102, 158, .13); font-size: 27px; font-weight: 1000; }
.tip-strip { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 20px auto 0; width: max-content; max-width: 100%; padding: 10px 18px; border-radius: 999px; background: rgba(255,255,255,.82); color: #5a7592; font-size: 15px; font-weight: 800; box-shadow: 0 8px 20px rgba(50, 98, 154, .09); }

.global-nav {
  position: fixed;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 80;
  display: grid;
  grid-template-columns: repeat(5, minmax(88px, 1fr));
  width: min(760px, calc(100% - 24px));
  min-height: 76px;
  padding: 8px;
  border: 2px solid rgba(255,255,255,.9);
  border-radius: 26px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 50px rgba(31, 75, 124, .22);
  backdrop-filter: blur(18px) saturate(1.25);
  transform: translateX(-50%);
}
.global-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 58px; border-radius: 19px; text-decoration: none; color: #647b98; font-size: 13px; font-weight: 900; transition: transform .18s ease, background .18s ease, color .18s ease; }
.global-nav a:hover, .global-nav a:focus-visible { background: #eef6ff; color: #3569a1; transform: translateY(-2px); outline: none; }
.global-nav a.is-active { color: #fff; background: linear-gradient(135deg, var(--blue), #776fff); box-shadow: 0 8px 18px rgba(79, 140, 255, .28); }
.nav-icon { font-size: 23px; line-height: 1; }

@keyframes title-flow { to { background-position: -220% 0; } }
@keyframes title-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes icon-bob { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-7px) rotate(2deg); } }
@keyframes hero-push { from { transform: scale(1.015); } to { transform: scale(1.085); } }
@keyframes hero-pan-left { from { transform: scale(1.09) translateX(2.2%); } to { transform: scale(1.045) translateX(-1.5%); } }
@keyframes hero-pan-right { from { transform: scale(1.09) translateX(-2.2%); } to { transform: scale(1.045) translateX(1.5%); } }
@keyframes hero-rise { from { transform: scale(1.075) translateY(1.8%); } to { transform: scale(1.045) translateY(-1.4%); } }
@keyframes hero-fall { from { transform: scale(1.075) translateY(-1.8%); } to { transform: scale(1.045) translateY(1.4%); } }
@keyframes hero-drift { from { transform: scale(1.055) translate(-1.4%, 1%); } to { transform: scale(1.085) translate(1.2%, -1%); } }

@media (max-width: 860px) {
  .park-topbar { grid-template-columns: auto 1fr auto; min-height: 72px; padding-inline: 12px; }
  .brand-mark span { display: none; }
  .brand-mark img { width: 46px; height: 46px; }
  .back-study { min-height: 44px; padding: 0 13px; font-size: 14px; }
  .page-shell { width: min(100% - 20px, 820px); margin-top: 14px; }
  .hero-carousel { border-width: 5px; border-radius: 26px; min-height: 260px; }
  .gateway-card { grid-template-columns: 102px 1fr auto; min-height: 170px; padding: 20px; }
  .gateway-icon { width: 90px; height: 90px; border-radius: 28px; font-size: 48px; }
  .gateway-copy p { font-size: 15px; }
}

@media (max-width: 680px) {
  body { padding-bottom: 102px; }
  .park-topbar { grid-template-columns: 48px 1fr 48px; gap: 6px; }
  .brand-mark { width: 46px; }
  .park-title { font-size: clamp(27px, 8vw, 36px); letter-spacing: .03em; }
  .back-study { width: 46px; padding: 0; justify-content: center; font-size: 0; }
  .back-study span:first-child { font-size: 22px; }
  .hero-carousel { aspect-ratio: 16 / 9; min-height: 0; border-radius: 22px; }
  .park-intro { margin-top: 17px; }
  .park-intro p { font-size: 15px; }
  .gateway-grid { grid-template-columns: 1fr; gap: 14px; }
  .gateway-card { grid-template-columns: 82px 1fr 44px; min-height: 136px; padding: 15px; border-radius: 24px; }
  .gateway-icon { width: 72px; height: 72px; border-radius: 23px; font-size: 39px; }
  .gateway-copy h3 { margin: 7px 0 4px; font-size: 25px; }
  .gateway-copy p { font-size: 14px; line-height: 1.55; }
  .gateway-kicker { min-height: 25px; font-size: 12px; }
  .gateway-go { width: 42px; height: 42px; font-size: 21px; }
  .tip-strip { width: 100%; border-radius: 18px; text-align: center; font-size: 13px; }
  .global-nav { grid-template-columns: repeat(5, 1fr); min-height: 68px; padding: 6px; border-radius: 22px; }
  .global-nav a { min-width: 0; min-height: 54px; border-radius: 16px; font-size: 11px; }
  .nav-icon { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
