:root {
  --green: #18593e;
  --green-deep: #0f3d2a;
  --mint: #bbf7d0;
  --ink: #14532d;
  --muted: #4b5563;
  --paper: #f3f7f4;
  --font: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
  --display: "Source Han Serif SC", "Noto Serif SC", "Songti SC", Georgia, serif;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(24, 89, 62, 0.28), transparent 55%),
    radial-gradient(90% 70% at 90% 20%, rgba(15, 61, 42, 0.22), transparent 50%),
    linear-gradient(165deg, #dce8e1 0%, #f3f7f4 42%, #e7f0ea 100%);
}

.sky::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background:
    linear-gradient(180deg, transparent, rgba(15, 61, 42, 0.08)),
    repeating-linear-gradient(
      -12deg,
      transparent 0 18px,
      rgba(24, 89, 62, 0.035) 18px 19px
    );
  pointer-events: none;
}

.stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 440px;
  margin: 0 auto;
  padding: calc(28px + env(safe-area-inset-top)) 24px
    calc(32px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.brand {
  margin: 0 0 18px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--green);
  font-weight: 700;
}

.mark {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(15, 61, 42, 0.18);
  margin-bottom: 22px;
}

h1 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(2.4rem, 9vw, 3.1rem);
  line-height: 1.05;
  font-weight: 700;
  color: var(--green-deep);
  letter-spacing: 0.02em;
}

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

.cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-bottom: 14px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--solid {
  background: var(--green);
  color: #fff;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.72);
  color: var(--green-deep);
  border: 1px solid rgba(24, 89, 62, 0.22);
}

.btn--soft {
  background: rgba(24, 89, 62, 0.1);
  color: var(--green);
}

.btn.is-disabled {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
}

/* 非当前系统的次要按钮：仍可点，但弱化 */
.btn.btn--dim {
  opacity: 0.55;
  order: 3;
}

body.os-ios .btn#btn-ios,
body.os-android .btn#btn-android {
  order: 1;
}

body.os-ios .btn#btn-android,
body.os-android .btn#btn-ios {
  order: 2;
}

.note {
  margin: 0 0 22px;
  font-size: 12px;
  color: #6b7280;
  max-width: 36em;
}

.wx-tip {
  position: relative;
  z-index: 2;
  max-width: 440px;
  margin: 0 auto;
  padding: calc(16px + env(safe-area-inset-top)) 20px 0;
}

.wx-tip__title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  color: #9a3412;
}

.wx-tip__text {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid rgba(234, 88, 12, 0.28);
  color: #9a3412;
  font-size: 13px;
  line-height: 1.55;
}

.wx-tip__text strong {
  font-weight: 800;
}

.wx-tip__copy {
  display: block;
  width: 100%;
  margin: 10px 0 0;
  padding: 12px 14px;
  border: none;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.wx-tip__copy:active {
  background: var(--green-deep);
}

.guide {
  width: 100%;
  margin: 0 0 28px;
  padding: 16px 16px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(24, 89, 62, 0.12);
}

.guide__title {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 800;
  color: var(--green-deep);
}

.guide__steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guide__steps > li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.guide__n {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.guide__h {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green-deep);
}

.guide__p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.guide__p code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  padding: 0 4px;
  border-radius: 4px;
  background: rgba(24, 89, 62, 0.08);
}

.guide__foot {
  margin: 14px 0 0;
  font-size: 11px;
  color: #9ca3af;
  line-height: 1.45;
}

body.is-wechat .stage {
  justify-content: flex-start;
  padding-top: 18px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  font-size: 13px;
  font-weight: 600;
}

.links a {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid rgba(24, 89, 62, 0.25);
}

@media (min-width: 720px) {
  .stage,
  .wx-tip {
    max-width: 520px;
  }

  .stage {
    padding-left: 32px;
    padding-right: 32px;
  }
}
