/* MintCal landing — 薄荷宣纸极简主义，零外链、零构建 */

:root {
  --bg: #F2F7F5;
  --surface: #FFFFFF;
  --surface-high: #E9F1EE;
  --primary: #2E776C;
  --primary-hover: #235E55;
  --primary-soft: #CDEBE3;
  --on-primary-soft: #1B473F;
  --ink: #24312D;
  --ink-muted: #5E6F69;
  --line: #DCE6E2;

  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Noto Sans CJK SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-phone: 0 22px 48px -22px rgba(27, 71, 63, 0.22), 0 4px 12px -4px rgba(27, 71, 63, 0.08);
  --shadow-shot: 0 14px 32px -20px rgba(27, 71, 63, 0.16), 0 2px 6px -2px rgba(27, 71, 63, 0.06);
  --shadow-island: 0 2px 8px rgba(27, 71, 63, 0.07);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15.5px/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, figure { margin: 0; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  padding: 8px 16px; border-radius: var(--radius-pill);
  background: var(--surface); box-shadow: var(--shadow-island); text-decoration: none;
}
.skip-link:focus { top: 12px; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.wrap { width: min(100% - 40px, 1080px); margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border: 0; border-radius: var(--radius-pill);
  font-size: 14.5px; font-weight: 550; text-decoration: none; white-space: nowrap;
  transition: background-color .16s var(--ease), border-color .16s var(--ease), transform 140ms var(--ease);
}
.btn:active { transform: scale(.965); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-tonal {
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line);
}
.btn-tonal:hover { border-color: rgba(46, 119, 108, 0.35); background: #FAFDFC; }
.btn-sm { min-height: 36px; padding: 0 15px; font-size: 13.5px; }
.btn-lg { min-height: 48px; padding: 0 22px; font-size: 15px; }
.btn-meta { font-size: 13px; opacity: 0.86; font-weight: 500; }
.ic { width: 17px; height: 17px; flex: none; }

/* Topbar */
.topbar {
  position: sticky; top: 0; z-index: 40; height: 58px;
  background: rgba(242, 247, 245, 0.88);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15.5px; font-weight: 600; text-decoration: none; margin-right: auto;
}
.brand img { border-radius: 7px; }
.topnav { display: flex; align-items: center; gap: 4px; }
.topnav a {
  padding: 6px 12px; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 500; color: var(--ink-muted); text-decoration: none;
  transition: color .15s, background-color .15s;
}
.topnav a:hover { color: var(--ink); background: var(--surface-high); }

/* Hero */
.hero { padding: 52px 0 64px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 340px);
  gap: 56px;
  align-items: center;
}
.ver-link {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 20px; padding: 5px 12px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13px; color: var(--ink-muted); text-decoration: none;
  transition: border-color .16s var(--ease);
}
.ver-link:hover { border-color: rgba(46, 119, 108, 0.38); color: var(--ink); }
.ver-link strong { color: var(--primary); font-weight: 600; }
.ver-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); flex: none; }
.ver-sep { color: #B8C7C2; }

.display {
  font-size: clamp(2rem, 3.6vw, 2.95rem);
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.lead {
  margin-top: 18px;
  max-width: 52ch;
  font-size: 16px;
  color: var(--ink-muted);
}
.lead strong { color: var(--ink); font-weight: 600; }

.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.abi-hint {
  margin-top: 16px;
  max-width: 54ch;
  font-size: 13.5px;
  color: var(--ink-muted);
  line-height: 1.7;
}
.abi-hint a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(46, 119, 108, 0.32);
  padding-bottom: 1px;
  white-space: nowrap;
}
.abi-hint a:hover { border-bottom-color: var(--primary); }

/* Hero real phone switcher */
.hero-stage {
  display: flex; flex-direction: column; align-items: center;
}
.phone-frame {
  position: relative;
  width: 266px;
  aspect-ratio: 1280 / 2772;
  border-radius: 34px;
  overflow: hidden;
  background: var(--surface);
  border: 5px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-phone);
}
.screen-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; pointer-events: none;
  transition: opacity .24s var(--ease);
}
.screen-img.is-active { opacity: 1; pointer-events: auto; }

.seg-pill {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr);
  width: 266px; margin-top: 16px; padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--surface-high);
}
.seg-thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px;
  width: calc((100% - 8px) / 4);
  border-radius: var(--radius-pill);
  background: var(--surface);
  box-shadow: var(--shadow-island);
  transition: transform .26s var(--ease);
  pointer-events: none;
}
.seg-pill button {
  position: relative; z-index: 1;
  height: 36px; border: 0; background: transparent; border-radius: var(--radius-pill);
  font-size: 13.5px; font-weight: 500; color: var(--ink-muted);
  transition: color .18s var(--ease), transform 140ms var(--ease);
}
.seg-pill button:active { transform: scale(.96); }
.seg-pill button.is-active { color: var(--primary); font-weight: 600; }

/* Sections */
.section {
  padding: 52px 0;
  border-top: 1px solid var(--line);
}

/* 4-up real screenshot gallery */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.shot-frame {
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface);
  border: 4px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-shot);
}
.shot-frame img { width: 100%; height: auto; aspect-ratio: 1280 / 2772; object-fit: cover; }
.shot-card figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 550;
  color: var(--ink-muted);
}

/* Download sheet */
.dl-sheet {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.dl-row {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 24px;
}
.dl-row + .dl-row { border-top: 1px solid var(--line); }
.dl-row--rec { background: #FAFDFC; }
.dl-title { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.abi-name { font-size: 16px; font-weight: 650; word-break: break-word; }
.tag-rec {
  flex: none;
  white-space: nowrap;
  padding: 2px 9px; border-radius: var(--radius-pill);
  background: var(--primary-soft); color: var(--on-primary-soft);
  font-size: 12px; font-weight: 600; line-height: 1.4;
}
.dl-info p { margin-top: 4px; font-size: 14px; color: var(--ink-muted); }
.dl-info .dl-meta { margin-top: 6px; font-size: 12px; color: var(--ink-muted); word-break: break-all; }
.dl-act { display: flex; align-items: center; gap: 16px; flex: none; }
.dl-size { font-size: 14.5px; font-weight: 600; color: var(--ink); min-width: 76px; text-align: right; }

.dl-foot {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  margin-top: 16px; font-size: 13.5px; color: var(--ink-muted);
}
.dl-foot a { text-decoration: none; border-bottom: 1px solid transparent; }
.dl-foot a:hover { color: var(--primary); border-bottom-color: rgba(46, 119, 108, 0.35); }

/* Footer */
.footer {
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-muted);
}
.footer-in {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-brand { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--ink); font-weight: 550; }
.footer-brand img { border-radius: 6px; }
.footer-sep { color: #B8C7C2; }
.footer-note { color: var(--ink-muted); font-weight: 400; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

/* Responsive */
@media (max-width: 900px) {
  .hero { padding: 36px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-stage { order: 2; }
  .shot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}

@media (max-width: 600px) {
  .wrap { width: min(100% - 32px, 1080px); }
  .topnav { display: none; }
  .section { padding: 40px 0; }
  .phone-frame, .seg-pill { width: min(252px, 100%); }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { width: 100%; }
  .shot-grid { gap: 14px; }
  .shot-frame { border-radius: 16px; border-width: 3px; }
  .dl-row { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px 16px; }
  .dl-act { width: 100%; justify-content: space-between; }
  .dl-size { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
