/* ============ 设计变量 ============ */
:root{
  --bg:#fbfbfc;
  --surface:#ffffff;
  --surface-2:#f4f5f7;
  --text:#16181d;
  --muted:#707784;
  --line:rgba(20,22,28,.09);
  --nav-bg:rgba(251,251,252,.72);
  --accent:#f5b301;
  --accent-soft:rgba(245,179,1,.13);
  --shadow-1:0 1px 2px rgba(16,18,24,.04), 0 10px 30px -18px rgba(16,18,24,.25);
  --shadow-2:0 2px 4px rgba(16,18,24,.04), 0 34px 64px -32px rgba(16,18,24,.32);
  --maxw:1080px;
  --ease:cubic-bezier(.2,.8,.2,1);
}
@media (prefers-color-scheme: dark){
  :root{
    --bg:#0b0c0f;
    --surface:#14161a;
    --surface-2:#1b1e23;
    --text:#f3f4f6;
    --muted:#9ba2ae;
    --line:rgba(255,255,255,.09);
    --nav-bg:rgba(11,12,15,.72);
    --shadow-1:0 1px 2px rgba(0,0,0,.5), 0 10px 30px -18px rgba(0,0,0,.75);
    --shadow-2:0 2px 4px rgba(0,0,0,.5), 0 34px 64px -32px rgba(0,0,0,.85);
  }
}

/* ============ 基础 ============ */
*{box-sizing:border-box;margin:0;padding:0}
html{
  scroll-behavior:smooth;
  scroll-padding-top:92px;
  -webkit-text-size-adjust:100%;
}

body{
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","PingFang SC",
              "Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
  position:relative;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:
    radial-gradient(680px 420px at 50% -8%, rgba(245,179,1,.11), transparent 68%),
    radial-gradient(760px 520px at 92% 6%, rgba(120,132,168,.07), transparent 70%);
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
::selection{background:var(--accent-soft);color:var(--text)}

.wrap{width:100%;max-width:var(--maxw);margin:0 auto;padding:0 24px;position:relative;z-index:1}

/* ============ 导航 ============ */
.nav{
  position:sticky;top:0;z-index:80;
  background:var(--nav-bg);
  -webkit-backdrop-filter:saturate(180%) blur(20px);
  backdrop-filter:saturate(180%) blur(20px);
  border-bottom:1px solid transparent;
  transition:border-color .35s var(--ease);
}
.nav.scrolled{border-bottom-color:var(--line)}
.nav-inner{
  height:64px;
  display:flex;align-items:center;justify-content:space-between;gap:16px;
}
.brand{display:flex;align-items:center;gap:10px;font-weight:700;font-size:16px;letter-spacing:-.01em}
.brand img{width:28px;height:28px;border-radius:8px;box-shadow:0 2px 8px rgba(16,18,24,.14)}
.nav-links{display:flex;align-items:center;gap:4px}
.nav-links a{
  font-size:14px;color:var(--muted);font-weight:500;
  padding:8px 14px;border-radius:999px;
  transition:color .25s var(--ease), background .25s var(--ease);
}
.nav-links a:hover{color:var(--text);background:var(--surface-2)}
@media (max-width:640px){ .nav-links a{padding:8px 10px;font-size:13px} .brand span{display:none} }

/* ============ Hero ============ */
.hero{
  padding:92px 24px 76px;
  text-align:center;
}
.hero-icon{
  width:108px;height:108px;
  margin:0 auto 34px;
  border-radius:26px;
  position:relative;
  animation:float 6s ease-in-out infinite;
}
.hero-icon img,
.icon-fallback{
  width:100%;height:100%;
  border-radius:26px;
  background:var(--surface);
  object-fit:cover;
  box-shadow:
    0 22px 44px -22px rgba(16,18,24,.42),
    0 0 0 1px var(--line);
}
.icon-fallback{
  display:none;
  place-items:center;
  font-size:40px;font-weight:700;letter-spacing:-.04em;
  color:#8b909c;
}
@keyframes float{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-11px)}
}

