/* Mint 网络环境优化 · net.mintryu.com */
:root {
  --sky: #edf3f1;
  --card: #ffffff;
  --ink: #10302a;
  --muted: #4d635d;
  --soft: #7f918b;
  --line: rgba(16, 48, 42, 0.13);
  --mint: #20a57a;
  --mint-deep: #13785a;
  --mint-bright: #3fd19c;
  --mint-soft: #d6efe4;
  --pine: #10302a;
  --pine-2: #1b4239;
  --pine-ink: #ecf5f1;
  --pine-muted: #a9c2b9;
  --font: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --num: "Bahnschrift", "DIN Alternate", "DIN Condensed", "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background:
    radial-gradient(760px 380px at 12% -140px, rgba(63, 209, 156, 0.2), transparent 70%),
    var(--sky);
  color: var(--ink);
  font: 16px/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, p, ol, ul { margin: 0; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 8px 14px; border-radius: 10px; background: var(--ink); color: #fff; text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--mint-deep); outline-offset: 3px; border-radius: 6px; }

/* header ---------------------------------------------------------------- */

.header {
  position: sticky; top: 0; z-index: 30;
  background: transparent;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.header.is-stuck { border-bottom-color: var(--line); background: rgba(237, 243, 241, 0.88); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; }
.header-link {
  padding: 7px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 600;
  color: var(--mint-deep); text-decoration: none; background: var(--mint-soft);
}
.header-link:hover { background: #c6e8d9; }

/* buttons --------------------------------------------------------------- */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 14px; border: 1.5px solid var(--ink);
  background: transparent; color: var(--ink); font-weight: 700; font-size: 15.5px;
  text-decoration: none; cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.button:active { transform: translateY(1px); }
.button-line:hover { background: rgba(16, 48, 42, 0.05); }
.button-fill { background: var(--ink); color: #fff; }
.button-fill:hover { box-shadow: 0 10px 24px rgba(16, 48, 42, 0.24); }
.button-mint { background: var(--mint-bright); border-color: var(--mint-bright); color: #06281d; }
.button-mint:hover { box-shadow: 0 10px 26px rgba(63, 209, 156, 0.32); }
.button-sm { height: 38px; padding: 0 14px; border-radius: 11px; font-size: 14px; }

/* hero ------------------------------------------------------------------ */

.hero { padding: 44px 0 30px; }
.hero h1 {
  font-size: clamp(32px, 5.6vw, 60px);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.015em;
}
.br-m { display: none; }
.lede { max-width: 34em; margin-top: 16px; color: var(--muted); font-size: clamp(15.5px, 1.6vw, 17.5px); }

/* plans ----------------------------------------------------------------- */

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

.plan {
  position: relative;
  display: flex; flex-direction: column;
  padding: 24px 22px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.plan-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.plan-head h2 { font-size: 19px; font-weight: 750; }
.price { font: 700 40px/1 var(--num); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.price small { font-size: 0.5em; margin-right: 2px; vertical-align: 0.55em; font-weight: 600; }

/* 谁来动手：条越满，Mint 做得越多 */
.meter { margin: 18px 0 16px; }
.meter-bar {
  display: block; height: 10px; border-radius: 999px; overflow: hidden;
  background: repeating-linear-gradient(90deg, rgba(16, 48, 42, 0.12) 0 6px, transparent 6px 9px);
}
.meter-bar i {
  display: block; height: 100%; width: calc(var(--share) * 100%);
  border-radius: inherit; background: var(--mint);
  transform-origin: left center;
  animation: meter-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both;
}
.plan:nth-child(2) .meter-bar i { animation-delay: 0.3s; }
.plan:nth-child(3) .meter-bar i { animation-delay: 0.45s; }
@keyframes meter-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .meter-bar i { animation: none; } }

.meter-cap { display: flex; justify-content: space-between; gap: 10px; margin-top: 7px; font-size: 13px; }
.meter-cap em { font-style: normal; color: var(--soft); }
.meter-cap em:first-child { color: var(--mint-deep); font-weight: 700; }

.plan-list { list-style: none; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.plan-list li { position: relative; padding-left: 20px; }
.plan-list li::before {
  content: ""; position: absolute; left: 2px; top: 0.62em;
  width: 8px; height: 8px; border-radius: 50%;
  border: 2px solid var(--mint);
}

.fit { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 14px; }
.upgrade { margin-top: 6px; font-size: 14px; color: var(--muted); }
.upgrade b { color: var(--mint-deep); font-family: var(--num); font-size: 15px; }

/* 按钮贴底，三张卡的按钮对齐 */
.plan-buy { margin-top: auto; width: 100%; }
.plan > :nth-last-child(2) { margin-bottom: 20px; }

/* 全套：深色，最显眼 */
.plan-full {
  background: var(--pine);
  border-color: var(--pine);
  color: var(--pine-ink);
  box-shadow: 0 18px 40px rgba(16, 48, 42, 0.22);
}
.plan-full .meter-bar { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 6px, transparent 6px 9px); }
.plan-full .meter-bar i { background: var(--mint-bright); }
.plan-full .meter-cap em:first-child { color: var(--mint-bright); }
.plan-full .plan-list li::before { border-color: var(--mint-bright); }
.plan-full .fit { color: var(--pine-muted); border-top-color: rgba(255, 255, 255, 0.16); }
.flag {
  position: absolute; top: -12px; right: 20px;
  padding: 3px 12px; border-radius: 999px;
  background: var(--mint-bright); color: #06281d;
  font-size: 13px; font-weight: 800;
}

/* after: 怎么开始 + 说好的 -------------------------------------------- */

.after {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px;
  margin-top: 40px; margin-bottom: 72px;
}
.after h2 { font-size: 17px; font-weight: 750; margin-bottom: 14px; }
.how ol { list-style: none; padding: 0; display: grid; gap: 12px; }
.how li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; }
.how .n {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: #fff; font: 700 15px/1 var(--num);
}
.how p { padding-top: 2px; }
.how b { font-weight: 700; color: var(--mint-deep); }

.promise {
  align-self: start;
  padding: 20px 22px;
  border-radius: 18px;
  background: var(--mint-soft);
  color: var(--ink);
}
.promise h2 { margin-bottom: 6px; }
.promise p { font-size: 15px; color: #2c4a43; }

/* footer ---------------------------------------------------------------- */

.footer { border-top: 1px solid var(--line); padding: 22px 0 90px; color: var(--soft); font-size: 13.5px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-inner span:first-child { color: var(--muted); font-weight: 600; margin-right: auto; }

/* pay dialog ------------------------------------------------------------ */

.pay {
  width: min(380px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  padding: 24px 22px 20px;
  border: 0; border-radius: 24px;
  background: var(--card); color: var(--ink);
  box-shadow: 0 30px 80px rgba(16, 48, 42, 0.3);
  overflow: auto;
}
.pay[open] { animation: pay-in 0.2s ease-out; }
@keyframes pay-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pay[open] { animation: none; } }
.pay::backdrop { background: rgba(16, 48, 42, 0.45); backdrop-filter: blur(3px); }

.pay-close-form { position: absolute; top: 12px; right: 12px; }
.pay-close {
  display: grid; place-items: center; width: 34px; height: 34px;
  border: 0; border-radius: 50%; background: transparent; cursor: pointer; color: var(--soft);
}
.pay-close:hover { background: rgba(16, 48, 42, 0.07); color: var(--ink); }
.pay-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.pay-kicker { color: var(--mint-deep); font-weight: 700; font-size: 14px; }
.pay-title { margin-top: 2px; font-size: 21px; font-weight: 750; }
.pay-title b { font-family: var(--num); font-size: 1.2em; }
.pay-upgrade { margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.pay-code {
  width: 210px; height: auto; margin: 16px auto 14px;
  border-radius: 14px; border: 1px solid var(--line);
}
.pay-next { border-top: 1px dashed var(--line); padding-top: 14px; font-size: 14.5px; }
.pay-wx {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 10px; padding: 10px 10px 10px 14px; border-radius: 14px; background: var(--sky);
}
.pay-wx b { font-weight: 700; }
.pay-alt { margin-top: 10px; color: var(--soft); font-size: 13px; }

/* responsive ------------------------------------------------------------ */

@media (max-width: 900px) {
  .plans { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .plan-full { margin-top: 8px; }
  .after { grid-template-columns: minmax(0, 1fr); margin-top: 32px; }
}

@media (max-width: 560px) {
  .wrap { width: calc(100% - 28px); }
  .header-inner { height: 54px; }
  .brand { font-size: 15px; }
  .hero { padding: 26px 0 20px; }
  .br-m { display: inline; }
  .lede { margin-top: 10px; }
  .plan { padding: 20px 18px 18px; border-radius: 20px; }
  .price { font-size: 36px; }
  .meter { margin: 14px 0 14px; }
}
