/* ZHIPOOL Kawaii Sakura Macaron — 樱花粉 + 奶芋紫 + 奶油白卡片 共享设计系统（1 池糖 = 1 人民币 · 1:1） */
:root {
  /* Light Mode Palette — Apple Cupertino Alabaster & Titanium Glass */
  --bg: #fbf7fd;
  --zp-paper: #fbf7fd;
  --surface: #FFFFFF;
  --zp-surface: #FFFFFF;
  --soft: #f2ebfb;
  --surface-soft: #f2ebfb;
  --zp-soft: #f2ebfb;

  --ink: #27213e;
  --tx: #27213e;
  --zp-ink: #27213e;
  --ink-2: #504564;
  --tx-body: #504564;
  --zp-ink2: #504564;
  --muted: #635771;
  --tx-mute: #635771;
  --zp-muted: #635771;

  --border: #e9dff4;
  --border-solid: #e1d5ef;
  --zp-border: #e9dff4;
  --border-hover: #b9a0de;
  --zp-border-hover: #b9a0de;

  --accent: #6542bd;
  --zp-accent: #6542bd;
  --accent-indigo: #7754a5;
  --accent-btn: #6542bd;
  --accent-hover: #523398;
  --cyan: #ab80d5;
  --accent-soft: #f2ebfb;
  --zp-accent-soft: #f2ebfb;
  --zp-grad: linear-gradient(135deg, #F472B6 0%, #9333EA 56%, #6D28D9 100%);
  --zp-aurora: none;
  --lilac: #7754a5;
  --lilac-soft: #efe4fa;
  --mint: #10B981;
  --mint-soft: #ECFDF5;

  --ok: #047857;
  --ok-bg: #ECFDF5;
  --warn: #B45309;
  --warn-bg: #FFFBEB;
  --danger: #B91C1C;
  --danger-bg: #FEF2F2;

  --shadow: 0 2px 10px rgba(147, 51, 234, .05), 0 12px 28px -18px rgba(236, 72, 153, .16);
  --zp-shadow: 0 2px 10px rgba(147, 51, 234, .05), 0 12px 28px -18px rgba(236, 72, 153, .16);
  --shadow-card: 0 2px 10px rgba(147, 51, 234, .05), 0 12px 28px -18px rgba(236, 72, 153, .16);
  --shadow-pop: 0 20px 56px -16px rgba(64, 47, 104, 0.20);

  --r: 18px;
  --r-pill: 980px;
  --max: 1264px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

html.dark {
  --bg: #171323;
  --zp-paper: #171323;
  --surface: #231c31;
  --zp-surface: #231c31;
  --soft: #2b233a;
  --surface-soft: #2b233a;
  --zp-soft: #2b233a;

  --ink: #f5effb;
  --tx: #f5effb;
  --zp-ink: #f5effb;
  --ink-2: #c3b7cf;
  --tx-body: #c3b7cf;
  --zp-ink2: #c3b7cf;
  --muted: #a699b8;
  --tx-mute: #a699b8;
  --zp-muted: #a699b8;

  --border: #433550;
  --border-solid: #433550;
  --zp-border: #433550;
  --border-hover: #a785d7;
  --zp-border-hover: #a785d7;

  --accent: #cdb4ff;
  --zp-accent: #cdb4ff;
  --accent-indigo: #b99aee;
  --accent-btn: #9333EA;
  --accent-hover: #A855F7;
  --cyan: #F472B6;
  --accent-soft: #3c2d54;
  --zp-accent-soft: #3c2d54;
  --zp-grad: linear-gradient(135deg, #F472B6 0%, #A855F7 56%, #7C3AED 100%);

  --shadow: 0 2px 12px rgba(0, 0, 0, 0.35), 0 12px 32px -8px rgba(0, 0, 0, 0.65);
  --zp-shadow: 0 2px 12px rgba(0, 0, 0, 0.35), 0 12px 32px -8px rgba(0, 0, 0, 0.65);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.35), 0 12px 32px -8px rgba(0, 0, 0, 0.65);
  --shadow-pop: 0 24px 64px -16px rgba(0, 0, 0, 0.75);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  background-color: var(--bg);
  background-image: var(--zp-aurora, none);
  background-repeat: no-repeat;
  color: var(--ink);
  font: 15.5px/1.68 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "tnum" 1;
  min-height: 100vh;
  overflow-x: clip;
}
a { color: var(--accent); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { text-decoration: underline; }
code, pre { font-family: var(--mono); }

/* ── Sticky Cupertino Titanium Frosted-Glass Header ── */
.zp-header,
.nav,
body > header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 253, .96);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-solid);
}
html.dark .zp-header,
html.dark .nav,
html.dark body > header {
  background: rgba(28, 28, 30, 0.78);
}
.zp-nav-in,
.nav-in {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 48px);
  height: 64px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.zp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
  flex: none;
}
.zp-brand:hover { text-decoration: none; }
.zp-emblem { width: 30px; height: 30px; display: block; flex: none; object-fit: contain;  }
.zp-brand-name { font-size: 15px; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); }
.zp-brand-name span {
  color: var(--muted);
  font-weight: 600;
  margin-left: 4px;
}
html.dark .zp-brand-name span {
  background: linear-gradient(135deg, #F5F5F7 0%, #818CF8 55%, #2997FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.zp-nav-links { display: flex; align-items: center; gap: 2px; }
.zp-nl {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 7px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.24s var(--ease);
}
.zp-nl:hover,
.zp-nl.active {
  color: var(--ink);
  background: var(--soft);
  text-decoration: none;
}
.zp-nl.active { font-weight: 600; color: var(--accent); background: var(--soft); box-shadow: inset 0 0 0 1px var(--border); }
.zp-nav-cta {
  margin-left: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  background: var(--zp-grad);
  color: #FFFFFF;
  flex: none;
  box-shadow: 0 8px 18px -10px rgba(147, 51, 234, 0.52);
  transition: all 0.24s var(--ease);
}
.zp-nav-cta:hover {
  background: var(--zp-grad);
  color: #FFFFFF;
  text-decoration: none;
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* ── Mobile Drawer (<= 680px) ── */
.zp-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: 6px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  flex: none;
  transition: all 0.24s var(--ease);
}
.zp-nav-toggle:hover { border-color: var(--border-hover); background: var(--soft); }
.zp-nav-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
html:has(.zp-drawer[open]) { overflow: hidden; }
.zp-drawer {
  position: fixed;
  inset: 68px 12px auto;
  width: auto;
  max-width: none;
  max-height: calc(100dvh - 80px);
  margin: 0;
  padding: 14px;
  overflow: auto;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-pop);
}
.zp-drawer::backdrop { background: rgba(31, 21, 38, .48); }
.zp-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.zp-drawer-head button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font-size: 24px;
  cursor: pointer;
}
:where(a, button, summary, pre[tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.zp-drawer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.zp-drawer a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  background: var(--bg);
  border: 1px solid var(--border);
  transition: all 0.24s var(--ease);
}
.zp-drawer a:hover,
.zp-drawer a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--border-hover);
  font-weight: 600;
  text-decoration: none;
}
.zp-drawer-foot {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
}
.zp-drawer-foot a {
  flex: 1;
  justify-content: center;
  padding: 8px 10px;
  font-size: 12.5px;
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}

