:root {
  --green: #0f9f6e;
  --green-deep: #0a6b4a;
  --green-ink: #053528;
  --mint: #e8f7ef;
  --mint-2: #d7f3e6;
  --paper: #f3faf6;
  --ink: #10231b;
  --muted: #5a7266;
  --line: rgba(5, 53, 40, 0.12);
  --amber: #d97706;
  --radius: 18px;
  --font-display: "Outfit", "Manrope", sans-serif;
  --font-body: "Manrope", "PingFang SC", "Noto Sans SC", sans-serif;
  --tap: 48px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html {
  scroll-behavior: smooth;
  background-color: var(--paper);
  min-height: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  background: var(--paper);
  overflow-x: hidden;
}

.atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(90% 60% at 10% 0%, rgba(15, 159, 110, 0.16), transparent 55%),
    radial-gradient(70% 50% at 95% 10%, rgba(217, 119, 6, 0.1), transparent 50%),
    linear-gradient(180deg, #eaf8f1 0%, #d7f3e6 45%, var(--paper) 100%);
}

.shell {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  margin: 0 auto;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* 柔和顶区：浅薄荷，对接状态栏，不再一片深绿 */
.hero-band {
  position: relative;
  overflow: hidden;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 16px 8px;
  color: var(--green-ink);
  background: var(--mint-2);
  isolation: isolate;
}
.hero-band > *:not(.atmosphere) {
  position: relative;
  z-index: 1;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--green-ink);
}
.lang-btn {
  min-height: 34px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.75);
  color: var(--green-ink);
  border-radius: 999px;
  padding: 0 12px;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.hero-kicker {
  margin: 0 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--green-deep);
  font-size: 0.78rem;
  font-weight: 800;
  animation: rise 0.55s ease both;
}
.hero-kicker::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(15,159,110,0.18);
}
.hero-title {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 12vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--green-ink);
  animation: rise 0.6s 0.04s ease both;
}
.brand-hero {
  background: linear-gradient(120deg, #063527, #0f9f6e 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin: 10px 0 0;
  max-width: 30ch;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
  animation: rise 0.6s 0.08s ease both;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  animation: rise 0.6s 0.12s ease both;
}

/* 信息卡：额度 + 卖点，避免中间空荡 */
.hero-card {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(5, 53, 40, 0.06);
  animation: rise 0.6s 0.16s ease both;
}
.hero-card-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6px 8px;
  border-radius: 14px;
  background: linear-gradient(160deg, #eaf8f1, #f7fcf9);
  border: 1px solid rgba(15,159,110,0.12);
}
.hero-card-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--green-deep);
}
.hero-card-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.85rem;
  letter-spacing: -0.03em;
  color: var(--green-ink);
  line-height: 1.1;
  margin: 4px 0 2px;
}
.hero-card-unit {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}
.hero-points {
  list-style: none;
  margin: 0;
  padding: 2px 0;
  display: grid;
  gap: 8px;
  align-content: center;
}
.hero-points li {
  position: relative;
  padding-left: 16px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green-ink);
  line-height: 1.3;
}
.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.hero-strip {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 12px 6px;
  border-radius: 16px;
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
  text-align: center;
  animation: rise 0.6s 0.2s ease both;
}
.hero-strip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: var(--green-deep);
  margin-bottom: 2px;
}
.hero-strip span {
  display: block;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.25;
  font-weight: 700;
}

.sheet {
  position: relative;
  margin-top: 0;
  padding: 10px 14px 28px;
  background: var(--paper);
  min-height: 40vh;
}

.panel {
  padding: 16px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(5, 53, 40, 0.04);
}
.section { margin: 0 0 12px; }
.section h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  color: var(--green-ink);
}
.lead {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
}

.reward-picks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.pick {
  min-height: 88px;
  border: 1.5px solid var(--line);
  background: var(--mint);
  border-radius: 14px;
  padding: 10px 6px;
  text-align: center;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.pick strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(0.92rem, 3.6vw, 1.05rem);
  margin: 6px 0 2px;
  color: var(--green-ink);
}
.pick span:last-child { color: var(--muted); font-size: 0.7rem; font-weight: 700; }
.pick-tag {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--green-deep);
  background: rgba(15, 159, 110, 0.14);
  border-radius: 999px;
  padding: 3px 7px;
}
.pick.active {
  border-color: var(--green);
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 159, 110, 0.14);
}

