/* 购买 / 下载 / 帮助等次级页共享样式：亮色主题
   首页（/squirrel/）保持暗色主视觉，次级页统一亮色，降低阅读负担。 */
:root {
  --bg: #ededf1;
  --card: #fafafc;
  --raised: #f4f4f5;
  --line: rgba(0, 0, 0, .09);
  --line-strong: rgba(0, 0, 0, .16);
  --text: #18181b;
  --body: #3f3f46;
  --muted: #71717a;
  --brand: #4d6bfe;
  --brand-hover: #3a56e0;
  --ok: #16a34a;
  --warn: #b45309;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--body);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.container { width: min(1080px, 92vw); margin: 0 auto; }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.brand img { width: 26px; height: 26px; border-radius: 6px; }
.links { display: flex; align-items: center; gap: 22px; font-size: 13.5px; }
.links a { color: var(--muted); }
.links a:hover, .links a.on { color: var(--text); }

.hero { padding: 56px 0 28px; text-align: center; }
.hero h1 { margin: 0 0 10px; color: var(--text); font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.4px; text-wrap: balance; }
.hero p { margin: 0 auto; max-width: 700px; color: var(--muted); font-size: 15px; text-wrap: balance; }
.hero .tag {
  display: inline-block; margin-bottom: 16px; padding: 4px 12px; border-radius: 999px;
  background: rgba(77, 107, 254, .1); color: #3f52d0; font-size: 12.5px;
}

/* 后台内容到达前先隐藏档位，避免静态兜底与真实配置不一致时按钮「先蓝后灰」闪烁 */
.site-content-pending .plans { visibility: hidden; }

/* 档位数量可配置（1–6）：每行最多 3 张，多了自动换行并居中，宽度保持一致 */
.plans { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; padding: 22px 0 10px; }
.plans > .plan { flex: 1 1 260px; max-width: calc((100% - 32px) / 3); }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px 22px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px rgba(16, 24, 40, .04);
}
.plan.featured {
  border-color: rgba(77, 107, 254, .5);
  box-shadow: 0 12px 40px rgba(77, 107, 254, .12);
}
.badge {
  position: absolute; top: 16px; right: 16px; padding: 3px 9px; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 600;
}
.plan h2 { margin: 0 0 4px; color: var(--text); font-size: 19px; }
.plan .sub { color: var(--muted); font-size: 13px; min-height: 40px; }
.price { margin: 14px 0 2px; color: var(--text); font-size: 36px; font-weight: 700; letter-spacing: -.5px; }
.price small { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.price-note { color: var(--muted); font-size: 12.5px; min-height: 20px; }
.plan ul { margin: 10px 0 22px; padding: 0; list-style: none; font-size: 13.5px; color: var(--body); }
.plan li { position: relative; padding-left: 18px; margin: 7px 0; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-size: 12px; }
.plan .cta {
  margin-top: auto; display: block; width: 100%; text-align: center; padding: 12px 14px; border-radius: 10px;
  font-family: inherit; font-weight: 600; font-size: 14.5px; border: 1px solid var(--line-strong); color: var(--text);
  background: var(--raised); transition: .18s;
}
.plan .cta:hover { border-color: rgba(0, 0, 0, .28); color: var(--text); }
.plan .cta.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.plan .cta.primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: #fff; }
.plan .cta.disabled {
  background: #e5e7eb; border-color: #e5e7eb; color: #9ca3af;
  cursor: not-allowed; opacity: 1;
}
.plan .cta.disabled:hover { background: #e5e7eb; border-color: #e5e7eb; color: #9ca3af; }

.section { padding: 34px 0; border-top: 1px solid var(--line); }
.section h3 { margin: 0 0 12px; color: var(--text); font-size: 19px; }
.section p, .section li { font-size: 14px; color: var(--body); }
.section ol { margin: 8px 0 0; padding-left: 20px; }
.section li { margin: 6px 0; }
.muted { color: var(--muted); font-size: 13px; }
.notice {
  margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-size: 13px;
  background: #fffbeb; border: 1px solid rgba(180, 83, 9, .25); color: #8a5a00;
}
.support { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; }

footer { padding: 26px 0 34px; border-top: 1px solid var(--line); }
.foot-line {
  display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between;
  font-size: 12.5px; color: var(--muted);
}
.foot-line a { color: var(--muted); }
.foot-line a:hover { color: var(--text); }
.legal { margin-top: 12px; font-size: 12px; color: rgba(0, 0, 0, .42); }

@media (max-width: 860px) {
  .plans > .plan { max-width: 100%; }
  .hero { padding-top: 38px; }
  .links { gap: 14px; }
  .links a.extra { display: none; }
}
