/*
  本文件变更说明：
  - 2026-07-21 ｜ 下载页改为手机优先 H5 自适应布局，平板/桌面展开为双栏落地页
  - 2026-07-21 ｜ 新增 APP 下载页移动端视觉样式，采用深色安全信任方向并融合生态增长元素
  - 后续改动请按"YYYY-MM-DD ｜ 改动内容（PIT-YYYY-NNN 或原因）"追加
*/

:root {
  color-scheme: dark;
  --page-bg: #07111b;
  --surface: #101a27;
  --surface-soft: rgba(255, 255, 255, 0.07);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --cream: #fff7ec;
  --muted: rgba(255, 247, 236, 0.72);
  --muted-soft: rgba(255, 247, 236, 0.52);
  --gold: #cfad78;
  --gold-soft: #f0d8ad;
  --gold-dark: #84633b;
  --jade: #7ea58b;
  --jade-soft: #dcebe0;
  --ink: #17202d;
  --line: rgba(240, 216, 173, 0.2);
  --line-strong: rgba(240, 216, 173, 0.38);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
  --font:
    "Noto Serif SC", "Source Han Serif SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei",
    serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: var(--page-bg);
  font-family: var(--font);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button {
  font: inherit;
}

.download-page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 2%, rgba(207, 173, 120, 0.2), transparent 30%),
    radial-gradient(circle at 0% 40%, rgba(126, 165, 139, 0.18), transparent 32%),
    linear-gradient(180deg, #111d2b 0%, #0c1724 52%, #07111b 100%);
}

.download-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, transparent 0 44%, rgba(240, 216, 173, 0.06) 44.4%, transparent 45%),
    linear-gradient(24deg, transparent 0 68%, rgba(126, 165, 139, 0.06) 68.4%, transparent 69%);
}

.hero {
  position: relative;
  z-index: 1;
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 18px 16px;
}

.ambient {
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
}

.ambient-a {
  width: 190px;
  height: 190px;
  top: 96px;
  right: -96px;
  background: radial-gradient(circle, rgba(207, 173, 120, 0.2), transparent 70%);
}

.ambient-b {
  width: 220px;
  height: 220px;
  left: -130px;
  bottom: 26px;
  background: radial-gradient(circle, rgba(126, 165, 139, 0.16), transparent 68%);
}

