/* 星空官网 — 深色视觉 */
:root {
  --ink: #0b0907;
  --ink-2: #16110c;
  --ink-3: #241c14;
  --paper: #f3e9d7;
  --paper-dim: #e8dcc4;
  --cinnabar: #c41e3a;
  --cinnabar-deep: #8f1428;
  --gold: #d4af37;
  --gold-soft: #e8d48a;
  --mist: rgba(243, 233, 215, 0.72);
  --line: rgba(212, 175, 55, 0.28);
  --text: #f6efe2;
  --text-dim: rgba(246, 239, 226, 0.68);
  --serif: "Noto Serif SC", "Songti SC", "STSong", serif;
  --display: "Ma Shan Zheng", "ZCOOL XiaoWei", "Noto Serif SC", cursive;
  --sans: "Noto Sans", "Noto Sans SC", "Noto Sans TC", "Noto Sans JP", "Noto Sans KR", "Noto Sans Thai", "PingFang SC", "Microsoft YaHei", sans-serif;
  --max: 1120px;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; border: 0; cursor: pointer; background: none; color: inherit; }

.container {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

/* —— 顶栏 —— */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  padding: calc(12px + var(--sat)) 0 12px;
  transition: background .35s, backdrop-filter .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(11, 9, 7, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 0.08em;
}
.brand img {
  width: 40px; height: 40px; border-radius: 0;
  object-fit: contain; background: transparent;
  box-shadow: none;
}
.nav-links {
  display: flex; align-items: center; gap: 22px;
  font-size: 14px; color: var(--text-dim);
}
.nav-links a:hover { color: var(--gold-soft); }
.nav-cta {
  display: inline-flex; align-items: center;
  padding: 8px 16px; border-radius: 999px;
  background: linear-gradient(135deg, var(--cinnabar), var(--cinnabar-deep));
  color: #fff; font-size: 13px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(196, 30, 58, 0.35);
}
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-dim); font-size: 13px;
}
.lang-switch-lab { display: none; }
.lang-switch select {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  padding: 6px 28px 6px 10px;
  font: inherit;
  font-size: 12.5px;
  max-width: 148px;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.lang-switch select:focus { outline: 1px solid rgba(212,175,55,.45); }
.lang-switch select option { color: #111; background: #fff; }
.nav-toggle {
  display: none; width: 42px; height: 42px;
  border: 1px solid var(--line); border-radius: 10px;
  align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block; width: 18px; height: 1.5px; background: var(--paper);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--paper);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex; align-items: flex-end;
  padding: calc(96px + var(--sat)) 0 72px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(196, 30, 58, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 70%, rgba(212, 175, 55, 0.12), transparent 50%),
    linear-gradient(180deg, #120d09 0%, #0b0907 55%, #160e0c 100%);
}
.hero-ink {
  position: absolute; inset: 0; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cpath fill='rgba(243,233,215,0.03)' d='M20 40c30-20 60-10 90 10 20 14 30 30 18 42-20 18-55 8-78-12-18-16-28-30-30-40z'/%3E%3C/svg%3E");
  opacity: .9;
  animation: mistDrift 28s linear infinite;
}
.hero-stars {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 28% 48%, rgba(232,212,138,.8), transparent),
    radial-gradient(1.5px 1.5px at 48% 18%, rgba(255,255,255,.55), transparent),
    radial-gradient(1px 1px at 66% 36%, rgba(255,255,255,.65), transparent),
    radial-gradient(2px 2px at 78% 14%, rgba(232,212,138,.75), transparent),
    radial-gradient(1px 1px at 88% 58%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.5px 1.5px at 38% 72%, rgba(255,255,255,.4), transparent);
  animation: twinkle 5s ease-in-out infinite alternate;
}
.hero-mountains {
  position: absolute; left: 0; right: 0; bottom: 0; height: 42%;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent, rgba(11,9,7,.75) 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'%3E%3Cpath fill='%2316100c' d='M0 224L80 208C160 192 320 160 480 170.7C640 181 800 235 960 240C1120 245 1280 203 1360 181.3L1440 160V320H0Z'/%3E%3Cpath fill='%230b0907' fill-opacity='0.9' d='M0 256L80 245.3C160 235 320 213 480 218.7C640 224 800 256 960 261.3C1120 267 1280 245 1360 234.7L1440 224V320H0Z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
.hero-seal {
  position: absolute; right: 8%; top: 22%;
  width: 86px; height: 86px;
  border: 2px solid rgba(196, 30, 58, 0.85);
  color: var(--cinnabar);
  display: grid; place-items: center;
  font-family: var(--display);
  font-size: 34px;
  letter-spacing: 0.12em;
  transform: rotate(8deg);
  opacity: 0;
  animation: sealIn 1.2s .4s ease forwards;
  box-shadow: inset 0 0 0 3px rgba(196,30,58,.25);
  background: rgba(196, 30, 58, 0.06);
}
.hero-copy { position: relative; z-index: 2; max-width: 720px; }
.hero-brand {
  font-family: var(--display);
  font-size: clamp(64px, 12vw, 120px);
  line-height: 0.95;
  letter-spacing: 0.12em;
  color: var(--paper);
  text-shadow: 0 10px 40px rgba(0,0,0,.45);
  animation: riseIn .9s ease both;
}
.hero-en {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  animation: riseIn .9s .1s ease both;
}
.hero-title {
  margin-top: 28px;
  font-family: var(--serif);
  font-size: clamp(26px, 4.2vw, 40px);
  font-weight: 600;
  line-height: 1.35;
  animation: riseIn .9s .18s ease both;
}
.hero-sub {
  margin-top: 14px;
  max-width: 34em;
  font-size: 16px;
  color: var(--text-dim);
  animation: riseIn .9s .26s ease both;
}
.hero-actions {
  margin-top: 32px;
  display: flex; flex-wrap: wrap; gap: 12px;
  animation: riseIn .9s .34s ease both;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: 12px;
  font-size: 15px; font-weight: 600;
  transition: transform .2s, box-shadow .2s, opacity .2s;
}
.btn:active { transform: scale(.98); }
.btn-ios {
  background: linear-gradient(180deg, #2a231c, #17120e);
  border: 1px solid rgba(212,175,55,.45);
  color: var(--paper);
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
}
.btn-android {
  background: linear-gradient(135deg, var(--cinnabar), var(--cinnabar-deep));
  color: #fff;
  box-shadow: 0 12px 30px rgba(196, 30, 58, 0.38);
}
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--gold-soft);
  background: rgba(255,255,255,.03);
}
.btn .ico { width: 18px; height: 18px; flex-shrink: 0; }
.btn.is-disabled { opacity: .72; cursor: pointer; }

/* —— 通用区块 —— */
.section {
  position: relative;
  padding: 88px 0;
}
.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 12px;
}
.eyebrow::before {
  content: ''; width: 18px; height: 1px; background: var(--gold);
}
.section h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.25;
}
.section .lead {
  margin-top: 12px;
  color: var(--text-dim);
  font-size: 16px;
}

