﻿/* ===== 聚器 · 苹果风设计系统 ===== */
:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --line-soft: #e8e8ed;
  --bg: #ffffff;
  --bg-soft: #f5f5f7;          /* 苹果经典灰 */
  --dark: #1d1d1f;
  --brand: #5b5bf0;
  --brand-dark: #4338ca;
  --brand-soft: #ececfe;
  --free: #1aa260;
  --free-soft: #e6f6ee;
  --sub: #b25000;
  --sub-soft: #fbf0e2;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 1px 3px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.05);
  --shadow-lg: 0 18px 50px rgba(0,0,0,.14);
  --container: 1024px;
  --ease: cubic-bezier(.28,.11,.32,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}
::selection { background: rgba(91,91,240,.18); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 22px; }

/* ===== 导航 · 毛玻璃 ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.07);
  transition: background .3s var(--ease);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.logo .mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), #8b5bff);
  display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 700;
  box-shadow: 0 1px 4px rgba(91,91,240,.4);
}
.logo small { color: var(--muted); font-weight: 500; font-size: 12px; margin-left: 1px; letter-spacing: 0; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--ink); font-size: 13px; font-weight: 400; opacity: .82; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
@media (max-width: 820px) { .nav-links { display: none; } }

/* ===== 按钮 · 苹果 pill ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 21px; border-radius: 980px; font-size: 14px; font-weight: 500;
  border: 1px solid transparent; cursor: pointer; transition: all .2s var(--ease); white-space: nowrap; letter-spacing: -0.01em;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(91,91,240,.3); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: #f0f0fe; }
.btn-lg { padding: 13px 30px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 108px 0 92px; text-align: center; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 50% -10%, rgba(91,91,240,.08), transparent),
    linear-gradient(180deg, #fbfbff 0%, #ffffff 60%);
}
.hero .eyebrow { display: inline-block; color: var(--brand); font-size: 14px; font-weight: 600; letter-spacing: .02em; margin-bottom: 16px; }
.hero h1 { font-size: 62px; line-height: 1.06; letter-spacing: -0.028em; font-weight: 700; }
.hero h1 .grad { background: linear-gradient(120deg, var(--brand), #8b5bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { font-size: 21px; color: var(--muted); margin: 22px auto 36px; max-width: 620px; line-height: 1.45; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 60px; justify-content: center; margin-top: 68px; flex-wrap: wrap; }
.hero-stats .stat { text-align: center; }
.hero-stats .stat .n { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; }
.hero-stats .stat .l { font-size: 14px; color: var(--muted); margin-top: 4px; }
@media (max-width: 720px) {
  .hero { padding: 76px 0 60px; }
  .hero h1 { font-size: 40px; }
  .hero p.sub { font-size: 18px; }
  .hero-stats { gap: 34px; margin-top: 44px; }
}

/* ===== 通用 section ===== */
.section { padding: 108px 0; }
.section.soft { background: var(--bg-soft); }
.section.dark { background: var(--dark); color: #fff; }
.section.dark .section-head p { color: #a1a1a6; }
.section.dark .section-head .kicker { color: #a98bff; }
.section-head { text-align: center; margin-bottom: 60px; }
.section-head .kicker { color: var(--brand); font-weight: 600; font-size: 14px; letter-spacing: .04em; }
.section-head h2 { font-size: 42px; font-weight: 700; margin: 10px 0 14px; letter-spacing: -0.022em; line-height: 1.1; }
.section-head p { color: var(--muted); font-size: 19px; max-width: 640px; margin: 0 auto; line-height: 1.45; }
@media (max-width: 720px) { .section { padding: 72px 0; } .section-head { margin-bottom: 42px; } .section-head h2 { font-size: 30px; } .section-head p { font-size: 16px; } }

/* ===== 工具卡片 ===== */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.dense { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .grid.dense { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 920px) { .grid { grid-template-columns: repeat(2, 1fr); } .grid.dense { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid, .grid.cols-2, .grid.dense { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card .top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 24px; font-weight: 700; color: #fff; flex: none;
  transition: transform .35s var(--ease);
}
.card:hover .icon { transform: scale(1.06); }
.card h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.card .cat { font-size: 12px; color: var(--muted); }
.card .desc { color: var(--muted); font-size: 14px; margin: 8px 0 18px; flex: 1; line-height: 1.5; }
.card .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.badge { font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 980px; }
.badge.free { background: var(--free-soft); color: var(--free); }
.badge.sub { background: var(--sub-soft); color: var(--sub); }
.badge.price { background: var(--sub-soft); color: var(--sub); }

.rating { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.rating b { color: var(--ink); }

/* ===== 分成说明块 ===== */
.split-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 820px) { .split-grid { grid-template-columns: 1fr; } }
.split-card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.split-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.split-card .pct { font-size: 50px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.split-card .pct.free-c { color: var(--free); }
.split-card .pct.sub-c { color: var(--sub); }
.split-card .pct.std-c { color: var(--brand); }
.split-card h4 { font-size: 18px; margin: 16px 0 8px; font-weight: 600; }
.split-card p { color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ===== CTA band · 深色高级 ===== */
.cta-band { background: var(--dark); color: #fff; border-radius: var(--radius-lg); padding: 68px 48px; text-align: center; }
.cta-band h2 { font-size: 38px; font-weight: 700; letter-spacing: -0.022em; margin-bottom: 16px; }
.cta-band p { color: #a1a1a6; margin-bottom: 30px; font-size: 18px; line-height: 1.5; }
.section.dark .cta-band { background: #000; }
@media (max-width: 640px) { .cta-band { padding: 48px 26px; } .cta-band h2 { font-size: 28px; } }

/* ===== 表单 ===== */
.form-grid { display: grid; gap: 18px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px;
  font-size: 14px; font-family: inherit; color: var(--ink); background: #fff; transition: border .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(91,91,240,.12); }
.field textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.note { font-size: 13px; color: var(--muted); line-height: 1.5; }
.form-ok { display: none; background: var(--free-soft); color: var(--free); border: 1px solid #bfe6cd; padding: 14px 16px; border-radius: 12px; font-size: 14px; font-weight: 500; }

/* ===== 会员档位 ===== */
.tier { border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 34px; background: #fff; box-shadow: var(--shadow); position: relative; transition: transform .35s var(--ease); }
.tier:hover { transform: translateY(-5px); }
.tier.featured { border-color: var(--brand); box-shadow: 0 14px 44px rgba(91,91,240,.18); }
.tier .tag { position: absolute; top: -12px; left: 28px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 13px; border-radius: 980px; }
.tier h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.tier .price { font-size: 42px; font-weight: 700; margin: 14px 0; letter-spacing: -0.02em; }
.tier .price span { font-size: 14px; font-weight: 400; color: var(--muted); }
.tier ul { list-style: none; margin: 18px 0 26px; }
.tier ul li { padding: 9px 0 9px 28px; position: relative; font-size: 14px; color: #515154; line-height: 1.5; }
.tier ul li::before { content: "✓"; position: absolute; left: 0; color: var(--free); font-weight: 700; }

/* ===== 详情页 ===== */
.detail-hero { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; padding: 72px 0; }
@media (max-width: 820px) { .detail-hero { grid-template-columns: 1fr; } }
.detail-hero .icon-lg { width: 104px; height: 104px; border-radius: 24px; display: grid; place-items: center; font-size: 48px; font-weight: 700; color: #fff; box-shadow: var(--shadow); }
.detail-hero h1 { font-size: 42px; font-weight: 700; margin: 16px 0 10px; letter-spacing: -0.022em; }
.detail-hero .tagline { color: var(--muted); font-size: 19px; margin-bottom: 20px; line-height: 1.45; }
.detail-hero .meta { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin-bottom: 24px; }
.shot { border: 1px solid var(--line-soft); border-radius: 18px; height: 320px; background: linear-gradient(135deg, #f3f3fe, #f7f8fc); display: grid; place-items: center; color: var(--muted); font-size: 14px; }
.feature-list { list-style: none; display: grid; gap: 14px; margin-top: 18px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.feature-list li .dot { width: 24px; height: 24px; border-radius: 7px; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
.pricing-box { border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 26px; background: var(--bg-soft); margin-top: 24px; }
.pricing-box .row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.pricing-box .row:last-child { border-bottom: none; }

/* ===== 筛选条 ===== */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 36px; }
.chip { padding: 9px 18px; border-radius: 980px; border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer; transition: all .18s var(--ease); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.search { flex: 1; min-width: 200px; }
.search input { width: 100%; padding: 11px 18px; border: 1px solid var(--line); border-radius: 980px; font-size: 14px; font-family: inherit; transition: border .15s, box-shadow .15s; }
.search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(91,91,240,.12); }

/* ===== 页脚 ===== */
.footer { border-top: 1px solid var(--line-soft); background: var(--bg-soft); padding: 56px 0 40px; }
.footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 820px) { .footer .cols { grid-template-columns: 1fr 1fr; } }
.footer h5 { font-size: 13px; margin-bottom: 16px; color: var(--ink); font-weight: 600; letter-spacing: .02em; }
.footer a { display: block; color: var(--muted); font-size: 13px; padding: 5px 0; transition: color .15s; }
.footer a:hover { color: var(--brand); }
.footer .bottom { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 12px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; line-height: 1.6; }

/* ===== 滚动渐显 ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ===== 杂项 ===== */
.breadcrumb { color: var(--muted); font-size: 13px; padding: 22px 0 0; }
.breadcrumb a:hover { color: var(--brand); }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { background: var(--brand-soft); color: var(--brand-dark); font-size: 12px; font-weight: 600; padding: 5px 13px; border-radius: 980px; }
.lead { font-size: 19px; color: var(--muted); max-width: 720px; line-height: 1.5; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }

/* ===== 本地账号系统 · 登录/注册弹窗 + 用户菜单 ===== */
.auth-mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.42);
  display: grid; place-items: center;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: authFade .2s var(--ease);
}
.auth-mask[hidden] { display: none; }
@keyframes authFade { from { opacity: 0; } to { opacity: 1; } }
.auth-card {
  position: relative; width: 380px; max-width: calc(100vw - 36px);
  background: #fff; border-radius: var(--radius-lg);
  padding: 34px 32px 26px; box-shadow: var(--shadow-lg);
  animation: authPop .26s var(--ease);
}
@keyframes authPop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.auth-x { position: absolute; top: 14px; right: 16px; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; }
.auth-x:hover { color: var(--ink); }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.auth-tab { flex: 1; padding: 10px 0; border: 1px solid var(--line); background: #fff; border-radius: 980px; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; transition: all .15s; }
.auth-tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.auth-field { display: block; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.auth-field input { width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 15px; font-family: inherit; transition: border .15s, box-shadow .15s; }
.auth-field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(91,91,240,.12); }
.auth-msg { font-size: 13px; min-height: 18px; margin: 2px 0 12px; color: var(--muted); }
.auth-msg.ok { color: var(--free); }
.auth-msg.err { color: #d23b3b; }
.auth-note { font-size: 12px; color: var(--muted); margin-top: 14px; line-height: 1.5; opacity: .8; }

.auth-usermenu {
  position: fixed; z-index: 100; min-width: 200px;
  background: #fff; border: 1px solid var(--line-soft); border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 12px; animation: authPop .16s var(--ease);
}
.au-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.au-head b { font-size: 15px; }
.au-head span { font-size: 11px; color: var(--brand); background: var(--brand-soft); padding: 3px 9px; border-radius: 980px; font-weight: 600; }
.au-mail { font-size: 12px; color: var(--muted); margin: 4px 0 10px; word-break: break-all; }
.au-item { display: block; width: 100%; text-align: left; padding: 9px 10px; border: 0; background: none; border-radius: 10px; font-size: 14px; color: var(--ink); cursor: pointer; }
.au-item:hover { background: var(--bg-soft); }
#tier-badge { font-size: 12px; color: var(--brand); background: var(--brand-soft); padding: 3px 10px; border-radius: 980px; font-weight: 600; }

/* ===== GitHub 工具 · 下载方式 / 使用方式 说明书 ===== */
.use-block { margin-top: 56px; padding-top: 48px; border-top: 1px solid var(--line-soft); }
.use-title { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 18px; }
.use-title:not(:first-child) { margin-top: 38px; }
.code-wrap { position: relative; }
.copy-btn {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  font-size: 12px; font-weight: 600; color: var(--brand-dark);
  background: var(--bg); border: 1px solid var(--line); border-radius: 980px;
  padding: 6px 14px; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.copy-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.codeblock {
  background: #1d1d1f; color: #f5f5f7; border-radius: var(--radius);
  padding: 26px 22px; font: 13.5px/1.7 "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  overflow-x: auto; white-space: pre; letter-spacing: 0; margin: 0;
}
.steps { list-style: none; display: grid; gap: 14px; counter-reset: step; }
.steps li { display: flex; gap: 14px; align-items: flex-start; background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: 14px; padding: 14px 18px; font-size: 15px; line-height: 1.6; }
.step-num { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; margin-top: 1px; }
.gh-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin-top: 30px; color: var(--muted); font-size: 14px; }
.gh-meta b { color: var(--ink); }
.gh-link { color: var(--brand-dark); font-weight: 600; }
.gh-link:hover { text-decoration: underline; }
.pill.gh { background: #1d1d1f; color: #fff; }
.orig { margin-top: 24px; border: 1px solid var(--line-soft); border-radius: 14px; padding: 4px 16px; background: var(--bg-soft); }
.orig summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--muted); padding: 10px 0; }
.orig p { color: var(--muted); font-size: 14.5px; line-height: 1.6; padding: 0 0 14px; }
