:root {
  --purple: #522387;
  --lavender: #c794ff;
  --footer: rgb(255 255 255 / 84%);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

.brand-logo {
  position: absolute;
  z-index: 2;
  top: max(24px, env(safe-area-inset-top));
  left: max(36px, env(safe-area-inset-left));
  width: clamp(180px, 15vw, 240px);
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 12px rgb(54 28 91 / 22%));
}

.site-footer {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 20px;
  color: var(--footer);
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}

.site-footer a {
  color: inherit;
  text-underline-offset: 3px;
}

/* 首页 */
.home-page {
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  color: #fff;
  background: #000;
}

.preloader {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: grid;
  place-items: center;
  background: #000;
  opacity: 1;
  visibility: visible;
  transition: opacity .55s ease, visibility 0s linear .55s;
}

.loading-progress {
  position: absolute;
  top: calc(50% + 112px);
  left: 50%;
  width: min(240px, 62vw);
  height: 4px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgb(255 255 255 / 18%);
  box-shadow: 0 0 0 1px rgb(198 151 255 / 22%);
}

.loading-progress-fill {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #7235db, #d4aaff);
  box-shadow: 0 0 12px rgb(180 119 255 / 78%);
  transition: width .4s ease;
}

.loading-value {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: rgb(255 255 255 / 76%);
  font-size: 12px;
  letter-spacing: .08em;
}

.home-page .brand-logo {
  position: fixed;
  z-index: 11;
  transform: translate(0, 0);
  transition:
    top .8s cubic-bezier(.22, 1, .36, 1),
    left .8s cubic-bezier(.22, 1, .36, 1),
    width .8s cubic-bezier(.22, 1, .36, 1),
    transform .8s cubic-bezier(.22, 1, .36, 1);
}

.home-page.is-loading .brand-logo {
  top: 50%;
  left: 50%;
  width: clamp(150px, 18vw, 250px);
  transform: translate(-50%, -58%);
}

.home-page.is-ready .preloader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.hero-video,
.video-shade {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  object-fit: cover;
}

/* 浅色视频画面下仍需保证体验区和备案信息清晰。 */
.video-shade {
  background: linear-gradient(180deg, transparent 52%, rgb(8 20 17 / 8%) 68%, rgb(7 17 15 / 62%) 100%);
  pointer-events: none;
}

.home-shell {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
}

