:root {
  font-family: 'Instrument Serif', 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', 'Noto Sans SC', serif;
  color: #ffffff;
  background: #040814;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  min-height: 100%;
}

body {
  margin: 0;
  background: #040814;
  font-family: 'Instrument Serif', 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', 'Noto Sans SC', serif;
}

a {
  color: inherit;
  text-decoration: none;
}

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

img {
  max-width: 100%;
}
.app-shell {
  min-height: 100vh;
  color: #eef4ff;
  background:
    radial-gradient(circle at top, rgba(35, 60, 110, 0.18), transparent 45%),
    linear-gradient(180deg, #05070d 0%, #07101d 100%);
}

.page-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.04), transparent 34%),
    linear-gradient(180deg, rgba(4, 8, 18, 0.35) 0%, rgba(4, 8, 18, 0.8) 100%);
}

.liquid-glass {
  background: rgba(255, 255, 255, 0.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.liquid-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.15) 20%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0.15) 80%,
    rgba(255, 255, 255, 0.45) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-shell {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: #000;
}

.hero-video-stack,
.hero-vignette,
.hero-grain {

.hero-video-toggle {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.08em;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, transform 0.2s ease;
}
.hero-video-toggle:hover { background: rgba(255, 255, 255, 0.12); transform: translateX(-50%) translateY(-2px); }
.hero-video-toggle.is-on { background: rgba(255, 145, 80, 0.4); border-color: rgba(255, 176, 119, 0.6); }

/* hero 视频叠层 */
.hero-video-stack {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #000;
}
.hero-video-stack .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-video-stack .hero-video.is-active {
  opacity: 1;
}

/* hero 暗角 + 颗粒 */
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 80%),
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0) 70%, rgba(0,0,0,0.7) 100%);
}
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: overlay;
  background-image:
    radial-gradient(rgba(255,255,255,0.4) 1px, transparent 1px),
    radial-gradient(rgba(255,255,255,0.3) 1px, transparent 1px);
  background-size: 3px 3px, 5px 5px;
  background-position: 0 0, 1px 1px;
}

/* hero 容器层 */
.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 22px clamp(20px, 5vw, 64px) clamp(40px, 8vh, 80px);
  box-sizing: border-box;
  color: #eef4ff;
}
.hero-content--dark {
  color: #ffffff;
}

/* 顶部导航 */
.hero-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  flex-wrap: wrap;
}
.hero-brand {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  color: inherit;
  line-height: 1;
}
.hero-brand__logo {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.hero-brand__sub {
  font-size: 11px;
  opacity: 0.65;
  letter-spacing: 0.12em;
}

.hero-nav__desktop {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
}
.hero-nav__link {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  color: rgba(238,244,255,0.85);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.hero-nav__link:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.hero-nav__button {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 16px;
  margin-left: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff9a5a 0%, #ff6b3d 100%);
  color: #1b0d05;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(255,107,61,0.35);
  transition: transform 0.2s ease;
}
.hero-nav__button:hover { transform: translateY(-1px); }

.hero-nav__mobile {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
}

.hero-menu-icon {
  position: relative;
  width: 20px;
  height: 20px;
  display: inline-block;
}
.hero-menu-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.hero-menu-svg.is-visible { opacity: 1; transform: scale(1); }
.hero-menu-svg.is-hidden  { opacity: 0; transform: scale(0.6); }

/* 主体两列布局 */
.hero-main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  padding-top: clamp(40px, 10vh, 120px);
}
.hero-copy {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero-copy--minimal {
  gap: 18px;
}

.hero-title {
  margin: 0;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.005em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.45);
}
.hero-summary {
  margin: 0;
  font-size: clamp(14px, 1.4vw, 18px);
  line-height: 1.5;
  opacity: 0.85;
  max-width: 560px;
}
.hero-summary--minimal {
  letter-spacing: 0.04em;
}

.hero-button-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid transparent;
}
.hero-cta--primary {
  background: linear-gradient(180deg, #ff9a5a 0%, #ff6b3d 100%);
  color: #1b0d05;
  box-shadow: 0 8px 22px rgba(255,107,61,0.4);
}
.hero-cta--primary:hover { transform: translateY(-1px); }
.hero-cta--ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-cta--ghost:hover {
  background: rgba(255,255,255,0.16);
  transform: translateY(-1px);
}

/* 移动端 */
@media (max-width: 820px) {
  .hero-nav__desktop { display: none; }
  .hero-nav__mobile  { display: inline-flex; }
  .hero-button-stack { flex-direction: column; align-items: stretch; }
  .hero-cta { width: 100%; }
}.click-effect-layer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  overflow: hidden;
}

.click-effect-burst {
  position: absolute;
  width: 0;
  height: 0;
}

.click-effect-ring {
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  margin-top: -8px;
  border-radius: 50%;
  border: 2px solid var(--burst-color, #fff);
  box-shadow: 0 0 18px var(--burst-color, #fff);
  animation: clickRing 680ms ease-out forwards;
}

.click-effect-particle {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--size);
  height: var(--size);
  margin-left: calc(var(--size) / -2);
  margin-top: calc(var(--size) / -2);
  border-radius: 999px;
  background: var(--burst-color, #fff);
  filter: drop-shadow(0 0 10px var(--burst-color, #fff));
  animation: clickParticle 720ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

@keyframes clickRing {
  0% { opacity: 0.9; transform: scale(0.2); }
  100% { opacity: 0; transform: scale(4.8); }
}

@keyframes clickParticle {
  0% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
  100% { opacity: 0; transform: translate3d(var(--dx), var(--dy), 0) scale(0.25); }
}
.bgm-dock {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(8, 12, 24, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
}

.bgm-dock__btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.bgm-dock__btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.bgm-dock__btn:active {
  transform: scale(0.94);
}

.bgm-dock__btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 0;
}

.bgm-dock__btn--mute {
  background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 540px) {
  .bgm-dock {
    right: 12px;
    bottom: 12px;
  }
  .bgm-dock__btn {
    width: 34px;
    height: 34px;
  }
}
.route-fallback {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: radial-gradient(circle at center, rgba(35, 60, 110, 0.18), rgba(2, 6, 16, 0.92) 70%);
  color: #eef4ff;
  z-index: 40;
}
.route-fallback__pulse {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(159, 182, 255, 0.4);
  border-top-color: rgba(255, 255, 255, 0.9);
  animation: route-fallback-spin 0.9s linear infinite;
}
.route-fallback__text {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: rgba(238, 244, 255, 0.78);
}
.route-fallback--error {
  background: radial-gradient(circle at center, rgba(255, 90, 90, 0.12), rgba(2, 6, 16, 0.95) 70%);
  text-align: center;
  padding: 24px;
}
.route-fallback--error h2 {
  margin: 0 0 12px;
  font-size: 22px;
}
.route-fallback--error p {
  margin: 0;
  color: rgba(255, 220, 220, 0.85);
  max-width: 480px;
  line-height: 1.6;
}
.route-fallback__btn {
  margin-top: 16px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #fff;
  color: #101826;
  font-weight: 600;
  cursor: pointer;
}
@keyframes route-fallback-spin {
  to { transform: rotate(360deg); }
}
