:root {
  --ink: #070a0d;
  --ink-2: #0f151c;
  --panel: rgba(18, 24, 32, 0.72);
  --text: #f2f0eb;
  --muted: #9aa3ad;
  --crimson: #d4212f;
  --crimson-deep: #9e1520;
  --line: rgba(242, 240, 235, 0.12);
  --serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--text);
  background: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 15% -10%, rgba(212, 33, 47, 0.22), transparent 55%),
    radial-gradient(900px 600px at 90% 20%, rgba(40, 70, 100, 0.18), transparent 50%),
    linear-gradient(180deg, #0a0e12 0%, #070a0d 48%, #0b1016 100%);
}

.bg-river {
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: 8%;
  height: 42%;
  background:
    linear-gradient(105deg, transparent 0%, rgba(212, 33, 47, 0.08) 35%, rgba(212, 33, 47, 0.16) 50%, rgba(212, 33, 47, 0.07) 68%, transparent 100%);
  filter: blur(18px);
  transform: skewY(-4deg);
  animation: river-drift 14s ease-in-out infinite alternate;
}

.bg-glow {
  position: absolute;
  width: 50vmax;
  height: 50vmax;
  left: 55%;
  top: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 33, 47, 0.16), transparent 68%);
  animation: glow-breathe 8s ease-in-out infinite;
}

@keyframes river-drift {
  from { transform: skewY(-4deg) translateX(-2%); }
  to { transform: skewY(-4deg) translateX(3%); }
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
  backdrop-filter: blur(10px);
  background: rgba(7, 10, 13, 0.55);
  border-bottom: 1px solid transparent;
}

.top-brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}

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

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

.hero {
  min-height: calc(100vh - 58px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 48px 22px 72px;
  max-width: 1080px;
  margin: 0 auto;
}

.hero-copy {
  flex: 1 1 320px;
  max-width: 520px;
  min-width: 0;
}

.hero-visual-col {
  flex: 0 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: rise 1s ease 0.2s both;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 10px;
  width: 100%;
}

.hero-price {
  margin: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.hero-price-amount {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #f2b8bc;
}

.hero-price-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.btn-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: none;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #c9a227, #8a6d12);
  box-shadow: 0 10px 28px rgba(201, 162, 39, 0.28);
  transition: transform 0.18s ease;
}

.btn-buy:hover {
  transform: translateY(-1px);
}

.buy-modal[hidden] {
  display: none !important;
}

.buy-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.buy-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}

.buy-modal-panel {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  padding: 28px 22px 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #121820;
  text-align: center;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
}

.buy-modal-panel-wide {
  width: min(440px, 100%);
  max-height: min(90vh, 720px);
  overflow: auto;
  text-align: left;
}

.buy-field {
  display: block;
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

.buy-field input,
.buy-field textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  resize: vertical;
}

.buy-submit {
  width: 100%;
  margin-top: 8px;
  border: none;
}

.buy-modal-err {
  margin: 10px 0 0;
  color: #ef9a9a;
  font-size: 0.88rem;
}

#buy-pay-qr {
  display: block;
  width: 220px;
  height: 220px;
  margin: 12px auto;
  border-radius: 10px;
  background: #fff;
}

.buy-pay-status {
  text-align: center;
  color: #f2b8bc;
  font-size: 0.92rem;
}

.buy-back {
  display: block;
  width: 100%;
  margin-top: 12px;
  text-align: center;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 999px;
  min-height: 44px;
  cursor: pointer;
  font: inherit;
}

.buy-done-title {
  text-align: center;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: #a5d6a7;
}

.buy-query-result {
  margin: 14px 0 0;
  padding: 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-all;
}

.cs-mp-qr {
  display: block;
  width: 220px;
  height: 220px;
  margin: 8px auto 0;
  border-radius: 10px;
  background: #fff;
  object-fit: contain;
}

