:root {
  color-scheme: dark;
  --bg: #0b0f12;
  --panel: rgba(17, 24, 27, 0.88);
  --panel-strong: #121a1e;
  --text: #eef6f4;
  --muted: #a8b5b2;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #29e6a7;
  --accent-2: #ffcc66;
  --danger: #ff6b5f;
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
select,
input {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 72px;
  padding: 0 clamp(18px, 4vw, 56px);
  background: rgba(8, 12, 14, 0.76);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.topbar.compact {
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--accent);
  color: #06100d;
  border-radius: 8px;
  font-weight: 900;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(12px, 2.6vw, 28px);
  color: var(--muted);
  font-size: 14px;
}

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

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.nav-cta,
.btn-primary {
  background: var(--accent);
  color: #06100d;
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.btn-dark {
  background: #0c1113;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.btn:hover,
.nav-cta:hover {
  transform: translateY(-2px);
}

.site-shell {
  opacity: 0;
}

.js-ready .site-shell {
  opacity: 1;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  align-items: end;
  min-height: calc(100vh - 72px);
  padding: clamp(52px, 8vw, 92px) clamp(18px, 4vw, 56px);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  background: linear-gradient(0deg, var(--bg), transparent);
  pointer-events: none;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.06);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 12, 14, 0.94), rgba(8, 12, 14, 0.62) 45%, rgba(8, 12, 14, 0.26)),
    linear-gradient(0deg, rgba(8, 12, 14, 0.78), rgba(8, 12, 14, 0.08));
}

.hero-panel,
.status-board {
  position: relative;
  z-index: 1;
}

.hero-panel {
  max-width: 820px;
  padding-bottom: 52px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 1.02;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 28px;
  color: #d7e1de;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.status-board {
  display: grid;
  gap: 12px;
  width: min(100%, 360px);
  margin-left: auto;
  margin-bottom: 56px;
}

.status-board > div,
.planner-card,
.planner-output,
.feature-grid article,
.platform-card,
.refund-steps article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.status-board > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 74px;
  padding: 18px;
}

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

.tool-strip,
.feature-band,
.image-gallery,
.download-page,
.refund-page {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 4vw, 56px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(220px, 0.44fr);
  gap: 28px;
  align-items: end;
  max-width: 1180px;
  margin: 0 auto 30px;
}

.section-heading h2,
.download-hero h1,
.refund-hero h1 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.12;
}

.planner-grid {
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.planner-card {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.planner-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.planner-card select,
.planner-card input[type="range"] {
  width: 100%;
}

.planner-card select {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #0f171a;
  color: var(--text);
}

.planner-card input[type="range"] {
  accent-color: var(--accent);
}

.planner-output {
  min-height: 274px;
  padding: 24px;
}

.output-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.output-head strong {
  color: var(--text);
}

.planner-output ul {
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
  padding-left: 20px;
  color: #dce5e3;
  line-height: 1.7;
}

.feature-band {
  background: #101619;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
}

.feature-grid article {
  min-height: 250px;
  padding: 22px;
}

.feature-index {
  color: var(--accent-2);
  font-weight: 900;
}

.feature-grid h3 {
  margin: 44px 0 12px;
  font-size: 22px;
}

.feature-grid p,
.platform-card p,
.refund-steps p,
.download-hero p,
.refund-hero p {
  color: var(--muted);
  line-height: 1.7;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.gallery-grid img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.gallery-grid figcaption {
  padding: 14px 16px;
  color: var(--muted);
  font-size: 14px;
}

.refund-band,
.support-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto clamp(54px, 8vw, 88px);
  padding: 26px;
  border: 1px solid rgba(41, 230, 167, 0.42);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(41, 230, 167, 0.16), rgba(255, 204, 102, 0.08));
}

.refund-band h2,
.support-box h2 {
  margin-bottom: 0;
  font-size: clamp(22px, 3vw, 34px);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.download-hero,
.refund-hero {
  max-width: 920px;
  margin: 0 auto 30px;
}

.download-hero h1,
.refund-hero h1 {
  margin-bottom: 14px;
}

.download-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.platform-grid,
.refund-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto 30px;
}

.platform-card,
.refund-steps article {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px;
  min-height: 270px;
}

.device-icon,
.refund-steps span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(41, 230, 167, 0.4);
  border-radius: 8px;
  color: var(--accent);
  font-weight: 900;
}

.platform-card h2,
.refund-steps h2 {
  margin: 0;
  font-size: 24px;
}

.platform-card .btn {
  align-self: end;
  width: 100%;
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .planner-grid,
  .section-heading,
  .gallery-grid,
  .platform-grid,
  .refund-steps {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 72px;
  }

  .hero-panel {
    padding-bottom: 28px;
  }

  .status-board {
    width: 100%;
    margin: 0;
  }

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

  .gallery-grid img {
    height: 280px;
  }
}

@media (max-width: 620px) {
  .topbar {
    min-height: 64px;
    gap: 12px;
  }

  .brand {
    font-size: 14px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .nav-cta {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  h1 {
    font-size: 38px;
  }

  .hero-actions,
  .download-actions,
  .refund-band,
  .support-box,
  .footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

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

  .gallery-grid img {
    height: 220px;
  }
}

/* ── 退款表单 ── */
.refund-form-section {
  max-width: 680px;
  margin: 0 auto 30px;
}

.refund-form {
  display: grid;
  gap: 18px;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.refund-form label {
  display: grid;
  gap: 8px;
}

.refund-form label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.refund-form input,
.refund-form textarea {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #0f171a;
  color: var(--text);
  font-size: 15px;
  transition: border-color 180ms ease;
}

.refund-form input:focus,
.refund-form textarea:focus {
  border-color: var(--accent);
  outline: none;
}

.refund-form input::placeholder,
.refund-form textarea::placeholder {
  color: rgba(168, 181, 178, 0.55);
}

.refund-form textarea {
  min-height: 110px;
  resize: vertical;
}

.refund-form .btn {
  justify-self: start;
  min-width: 180px;
}

.refund-form-notice {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
}

.refund-form-notice.success {
  background: rgba(41, 230, 167, 0.14);
  border: 1px solid rgba(41, 230, 167, 0.42);
  color: #d4faea;
}

.refund-form-notice.error {
  background: rgba(255, 107, 95, 0.14);
  border: 1px solid rgba(255, 107, 95, 0.42);
  color: #ffcdc9;
}

@media (max-width: 620px) {
  .refund-form .btn {
    width: 100%;
    justify-self: stretch;
  }
}