.hero h1{
  font-size:clamp(2.6rem,7.5vw,4.1rem);
  line-height:1.08;
  letter-spacing:-.035em;
  font-weight:700;
  margin-bottom:20px;
}
.hero .slogan{
  font-size:clamp(1.05rem,2.6vw,1.32rem);
  color:var(--text);
  font-weight:500;
  letter-spacing:-.01em;
  margin-bottom:14px;
  opacity:.92;
}
.hero .sub{
  font-size:clamp(.94rem,2.2vw,1.03rem);
  color:var(--muted);
  max-width:36rem;
  margin:0 auto 38px;
  line-height:1.8;
}

/* 按钮 */
.btn-row{display:flex;flex-wrap:wrap;gap:12px;justify-content:center}
.btn{
  display:inline-flex;align-items:center;gap:9px;
  padding:14px 28px;
  border-radius:999px;
  font-size:15px;font-weight:600;
  border:1px solid transparent;
  cursor:pointer;
  white-space:nowrap;
  transition:transform .3s var(--ease), box-shadow .3s var(--ease),
             background .3s var(--ease), border-color .3s var(--ease), opacity .3s;
}
.btn svg{width:17px;height:17px;flex:none}
.btn-primary{
  background:var(--text);
  color:var(--bg);
  box-shadow:0 10px 26px -12px rgba(16,18,24,.6);
}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 18px 34px -14px rgba(16,18,24,.6)}
.btn-primary:active{transform:translateY(0)}
.btn-ghost{
  background:transparent;
  color:var(--text);
  border-color:var(--line);
}
.btn-ghost:hover{transform:translateY(-2px);background:var(--surface);box-shadow:var(--shadow-1)}
.btn-disabled{
  background:var(--surface-2);
  color:var(--muted);
  border-color:var(--line);
  cursor:default;
  font-weight:500;
}

/* 数据条 */
.stats{
  display:flex;flex-wrap:wrap;justify-content:center;
  gap:0;
  margin-top:64px;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:26px 0;
}
.stat{
  flex:1 1 140px;
  min-width:120px;
  padding:6px 20px;
  position:relative;
}
.stat + .stat::before{
  content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);
  width:1px;height:26px;background:var(--line);
}
.stat strong{
  display:block;
  font-size:19px;font-weight:700;
  letter-spacing:-.02em;
  margin-bottom:2px;
}
.stat span{font-size:12.5px;color:var(--muted);letter-spacing:.01em}
@media (max-width:520px){
  .stat + .stat::before{display:none}
  .stat{flex:1 1 50%;padding:12px 8px}
}

/* ============ 通用 Section ============ */
.section{padding:88px 24px}
.section-head{text-align:center;margin-bottom:52px}
.section-head h2{
  font-size:clamp(1.6rem,4vw,2.15rem);
  letter-spacing:-.03em;
  font-weight:700;
  margin-bottom:12px;
}
.section-head p{
  color:var(--muted);
  font-size:.98rem;
  max-width:32rem;margin:0 auto;
  line-height:1.8;
}

/* ============ 特性 ============ */
.features{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(222px,1fr));
  gap:18px;
}
.card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:22px;
  padding:28px 24px 30px;
  box-shadow:var(--shadow-1);
  transition:transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.card:hover{
  transform:translateY(-5px);
  box-shadow:var(--shadow-2);
  border-color:transparent;
}
.card .ico{
  width:40px;height:40px;
  border-radius:13px;
  display:grid;place-items:center;
  background:var(--accent-soft);
  color:var(--accent);
  margin-bottom:18px;
}
.card .ico svg{width:20px;height:20px}
.card h3{
  font-size:1.02rem;
  font-weight:650;
  letter-spacing:-.01em;
  margin-bottom:8px;
}
.card p{
  font-size:.88rem;
  color:var(--muted);
  line-height:1.75;
}

