:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --panel: #ffffff;
  --soft: #eef6ff;
  --blue: #1088f5;
  --blue-2: #d7eaff;
  --ink: #101114;
  --muted: #626a76;
  --line: #dde2ea;
  --green: #07a56d;
  --shadow: 0 18px 50px rgba(16, 17, 20, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

button {
  font: inherit;
}

a {
  color: var(--blue);
  font-weight: 800;
}

.page {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 34px 0 54px;
}

.hero,
.section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 10px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.02;
  font-weight: 950;
}

h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.12;
}

h3 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.2;
}

.lead {
  max-width: 640px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.lead-detail {
  max-width: 740px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

strong {
  color: var(--ink);
}

.hero-actions,
.wechat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  justify-content: flex-end;
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  padding: 0 16px;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
}

.btn.secondary {
  background: #f9fafc;
}

.section {
  margin-bottom: 18px;
  padding: 24px;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.section-index {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--soft);
  color: var(--blue);
  font-weight: 950;
}

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

.plan {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 22px;
}

.plan.popular {
  border-color: var(--blue-2);
  background: linear-gradient(180deg, #eef7ff 0%, #ffffff 56%);
}

.plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.plan-top h3 {
  margin: 0;
  font-size: 30px;
}

.plan-top span {
  border-radius: 999px;
  background: var(--soft);
  color: #1269d3;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 950;
}

.price {
  margin-bottom: 10px;
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1;
  font-weight: 950;
}

.price small {
  color: var(--muted);
  font-size: 17px;
  font-weight: 700;
}

.summary {
  min-height: 52px;
  margin-bottom: 16px;
  color: var(--muted);
  line-height: 1.55;
}

ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
}

li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.plan-cta {
  min-height: 42px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fafc;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.popular .plan-cta {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
}

.recharge-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
}

.prep-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
  border: 1px solid #f0d39a;
  border-radius: 8px;
  background: #fff9ef;
  padding: 16px;
}

.prep-copy h3 {
  margin-bottom: 8px;
  font-size: 24px;
}

.prep-copy p {
  margin-bottom: 12px;
  color: #6c5435;
  line-height: 1.6;
}

.prep-checks {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.prep-checks div {
  display: grid;
  gap: 4px;
  border: 1px solid #ead8b8;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 10px 12px;
}

.prep-checks strong {
  color: #111318;
}

.prep-checks span {
  color: #6c5435;
  line-height: 1.55;
}

.prep-warning {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: #ffffff;
  color: #8a4a00;
  padding: 10px 12px;
  font-weight: 900;
  line-height: 1.5;
}

.prep-warning strong {
  color: #d92d20;
}

.prep-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.preview-stack {
  display: grid;
  gap: 12px;
  justify-items: end;
}

.preview-shot {
  display: block;
  width: min(100%, 360px);
  justify-self: end;
  border: 1px solid #ead8b8;
  border-radius: 8px;
  background: #ffffff;
  padding: 0;
  overflow: hidden;
  cursor: zoom-in;
}

.preview-shot img {
  display: block;
  width: 100%;
  height: auto;
  background: #ffffff;
}

.preview-shot span {
  display: block;
  border-top: 1px solid #ead8b8;
  background: #fffdf8;
  color: #8a4a00;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.flow {
  display: grid;
  gap: 12px;
}

.step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
}

.step span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--blue);
  color: #ffffff;
  font-weight: 950;
}

.step h3 {
  margin-bottom: 4px;
  font-size: 20px;
}

.step p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.wechat-card {
  position: sticky;
  top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
}

.wechat-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: #ffffff;
}

.wechat-actions {
  margin-top: 12px;
}

.wechat-actions p {
  width: 100%;
  margin-bottom: 0;
  color: var(--muted);
  text-align: center;
}

.wechat-actions .btn {
  flex: 1 1 130px;
}

.usage-list {
  display: grid;
  gap: 12px;
}

.usage-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
}

.usage-item h3 {
  margin-bottom: 8px;
  font-size: 21px;
}

.usage-item p {
  margin-bottom: 8px;
  color: var(--muted);
  line-height: 1.65;
}

.usage-item p:last-child {
  margin-bottom: 0;
}

.safety-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.68fr);
  gap: 18px;
  align-items: center;
}

.safety-copy {
  display: grid;
  gap: 12px;
}

.safety-item {
  border: 1px solid #cce6dc;
  border-radius: 8px;
  background: #f2fbf7;
  padding: 16px;
}

.safety-item h3 {
  margin-bottom: 6px;
  font-size: 21px;
}

.safety-item p {
  margin-bottom: 0;
  color: #3d6958;
  line-height: 1.65;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 10;
  transform: translateY(14px);
  opacity: 0;
  pointer-events: none;
  border: 1px solid rgba(7, 165, 109, 0.45);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 11px 13px;
  box-shadow: var(--shadow);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.toast.is-error {
  border-color: rgba(210, 74, 74, 0.55);
  color: #b42318;
}

.mobile-bar {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 9;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  padding: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(16, 17, 20, 0.78);
}

.image-modal.is-open {
  display: grid;
}

.image-modal img {
  max-width: min(1120px, 94vw);
  max-height: 86vh;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.image-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

@media (min-width: 741px) {
  .mobile-open-wechat {
    display: none;
  }
}

@media (max-width: 900px) {
  .hero {
    display: grid;
  }

  .hero-actions {
    justify-content: start;
  }

  .plans {
    grid-template-columns: 1fr;
  }

  .summary {
    min-height: 0;
  }

  .recharge-grid {
    grid-template-columns: 1fr;
  }

  .prep-card {
    grid-template-columns: 1fr;
  }

  .safety-grid {
    grid-template-columns: 1fr;
  }

  .preview-shot {
    justify-self: start;
  }

  .preview-stack {
    justify-items: start;
  }

  .wechat-card {
    position: static;
    max-width: 360px;
  }
}

@media (max-width: 560px) {
  .page {
    width: calc(100% - 20px);
    padding-top: 14px;
    padding-bottom: 86px;
  }

  .hero,
  .section {
    padding: 16px;
  }

  h1 {
    font-size: 40px;
  }

  .lead {
    font-size: 16px;
  }

  .hero-actions .btn,
  .wechat-actions .btn {
    width: 100%;
  }

  .hero-actions {
    display: none;
  }

  .plan {
    padding: 18px;
  }

  .plan-top h3 {
    font-size: 28px;
  }

  .price {
    font-size: 44px;
  }

  .step {
    padding: 14px;
  }

  .prep-actions .btn {
    width: 100%;
  }

  .prep-card {
    padding: 14px;
  }

  .wechat-card {
    max-width: none;
  }

  .mobile-bar {
    display: grid;
  }
}
