:root {
  --bg: #06070a;
  --surface: rgba(18, 22, 34, 0.72);
  --surface-border: rgba(155, 185, 255, 0.16);
  --text: #eef2ff;
  --muted: #9aa7c2;
  --cyan: #6ee7ff;
  --lilac: #c084fc;
  --mint: #5eead4;
  --radius: 22px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body { min-height: 100vh; background: var(--bg); overflow-x: hidden; line-height: 1.6; }

.intro-splash {
  position: fixed; inset: 0; z-index: 999; display: grid; place-items: center; background: #000;
  transition: opacity 0.65s ease, transform 0.65s ease, visibility 0.65s ease;
}
.intro-splash.is-done { opacity: 0; transform: scale(1.06); visibility: hidden; pointer-events: none; }
.intro-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.intro-logo {
  width: 156px; height: 156px; border-radius: 32px; object-fit: cover;
  box-shadow: 0 0 42px rgba(110, 231, 255, 0.35), 0 0 72px rgba(192, 132, 252, 0.25);
  animation: introPop 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.intro-glow-bar {
  width: 120px; height: 3px; border-radius: 99px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--lilac), transparent);
  animation: barSlide 0.9s ease-in-out infinite;
}
@keyframes introPop { from { opacity: 0; transform: scale(0.84); } to { opacity: 1; transform: scale(1); } }
@keyframes barSlide { 0%, 100% { opacity: 0.4; transform: scaleX(0.6); } 50% { opacity: 1; transform: scaleX(1.1); } }

