@charset "UTF-8";

:root {
  --night: #0b1220;
  --ink: #e8eef8;
  --mute: #9aa8c0;
  --moon: #f2e6c9;
  --gold: #d4a84b;
  --gold-deep: #b8872e;
  --sea: #5ec4c0;
  --card: #141e30;
  --paper: #f4f1ea;
  --paper-ink: #1a2233;
  --nav-shadow: 2px 2px 0 rgba(212, 168, 75, 0.35);
  --lift: 10px 10px 0 rgba(0, 0, 0, 0.28);
  --shell: 1120px;
  --header-h: 72px;
  --font: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --display: "Segoe UI Semibold", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  padding-top: var(--header-h);
  color: var(--ink);
  background:
    radial-gradient(ellipse at 18% -10%, rgba(212,168,75,0.16), transparent 42%),
    radial-gradient(ellipse at 88% 8%, rgba(94,196,192,0.12), transparent 40%),
    linear-gradient(180deg, #0a101c 0%, #101a2c 48%, #0c1422 100%);
  font-family: var(--font);
  line-height: 1.65;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
.frame { width: min(100% - 32px, var(--shell)); margin: 0 auto; }

.moonbar {
  position: fixed; inset: 0 0 auto; z-index: 40;
  height: var(--header-h);
  background: rgba(11, 18, 32, 0.92);
  border-bottom: 1px solid rgba(242, 230, 201, 0.18);
  backdrop-filter: blur(10px);
}
.moonbar-in {
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img {
  width: 42px; height: 42px; border-radius: 50%;
  box-shadow: var(--nav-shadow);
  object-fit: cover;
  background: #fff;
}
.brand strong { display: block; font-family: var(--display); letter-spacing: 0.04em; }
.brand small { display: block; color: var(--gold); font-size: 0.68rem; letter-spacing: 0.18em; }
.menu ul { display: flex; justify-content: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.menu a {
  display: block; padding: 8px 12px; border-radius: 999px;
  color: var(--mute); font-size: 0.9rem;
}
.menu a.current, .menu a:hover { color: var(--moon); background: rgba(242,230,201,0.08); }
.header-get, .mobile-get, .get-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 0 18px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #1a1200;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: var(--nav-shadow);
}
.header-get:hover, .get-btn:hover { filter: brightness(1.06); }
.hand { display: none; align-items: center; gap: 8px; }
.nav-switch {
  width: 42px; height: 42px; display: grid; place-items: center; gap: 5px;
  border-radius: 50%; background: rgba(255,255,255,0.06);
}
.nav-switch i { display: block; width: 16px; height: 2px; background: var(--moon); }

/* HERO observatory */
.obs {
  position: relative;
  padding: 40px 0 56px;
  overflow: hidden;
}
.obs::before {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  right: -80px; top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff6df, #d4a84b 42%, transparent 68%);
  opacity: 0.55;
  filter: blur(2px);
}
.obs-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-family: var(--display);
}
.obs h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
  color: var(--moon);
}
.kicker { margin: 12px 0 0; font-size: 1.2rem; color: #fff; }
.lead { margin: 14px 0 0; color: var(--mute); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.ghost {
  display: inline-flex; align-items: center;
  min-height: 42px; padding: 0 16px;
  border: 1px solid rgba(242,230,201,0.35);
  color: var(--moon);
  border-radius: 999px;
}
.phases {
  margin: 22px 0 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.phases span {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(94,196,192,0.35);
  color: var(--sea);
  font-size: 0.82rem;
}

.scope-stage {
  position: relative;
  min-height: 480px;
  display: grid;
  place-items: center;
}
.float-chip {
  position: absolute;
  z-index: 3;
  padding: 10px 12px;
  background: var(--card);
  border: 1px solid rgba(212,168,75,0.35);
  border-radius: 14px;
  box-shadow: var(--lift);
  font-size: 0.82rem;
  animation: drift 5s ease-in-out infinite;
}
.float-chip.a { top: 24px; left: 0; }
.float-chip.b { top: 90px; right: 0; animation-delay: -1.4s; }
.float-chip.c { bottom: 70px; left: 8%; animation-delay: -2.6s; border-color: rgba(94,196,192,0.4); }
.float-chip strong { display: block; color: var(--gold); }
.scope {
  width: min(100%, 300px);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 18px;
  background:
    radial-gradient(circle at 30% 28%, rgba(255,255,255,0.18), transparent 28%),
    linear-gradient(160deg, #1a2740, #0d1524);
  border: 3px solid rgba(242,230,201,0.35);
  box-shadow: inset 0 0 0 10px rgba(11,18,32,0.65), 0 30px 50px rgba(0,0,0,0.4);
  display: grid;
  place-items: center;
}
.scope .phone {
  width: fit-content;
  border-radius: 26px;
  padding: 10px 8px 12px;
  background: #05080f;
  box-shadow: inset 0 0 0 2px #2a364c;
}
.scope .led {
  display: flex; justify-content: space-between;
  color: rgba(255,255,255,0.5);
  font-size: 0.62rem;
  padding: 0 8px 6px;
}
.scope img {
  width: 168px;
  height: auto;
  max-height: 300px;
  border-radius: 16px;
  object-fit: contain;
  object-position: top;
  background: #111;
}

.cap { margin: 0 0 18px; }
.cap p {
  margin: 0;
  color: var(--gold);
  font-family: var(--display);
  letter-spacing: 0.14em;
  font-size: 0.75rem;
}
.cap h2 {
  margin: 6px 0 0;
  font-family: var(--display);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  color: var(--moon);
}
.cap small { display: block; margin-top: 8px; color: var(--mute); max-width: 42em; }

/* constellation features FIRST */
.sky-wrap { padding: 52px 0 40px; }
.constellation {
  position: relative;
  min-height: 360px;
  padding: 24px 8px 8px;
}
.constellation svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.node {
  position: absolute;
  width: min(42%, 240px);
  padding: 16px 16px 14px;
  background: rgba(20, 30, 48, 0.92);
  border: 1px solid rgba(242,230,201,0.2);
  border-radius: 16px;
  box-shadow: var(--lift);
}
.node i {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(212,168,75,0.18);
  color: var(--gold);
  font-style: normal;
  font-size: 0.75rem;
  margin-bottom: 8px;
}
.node h3 { margin: 0; font-size: 1.05rem; color: var(--moon); }
.node p { margin: 8px 0 0; color: var(--mute); font-size: 0.9rem; }
.node.n1 { top: 8%; left: 4%; }
.node.n2 { top: 6%; right: 6%; }
.node.n3 { bottom: 8%; left: 18%; }
.node.n4 { bottom: 12%; right: 8%; }

/* telescope reel */
.reel-wrap {
  padding: 48px 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
}
.reel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 18px;
  -webkit-overflow-scrolling: touch;
}
.reel::-webkit-scrollbar { height: 8px; }
.reel::-webkit-scrollbar-thumb { background: rgba(242,230,201,0.25); border-radius: 999px; }
.reel figure {
  flex: 0 0 auto;
  width: 188px;
  scroll-snap-align: start;
  margin: 0;
  background: var(--card);
  border-radius: 20px;
  padding: 12px;
  border: 1px solid rgba(242,230,201,0.16);
  box-shadow: var(--lift);
}
.reel .bezel {
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  display: grid;
  place-items: center;
}
.reel img {
  width: 164px;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  object-position: top;
}
.reel figcaption {
  margin-top: 10px;
  font-family: var(--display);
  font-size: 0.88rem;
  color: var(--moon);
}
.reel b { color: var(--gold); margin-right: 8px; }

/* phase dial */
.dial-wrap { padding: 48px 0 56px; }
.dial-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  align-items: stretch;
}
.dial {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid rgba(212,168,75,0.28);
}
.dial button {
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  display: grid;
  gap: 2px;
}
.dial button strong { color: var(--moon); }
.dial button span { color: var(--mute); font-size: 0.82rem; }
.dial button.is-on {
  background: rgba(212,168,75,0.12);
  border-color: rgba(212,168,75,0.45);
}
.dial-panel {
  display: grid;
  grid-template-columns: 1.1fr auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border-radius: 20px;
  background: linear-gradient(145deg, #172338, #101826);
  border: 1px solid rgba(94,196,192,0.25);
}
.dial-panel .rk { margin: 0; color: var(--sea); letter-spacing: 0.12em; font-size: 0.75rem; }
.dial-panel h3 { margin: 8px 0 0; color: var(--moon); font-size: 1.4rem; }
.dial-panel p { margin: 10px 0 0; color: var(--mute); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.chips li {
  padding: 6px 10px; border-radius: 999px;
  background: rgba(94,196,192,0.12); color: var(--sea); font-size: 0.82rem;
}
.dial-panel figure {
  margin: 0;
  background: #000;
  border-radius: 18px;
  padding: 8px;
  border: 1px solid rgba(242,230,201,0.2);
}
.dial-panel img {
  width: 168px;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  object-position: top;
  border-radius: 12px;
}

/* diary FAQ */
.diary-wrap {
  padding: 52px 0;
  background: var(--paper);
  color: var(--paper-ink);
}
.diary-wrap .cap h2 { color: var(--paper-ink); }
.diary-wrap .cap p { color: var(--gold-deep); }
.diary-wrap .cap small { color: #5c6475; }
.diary {
  display: grid;
  gap: 12px;
}
.entry {
  background: #fffdf8;
  border-radius: 14px;
  border: 1px solid rgba(26,34,51,0.1);
  box-shadow: 6px 6px 0 rgba(26,34,51,0.08);
  overflow: hidden;
}
.entry header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 0;
  font-size: 0.8rem;
  color: #7a8294;
  font-family: var(--display);
}
.entry button {
  width: 100%;
  text-align: left;
  padding: 10px 16px 14px;
  font-weight: 700;
  color: var(--paper-ink);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.entry button::after { content: "☽"; color: var(--gold-deep); }
.entry.is-on button::after { content: "☾"; }
.entry .ans {
  display: none;
  margin: 0;
  padding: 0 16px 16px;
  color: #4a5366;
}
.entry.is-on .ans { display: block; }

/* crater reviews */
.crater-wrap { padding: 52px 0; }
.craters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.crater {
  position: relative;
  padding: 22px 18px 18px;
  border-radius: 50% 50% 42% 42% / 48% 48% 40% 40%;
  background: radial-gradient(circle at 35% 30%, #1c2940, #121a2a 70%);
  border: 1px solid rgba(242,230,201,0.18);
  min-height: 220px;
}
.crater time {
  display: block;
  color: var(--gold);
  font-size: 0.78rem;
  margin-bottom: 8px;
  font-family: var(--display);
}
.crater p { margin: 0; color: rgba(232,238,248,0.9); font-size: 0.92rem; }

/* eclipse download */
.eclipse-wrap { padding: 0 0 48px; }
.eclipse {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: center;
  padding: 30px 28px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(120deg, #10182a, #1a2740 55%, #2a1f10);
  border: 1px solid rgba(212,168,75,0.35);
  box-shadow: 0 24px 44px rgba(0,0,0,0.35);
}
.eclipse::before {
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  right: 18%; top: -40px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #fff4d6, #d4a84b 55%, transparent 70%);
  opacity: 0.7;
}
.eclipse::after {
  content: "";
  position: absolute;
  width: 180px; height: 180px;
  right: 10%; top: -10px;
  border-radius: 50%;
  background: #0b1220;
  box-shadow: 0 0 0 1px rgba(242,230,201,0.15);
}
.eclipse > * { position: relative; z-index: 1; }
.eclipse h2 { margin: 0; color: var(--moon); font-size: clamp(1.45rem, 3vw, 1.95rem); }
.eclipse p { margin: 10px 0 0; color: var(--mute); max-width: 34em; }
.eclipse .get-btn { margin-top: 18px; }
.eclipse-phones { display: flex; gap: 10px; justify-content: flex-end; }
.eclipse-phones img {
  width: 108px;
  height: auto;
  max-height: 210px;
  border-radius: 14px;
  border: 2px solid rgba(242,230,201,0.25);
  object-fit: contain;
  object-position: top;
  background: #05080f;
  transform: rotate(2deg);
  box-shadow: 0 12px 24px rgba(0,0,0,0.35);
}
.eclipse-phones img:nth-child(2) { transform: rotate(-3deg) translateY(10px); }
.eclipse-phones img:nth-child(3) { transform: rotate(1deg); }

.site-foot {
  background: #05080f;
  color: rgba(232,238,248,0.7);
  padding: 28px 0 36px;
  border-top: 3px solid var(--gold);
}
.foot-in {
  display: flex; flex-wrap: wrap; gap: 14px 24px;
  justify-content: space-between; align-items: center;
}
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--moon); }
.foot-brand img { width: 40px; height: 40px; border-radius: 50%; background: #fff; object-fit: cover; }
.foot-links { display: flex; gap: 14px; flex-wrap: wrap; }
.foot-links a:hover { color: var(--gold); }
.foot-copy { width: 100%; margin: 0; font-size: 0.85rem; color: rgba(232,238,248,0.45); }

.back-top {
  position: fixed; right: 20px; bottom: 24px; z-index: 35;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--gold); color: #1a1200;
  box-shadow: var(--nav-shadow);
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.back-top.is-visible { opacity: 1; pointer-events: auto; }
.back-top::before {
  content: "";
  position: absolute; inset: 0; margin: auto;
  width: 12px; height: 12px;
  border-left: 3px solid #1a1200;
  border-top: 3px solid #1a1200;
  transform: translateY(3px) rotate(45deg);
}

@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@media (max-width: 960px) {
  .moonbar-in { grid-template-columns: 1fr auto; }
  .menu {
    position: fixed; inset: var(--header-h) 0 auto;
    background: #0b1220; padding: 12px 16px 18px;
    transform: translateY(-120%); opacity: 0; pointer-events: none;
    transition: .22s ease;
    border-bottom: 1px solid rgba(242,230,201,0.2);
  }
  .menu.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .menu ul { flex-direction: column; }
  .header-get { display: none; }
  .hand { display: flex; }
  .obs-grid, .dial-row, .dial-panel, .eclipse { grid-template-columns: 1fr; }
  .obs-grid { gap: 22px; }
  .scope-stage { min-height: 0; order: 2; }
  .obs-copy { order: 1; }
  .constellation { min-height: 0; display: grid; gap: 12px; }
  .constellation svg { display: none; }
  .node { position: static; width: auto; }
  .craters { grid-template-columns: 1fr; }
  .crater { border-radius: 22px; min-height: 0; }
  .eclipse-phones { justify-content: flex-start; }
  .float-chip.c { display: none; }
}

@media (max-width: 640px) {
  .scope img { width: 150px; }
  .reel figure { width: 168px; }
  .reel img { width: 144px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float-chip { animation: none; }
}
