:root {
  color-scheme: dark;
  --bg: #070b0d;
  --panel: #121b20;
  --panel-soft: #182328;
  --line: #2a474b;
  --muted: #aeb8ba;
  --text: #f2ecd9;
  --teal: #16c9bb;
  --gold: #d9b86c;
  --red: #b34f3f;
  --violet: #9692ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px max(24px, calc((100vw - 1180px) / 2));
  background: rgba(7, 11, 13, 0.9);
  border-bottom: 1px solid rgba(217, 184, 108, 0.22);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
}

.nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--text);
}

.quick-nav {
  position: fixed;
  right: 18px;
  bottom: 26px;
  z-index: 40;
  display: grid;
  gap: 8px;
}

.quick-nav a {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(217, 184, 108, 0.46);
  border-radius: 6px;
  background: rgba(10, 15, 17, 0.88);
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
  font-weight: 850;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
}

.quick-nav a:hover {
  border-color: var(--gold);
  background: rgba(24, 35, 40, 0.95);
}

.section {
  border-bottom: 1px solid rgba(42, 71, 75, 0.8);
}

.inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 24px;
}

.hero {
  position: relative;
  min-height: 740px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.58;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 11, 13, 0.96) 0%, rgba(7, 11, 13, 0.82) 42%, rgba(7, 11, 13, 0.28) 100%),
    linear-gradient(180deg, rgba(7, 11, 13, 0.28), rgba(7, 11, 13, 0.94));
}

.hero-inner {
  position: relative;
  min-height: 740px;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 0.72fr);
  gap: 38px;
  align-items: center;
}

.hero-copy {
  max-width: 640px;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 60px;
  line-height: 1.06;
  overflow-wrap: anywhere;
}

h2 {
  font-size: 34px;
  line-height: 1.16;
  margin-bottom: 14px;
}

h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.eyebrow {
  color: var(--gold);
  font-size: 14px;
  font-weight: 850;
  margin: 0 0 16px;
}

.lead {
  color: #c7d0d2;
  font-size: 18px;
  margin: 18px 0 0;
  overflow-wrap: anywhere;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid rgba(217, 184, 108, 0.45);
  border-radius: 6px;
  background: var(--gold);
  color: #18120a;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.button.secondary {
  background: transparent;
  color: var(--text);
  border-color: rgba(22, 201, 187, 0.58);
}

.button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.note {
  color: var(--muted);
  font-size: 13px;
  margin: 14px 0 0;
  overflow-wrap: anywhere;
}

.hero-stack {
  position: relative;
  min-height: 520px;
}

.promo-card {
  position: absolute;
  inset: 0 0 auto auto;
  width: min(100%, 520px);
  overflow: hidden;
  border: 1px solid rgba(217, 184, 108, 0.24);
  border-radius: 8px;
  background: #0a0f12;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.promo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 7, 8, 0.18), rgba(4, 7, 8, 0.84)),
    linear-gradient(90deg, rgba(4, 7, 8, 0.72), rgba(4, 7, 8, 0.1));
}

.promo-card > img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center;
  opacity: 0.74;
}

.character-strip {
  position: absolute;
  z-index: 1;
  left: 16px;
  right: 16px;
  top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.character-strip img {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(217, 184, 108, 0.28);
  border-radius: 6px;
  background: rgba(8, 13, 15, 0.82);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.35);
}

.glass-shot {
  position: absolute;
  right: 24px;
  bottom: 18px;
  width: min(92%, 470px);
  margin: 0;
  padding: 8px;
  border: 1px solid rgba(22, 201, 187, 0.42);
  border-radius: 8px;
  background: rgba(10, 15, 17, 0.92);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.38);
  transform: rotate(-1deg);
}

.glass-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border-radius: 5px;
}

figcaption {
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.7fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}

.section-head p:last-child {
  color: var(--muted);
  margin: 0;
}

.shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.shot {
  margin: 0;
}

.shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0a0f12;
}

.large-shot {
  grid-column: 1 / -1;
}

.split {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 34px;
  align-items: start;
}

.download-grid,
.grid-3 {
  display: grid;
  gap: 16px;
}

.download-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.tile,
.install-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.tile.accent {
  border-color: rgba(217, 184, 108, 0.5);
  background: linear-gradient(180deg, #171d1a, #101719);
}

.tile p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.tile strong {
  display: block;
  margin-bottom: 8px;
}

.offline-box {
  border: 1px solid rgba(217, 184, 108, 0.42);
  border-radius: 8px;
  background: linear-gradient(180deg, #151b1a, #101719);
  padding: 20px;
}

.file-meta {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.file-meta div {
  display: grid;
  gap: 4px;
}

.file-meta dt {
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
}

.file-meta dd {
  margin: 0;
  color: #dce2df;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
}

.steps li::before {
  content: counter(step);
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--gold);
  color: #15110a;
  font-weight: 850;
}

.form {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid rgba(22, 201, 187, 0.4);
  border-radius: 8px;
  background: #0d1418;
}

.form label {
  display: grid;
  gap: 6px;
  color: #d9dfdf;
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #33484e;
  border-radius: 6px;
  background: #080d0f;
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}

textarea {
  min-height: 104px;
  resize: vertical;
}

fieldset {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(217, 184, 108, 0.28);
  border-radius: 8px;
}

legend {
  color: var(--gold);
  font-weight: 850;
  padding: 0 6px;
}

.checkbox-grid {
  display: grid;
  gap: 8px;
}

.choice {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 9px;
  align-items: start;
}

.choice input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  margin-top: 3px;
  accent-color: var(--gold);
}

.hp-field {
  position: absolute;
  left: -9999px;
}

.form-status {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.form-status.ok {
  color: var(--teal);
}

.form-status.error {
  color: #ffb3a8;
}

.wechat {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
  align-items: center;
}

.qr-card {
  justify-self: center;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(217, 184, 108, 0.32);
  border-radius: 8px;
  background: #f7f7f4;
  color: #141414;
}

.qr-card img {
  display: block;
  width: 224px;
  height: 224px;
}

.qr-card figcaption {
  margin: 0;
  color: #242424;
  text-align: center;
  font-weight: 850;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 850;
}

.faq details p {
  color: var(--muted);
  margin: 10px 0 0;
}

.footer {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .hero-inner,
  .split,
  .section-head,
  .download-grid,
  .grid-3,
  .wechat {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: auto;
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .hero-stack {
    min-height: 420px;
  }

  .nav {
    display: none;
  }

  h1 {
    font-size: 38px;
  }

  .lead {
    font-size: 16px;
  }

  .shots {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .inner {
    padding: 48px 18px;
  }

  .topbar {
    padding: 12px 18px;
  }

  .quick-nav {
    right: 12px;
    bottom: 16px;
  }

  .quick-nav a {
    width: 36px;
    height: 36px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 28px;
  }

  .hero-stack {
    min-height: auto;
  }

  .promo-card,
  .glass-shot {
    position: relative;
    inset: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    transform: none;
  }

  .glass-shot {
    margin-top: -18px;
  }
}
