/* Mint 网络环境+付款方案全优化 · claude.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;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  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, h3, 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; min-width: 0; font-weight: 700; font-size: 16px; text-decoration: none; }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-mark { flex: none; width: 30px; height: 30px; }
.header-link {
  flex: none;
  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-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 + 唯一的一张卡 ---------------------------------------------------- */

.main { flex: 1; display: flex; align-items: center; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.9fr);
  align-items: center;
  gap: 48px;
  padding: 56px 0 72px;
}

.eyebrow {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 999px;
  background: var(--mint-soft); color: var(--mint-deep);
  font-size: 14px; font-weight: 700;
}
.eyebrow i { font-style: normal; color: var(--mint); opacity: 0.8; }

.hero h1 {
  margin-top: 18px;
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.015em;
}
.lede { max-width: 30em; margin-top: 16px; color: var(--muted); font-size: clamp(15.5px, 1.6vw, 18px); }

.plan {
  position: relative;
  display: flex; flex-direction: column;
  border-radius: 26px;
}
.plan-full {
  background: var(--pine);
  color: var(--pine-ink);
  box-shadow: 0 24px 60px rgba(16, 48, 42, 0.26);
}
.plan-solo { padding: 30px 28px 26px; overflow: hidden; isolation: isolate; }
.plan-solo h2 { font-size: 22px; font-weight: 750; }
.plan-path {
  position: absolute; z-index: -1; right: -34px; top: -38px;
  width: 190px; color: var(--mint-bright); fill: var(--mint-bright); opacity: 0.28;
}
.price {
  margin: 26px 0 30px;
  font: 700 76px/1 var(--num); letter-spacing: -0.01em; font-variant-numeric: tabular-nums;
}
.price small { font-size: 0.42em; margin-right: 4px; vertical-align: 0.95em; font-weight: 600; }
.plan-buy { width: 100%; height: 54px; font-size: 16.5px; }

/* 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-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  margin-top: 14px; padding: 4px; border-radius: 13px; background: var(--sky);
}
.pay-tabs button {
  height: 36px; border: 0; border-radius: 10px; background: transparent;
  font-size: 14.5px; font-weight: 650; color: var(--muted); cursor: pointer;
}
.pay-tabs button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 2px 8px rgba(16, 48, 42, 0.12); }

/* 弹窗里同一时间只显示一种状态：loading / code / paid / error / manual */
.pay-view { display: none; text-align: center; }
.pay[data-view="loading"] [data-for="loading"],
.pay[data-view="code"] [data-for="code"],
.pay[data-view="paid"] [data-for="paid"],
.pay[data-view="error"] [data-for="error"],
.pay[data-view="manual"] [data-for="manual"] { display: block; }

.pay[data-view="paid"] .pay-head,
.pay[data-view="paid"] .pay-tabs,
.pay[data-view="manual"] .pay-tabs { display: none; }
.pay[data-view="loading"] .pay-next,
.pay[data-view="code"] .pay-next { display: none; }

[data-for="loading"] { padding: 64px 0 60px; color: var(--muted); font-size: 14.5px; }
.spinner {
  display: block; width: 34px; height: 34px; margin: 0 auto 14px;
  border-radius: 50%; border: 3px solid var(--mint-soft); border-top-color: var(--mint);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.pay-qr {
  width: 212px; height: 212px; margin: 16px auto 10px; padding: 8px;
  border-radius: 16px; border: 1px solid var(--line); background: #fff;
}
.pay-qr:empty { display: none; }
.pay-qr svg, .pay-qr img { width: 100%; height: 100%; }
.pay-hint { font-size: 15px; font-weight: 650; }
.pay-open { width: 100%; margin-top: 12px; }
.pay-wait {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 12px; padding: 6px 12px; border-radius: 999px;
  background: var(--sky); color: var(--muted); font-size: 13.5px;
}
.pulse { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; transform: scale(0.7); } }
@media (prefers-reduced-motion: reduce) { .pulse, .spinner { animation-duration: 3s; } }
.pay-meta { margin-top: 10px; color: var(--soft); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.pay-link {
  padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--mint-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 3px;
}

[data-for="paid"] { padding: 18px 0 6px; }
.pay-done { width: 64px; height: 64px; margin: 0 auto 12px; }
.pay-done circle { fill: var(--mint-soft); }
.pay-done path { fill: none; stroke: var(--mint-deep); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
[data-for="paid"] h3 { font-size: 22px; font-weight: 800; }
[data-for="paid"] p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.pay-order { font-variant-numeric: tabular-nums; }
.pay-order b { color: var(--ink); font-weight: 700; }

[data-for="error"] { padding: 30px 0 24px; }
.pay-err { margin-bottom: 14px; color: var(--muted); font-size: 15px; }

.pay-code {
  width: 210px; height: auto; margin: 16px auto 12px;
  border-radius: 14px; border: 1px solid var(--line);
}

.pay-next { margin-top: 16px; 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;
  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: 860px) {
  .main { align-items: flex-start; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 40px 0 56px; }
  .plan-solo { max-width: 460px; }
}

@media (max-width: 560px) {
  .wrap { width: calc(100% - 28px); }
  .header-inner { height: 54px; }
  .brand { font-size: 15px; gap: 8px; }
  .hero { padding: 26px 0 44px; gap: 26px; }
  .hero h1 { margin-top: 14px; }
  .lede { margin-top: 10px; }
  .plan-solo { padding: 24px 22px 22px; border-radius: 22px; }
  .price { font-size: 64px; margin: 20px 0 24px; }
}
