: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;
  /* 避免平板把 fixed 负 z-index 背景压到 body 底色后面「看不见」 */
  background: #070a0d;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--sans);
  color: var(--text);
  background: transparent;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  isolation: isolate;
}

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

.bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  /* 用 % / vmin 随视口缩放，避免平板上大块纯黑看不见氛围 */
  background:
    radial-gradient(
      ellipse 90% 70% at 15% -8%,
      rgba(212, 33, 47, 0.32),
      transparent 58%
    ),
    radial-gradient(
      ellipse 75% 60% at 92% 18%,
      rgba(40, 70, 100, 0.28),
      transparent 55%
    ),
    radial-gradient(
      ellipse 60% 50% at 50% 100%,
      rgba(212, 33, 47, 0.12),
      transparent 60%
    ),
    linear-gradient(180deg, #0a0e12 0%, #070a0d 48%, #0b1016 100%);
}

.bg-river {
  position: absolute;
  left: -25%;
  right: -25%;
  bottom: 6%;
  height: clamp(28%, 38vh, 46%);
  background:
    linear-gradient(
      105deg,
      transparent 0%,
      rgba(212, 33, 47, 0.1) 35%,
      rgba(212, 33, 47, 0.22) 50%,
      rgba(212, 33, 47, 0.1) 68%,
      transparent 100%
    );
  filter: blur(16px);
  transform: skewY(-4deg);
  animation: river-drift 14s ease-in-out infinite alternate;
  will-change: transform;
}

.bg-glow {
  position: absolute;
  width: min(70vmin, 560px);
  height: min(70vmin, 560px);
  left: 52%;
  top: -12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 33, 47, 0.28), transparent 68%);
  animation: glow-breathe 8s ease-in-out infinite;
  will-change: transform, opacity;
}

.top,
main,
.foot {
  position: relative;
  z-index: 1;
}

@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 {
  position: relative;
  z-index: 2;
  flex: 1 1 320px;
  max-width: 520px;
  min-width: 0;
}

.hero-visual-col {
  flex: 0 1 520px;
  min-width: 0;
  max-width: min(520px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: rise 1s ease 0.2s both;
  /* 避免大图溢出盖住左侧购买/客服按钮 */
  overflow: hidden;
  pointer-events: none;
}

.hero-visual-col .hero-price {
  pointer-events: auto;
}

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

.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;
}

/* 原生下拉在深色页上选项易看不清：控件与 option 统一浅底深字 */
.buy-field select {
  display: block;
  width: 100%;
  margin-top: 6px;
  box-sizing: border-box;
  padding: 10px 28px 10px 12px;
  border-radius: 10px;
  border: 1px solid #c5ccd4;
  background-color: #fff;
  color: #1a1f26;
  font: inherit;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #5a6570 50%),
    linear-gradient(135deg, #5a6570 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.buy-field select:disabled {
  background-color: #eef1f4;
  color: #6b7380;
  border-color: #d5dbe3;
}

.buy-field select option {
  background-color: #fff;
  color: #1a1f26;
}

.buy-region-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
}

.buy-region-grid select {
  margin-top: 0;
}

.buy-region-hint {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: #ef9a9a;
}

/* 防刷蜜罐：对用户隐藏 */
.buy-hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.buy-pending-list {
  display: grid;
  gap: 12px;
  margin: 8px 0 14px;
}

.buy-pending-item {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
}

.buy-pending-item .meta {
  margin: 0 0 6px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.buy-pending-item .amt {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #e8c76a;
}

.buy-pending-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.buy-pending-actions button {
  flex: 1;
  min-width: 110px;
  min-height: 40px;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.buy-pending-actions .btn-pay-pending {
  border: none;
  color: #fff;
  background: linear-gradient(135deg, #c9a227, #8a6d12);
}

.buy-pending-actions .btn-cancel-pending {
  border: 1px solid var(--line);
  color: var(--text);
  background: transparent;
}

.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;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
  word-break: break-all;
}

.buy-query-pre {
  margin: 0 0 10px;
  padding: 0;
  white-space: pre-wrap;
  font: inherit;
  color: inherit;
}

.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 {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  min-width: 0;
  flex: 0 1 auto;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 26px 40px rgba(0, 0, 0, 0.42));
  object-fit: contain;
  box-sizing: border-box;
}

.hero-app-shot-portrait {
  /* 宽高同时封顶，避免 HTML 固定 height 在移动端不缩放 */
  max-width: min(250px, 42vw);
  max-height: min(56vh, 420px);
  aspect-ratio: 780 / 1040;
  z-index: 2;
}

.hero-app-shot-landscape {
  max-width: min(300px, 48vw);
  max-height: min(42vh, 320px);
  aspect-ratio: 1100 / 820;
  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 {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0.4em;
  margin: 0 0 18px;
  /* 大字号只给主品牌，避免子元素继承后与小标题一样大 */
  font-size: 1rem;
  line-height: 1.05;
  white-space: nowrap;
  animation: rise 0.9s ease both;
}

.hero-brand .hero-brand-main {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 12vw, 6.2rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text);
}

.hero-brand .hero-brand-sub {
  flex-shrink: 0;
  font-family: var(--sans);
  font-size: clamp(0.72rem, 1.8vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.2;
  color: rgba(242, 184, 188, 0.95);
}

.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 {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  width: min(100%, 280px);
  margin-bottom: 28px;
}

.btn-download {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.download-meta {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: right;
  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;
  justify-content: flex-start;
  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 (min-width: 641px) and (max-width: 1100px) {
  .hero {
    gap: 28px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-visual-col {
    flex: 1 1 360px;
    max-width: min(420px, 46vw);
  }

  .hero-app-shot-portrait {
    max-width: min(180px, 28vw);
    max-height: min(42vh, 300px);
  }

  .hero-app-shot-landscape {
    max-width: min(220px, 34vw);
    max-height: min(34vh, 240px);
    margin-bottom: 12px;
  }

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

  .foot-links {
    justify-content: center;
  }
}

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

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

  /* 手机：文案在上，图片与价格在下（与 DOM 顺序一致） */
  .hero-visual-col {
    order: 0;
    margin-top: 20px;
    margin-bottom: 0;
    max-width: none;
    overflow: visible;
    pointer-events: auto;
  }

  .hero-visual {
    gap: 6px;
  }

  .hero-app-shot-portrait {
    max-width: min(148px, 36vw);
    max-height: min(38vh, 260px);
  }

  .hero-app-shot-landscape {
    max-width: min(176px, 44vw);
    max-height: min(30vh, 200px);
    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;
  }

  .foot-links {
    justify-content: center;
  }
}