.bg-stage { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #06070a; }
.bg-marquee {
  position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background-image: url("./assets/doodle-tile.png"); background-repeat: repeat; background-size: 400px 156px;
  transform: rotate(-24deg); will-change: background-position; animation: doodleDrift 22s linear infinite; opacity: 0.92;
}
@keyframes doodleDrift { from { background-position: 0 0; } to { background-position: 400px 0; } }
.bg-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 25%, rgba(6, 7, 10, 0.18) 0%, rgba(6, 7, 10, 0.82) 78%, rgba(6, 7, 10, 0.96) 100%);
}
.bg-aurora { position: absolute; width: 480px; height: 480px; border-radius: 50%; filter: blur(110px); opacity: 0.22; pointer-events: none; }
.bg-aurora-1 { top: -120px; left: -100px; background: #38bdf8; }
.bg-aurora-2 { right: -120px; top: 22%; background: #a855f7; }

.navbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  background: rgba(6, 7, 10, 0.65); border-bottom: 1px solid rgba(155, 185, 255, 0.12);
}
.nav-inner { max-width: 1040px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 16px; }
.brand-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(165, 225, 255, 0.35); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.version-pill { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(110, 231, 255, 0.12); border: 1px solid rgba(110, 231, 255, 0.28); color: var(--cyan); font-weight: 600; }
.nav-dl-btn {
  text-decoration: none; font-size: 13px; font-weight: 600; color: #06070a;
  background: linear-gradient(135deg, var(--cyan), var(--lilac)); padding: 7px 14px; border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-dl-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(110, 231, 255, 0.35); }

.container { max-width: 1040px; margin: 0 auto; padding: 36px 20px 72px; }
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 36px; align-items: center; padding: 20px 0 40px; }
.sync-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  font-size: 13px; color: #cfe8ff; background: rgba(110, 231, 255, 0.1); border: 1px solid rgba(110, 231, 255, 0.22); margin-bottom: 18px;
}
.sync-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.8); } }
.hero-title { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.title-glow {
  font-size: clamp(42px, 6vw, 64px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05;
  background: linear-gradient(120deg, #ffffff 15%, var(--cyan) 55%, var(--lilac) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 24px rgba(110, 231, 255, 0.22));
}
.title-sub { font-size: clamp(20px, 3vw, 28px); font-weight: 700; color: #dce4f7; }
.hero-desc { font-size: 16px; color: var(--muted); margin-bottom: 28px; max-width: 480px; }
.cta-group { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none;
  color: #05070c; font-weight: 700; font-size: 16px; padding: 15px 28px; border-radius: 16px;
  background: linear-gradient(135deg, #7dd3fc 0%, #6ee7ff 42%, #c084fc 100%);
  box-shadow: 0 12px 34px rgba(110, 231, 255, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.22) inset;
  transition: transform 0.2s ease, box-shadow 0.2s ease; cursor: pointer;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(192, 132, 252, 0.36); }
.btn-icon { width: 20px; height: 20px; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; padding: 14px 22px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(165, 195, 255, 0.22); color: var(--text);
  font-size: 15px; font-weight: 600; cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(110, 231, 255, 0.45); }
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.meta-row strong { color: #dbe7ff; font-weight: 600; }

.hero-visual { display: flex; justify-content: center; }
.mascot-card {
  position: relative; width: 100%; max-width: 340px; padding: 18px; border-radius: 28px;
  background: linear-gradient(160deg, rgba(22, 26, 40, 0.85), rgba(12, 15, 23, 0.95));
  border: 1px solid rgba(160, 190, 255, 0.2);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 42px rgba(140, 130, 255, 0.14);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.mascot-video { width: 100%; aspect-ratio: 1 / 1; border-radius: 20px; object-fit: cover; background: #0f121a; display: block; }
.mascot-caption { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #c7d6f5; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

.section { margin-top: 48px; }
.section-head { margin-bottom: 22px; }
.section-eyebrow { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: var(--cyan); margin-bottom: 6px; }
.section h2 { font-size: 24px; font-weight: 700; }
.section h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.glass-card {
  padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--surface-border);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: transform 0.25s ease, border-color 0.25s ease;
}
.glass-card:hover { transform: translateY(-3px); border-color: rgba(110, 231, 255, 0.34); }
.glass-card p { font-size: 14px; color: var(--muted); }
.card-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 20px; margin-bottom: 14px; }
.icon-cyan { background: rgba(110, 231, 255, 0.14); border: 1px solid rgba(110, 231, 255, 0.28); }
.icon-lilac { background: rgba(192, 132, 252, 0.14); border: 1px solid rgba(192, 132, 252, 0.28); }
.icon-mint { background: rgba(94, 234, 212, 0.14); border: 1px solid rgba(94, 234, 212, 0.28); }

.changelog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.version-tag { padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--mint); background: rgba(94, 234, 212, 0.12); border: 1px solid rgba(94, 234, 212, 0.28); white-space: nowrap; }
.changelog-body { font-size: 14px; color: #cdd8f0; white-space: pre-line; line-height: 1.85; }
.checksum-bar { margin-top: 18px; padding: 10px 14px; border-radius: 12px; background: rgba(6, 7, 10, 0.65); border: 1px solid rgba(155, 185, 255, 0.14); display: flex; align-items: center; gap: 10px; }
.checksum-label { font-size: 11px; font-weight: 700; color: var(--cyan); flex-shrink: 0; }
.checksum-value { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.steps-list { padding-left: 18px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--muted); }
.steps-list strong { color: var(--text); }
.steps-list code { padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); color: var(--cyan); }
.contact-desc { margin-bottom: 16px; }
.wechat-box { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(6, 7, 10, 0.72); border: 1px solid rgba(192, 132, 252, 0.28); margin-bottom: 12px; }
.wechat-label { font-size: 12px; color: var(--lilac); font-weight: 600; flex-shrink: 0; }
.wechat-id { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; color: #ffffff; flex: 1; overflow: hidden; text-overflow: ellipsis; }
.mini-copy-btn { padding: 6px 12px; border-radius: 10px; border: 1px solid rgba(110, 231, 255, 0.35); background: rgba(110, 231, 255, 0.14); color: var(--cyan); font-size: 12px; font-weight: 600; cursor: pointer; flex-shrink: 0; transition: background 0.2s ease; }
.mini-copy-btn:hover { background: rgba(110, 231, 255, 0.26); }
.contact-tip { font-size: 12px !important; opacity: 0.85; }
.footer { text-align: center; padding: 28px 20px 42px; font-size: 13px; color: rgba(154, 167, 194, 0.72); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.wechat-mask { position: fixed; inset: 0; z-index: 200; background: rgba(5, 7, 12, 0.88); backdrop-filter: blur(10px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }
.wechat-mask[hidden] { display: none; }
.wechat-arrow { position: fixed; top: 16px; right: 26px; font-size: 46px; color: var(--cyan); text-shadow: 0 0 22px var(--cyan); animation: arrowBounce 1.1s ease-in-out infinite; }
@keyframes arrowBounce { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(6px, -6px); } }
.wechat-dialog { max-width: 340px; padding: 26px 24px; border-radius: 22px; background: rgba(18, 22, 34, 0.96); border: 1px solid rgba(110, 231, 255, 0.3); text-align: center; display: flex; flex-direction: column; gap: 12px; }
.wechat-dialog p { font-size: 14px; color: #cbd5e1; }
.wechat-dialog strong { color: var(--cyan); }

.toast { position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 16px); padding: 10px 18px; border-radius: 999px; background: rgba(15, 23, 42, 0.94); border: 1px solid rgba(110, 231, 255, 0.38); color: #eef6ff; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease; z-index: 300; }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 28px; text-align: center; padding-top: 8px; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .cta-group, .meta-row { justify-content: center; }
  .btn-primary, .btn-ghost { width: 100%; }
  .feature-grid, .two-col { grid-template-columns: 1fr; }
  .mascot-card { max-width: 280px; }
}
