:root {
  color: #f3f7ef;
  background: #071009;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #f3f7ef;
  --muted: rgba(243, 247, 239, 0.64);
  --soft: rgba(243, 247, 239, 0.82);
  --line: rgba(243, 247, 239, 0.13);
  --green: #8edc52;
  --bg: #071009;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(142, 220, 82, 0.15), transparent 30%),
    radial-gradient(circle at 82% 26%, rgba(142, 220, 82, 0.08), transparent 26%),
    linear-gradient(138deg, #030705 0%, #071009 48%, #11180f 100%);
}

body.download-guide-open {
  overflow: hidden;
}

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

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

.download-page {
  display: grid;
  width: min(1180px, calc(100vw - 64px));
  min-height: 100vh;
  margin: 0 auto;
  grid-template-rows: auto 1fr auto;
}

.download-brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 44px 0 24px;
  color: var(--ink);
  font-size: clamp(28px, 3.1vw, 42px);
  font-weight: 860;
  line-height: 1;
}

.download-brand img {
  width: clamp(44px, 4.7vw, 62px);
  height: clamp(44px, 4.7vw, 62px);
  object-fit: contain;
  transform: scale(1.12);
  filter: drop-shadow(0 12px 24px rgba(142, 220, 82, 0.18));
}

.download-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 340px);
  gap: clamp(54px, 8vw, 120px);
  align-items: center;
  padding: 54px 0 72px;
}

.download-copy {
  max-width: 760px;
}

.download-kicker {
  margin-bottom: 20px;
  color: var(--green);
  font-size: 15px;
  font-weight: 820;
  letter-spacing: 0.12em;
}

.download-copy h1 {
  margin-bottom: 28px;
  color: var(--ink);
  font-size: clamp(48px, 6.2vw, 78px);
  font-weight: 880;
  line-height: 1.02;
  letter-spacing: 0;
}

.download-summary,
.download-detail {
  max-width: 720px;
  margin-bottom: 12px;
  color: var(--soft);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.75;
}

.download-detail {
  color: var(--muted);
}

.download-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.download-primary {
  display: inline-flex;
  min-width: 188px;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border: 1px solid rgba(142, 220, 82, 0.46);
  border-radius: 8px;
  color: #071009;
  background: var(--green);
  box-shadow: 0 18px 38px rgba(142, 220, 82, 0.13);
  font-size: 16px;
  font-weight: 860;
}

.download-primary[data-ready='true']:hover {
  background: #bdf86c;
}

.download-primary[aria-disabled='true'] {
  color: rgba(243, 247, 239, 0.72);
  background: rgba(243, 247, 239, 0.065);
  border-color: rgba(243, 247, 239, 0.18);
  box-shadow: none;
}

.download-actions p {
  max-width: 290px;
  margin: 0;
  color: rgba(243, 247, 239, 0.48);
  font-size: 13px;
  line-height: 1.65;
}

.download-card {
  display: grid;
  justify-items: center;
  padding: 28px 28px 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(243, 247, 239, 0.075), rgba(243, 247, 239, 0.035)),
    rgba(3, 7, 5, 0.46);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

.qr-shell {
  display: grid;
  width: min(100%, 260px);
  aspect-ratio: 1;
  place-items: center;
  margin-bottom: 22px;
  padding: 12px;
  border-radius: 10px;
  background: #ffffff;
}

.qr-shell img {
  display: block;
  width: 100%;
  height: 100%;
}

.download-card strong {
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 18px;
}

.download-card span {
  color: rgba(243, 247, 239, 0.5);
  font-size: 13px;
}

.download-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 0 32px;
  border-top: 1px solid rgba(243, 247, 239, 0.1);
  color: rgba(243, 247, 239, 0.48);
  font-size: 13px;
}

.wechat-guide[hidden] {
  display: none;
}

.wechat-guide {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  align-items: start;
  justify-items: end;
  padding: 20px 18px;
}

.wechat-guide-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(5px);
}

.wechat-guide-card {
  position: relative;
  width: min(360px, calc(100vw - 36px));
  padding: 28px 26px 24px;
  border: 1px solid rgba(243, 247, 239, 0.14);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(13, 22, 14, 0.97);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.48);
}

.wechat-guide-arrow {
  position: absolute;
  top: 6px;
  right: 18px;
  color: var(--green);
  font-size: 36px;
  font-weight: 760;
  line-height: 1;
}

.wechat-guide-label {
  margin-bottom: 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 820;
  letter-spacing: 0.12em;
}

.wechat-guide-card h2 {
  margin-bottom: 12px;
  font-size: 25px;
  line-height: 1.25;
}

.wechat-guide-card > p:last-of-type {
  margin-bottom: 22px;
  color: rgba(243, 247, 239, 0.7);
  font-size: 15px;
  line-height: 1.75;
}

.wechat-guide-close {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  color: #071009;
  background: var(--green);
  font-size: 15px;
  font-weight: 850;
}

@media (max-width: 760px) {
  .download-page {
    width: min(100%, calc(100vw - 48px));
  }

  .download-brand {
    padding-top: 30px;
  }

  .download-hero {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 44px 0 54px;
  }

  .download-copy h1 {
    font-size: 38px;
  }

  .download-summary,
  .download-detail {
    font-size: 16px;
  }

  .download-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .download-primary {
    width: min(100%, 260px);
  }

  .download-card {
    display: none;
  }

  .download-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 360px) {
  .download-page {
    width: min(100%, calc(100vw - 36px));
  }
}
