:root {
  --ink: #29221f;
  --muted: #746964;
  --paper: #fff9f2;
  --white: #fffefb;
  --coral: #f56750;
  --coral-dark: #d94d39;
  --green: #5aa36f;
  --line: rgba(74, 49, 38, 0.11);
  --shadow: 0 24px 70px rgba(111, 63, 43, 0.13);
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 209, 145, 0.32), transparent 28rem),
    radial-gradient(circle at 94% 32%, rgba(245, 103, 80, 0.11), transparent 30rem),
    var(--paper);
}

body.is-locked {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button {
  margin: 0;
  border: 0;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
}

[hidden] {
  display: none !important;
}

.site-shell {
  width: min(calc(100% - 24px), 1180px);
  margin: 0 auto;
}

.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 17px;
  font-weight: 800;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  box-shadow: 0 5px 15px rgba(165, 76, 42, 0.16);
}

.security-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.54);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.security-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(90, 163, 111, 0.12);
}

.hero {
  position: relative;
  padding: 44px 20px 34px;
  overflow: hidden;
  border: 1px solid rgba(120, 80, 59, 0.08);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 247, 235, 0.86));
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
}

.section-label {
  margin: 0 0 16px;
  color: var(--coral-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 12.8vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

h1 span {
  color: var(--coral);
}

.hero-description {
  max-width: 610px;
  margin: 23px auto 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.download-button {
  width: min(100%, 420px);
  min-height: 76px;
  margin: 31px auto 0;
  padding: 14px 17px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-radius: 19px;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 14px 30px rgba(48, 35, 30, 0.21);
  text-align: left;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.download-button:hover {
  background: #171311;
  transform: translateY(-2px);
}

.download-button:active {
  transform: translateY(0);
}

.download-button:focus-visible,
.retry-link:focus-visible,
.sheet-close:focus-visible,
.wechat-card button:focus-visible {
  outline: 3px solid rgba(245, 103, 80, 0.42);
  outline-offset: 3px;
}

.download-button img {
  width: 44px;
  height: 44px;
  border-radius: 13px;
}

.download-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.download-copy strong {
  font-size: 16px;
}

.download-copy small {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.63);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-action {
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 800;
}

.download-note {
  margin: 11px 0 0;
  color: #968a83;
  font-size: 10px;
}

.trust-list {
  margin-top: 27px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 11px 18px;
  color: #54765f;
  font-size: 11px;
  font-weight: 700;
}

.trust-list span::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 7px;
  display: inline-block;
  border-radius: 50%;
  background: var(--green);
}

.hero-preview {
  position: relative;
  z-index: 1;
  margin-top: 38px;
  display: grid;
  place-items: center;
}

.preview-orbit {
  width: min(100%, 310px);
  min-height: 320px;
  padding: 36px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffe4cc, #fff4df);
}

.preview-orbit img {
  width: 190px;
  height: 190px;
  border-radius: 45px;
  box-shadow: 0 28px 54px rgba(174, 82, 45, 0.24);
}

.preview-orbit span {
  margin-top: 21px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 22px rgba(104, 63, 45, 0.08);
  font-size: 14px;
  font-weight: 800;
}

.install-section {
  padding: 78px 0 66px;
}

.section-heading {
  max-width: 620px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(31px, 9vw, 47px);
  letter-spacing: -0.04em;
}

.section-heading > p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.step-grid {
  display: grid;
  gap: 14px;
}

.step-card {
  min-height: 190px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
}

.step-number {
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.step-card h3 {
  margin: 32px 0 9px;
  font-size: 18px;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.unsigned-notice {
  margin-bottom: 36px;
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 13px;
  border: 1px solid rgba(221, 148, 49, 0.22);
  border-radius: 20px;
  background: rgba(255, 246, 220, 0.75);
}

.notice-index {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 8px;
  color: #87682f;
  background: #ffe8ad;
  font-size: 10px;
  font-weight: 900;
}

.unsigned-notice h2 {
  margin: 0 0 7px;
  font-size: 16px;
}

.unsigned-notice p {
  margin: 0;
  color: #75634f;
  font-size: 13px;
  line-height: 1.8;
}

.unsigned-notice a {
  color: var(--coral-dark);
  font-weight: 700;
}

.site-footer {
  min-height: 88px;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  color: #90847d;
  font-size: 12px;
}

.install-layer {
  position: fixed;
  z-index: 100;
  inset: 0;
  padding: 12px;
  display: grid;
  align-items: end;
}

.layer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(34, 27, 24, 0.58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.install-sheet {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  margin: 0 auto;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 30px 90px rgba(28, 19, 16, 0.38);
}

.sheet-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sheet-status {
  color: var(--coral-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.sheet-close {
  min-width: 54px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #665c57;
  background: #f2eeea;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.install-sheet h2 {
  margin: 25px 0 10px;
  font-size: clamp(27px, 8vw, 36px);
  line-height: 1.28;
  letter-spacing: -0.04em;
}

.sheet-intro {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.guide-steps {
  margin-top: 23px;
  display: grid;
  gap: 12px;
}

.guide-step {
  padding: 13px 14px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffaf5;
}

.guide-step > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--coral-dark);
  background: #ffede6;
  font-size: 12px;
  font-weight: 900;
}

.guide-step p {
  margin: 4px 0 0;
  color: #5f5651;
  font-size: 13px;
  line-height: 1.6;
}

.unsigned-tip {
  margin: 17px 0;
  padding: 11px 13px;
  border-radius: 12px;
  color: #806644;
  background: #fff5d8;
  font-size: 11px;
  line-height: 1.6;
}

.retry-link {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: var(--coral);
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  -webkit-tap-highlight-color: transparent;
}

.wechat-layer {
  position: fixed;
  z-index: 120;
  inset: 0;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(28, 24, 22, 0.93);
}

.wechat-card {
  width: min(100%, 420px);
  padding: 28px;
  border-radius: 24px;
  color: #fff;
  background: #332b27;
  text-align: center;
}

.wechat-card h2 {
  margin: 0;
  font-size: 28px;
}

.wechat-card > p:not(.section-label) {
  margin: 14px 0 24px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.75;
}

.wechat-card button {
  min-width: 150px;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.toast {
  position: fixed;
  z-index: 150;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  width: min(calc(100% - 32px), 390px);
  padding: 14px 16px;
  border-radius: 14px;
  color: #fff;
  background: rgba(37, 30, 27, 0.95);
  box-shadow: 0 14px 35px rgba(22, 16, 13, 0.28);
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
  transform: translateX(-50%);
}

@media (min-width: 721px) {
  .site-shell {
    width: min(calc(100% - 40px), 1180px);
  }

  .site-header {
    min-height: 86px;
  }

  .security-label {
    padding: 8px 13px;
    font-size: 12px;
  }

  .hero {
    padding: 64px 52px 48px;
  }

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

  .step-card {
    min-height: 230px;
    padding: 29px;
  }

  .unsigned-notice {
    padding: 27px 30px;
    grid-template-columns: auto 1fr;
    gap: 18px;
  }

  .site-footer {
    flex-direction: row;
    justify-content: space-between;
  }

  .install-layer {
    padding: 20px;
    place-items: center;
  }

  .install-sheet {
    margin: auto;
    padding: 30px;
  }
}

@media (min-width: 920px) {
  .hero {
    min-height: 630px;
    padding: 72px 66px;
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
    align-items: center;
    gap: 68px;
    display: grid;
    border-radius: 40px;
  }

  .hero-copy {
    text-align: left;
  }

  h1 {
    font-size: clamp(58px, 6vw, 78px);
  }

  .hero-description,
  .download-button {
    margin-left: 0;
    margin-right: 0;
  }

  .download-note {
    margin-left: 7px;
  }

  .trust-list {
    justify-content: flex-start;
  }

  .hero-preview {
    margin-top: 0;
  }

  .preview-orbit {
    width: 390px;
    min-height: 430px;
  }

  .preview-orbit img {
    width: 260px;
    height: 260px;
    border-radius: 62px;
  }

  .install-section {
    padding: 108px 0 94px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