.experience-panel {
  position: absolute;
  left: 50%;
  bottom: max(94px, calc(7vh + env(safe-area-inset-bottom)));
  width: min(83vw, 1320px);
  min-height: 190px;
  padding: 20px 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(48px, 7vw, 110px);
  transform: translateX(-50%);
  border: 2px solid rgb(210 174 255 / 92%);
  border-radius: 30px;
  background: linear-gradient(180deg, rgb(74 52 110 / 32%), rgb(27 25 63 / 76%));
  box-shadow: 0 0 30px rgb(121 62 255 / 48%), inset 0 0 24px rgb(193 153 255 / 10%);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.qr-link {
  flex: 0 0 auto;
  padding: 12px;
  border: 4px solid #8e58ff;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 0 18px rgb(123 61 255 / 78%);
}

.qr-code {
  width: clamp(128px, 10vw, 160px);
  height: auto;
  display: block;
}

.experience-copy {
  margin: 0;
  font-size: clamp(38px, 4vw, 64px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: .04em;
  text-align: center;
  text-shadow: 0 0 6px #fff, 0 0 18px rgb(119 63 255 / 88%), 0 4px 0 rgb(75 36 159 / 75%);
  white-space: nowrap;
}

.experience-copy i {
  margin: 0 .12em;
  color: #ffbd40;
  font-size: .48em;
  font-style: normal;
  vertical-align: middle;
  text-shadow: 0 0 9px #ffb52e;
}

.home-page .site-footer {
  text-shadow: 0 1px 3px rgb(0 0 0 / 65%);
}

/* 开发中页面 */
.development-page {
  min-height: 100vh;
  min-height: 100svh;
  color: var(--purple);
  background: linear-gradient(180deg, #fffaf5 0%, #fff 42%, #f0e4ff 100%);
}

.development-shell {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: max(110px, calc(76px + env(safe-area-inset-top))) 24px max(132px, calc(106px + env(safe-area-inset-bottom)));
  display: grid;
  place-items: center;
}

.status-card {
  position: relative;
  width: min(760px, calc(100vw - 48px));
  min-height: min(68vh, 680px);
  padding: clamp(34px, 6vh, 66px) clamp(24px, 5vw, 56px) clamp(42px, 7vh, 74px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  border: 2px solid var(--lavender);
  border-radius: 44px;
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 24px 60px rgb(102 51 151 / 16%);
}

.mascot {
  width: min(82%, 490px);
  height: auto;
  display: block;
  filter: drop-shadow(0 16px 18px rgb(80 40 104 / 12%));
}

.status-title {
  margin: 24px 0 0;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.25;
  letter-spacing: .06em;
  text-align: center;
  text-shadow: 0 3px 0 rgb(90 39 135 / 10%);
}

.star {
  position: absolute;
  color: #f5a51e;
  font-family: serif;
  font-size: 30px;
  font-style: normal;
  line-height: 1;
}

.star-one { top: 8%; left: 7%; }
.star-two { top: 13%; right: 6%; color: #9e3cf0; font-size: 24px; }
.star-three { right: 7%; bottom: 10%; }
.star-four { bottom: 14%; left: 7%; color: #9e3cf0; font-size: 22px; }

.development-page .site-footer {
  color: #68537e;
  line-height: 1.9;
}

.development-page .site-footer a {
  display: block;
}

@media (orientation: portrait), (max-width: 700px) {
  .brand-logo {
    top: max(18px, env(safe-area-inset-top));
    left: max(18px, env(safe-area-inset-left));
    width: clamp(88px, 24vw, 118px);
  }

  .experience-panel {
    bottom: max(156px, calc(13vh + env(safe-area-inset-bottom)));
    width: min(78vw, 410px);
    min-height: 146px;
    padding: 16px;
    gap: clamp(18px, 5vw, 30px);
    border-radius: 24px;
  }

  .qr-link {
    padding: 8px;
    border-width: 3px;
    border-radius: 12px;
  }

  .qr-code {
    width: clamp(100px, 27vw, 132px);
  }

  .experience-copy {
    display: grid;
    gap: 2px;
    font-size: clamp(25px, 7vw, 36px);
    line-height: 1.28;
    letter-spacing: .02em;
    white-space: normal;
  }

  .experience-product { white-space: nowrap; }

  .home-page .site-footer {
    bottom: max(42px, calc(3vh + env(safe-area-inset-bottom)));
    font-size: clamp(12px, 3.4vw, 16px);
  }

  .site-footer span,
  .site-footer a {
    display: block;
  }

  .development-shell {
    padding: max(118px, calc(94px + env(safe-area-inset-top))) 24px max(154px, calc(124px + env(safe-area-inset-bottom)));
  }

  .status-card {
    width: 100%;
    min-height: min(56vh, 520px);
    padding: 42px 20px 48px;
    border-radius: 30px;
  }

  .mascot { width: min(94%, 420px); }

  .status-title {
    font-size: clamp(29px, 8vw, 38px);
    letter-spacing: .02em;
    white-space: nowrap;
  }

  .development-page .site-footer {
    bottom: max(34px, calc(2vh + env(safe-area-inset-bottom)));
    font-size: clamp(12px, 3.5vw, 15px);
  }
}

@media (max-height: 540px) and (orientation: landscape) {
  .brand-logo { top: 14px; left: 18px; width: 120px; }
  .experience-panel { bottom: 58px; min-height: 108px; padding: 10px 32px; }
  .qr-code { width: 86px; }
  .experience-copy { font-size: 30px; }
  .site-footer { bottom: 8px; font-size: 11px; }

  .development-shell { padding: 60px 20px 60px; }
  .development-page .brand-logo { width: 82px; }
  .status-card {
    width: min(700px, 72vw);
    min-height: 0;
    height: calc(100vh - 130px);
    padding: 12px 30px;
    flex-direction: row;
    gap: 24px;
    border-radius: 24px;
  }
  .mascot { width: auto; max-width: 58%; max-height: 100%; }
  .status-title { margin: 0; font-size: clamp(28px, 4vw, 46px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .preloader,
  .home-page .brand-logo,
  .loading-progress-fill { transition: none; }
}