.buy-modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.buy-modal-title {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.buy-modal-lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.buy-modal-qr {
  display: block;
  width: 220px;
  height: 220px;
  margin: 0 auto;
  border-radius: 10px;
  background: #fff;
  object-fit: contain;
}

.buy-modal-note {
  margin: 14px 0 0;
  color: #f2b8bc;
  font-size: 0.92rem;
}

.hero-app-shot {
  height: auto;
  display: block;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 26px 40px rgba(0, 0, 0, 0.42));
}

.hero-app-shot-portrait {
  width: min(250px, 42vw);
  z-index: 2;
}

.hero-app-shot-landscape {
  width: min(300px, 48vw);
  margin-bottom: 18px;
  opacity: 0.96;
  z-index: 1;
}

.demo-video-wrap {
  max-width: 920px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.demo-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
}

.hero-brand {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 12vw, 6.2rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.05;
  color: var(--text);
  animation: rise 0.9s ease both;
}

.hero-title {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 4.2vw, 2.1rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(242, 240, 235, 0.92);
  animation: rise 0.9s ease 0.12s both;
}

.hero-lead {
  margin: 0;
  max-width: 28em;
  font-size: clamp(0.98rem, 2.6vw, 1.12rem);
  color: var(--muted);
  animation: rise 0.9s ease 0.22s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  animation: rise 0.9s ease 0.32s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--crimson), var(--crimson-deep));
  color: #fff;
  box-shadow: 0 10px 28px rgba(212, 33, 47, 0.28);
}

.btn-primary:hover {
  transform: translateY(-1px);
}

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

.btn-ghost:hover {
  border-color: rgba(242, 240, 235, 0.28);
}

.section {
  max-width: 920px;
  margin: 0 auto;
  padding: 72px 22px;
  border-top: 1px solid var(--line);
}

.section-title {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.5vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.section-lead {
  margin: 0 0 28px;
  max-width: 34em;
  color: var(--muted);
  font-size: 1rem;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
}

.feature-list li {
  display: grid;
  gap: 6px;
  padding-left: 14px;
  border-left: 2px solid rgba(212, 33, 47, 0.7);
}

.feature-list strong {
  font-family: var(--serif);
  font-size: 1.08rem;
  letter-spacing: 0.04em;
}

.feature-list span {
  color: var(--muted);
  font-size: 0.95rem;
}

.download-block {
  margin-bottom: 28px;
}

.btn-download {
  min-width: min(100%, 280px);
}

.download-meta {
  margin: 12px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  word-break: break-all;
}

.download-note {
  margin: 10px 0 0;
  font-size: 0.88rem;
  color: #ef9a9a;
}

.download-note:not([hidden]) {
  display: block;
}

.steps {
  margin: 0;
  padding-left: 1.2em;
  color: var(--muted);
  font-size: 0.95rem;
}

.steps li {
  margin: 10px 0;
}

.foot {
  padding: 40px 22px 56px;
  padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.foot-inner {
  max-width: 920px;
  margin: 0 auto;
}

.foot-info {
  text-align: left;
  min-width: 200px;
}

.foot-brand {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--text);
  letter-spacing: 0.1em;
}

.foot-co,
.foot-site,
.foot-beian,
.foot-contact {
  margin: 4px 0;
  font-size: 0.85rem;
}

.foot-contact a {
  color: #f07178;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  margin: 10px 0 4px;
  font-size: 0.85rem;
}

.foot-links a {
  color: var(--muted);
}

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

.foot-beian a {
  color: var(--muted);
}

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

@media (max-width: 640px) {
  .hero {
    flex-direction: column;
    align-items: stretch;
    padding-top: 36px;
    min-height: auto;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-visual-col {
    order: -1;
    margin-bottom: 8px;
  }

  .hero-visual {
    gap: 6px;
  }

  .hero-app-shot-portrait {
    width: min(168px, 40vw);
  }

  .hero-app-shot-landscape {
    width: min(200px, 48vw);
    margin-bottom: 10px;
  }

  .btn-buy {
    width: 100%;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
  }

  .foot-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .foot-info {
    text-align: center;
  }
}
