/* ===== FreeAPI 首页 ===== */

:root[data-theme="dark"]{
  --bg:#14130f;
  --ink:#ece8e1;
  --dim:#a39c90;
  --faint:#6f6a62;
  --accent:#7d94d9;
  --line:#37332e;
  --chip:#1c1b19;
  --chip-line:#3a3630;
  --cta-bg:#ece8e1;
  --cta-ink:#17160f;
  --mark:#7d94d9;
  --mark-ink:#14130f;
}
:root[data-theme="light"]{
  --bg:#f6f4f0;
  --ink:#1c1b19;
  --dim:#5d5a53;
  --faint:#8a8478;
  --accent:#465c9e;
  --line:#dcd6ca;
  --chip:#fffdf9;
  --chip-line:#d8d2c6;
  --cta-bg:#1c1b19;
  --cta-ink:#f6f4f0;
  --mark:#7d94d9;
  --mark-ink:#f6f4f0;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
html{-webkit-text-size-adjust:100%;background:var(--bg);min-height:100%}
body{
  background:var(--bg);
  color:var(--ink);
  font-family:"Google Sans","Product Sans","PingFang SC","Hiragino Sans GB","Noto Sans SC","Microsoft YaHei",-apple-system,BlinkMacSystemFont,system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;
  min-height:100dvh;
  display:flex;
  flex-direction:column;
  transition:background .25s ease,color .25s ease;
  /* 中文回落的字体往往只有 Regular 一档（安卓的 Noto Sans CJK 就是），
     600/700 会被浏览器用「描边加粗」硬合成，笔画密的字（量、疆、赢…）
     会糊成一团黑块。禁止合成，英文数字仍然用我们自带的真字重。 */
  font-synthesis:none;

}
html,body{-webkit-tap-highlight-color:transparent}
a,button{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
button{font:inherit}

/* ---- 顶栏 ---- */
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 18px;
}
.brand{
  display:flex;
  align-items:center;
  gap:9px;
  text-decoration:none;
  color:var(--ink);
}
.brand-mark{width:26px;height:26px;flex:0 0 26px}
.brand-name{
  font-size:21px;
  font-weight:700;
  letter-spacing:-.015em;
}
.brand-name .accent{color:var(--accent)}

.theme-btn{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:50%;
  background:transparent;
  color:var(--dim);
  cursor:pointer;
  transition:color .18s ease,background .18s ease;
}
.theme-btn:hover{color:var(--ink);background:var(--chip)}
.theme-btn svg{width:22px;height:22px}
:root[data-theme="dark"] .icon-moon{display:none}
:root[data-theme="light"] .icon-sun{display:none}

/* ---- 主体 ---- */
.hero{
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:12px 22px 56px;
  max-width:760px;
  margin:0 auto;
  width:100%;
}

h1{
  margin:0 0 30px;
  font-size:clamp(34px,9.2vw,60px);
  line-height:1.14;
  font-weight:700;
  letter-spacing:-.02em;
}
h1 .accent{color:var(--accent)}
h1 .dim{color:var(--ink)}

.lede{
  margin:0 0 22px;
  font-size:clamp(15px,4vw,19px);
  line-height:1.6;
  color:var(--dim);
  max-width:26em;
}

/* ---- 端点 ---- */
.endpoint{
  display:inline-flex;
  align-items:center;
  gap:10px;
  max-width:100%;
  padding:11px 18px;
  border:1px solid var(--chip-line);
  border-radius:999px;
  background:var(--chip);
  color:var(--ink);
  cursor:pointer;
  margin-bottom:26px;
  transition:border-color .18s ease,background .18s ease;
}
.endpoint:hover{border-color:var(--dim)}
.endpoint:active{transform:translateY(1px)}
.endpoint .dot{
  width:7px;height:7px;
  border-radius:50%;
  background:var(--accent);
  flex:0 0 7px;
}
.endpoint code{
  font-family:"Google Sans","Product Sans","PingFang SC","Hiragino Sans GB","Noto Sans SC","Microsoft YaHei",-apple-system,BlinkMacSystemFont,system-ui,sans-serif;
  font-size:13px;
  letter-spacing:-.01em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.endpoint .copy-hint{
  font-size:12px;
  color:var(--faint);
  flex:0 0 auto;
}

/* ---- 按钮 ---- */
.actions{display:flex;gap:12px;flex-wrap:wrap;justify-content:center;width:100%}
.btn-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  height:56px;
  padding:0 34px;
  border-radius:999px;
  background:var(--cta-bg);
  color:var(--cta-ink);
  font-size:17px;
  font-weight:500;
  text-decoration:none;
  transition:transform .12s ease,opacity .18s ease;
}
.btn-cta svg{width:19px;height:19px;transition:transform .2s ease}
.btn-cta:hover{opacity:.92}
.btn-cta:hover svg{transform:translateX(3px)}
.btn-cta:active{transform:translateY(1px)}

@media (max-width:420px){
  .hero{padding-bottom:44px}
  .endpoint{width:100%;justify-content:center}
  .btn-cta{width:100%}
}
@media (prefers-reduced-motion:reduce){
  *{transition:none!important}
}
/* ---------- 落地页页脚 ---------- */
.foot{
  display:flex;
  gap:22px;
  justify-content:center;
  flex-wrap:wrap;
  margin:64px 0 40px;
  font-size:13px;
}
.foot a{color:var(--dim,#8a8478);text-decoration:none}
.foot a:hover{color:var(--ink,#ece8e1)}
.top-link{
  margin-left:auto;
  margin-right:10px;
  font-size:13.5px;
  color:var(--dim,#8a8478);
  text-decoration:none;
}
.top-link:hover{color:var(--ink,#ece8e1)}