.claim-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--green-ink);
}
.claim-form input {
  width: 100%;
  min-height: var(--tap);
  border-radius: 14px;
  border: 1.5px solid var(--line);
  padding: 0 14px;
  font: inherit;
  font-size: 16px;
  background: #fff;
  color: var(--ink);
}
.claim-form input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(15, 159, 110, 0.14);
}
.form-tip, .form-error { margin: 8px 0 12px; font-size: 0.84rem; }
.form-tip { color: var(--muted); font-weight: 600; }
.form-error { color: #b42318; font-weight: 800; }
.addr-status {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 159, 110, 0.1);
  color: var(--green-deep);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.4;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 0 18px;
  border-radius: 14px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-block { width: 100%; }

/* 主按钮：实心绿 + 白字 + 描边，绝不会看起来像裸文字 */
.btn-solid,
a.btn-solid,
a.btn-solid:link,
a.btn-solid:visited,
a.btn-solid:hover,
button.btn-solid {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  background: #0a6b4a !important;
  background-image: linear-gradient(135deg, #129b6c, #063527) !important;
  border: 1.5px solid #04281c !important;
  box-shadow: 0 10px 22px rgba(6, 53, 39, 0.28);
  text-shadow: 0 1px 1px rgba(0,0,0,0.28);
}
.btn-soft,
button.btn-soft {
  color: var(--green-ink) !important;
  -webkit-text-fill-color: var(--green-ink);
  background: #fff !important;
  border: 1.5px solid var(--line) !important;
  box-shadow: 0 4px 12px rgba(5,53,40,0.05);
}
.btn-on-dark,
a.btn-on-dark {
  color: var(--green-ink) !important;
  -webkit-text-fill-color: var(--green-ink);
  background: #fff !important;
  border: 1.5px solid rgba(255,255,255,0.6) !important;
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.wait-panel {
  margin-top: 14px;
  padding: 22px 16px;
  border-radius: 16px;
  text-align: center;
  background: linear-gradient(180deg, #fff7e6, #fff);
  border: 1px solid rgba(217,119,6,0.25);
}
.wait-panel h3 {
  margin: 10px 0 6px;
  font-family: var(--font-display);
  color: var(--green-ink);
}
.wait-panel p { margin: 0; color: var(--muted); line-height: 1.45; font-weight: 600; }
.wait-spinner {
  width: 42px; height: 42px; margin: 0 auto;
  border: 3px solid rgba(217,119,6,0.22);
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
.wait-meter {
  margin: 16px auto 10px;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(0,0,0,0.06);
  overflow: hidden;
}
.wait-meter i {
  display: block;
  height: 100%;
  width: 8%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--amber), var(--green));
  transition: width 0.35s ease;
}
.wait-addr {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem !important;
  word-break: break-all;
  color: var(--ink) !important;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 4px 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: var(--mint);
}
.steps li::before {
  content: counter(step);
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, var(--green), var(--green-deep));
  grid-row: span 2;
}
.steps strong { font-size: 0.95rem; color: var(--green-ink); }
.steps span { color: var(--muted); font-size: 0.84rem; font-weight: 600; }

.calc {
  padding: 12px;
  border-radius: 14px;
  background: var(--mint);
}
.calc input[type=range] { width: 100%; accent-color: var(--green); height: 28px; }
.calc-out {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}
.calc-out strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--green-ink);
}

.feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  max-height: 240px;
  overflow: hidden;
}
.feed li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: var(--mint);
  font-size: 0.84rem;
  animation: slideIn 0.45s ease both;
}
.feed .addr { color: var(--muted); font-family: ui-monospace, monospace; font-weight: 600; }
.feed .amt { font-weight: 800; color: var(--green-deep); white-space: nowrap; }

.perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.perks li {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--mint);
  font-weight: 700;
  line-height: 1.4;
  color: var(--green-ink);
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--green-ink);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.9rem;
  font-weight: 600;
}

.bottom-cta {
  margin: 8px 0 14px;
  padding: 22px 16px;
  border-radius: 20px;
  text-align: center;
  background: linear-gradient(145deg, #0f9f6e, #063527);
  color: #fff;
  box-shadow: 0 14px 30px rgba(6, 53, 39, 0.22);
}
.bottom-cta h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #fff;
}
.bottom-cta p { margin: 0 0 14px; color: rgba(255,255,255,0.9); font-weight: 600; }

.fineprint {
  margin: 0;
  padding: 0 8px 8px;
  color: #6b8578;
  font-size: 0.72rem;
  line-height: 1.45;
  text-align: center;
  font-weight: 600;
}

.lang-sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(5, 53, 40, 0.4);
  display: none;
  align-items: end;
}
.lang-sheet.is-open,
.lang-sheet:not([hidden]) { display: grid; }
.lang-sheet[hidden] { display: none !important; }
.lang-sheet-inner {
  background: #fff;
  border-radius: 22px 22px 0 0;
  padding: 18px 16px calc(20px + env(safe-area-inset-bottom, 0px));
}
.lang-sheet-inner > p {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--green-ink);
}
.lang-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.lang-grid button {
  min-height: var(--tap);
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--mint);
  font: inherit;
  font-weight: 700;
  color: var(--green-ink);
  cursor: pointer;
}
.lang-grid button.active {
  border-color: var(--green);
  background: rgba(15,159,110,0.14);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes slideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 360px) {
  .hero-band { padding-left: 12px; padding-right: 12px; }
  .sheet { padding-left: 10px; padding-right: 10px; }
  .hero-card { grid-template-columns: 1fr; }
  .hero-card-value { font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