/* 强项 */
.strengths {
  background:
    linear-gradient(180deg, rgba(22,17,12,.0), rgba(22,17,12,.85)),
    var(--ink-2);
  border-block: 1px solid var(--line);
}
.strength-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.strength-item {
  background: var(--ink-2);
  padding: 28px 24px 30px;
  min-height: 180px;
}
.strength-item .num {
  font-family: var(--serif);
  color: var(--cinnabar);
  font-size: 13px;
  letter-spacing: 0.16em;
  margin-bottom: 14px;
}
.strength-item h3 {
  font-family: var(--serif);
  font-size: 22px;
  margin-bottom: 10px;
}
.strength-item p { color: var(--text-dim); font-size: 14.5px; }

/* 功能 */
.features { background: var(--ink); }
.feature-stage {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}
.feature-visual {
  position: relative;
  min-height: 420px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 30% 20%, rgba(196,30,58,.25), transparent 45%),
    linear-gradient(160deg, #1d1510, #0f0c09 60%, #1a0f12);
}
.feature-visual::after {
  content: '星';
  position: absolute; right: 18px; bottom: 12px;
  font-family: var(--display); font-size: 120px;
  color: rgba(243,233,215,.06);
  line-height: 1;
}
.phone-mock {
  position: absolute; left: 50%; top: 36px;
  transform: translateX(-50%);
  width: min(260px, 70%);
  aspect-ratio: 9/17.5;
  border-radius: 28px;
  border: 2px solid rgba(232,212,138,.35);
  background: linear-gradient(180deg, #2a2118, #14100c);
  box-shadow: 0 30px 60px rgba(0,0,0,.45);
  padding: 14px 12px;
  animation: floatY 5.5s ease-in-out infinite;
}
.phone-notch {
  width: 38%; height: 8px; margin: 0 auto 12px;
  border-radius: 999px; background: #0b0907;
}
.phone-row {
  display: flex; gap: 8px; align-items: center;
  padding: 8px; margin-bottom: 8px;
  border-radius: 10px; background: rgba(255,255,255,.04);
}
.phone-av {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, #c41e3a, #d4af37);
}
.phone-line { flex: 1; height: 8px; border-radius: 4px; background: rgba(243,233,215,.12); }
.phone-line.short { width: 40%; flex: none; }
.phone-bubble {
  margin: 10px 8px; padding: 10px 12px; border-radius: 10px 10px 10px 4px;
  background: rgba(196,30,58,.22); font-size: 12px; color: var(--paper);
}
.phone-bubble.out {
  margin-left: 40px;
  border-radius: 10px 10px 4px 10px;
  background: rgba(212,175,55,.16);
}
.feature-list { display: flex; flex-direction: column; gap: 0; }
.feature-item {
  display: grid; grid-template-columns: 48px 1fr;
  gap: 14px; padding: 18px 0;
  border-bottom: 1px solid rgba(212,175,55,.15);
}
.feature-item:last-child { border-bottom: 0; }
.feature-ico {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(196,30,58,.12);
  border: 1px solid rgba(196,30,58,.28);
  font-size: 22px;
}
.feature-item h3 {
  font-family: var(--serif); font-size: 18px; margin-bottom: 4px;
}
.feature-item p { color: var(--text-dim); font-size: 14px; }

/* Bot / 红包 双栏 */
.split {
  background:
    linear-gradient(90deg, rgba(196,30,58,.08), transparent 40%),
    var(--ink-2);
  border-block: 1px solid var(--line);
}
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.panel {
  position: relative;
  padding: 36px 32px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(36,28,20,.9), rgba(14,11,8,.95));
  overflow: hidden;
  min-height: 340px;
}
.panel::before {
  content: '';
  position: absolute; inset: 0 auto auto 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--cinnabar), var(--gold), transparent);
}
.panel.gold::before {
  background: linear-gradient(90deg, var(--gold), var(--cinnabar), transparent);
}
.panel h3 {
  font-family: var(--serif);
  font-size: 28px;
  margin: 8px 0 12px;
}
.panel p { color: var(--text-dim); margin-bottom: 18px; }
.panel ul {
  list-style: none;
  display: flex; flex-direction: column; gap: 10px;
}
.panel li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14.5px; color: var(--mist);
}
.panel li::before {
  content: '印';
  flex-shrink: 0;
  font-family: var(--display);
  font-size: 14px;
  color: var(--cinnabar);
  line-height: 1.4;
}
.panel.gold li::before { color: var(--gold); content: '礼'; }