.brand-bar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand__logo {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 13px;
  border: 1px solid rgba(240, 216, 173, 0.35);
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.brand__copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.brand__copy strong {
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0;
}

.brand__copy span {
  overflow: hidden;
  color: var(--gold-soft);
  font-size: 11px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.domain {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  color: var(--muted-soft);
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 18px;
  padding-top: 20px;
}

.hero__copy {
  display: grid;
  align-content: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 30px;
  margin: 0 0 14px;
  padding: 0 13px;
  border: 1px solid rgba(240, 216, 173, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold-soft);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

h1 {
  max-width: 11em;
  margin: 0;
  color: var(--gold-soft);
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

.lead {
  max-width: 21em;
  margin: 14px 0 0;
  color: rgba(255, 247, 236, 0.92);
  font-size: 19px;
  font-weight: 650;
  line-height: 1.48;
}

.sublead {
  max-width: 26em;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 34px;
  margin-top: 14px;
  padding: 7px 13px;
  border: 1px solid rgba(126, 165, 139, 0.36);
  border-radius: 999px;
  background: rgba(126, 165, 139, 0.16);
  color: var(--jade-soft);
  font-size: 12px;
  line-height: 1.45;
}

.action-panel {
  display: grid;
  gap: 10px;
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(10, 18, 29, 0.84);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  border-radius: 17px;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    filter 0.18s ease,
    border-color 0.18s ease;
}

.primary-btn:focus-visible,
.secondary-btn:focus-visible {
  outline: 3px solid rgba(126, 165, 139, 0.72);
  outline-offset: 3px;
}

.primary-btn:active,
.secondary-btn:active {
  transform: scale(0.985);
}

.primary-btn {
  gap: 10px;
  border: 0;
  background: linear-gradient(135deg, #f0d8ad 0%, #cfad78 50%, #9b7442 100%);
  color: #101722;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 15px 38px rgba(207, 173, 120, 0.28);
}

.primary-btn__mark {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 30px;
  padding: 0 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.28);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.secondary-btn {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--gold-soft);
  font-size: 16px;
  font-weight: 800;
}

.safe-line {
  margin: 0;
  color: var(--muted-soft);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.wechat-tip {
  min-height: 42px;
  padding: 11px 13px;
  border: 1px solid rgba(126, 165, 139, 0.34);
  border-radius: 15px;
  background: rgba(126, 165, 139, 0.16);
  color: var(--jade-soft);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.phone-stage {
  position: relative;
  min-height: 250px;
}

.phone-stage::before {
  content: "";
  position: absolute;
  right: -38px;
  bottom: 10px;
  width: 260px;
  height: 130px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(207, 173, 120, 0.26), rgba(126, 165, 139, 0.18));
  transform: rotate(-12deg);
}

.phone {
  position: absolute;
  right: 8px;
  bottom: 0;
  width: 232px;
  min-height: 322px;
  padding: 14px 12px 16px;
  border: 7px solid #0b0d12;
  border-radius: 36px;
  background: linear-gradient(180deg, #fffaf2 0%, #f1e8db 100%);
  color: var(--ink);
  box-shadow: var(--shadow);
  transform: rotate(-3deg);
}

.phone::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 68px;
  height: 18px;
  border-radius: 999px;
  background: #090b0f;
  transform: translateX(-50%);
}

.phone__status {
  display: flex;
  justify-content: space-between;
  padding: 17px 8px 9px;
  color: #111927;
  font-size: 10px;
  font-weight: 800;
}

.app-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 2px 2px 11px;
}

.app-head img {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  object-fit: cover;
}

.app-head div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.app-head strong {
  font-size: 16px;
  line-height: 1;
}

.app-head span {
  overflow: hidden;
  color: var(--gold-dark);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-card {
  display: grid;
  gap: 4px;
  padding: 15px;
  border-radius: 17px;
  background:
    radial-gradient(circle at 86% 22%, rgba(207, 173, 120, 0.25), transparent 36%),
    linear-gradient(135deg, #161d2a, #2a3140);
  color: var(--cream);
}

.asset-card span {
  color: rgba(255, 247, 236, 0.74);
  font-size: 11px;
}

.asset-card strong {
  font-size: 25px;
  line-height: 1.1;
}

.asset-card em {
  justify-self: start;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(240, 216, 173, 0.14);
  color: var(--gold-soft);
  font-size: 10px;
  font-style: normal;
}

.app-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 11px;
}

.app-nav span {
  min-height: 40px;
  padding: 8px 4px;
  border-radius: 12px;
  background: rgba(207, 173, 120, 0.14);
  color: #60482d;
  font-size: 10px;
  line-height: 1.25;
  text-align: center;
}

.promo-card,
.order-card {
  margin-top: 11px;
  border: 1px solid rgba(207, 173, 120, 0.18);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.78);
}

.promo-card {
  display: grid;
  gap: 4px;
  padding: 13px;
}

.promo-card strong {
  color: var(--gold-dark);
  font-size: 14px;
}

.promo-card span {
  color: #4f5a6a;
  font-size: 10px;
  line-height: 1.45;
}

.order-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px;
}

.order-card div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.order-card strong {
  font-size: 14px;
}

.order-card span,
.order-card b {
  color: #4f5a6a;
  font-size: 10px;
}

.trust-list {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(calc(100% - 36px), 1120px);
  margin: 12px auto 0;
  overflow: hidden;
  border: 1px solid rgba(240, 216, 173, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
}

.trust-list article {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 78px;
  padding: 13px 8px;
  background: rgba(255, 255, 255, 0.05);
  text-align: center;
}

.trust-list strong {
  color: var(--gold-soft);
  font-size: 13px;
  line-height: 1.25;
}

.trust-list span {
  color: var(--muted-soft);
  font-size: 11px;
  line-height: 1.4;
}

.footer {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 36px), 1120px);
  margin: 0 auto;
  padding: 18px 0 calc(22px + env(safe-area-inset-bottom));
  color: rgba(255, 247, 236, 0.46);
  font-size: 11px;
  line-height: 1.65;
  text-align: center;
}

.footer p {
  margin: 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 20;
  width: max-content;
  max-width: min(330px, calc(100vw - 48px));
  padding: 12px 16px;
  border: 1px solid rgba(240, 216, 173, 0.28);
  border-radius: 999px;
  background: rgba(15, 23, 36, 0.94);
  color: var(--cream);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.32);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 370px) {
  .hero {
    padding-right: 14px;
    padding-left: 14px;
  }

  .domain {
    display: none;
  }

  h1 {
    font-size: 36px;
  }

  .lead {
    font-size: 17px;
  }

  .primary-btn {
    font-size: 18px;
  }

  .phone {
    right: -10px;
    width: 218px;
  }

  .trust-list {
    width: calc(100% - 28px);
  }

  .trust-list strong {
    font-size: 12px;
  }
}

@media (max-height: 700px) and (max-width: 767px) {
  .phone-stage {
    min-height: 206px;
    overflow: hidden;
  }

  .phone {
    bottom: -94px;
  }
}

@media (min-width: 768px) {
  body {
    background:
      radial-gradient(circle at 48% 0%, rgba(207, 173, 120, 0.13), transparent 34%),
      #070b12;
  }

  .download-page {
    display: grid;
    align-content: center;
    padding: 28px;
  }

  .hero {
    display: grid;
    min-height: min(820px, calc(100dvh - 56px));
    padding: 0;
  }

  .brand-bar {
    align-self: start;
    padding: 0 2px;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
    align-items: center;
    gap: 44px;
    padding-top: 22px;
  }

  h1 {
    max-width: 12em;
    font-size: 56px;
  }

  .lead {
    font-size: 22px;
  }

  .sublead {
    font-size: 15px;
  }

  .action-panel {
    max-width: 430px;
    margin-top: 22px;
    padding: 18px;
  }

  .phone-stage {
    min-height: 520px;
  }

  .phone-stage::before {
    right: 16px;
    bottom: 48px;
    width: 360px;
    height: 190px;
  }

  .phone {
    right: 42px;
    bottom: 28px;
    width: 292px;
    min-height: 414px;
    padding: 18px 16px 20px;
    border-radius: 44px;
  }

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

  .trust-list article {
    min-height: 96px;
    padding: 18px 16px;
  }

  .footer {
    padding-bottom: 0;
  }
}

@media (min-width: 1180px) {
  .download-page {
    padding: 40px;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 560px) minmax(420px, 500px);
    gap: 60px;
  }

  h1 {
    font-size: 64px;
  }

  .phone {
    right: 70px;
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  .download-page {
    min-height: 100vh;
  }

  .hero {
    padding-top: 14px;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: start;
  }

  .phone-stage {
    min-height: 240px;
  }

  .phone {
    right: 8px;
    bottom: -114px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .brand-bar,
  .hero__copy,
  .phone-stage,
  .trust-list {
    animation: rise-in 0.72s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .hero__copy {
    animation-delay: 0.08s;
  }

  .phone-stage {
    animation-delay: 0.16s;
  }

  .trust-list {
    animation-delay: 0.24s;
  }

  .primary-btn {
    animation: glow-pulse 2.8s ease-in-out infinite;
  }
}

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

@keyframes glow-pulse {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.06);
  }
}