/* ── Shared Containers, Layout Grids & Typography ── */
.wrap { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { position: relative; z-index: 2; max-width: 920px; margin: 0 auto; padding: 0 24px 76px; }
.page-head { padding: 48px 0 28px; border-bottom: 1px solid var(--border); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid rgba(244, 114, 182, 0.28);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--zp-grad);
}
h1, .page-head h1 {
  letter-spacing: -0.028em;
  color: var(--ink);
}
.hero h1 {
  font-size: clamp(2.4rem, 4.8vw, 4.1rem);
  font-weight: 800;
  letter-spacing: -0.036em;
  line-height: 1.08;
  color: var(--ink);
}
.big-stat {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #EC4899 0%, #9333EA 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
html.dark .big-stat {
  background: linear-gradient(135deg, #F5F5F7 0%, #818CF8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.kpi-num {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: -0.032em;
  line-height: 1.1;
}
.page-head h1 {
  margin-top: 14px;
  font-size: clamp(28px, 4.6vw, 42px);
  line-height: 1.16;
  font-weight: 800;
}
.lede {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: clamp(15px, 1.7vw, 16.5px);
  max-width: 46em;
}

/* ── Preserved Layout Selectors (.hero, .bento, .tier-grid, .sub-grid, .model-grid) ── */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1.05fr;
  gap: 36px;
  align-items: center;
  padding: 56px 0 44px;
  border-bottom: 1px solid var(--border);
}
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.sub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.hero > *,
.bento > *,
.tier-grid > *,
.sub-grid > *,
.model-grid > * {
  min-width: 0;
}

/* ── Apple Keynote Bento & Spotlight Card Surface ── */
.card,
.bento-card,
.tier-card,
.sub-card,
.model-card,
.spot {
  position: relative;
  overflow: hidden;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.32s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.24s ease;
}
.card,
.bento-card,
.tier-card,
.sub-card,
.model-card {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(244, 114, 182, 0.18);
  padding: clamp(20px, 3vw, 26px);
  box-shadow: 0 10px 30px -14px rgba(236, 72, 153, 0.14), 0 2px 6px rgba(167, 139, 250, 0.08);
}
html.dark .card,
html.dark .bento-card,
html.dark .tier-card,
html.dark .sub-card,
html.dark .model-card {
  background: rgba(28, 28, 30, 0.86);
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow: var(--shadow);
}
.card::before,
.bento-card::before,
.tier-card::before,
.sub-card::before,
.model-card::before,
.spot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 107, 157, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card:hover::before,
.bento-card:hover::before,
.tier-card:hover::before,
.sub-card:hover::before,
.model-card:hover::before,
.spot:hover::before {
  opacity: 1;
}
.card { margin-top: 20px; }
.bento-card:hover,
.tier-card:hover,
.sub-card:hover,
.model-card:hover,
.spot:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: 0 16px 36px -14px rgba(236, 72, 153, 0.26), 0 4px 12px rgba(167, 139, 250, 0.12);
}
.card h2 {
  font-size: 18.5px;
  font-weight: 750;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin-bottom: 10px;
}
.card h3 {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 16px 0 8px;
}
.card p { color: var(--ink-2); font-size: 14.5px; }
.card p + p { margin-top: 10px; }
.card ul, .card ol { margin: 10px 0 0 1.25em; color: var(--ink-2); font-size: 14.5px; }
.card li { margin: 6px 0; }