/* 下载 */
.download {
  text-align: center;
  padding: 100px 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(196,30,58,.2), transparent 55%),
    var(--ink);
}
.download h2 {
  font-family: var(--display);
  font-size: clamp(40px, 8vw, 64px);
  letter-spacing: 0.14em;
}
.download .lead {
  margin: 12px auto 28px;
  max-width: 28em;
}
.download-actions {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 12px;
}
.download-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-dim);
}

/* Footer */
.footer {
  padding: 48px 0 calc(36px + var(--sab));
  border-top: 1px solid var(--line);
  background: #080705;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}
.footer-brand {
  font-family: var(--display);
  font-size: 36px;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.footer p { color: var(--text-dim); font-size: 13.5px; max-width: 28em; }
.footer h4 {
  font-family: var(--serif);
  font-size: 15px;
  margin-bottom: 12px;
  color: var(--gold-soft);
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  color: var(--text-dim); font-size: 14px;
}
.footer-links a:hover { color: var(--paper); }
.footer-bottom {
  margin-top: 36px; padding-top: 18px;
  border-top: 1px solid rgba(212,175,55,.12);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: rgba(246,239,226,.45); font-size: 12.5px;
}

.toast {
  position: fixed; left: 50%; bottom: calc(28px + var(--sab));
  transform: translateX(-50%) translateY(20px);
  background: rgba(20,16,12,.94);
  border: 1px solid var(--line);
  color: var(--paper);
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  opacity: 0; pointer-events: none;
  transition: .28s ease;
  z-index: 60;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes sealIn {
  from { opacity: 0; transform: rotate(18deg) scale(1.15); }
  to { opacity: 0.9; transform: rotate(8deg) scale(1); }
}
@keyframes mistDrift {
  from { background-position: 0 0; }
  to { background-position: 160px 40px; }
}
@keyframes twinkle {
  from { opacity: .55; }
  to { opacity: 1; }
}
@keyframes floatY {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; left: 20px; right: 20px; top: calc(64px + var(--sat));
    padding: 16px; gap: 14px;
    background: rgba(14,11,8,.96);
    border: 1px solid var(--line);
    border-radius: 14px;
  }
  .nav-toggle { display: inline-flex; }
  .lang-switch { width: 100%; }
  .lang-switch-lab { display: inline; }
  .lang-switch select { flex: 1; max-width: none; }
  .strength-grid { grid-template-columns: 1fr; }
  .feature-stage, .split-grid, .footer-grid { grid-template-columns: 1fr; }
  .feature-visual { min-height: 360px; }
  .hero-seal { right: 6%; top: 16%; width: 64px; height: 64px; font-size: 26px; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 28px, var(--max)); }
  .hero { padding-bottom: 56px; align-items: center; }
  .hero-brand { letter-spacing: 0.08em; }
  .btn { width: 100%; }
  .hero-actions { width: 100%; }
}