/* ============ 下载 ============ */
.dl-grid{
  display:grid;
  /* v2.14.2: 新增「安卓兼容版」后共 4 张卡，3 列会剩一张单独成行，改 2×2 更均衡 */
  grid-template-columns:repeat(2, minmax(0, 1fr));
  justify-content:center;
  gap:18px;
}
@media (max-width: 980px){
  .dl-grid{ grid-template-columns:minmax(0, 480px); }
}
.plat-ico{ vertical-align:middle; margin-right:2px; }
.stats-note{
  margin:10px auto 0; text-align:center; font-size:12px; color:var(--text-dim, #8A9099);
}
.dl-card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:24px;
  padding:34px 30px 32px;
  box-shadow:var(--shadow-1);
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  transition:transform .4s var(--ease), box-shadow .4s var(--ease);
}
.dl-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-2)}
.dl-card .plat{
  display:flex;align-items:center;gap:12px;
  margin-bottom:16px;
}
.dl-card .plat svg{width:26px;height:26px}
.dl-card h3{font-size:1.15rem;font-weight:680;letter-spacing:-.015em}
.dl-card p{
  font-size:.87rem;color:var(--muted);
  line-height:1.7;
  margin-bottom:26px;
}
.dl-card .btn{margin-top:auto}
.dl-meta{
  font-size:12.5px;
  color:var(--muted);
  margin-top:14px;
  letter-spacing:.01em;
}

/* ============ 更新日志 ============ */
.timeline{
  position:relative;
  padding-left:34px;
  max-width:760px;
  margin:0 auto;
}
.timeline::before{
  content:"";
  position:absolute;
  left:7px;top:10px;bottom:10px;
  width:1px;
  background:linear-gradient(to bottom, var(--line) 0%, var(--line) 78%, transparent 100%);
}
.log-item{position:relative;padding-bottom:42px}
.log-item:last-child{padding-bottom:0}
.log-item::before{
  content:"";
  position:absolute;
  left:-34px;top:7px;
  width:15px;height:15px;
  border-radius:50%;
  background:var(--bg);
  border:1px solid var(--line);
  transition:all .4s var(--ease);
}
.log-item.is-latest::before{
  background:var(--accent);
  border-color:var(--accent);
  box-shadow:0 0 0 5px var(--accent-soft);
}
.log-head{
  display:flex;align-items:center;flex-wrap:wrap;gap:10px;
  margin-bottom:14px;
}
.log-version{
  font-size:1.02rem;
  font-weight:700;
  letter-spacing:-.015em;
}
.badge{
  font-size:11px;
  font-weight:600;
  letter-spacing:.02em;
  padding:3px 9px;
  border-radius:999px;
  background:var(--accent-soft);
  color:#b07c00;
}
@media (prefers-color-scheme: dark){
  .badge{color:var(--accent)}
}
/* v2.10.2: 更新日志标注「制作本版本的 AI」，历史版本统一显示 AI */
.log-by{
  font-size:11.5px;font-weight:600;letter-spacing:.01em;
  padding:2px 8px;border-radius:999px;
  color:var(--muted);
  background:rgba(127,127,127,.14);
  white-space:nowrap;
}
.log-date{
  font-size:12.5px;
  color:var(--muted);
  font-variant-numeric:tabular-nums;
  margin-left:auto;
  white-space:nowrap;
}
.log-items{list-style:none;display:grid;gap:9px}
.log-items li{
  position:relative;
  padding-left:18px;
  font-size:.9rem;
  color:var(--muted);
  line-height:1.75;
}
.log-items li::before{
  content:"";
  position:absolute;
  left:2px;top:.72em;
  width:5px;height:5px;
  border-radius:50%;
  background:var(--line);
  border:1px solid var(--muted);
  opacity:.5;
}
.empty-log{
  text-align:center;
  color:var(--muted);
  font-size:.9rem;
  padding:32px 0;
}