pre {
  background: #1D1D1F;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 18px;
  overflow-x: auto;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.68;
  color: #F5F5F7;
}
pre code { color: inherit; }
:not(pre) > code {
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5px 6px;
  font-size: 12.5px;
  color: var(--ink);
}

table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13.5px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th {
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  background: var(--soft);
}
td { color: var(--ink-2); font-variant-numeric: tabular-nums; }
td b { color: var(--ink); font-weight: 650; }
tr:last-child td { border-bottom: 0; }

.tag,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  padding: 3px 10px;
  border-radius: 8px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(244, 114, 182, 0.28);
  font-weight: 650;
}
html.dark .tag,
html.dark .pill { color: #2997FF; }
.tag.ok { color: var(--ok); background: var(--ok-bg); border-color: rgba(4, 120, 87, 0.22); }
.tag.warn { color: var(--warn); background: var(--warn-bg); border-color: rgba(180, 83, 9, 0.24); }
.tag.danger { color: var(--danger); background: var(--danger-bg); border-color: rgba(185, 28, 28, 0.24); }

/* ── Bespoke 3D-Glossy Kawaii 「池糖」 Currency Emblem (.zp-money, .zp-mu) ── */
.zp-money {
  display: inline !important;
  margin: 0 !important;
  font-size: inherit !important;
  line-height: inherit !important;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  color: var(--accent, #DB2777);
  white-space: nowrap;
}
/* Flex/grid 父容器里 display:inline 会被 blockify 成 block，导致
   「注册领 🍬2」「🍬0.025 / 请求」这类文案被断成两行。
   contents 让元素本身不生成 box，子节点直接并入父容器，保持行内排版。
   这条规则对所有 .zp-money 生效——jc 按钮、价格卡、切换标签全是 flex 子项，
   普通流里 contents 与 inline 的渲染结果一致（子节点照常行内排），
   所以不存在只对 flex 生效的副作用。 */
.zp-money {
  display: contents !important;
}
/* contents 会让原有的 margin-right 失效（元素不生 box），
   所以图标间距改由 .zp-mu 自己承担。 */
.zp-money .zp-mu,
.zp-mu {
  margin-right: 0.18em !important;
}
.zp-money > span {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
}
.zp-money .zp-mu,
.zp-mu {
  display: inline-block;
  width: 1.22em;
  height: 1.08em;
  margin-right: 0.18em;
  vertical-align: -0.17em;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  image-rendering: -webkit-optimize-contrast;
  filter: drop-shadow(0 1px 2px rgba(79, 70, 229, 0.16));
}
.zp-candy-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #FFF5F8 0%, #F0F4FF 55%, #F2F9FF 100%);
  border: 1px solid rgba(244, 114, 182, 0.28);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.zp-candy-badge svg { width: 22px; height: 20px; flex: none; display: block; }
.zp-candy-badge small { font-weight: 600; color: var(--ink-2); font-size: 12px; }

/* ── High-Contrast Buttons (≥ 8:1 primary CTA contrast) ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.24s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: var(--zp-grad);
  color: #FFFFFF;
  box-shadow: 0 8px 20px -10px rgba(147, 51, 234, 0.5);
}
.btn-primary:hover {
  background: var(--zp-grad);
  color: #FFFFFF;
  filter: brightness(1.05);
}
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--border-hover);
  color: var(--accent);
  background: var(--soft);
}
.btn-soft {
  background: var(--lilac-soft);
  color: var(--lilac);
  border-color: rgba(147, 51, 234, 0.18);
}
.btn-soft:hover {
  background: var(--accent-soft);
  border-color: var(--border-hover);
}

/* ── Shared Footer (Clearance for Floating Pill .zpq-fab) ── */
footer,
.zp-footer {
  padding-bottom: 88px !important;
}
.zp-footer {
  margin-top: 56px;
  border-top: 1px solid var(--border);
  padding: 28px 0 88px;
}
.zp-footer-in {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.zp-footer-copy { font-size: 13px; color: var(--muted); }
.zp-footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.zp-footer-links a { color: var(--ink-2); font-size: 13px; text-decoration: none; }
.zp-footer-links a:hover { color: var(--accent); text-decoration: underline; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding: 42px 0 34px; }
}
@media (max-width: 760px) {
  .zp-nav-in, .nav-in { padding: 0 14px; }
  .zp-nav-links { display: none; }
  .zp-nav-cta { margin-left: auto; padding: 7px 13px; font-size: 13px; }
  .zp-nav-toggle { display: inline-flex; }
  .wrap, .wrap-narrow, .zp-footer-in { padding-left: 16px; padding-right: 16px; }
  .page-head { padding: 34px 0 22px; }
  .card, .bento-card, .tier-card, .sub-card, .model-card { padding: 18px; }
  table { font-size: 12.5px; }
  th, td { padding: 8px 9px; }
}
@media (max-width: 400px) {
  .zp-brand-name span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ── Kawaii 甜美马卡龙收尾层：按钮微浮起 + 柔粉光晕；暗色模式保持原深色体系 ── */
.btn-primary:hover, .zp-nav-cta:hover { filter: brightness(1.04); }
.tag.lilac, .pill.lilac { color: var(--lilac); background: var(--lilac-soft); border-color: rgba(147, 51, 234, 0.2); }
.tag.mint, .pill.mint { color: var(--mint); background: var(--mint-soft); border-color: rgba(16, 185, 129, 0.22); }
th { background: #FFF5FA; }
:not(pre) > code { background: var(--soft); border-color: var(--border); }
::selection { background: rgba(255, 107, 157, 0.22); }
html.dark body { background-image: none; }
