:root {
  --cyan: #05d9e8;
  --magenta: #ff2a6d;
  --ink: #05070f;
  --panel: #0c1020;
  --text: #f2f6ff;
  --muted: #9aa6bf;
  --glow-c: rgba(5, 217, 232, 0.45);
  --glow-m: rgba(255, 42, 109, 0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  min-height: 100%;
  color: var(--text);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--ink);
  overflow-x: hidden;
}

body {
  min-height: 100dvh;
  position: relative;
}

/* —— atmosphere (behind content) —— */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #05070f;
}

.hero-bg-img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: translate(-50%, -50%) scale(1.08);
  transform-origin: center center;
  will-change: transform;
  animation: bgKenBurns 28s ease-in-out infinite alternate;
}

.hero-bg-canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
  opacity: 0.45;
  mix-blend-mode: screen;
}

.hero-bg-dim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 7, 15, 0.28) 0%, rgba(5, 7, 15, 0.42) 50%, rgba(5, 7, 15, 0.62) 100%),
    radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.5) 100%);
}

.hero-bg-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent 0,
    transparent 3px,
    rgba(0, 0, 0, 0.08) 4px
  );
  opacity: 0.35;
  animation: scanMove 8s linear infinite;
}

@keyframes bgKenBurns {
  0% { transform: translate(-50%, -50%) scale(1.06); }
  50% { transform: translate(-52%, -51%) scale(1.14); }
  100% { transform: translate(-48%, -49%) scale(1.1); }
}

@keyframes scanMove {
  from { background-position: 0 0; }
  to { background-position: 0 80px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-img,
  .hero-bg-scan {
    animation: none !important;
  }
  .hero-bg-img {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: none;
  }
  .hero-bg-canvas { display: none; }
}

/* —— hero / content above bg —— */
.hero {
  position: relative;
  isolation: isolate;
  z-index: 1;
  min-height: 100dvh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(920px, 100%);
  text-align: center;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  animation: riseIn 0.9s ease both;
}

.brand-mark {
  width: clamp(88px, 18vw, 128px);
  height: clamp(88px, 18vw, 128px);
  filter: drop-shadow(0 0 22px rgba(255, 42, 80, 0.45)) drop-shadow(0 0 18px rgba(5, 217, 232, 0.25));
  animation: logoFloat 5.5s ease-in-out infinite;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 50%;
}

.brand-name {
  font-family: "Orbitron", "Noto Sans SC", sans-serif;
  font-weight: 800;
  font-size: clamp(1.55rem, 5.2vw, 3rem);
  letter-spacing: 0.08em;
  text-indent: 0.08em;
  background: linear-gradient(100deg, #fff 10%, var(--cyan) 45%, var(--magenta) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 24px rgba(5, 217, 232, 0.25));
  white-space: nowrap;
}

.brand-en {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(0.55rem, 1.6vw, 0.78rem);
  letter-spacing: 0.22em;
  color: var(--muted);
  text-indent: 0.22em;
}

.tagline {
  margin: 0 auto 36px;
  max-width: 28em;
  font-size: clamp(0.95rem, 2.4vw, 1.1rem);
  color: #c9d4ef;
  letter-spacing: 0.12em;
  animation: riseIn 1s 0.12s ease both;
}

.download-wrap {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
  animation: riseIn 1.05s 0.2s ease both;
}

.dl-btn {
  appearance: none;
  border: none;
  cursor: pointer;
  min-width: 148px;
  padding: 16px 40px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--magenta), var(--cyan));
  background-size: 160% 100%;
  box-shadow: 0 8px 28px var(--glow-m), inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-position 0.35s ease;
}

.dl-btn:hover {
  transform: translateY(-4px);
  background-position: 100% 0;
  box-shadow: 0 12px 32px var(--glow-c);
}

.dl-btn:active { transform: translateY(-1px); }

.privacy-link {
  animation: riseIn 1.1s 0.28s ease both;
}

.privacy-link a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}

.privacy-link a:hover { color: var(--cyan); }

.privacy-link .sep {
  margin: 0 10px;
  color: #445;
}

.hero-hud {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 40px);
  font-family: "Orbitron", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: rgba(5, 217, 232, 0.55);
  pointer-events: none;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* —— notice ball —— */
.notice-ball {
  position: fixed;
  right: 20px;
  bottom: 110px;
  z-index: 50;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(5, 217, 232, 0.45);
  border-radius: 50%;
  background: linear-gradient(145deg, #1a1240, #2a1a6e);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: grab;
  box-shadow: 0 0 18px rgba(90, 57, 230, 0.45);
  user-select: none;
  touch-action: none;
}

.notice-ball:active { cursor: grabbing; }

/* —— modal —— */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.82);
}

.modal[hidden] { display: none !important; }
.modal.is-open { display: flex; }

.modal-box {
  width: min(560px, 100%);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: 16px;
  background: linear-gradient(160deg, #101528, #0a0d18);
  border: 1px solid rgba(5, 217, 232, 0.25);
  box-shadow: 0 0 40px rgba(5, 217, 232, 0.12);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cyan);
}

.close {
  border: none;
  background: none;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.notice-list {
  flex: 1;
  overflow-y: auto;
}

.notice-item {
  padding: 14px 0;
  border-bottom: 1px solid #243;
  cursor: pointer;
  transition: color 0.2s;
}

.notice-item:hover { color: var(--cyan); }

.notice-date {
  margin-top: 4px;
  font-size: 0.75rem;
  color: #889;
}

.detail-content {
  max-height: 70vh;
  overflow-y: auto;
  line-height: 1.75;
  white-space: pre-line;
  color: #d7deef;
}

.wechat-tip {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
  background: rgba(0, 0, 0, 0.92);
  text-align: center;
  font-size: 1.1rem;
  line-height: 2;
}

.wechat-tip.is-open { display: flex; }

/* —— privacy page —— */
.page-shell {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  overflow: hidden;
}

.page-shell .hero-bg {
  position: fixed;
}

.page {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.page h1 {
  font-family: "Orbitron", "Noto Sans SC", sans-serif;
  margin-bottom: 8px;
  font-size: 1.8rem;
  color: var(--cyan);
}

.page .back {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--muted);
  text-decoration: none;
}

.page .back:hover { color: var(--cyan); }

.page p {
  margin-bottom: 14px;
  line-height: 1.8;
  color: #c8d0e4;
}

/* —— mobile —— */
@media (max-width: 640px) {
  .brand-name {
    letter-spacing: 0.04em;
    text-indent: 0.04em;
    white-space: normal;
    font-size: clamp(1.35rem, 7.5vw, 1.8rem);
  }

  .download-wrap {
    flex-direction: column;
    align-items: stretch;
    padding: 0 8px;
  }

  .dl-btn {
    width: 100%;
    min-width: 0;
    padding: 16px 24px;
  }

  .notice-ball {
    width: 46px;
    height: 46px;
    right: 14px;
    bottom: 90px;
    font-size: 0.72rem;
  }

  .hero-hud { font-size: 0.55rem; }
  .modal-box { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero-bg-canvas { display: none !important; }
}