/* ============ 页脚 ============ */
footer{
  border-top:1px solid var(--line);
  padding:44px 0 56px;
  margin-top:24px;
}
.foot-inner{
  display:flex;flex-direction:column;align-items:center;gap:14px;
  text-align:center;
}
.foot-inner img{
  width:34px;height:34px;border-radius:10px;
  box-shadow:0 4px 14px rgba(16,18,24,.14);
  opacity:.95;
}
.foot-inner p{
  font-size:13px;
  color:var(--muted);
  letter-spacing:.01em;
}
.ai-note{
  margin-top:4px;
  font-size:12px;
  color:var(--muted);
  opacity:.7;
  letter-spacing:.02em;
}

/* ============ 入场动画 ============ */
.reveal{
  opacity:0;
  transform:translateY(20px);
  transition:opacity .75s var(--ease), transform .75s var(--ease);
}
.reveal.in{opacity:1;transform:none}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  .reveal{opacity:1;transform:none;transition:none}
  .hero-icon{animation:none}
  *{transition-duration:.01ms !important;animation-duration:.01ms !important}
}

/* ============ 兼容模式提示条 ============ */
.compat-bar{
  text-align:center;
  font-size:13px;
  color:var(--muted);
  padding:10px 16px;
  border-bottom:1px solid var(--line);
  background:var(--surface-2);
}
.compat-bar a{color:var(--text);font-weight:600;text-decoration:underline}
.compat-entry{
  font-size:12px;
  color:var(--muted);
  opacity:.75;
  text-decoration:underline;
}
.compat-entry:hover{opacity:1}

/* ============ CSS 加载探测（不参与视觉，仅供 JS 判定） ============ */
#lc-probe{position:absolute;left:-9999px;top:0;width:1px;height:1px;color:rgb(245,179,1)}

/* ============ 更新日志分类 ============ */
.log-cat{margin:10px 0}
.log-cat h4{
  font-size:12px;font-weight:600;color:var(--muted);
  letter-spacing:.02em;margin-bottom:6px;
}
.log-dl{
  margin-top:12px;display:flex;flex-wrap:wrap;gap:8px;
}
.dl-link{
  font-size:12.5px;color:var(--text);
  border:1px solid var(--line);border-radius:999px;
  padding:5px 12px;background:var(--surface);
  transition:color .25s var(--ease), border-color .25s var(--ease);
}
.dl-link:hover{border-color:transparent;box-shadow:var(--shadow-1)}

/* ============ 在线对话入口卡片 ============ */
.chat-entry{
  max-width:520px;margin:0 auto;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:24px;
  padding:30px 30px 28px;
  box-shadow:var(--shadow-1);
  text-align:center;
}
.chat-entry .ico-big{
  width:50px;height:50px;margin:0 auto 16px;
  border-radius:16px;display:grid;place-items:center;
  background:var(--accent-soft);color:var(--accent);
}
.chat-entry .ico-big svg{width:26px;height:26px}
.chat-entry h3{font-size:1.12rem;font-weight:680;letter-spacing:-.015em;margin-bottom:8px}
.chat-entry p{font-size:.88rem;color:var(--muted);line-height:1.75;margin-bottom:22px}
.chat-entry .btn{margin:0 auto}

/* v0.1.1: 更新日志双 tab（安卓版 / 电脑版） */
.log-tabs{
  display:flex; gap:8px; justify-content:center;
  margin:0 0 22px;
}
.log-tab{
  appearance:none; border:1px solid var(--border, #E2E5EA);
  background:var(--surface, #fff); color:var(--text, #1F2328);
  padding:8px 20px; border-radius:999px; font-size:14px; cursor:pointer;
  transition:all .15s ease;
}
.log-tab:hover{ border-color:var(--primary, #2F6FED); color:var(--primary, #2F6FED); }
.log-tab.is-active{
  background:var(--primary, #2F6FED); border-color:var(--primary, #2F6FED); color:#fff;
}

/* ============================================================
   v2.1.0: 窄屏导航兜底
   ≤420px（iPhone 375/390）时 5 个中文链接会溢出，而 body 是
   overflow-x:hidden —— 超出的「更新日志」直接被裁掉且无法滚动补看。
   这里让链接区域横向可滑，同时收紧间距，尽量一屏放下。
   ============================================================ */
@media (max-width:520px){
  .nav-inner{gap:10px}
  .nav-links{gap:2px;overflow-x:auto;-webkit-overflow-scrolling:touch;
             scrollbar-width:none;max-width:calc(100vw - 72px)}
  .nav-links::-webkit-scrollbar{display:none}
  .nav-links a{padding:7px 8px;font-size:13px;white-space:nowrap}
}
@media (max-width:380px){
  .nav-links a{padding:7px 6px;font-size:12px}
}

/* v2.1.1: 更新日志「展开全部」按钮
   必须放在 .timeline 外面（它有 34px 左内边距和左侧渐变竖线），所以这里独立居中。 */
.log-more{
  display:block;margin:18px auto 0;padding:9px 20px;
  font-size:14px;color:var(--text);cursor:pointer;
  background:transparent;border:1px solid var(--line);border-radius:999px;
  transition:background .15s ease,border-color .15s ease
}
.log-more:hover{background:var(--surface-2);border-color:var(--line-2,var(--line))}
/* v2.14.2: .log-more 设了 display:block，会盖掉 UA 的 [hidden]{display:none}，
   导致版本数不足 6 条时「展开全部 N 个版本」仍然显示（安卓兼容版只有 1 条时暴露）。 */
.log-more[hidden]{display:none}

/* ============================================================
   v2.1.6: 状态页组件横条图（Statuspage 风格）
   ============================================================ */
.st-comps{display:flex;flex-direction:column;gap:18px}
.st-comp-head{display:flex;align-items:center;gap:8px;margin-bottom:8px;font-size:.9rem}
.st-dot{width:9px;height:9px;border-radius:50%;flex:0 0 auto;background:#c9ced6}
.st-dot.st-ok{background:#00c878}.st-dot.st-deg{background:#f5b301}.st-dot.st-fail{background:#e5564d}
.st-comp-name{font-weight:600;color:var(--text)}
.st-comp-up{margin-left:auto;font-size:12.5px;color:var(--muted);font-variant-numeric:tabular-nums}
.st-comp-up.st-fail{color:#e5564d}
/* v2.6.0: 一天 2 根（0-12 / 12-24）+ 横向滚动。
   ⚠️ 必须定宽 flex:0 0 13px —— 原来的 flex:1 1 0 会把 62 根压成 2px，
      overflow-x 永远不触发，看起来像"横滚没生效"。
      12px = 内容高 24px 的 1/2（box-sizing:border-box，26 减 padding 2）。 */
.st-bars{display:flex;gap:2px;height:26px;align-items:stretch;
  overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;
  scrollbar-width:thin;padding-bottom:2px}
.st-bars .bs{flex:0 0 12px;width:12px;min-width:12px;max-width:12px;height:100%;
  border-radius:3px;background:#e3e6ea;transition:opacity .12s}
/* 每 2 根 = 1 天，跨天留 4px 缝 */
.st-bars .bs:nth-child(2n){margin-right:4px}
.st-bars .bs:hover{opacity:.62}
.st-bars .bs.s0{background:rgba(20,22,28,.10)}
.st-bars .bs.s1{background:#00c878}
.st-bars .bs.s2{background:#f5b301}
.st-bars .bs.s3{background:#e5564d}
.lg{display:inline-block;width:10px;height:10px;border-radius:3px;vertical-align:-1px;margin:0 4px 0 8px}
.lg.s0{background:rgba(20,22,28,.10)}.lg.s1{background:#00c878}
.lg.s2{background:#f5b301}.lg.s3{background:#e5564d}
@media (prefers-color-scheme: dark){
  .st-bars .bs.s0{background:rgba(255,255,255,.13)}
  .lg.s0{background:rgba(255,255,255,.13)}
}

/* ============================================================
   v2.6.0: 首页电脑版严格「一屏一切分」
   仅 pointer:fine（有精确指针的桌面设备）启用 100vh 吸附，
   移动端保持原生滚动。整页滚轮吸附 JS 已按 section 真实高度吸附，
   超高区块（如更新日志）会自动放行屏内原生滚动。
   ============================================================ */
@media (pointer: fine) and (min-width: 768px){
  section.hero, section.section{
    min-height:100vh;
    display:flex;
    flex-direction:column;
    justify-content:center;
  }
}

/* 了解特性：桌面固定三列（2×3），窄屏自适应回退 */
@media (min-width: 768px){
  .features{grid-template-columns:repeat(3,1fr)}
}

/* API 平台入口：仅桌面（pointer:fine 且 ≥768px）显示 */
.api-only{display:none}
@media (pointer: fine) and (min-width: 768px){
  .api-only{display:inline-flex}
}

/* 免费卖点徽标（首屏按钮区下方） */
.free-badge{
  align-self:center;
  margin:28px auto 0;
  text-align:center;
  font-size:.95rem;
  font-weight:600;
  letter-spacing:.01em;
  color:var(--text);
  background:var(--accent-soft);
  border:1px solid rgba(245,179,1,.35);
  border-radius:999px;
  padding:9px 20px;
  display:inline-block;
  width:auto;
}

/* ============================================================
   v2.7.2: 矮窗口适配 —— 首屏必须一屏装得下
   之前 hero 固定 padding 92/76 + 108px 图标，整块高 894px；
   在 1080×590 这类小窗口里一屏放不完，看起来就像「被裁掉」。
   这里按视口高度收一档间距与字号，保证 100vh 能装下。
   ============================================================ */
@media (max-height: 900px){
  .hero{padding:84px 24px 32px}
  .hero-icon{width:88px;height:88px;margin-bottom:24px;border-radius:22px}
  .hero h1{margin-bottom:14px}
  .hero .slogan{margin-bottom:10px}
  .hero .sub{margin:0 auto 28px;line-height:1.72}
  .btn{padding:12px 24px;font-size:14.5px}
  .stats{margin-top:42px;padding:20px 0}
  .free-badge{margin-top:20px}
  .section{padding:84px 24px 32px}
  .section-head{margin-bottom:36px}
}
@media (max-height: 700px){
  .hero{padding:74px 24px 14px}
  .hero-icon{width:62px;height:62px;margin-bottom:12px;border-radius:16px}
  .hero h1{font-size:clamp(2rem,4.4vw,2.8rem);margin-bottom:8px}
  .hero .slogan{font-size:1rem;margin-bottom:8px}
  .hero .sub{margin:0 auto 16px;line-height:1.6;font-size:.92rem}
  .btn{padding:10px 20px;font-size:14px}
  .stats{margin-top:20px;padding:14px 0}
  .stat strong{font-size:17px}
  .free-badge{margin-top:12px}
  .section{padding:78px 24px 20px}
  .section-head{margin-bottom:26px}
  .section-head h2{font-size:clamp(1.4rem,3.2vw,1.8rem)}
}

/* v2.7.2: 矮窗口下把 6 张特性卡也压进一屏（原本 649px > 590px 会被截） */
@media (max-height: 760px){
  .features{gap:14px}
  .card{padding:22px 20px 24px;border-radius:18px}
  .card .ico{width:36px;height:36px;border-radius:11px;margin-bottom:14px}
  .card h3{font-size:1rem;margin-bottom:6px}
  .card p{font-size:.86rem;line-height:1.68}
}
