/* ==========================================================================
   roroto · 设计系统 core
   深空蓝底 + 品牌青蓝 / 金色点缀
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #05080f;
  --bg-2: #080d17;
  --surface: #0a1120;
  --surface-2: #0d1729;
  --surface-3: #111e33;

  --line: rgba(148, 177, 255, .10);
  --line-2: rgba(148, 177, 255, .19);
  --line-3: rgba(148, 177, 255, .32);

  --text: #eef3fb;
  --muted: #97a6c0;
  --dim: #61708b;

  --cyan: #2ea8da;
  --cyan-2: #6fd4f7;
  --blue: #4f7df3;
  --gold: #f6c445;
  --violet: #9d8bf5;
  --ok: #35d39a;
  --warn: #f5b544;
  --danger: #ff7d7d;

  --brand: var(--cyan);
  --brand-hi: var(--cyan-2);
  --brand-soft: rgba(46, 168, 218, .13);

  --grad: linear-gradient(135deg, #7ee0ff 0%, #2ea8da 45%, #3f78ef 100%);
  --grad-gold: linear-gradient(135deg, #ffdd80 0%, #f6c445 55%, #dfa22a 100%);
  --grad-text: linear-gradient(100deg, #e9f5ff 0%, #9ee0ff 38%, #45c2ee 68%, #6fa9f6 100%);

  --r: 20px;
  --r-md: 14px;
  --r-sm: 10px;

  --hd: 64px;
  --wrap: 1200px;

  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 40px -26px rgba(0, 0, 0, .9);
  --shadow-lift: 0 26px 60px -30px rgba(0, 0, 0, .95);

  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hd) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  isolation: isolate;
}

/* 背景：细网格 + 顶部光晕（纯 CSS，无图片请求） */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(1100px 620px at 50% -14%, rgba(46, 168, 218, .16), transparent 62%),
    radial-gradient(760px 480px at 92% -6%, rgba(246, 196, 69, .07), transparent 60%),
    radial-gradient(900px 700px at 6% 4%, rgba(79, 125, 243, .10), transparent 62%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(148, 177, 255, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 177, 255, .045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 120% 78% at 50% 0%, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 78%);
  mask-image: radial-gradient(ellipse 120% 78% at 50% 0%, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 78%);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; font-size: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font-family: inherit; font-size: 16px; }
img { max-width: 100%; }
::selection { background: rgba(46, 168, 218, .34); color: #fff; }

:focus-visible { outline: 2px solid var(--cyan-2); outline-offset: 2px; border-radius: 6px; }

/* 滚动条 */
@supports (scrollbar-width: thin) {
  html { scrollbar-width: thin; scrollbar-color: rgba(148, 177, 255, .22) transparent; }
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(148, 177, 255, .18);
  border-radius: 99px;
  border: 3px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(148, 177, 255, .34); background-clip: content-box; }

/* ==========================================================================
   顶栏
   ========================================================================== */
.hd {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--hd);
  background: rgba(5, 8, 15, .72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.hd.scrolled { background: rgba(5, 8, 15, .9); box-shadow: 0 10px 30px -22px #000; }
.hd.scrolled { background: rgba(5, 8, 15, .9); box-shadow: 0 10px 30px -22px #000; }
.hd::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46, 168, 218, .5) 18%, rgba(246, 196, 69, .34) 52%, transparent 88%);
  opacity: .55;
}
.hd-in {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; padding: 4px 2px; }
.brand-mk {
  width: 32px; height: 32px;
  display: block;
  filter: drop-shadow(0 0 12px rgba(46, 168, 218, .45));
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), filter .35s;
}
.brand:hover .brand-mk { transform: rotate(-6deg) scale(1.06); filter: drop-shadow(0 0 18px rgba(111, 212, 247, .6)); }
.brand-tx {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.005em;
  background: linear-gradient(180deg, #fff, #c6d8f0);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.nav { display: flex; align-items: center; gap: 2px; margin-left: 14px; }
.nav a {
  position: relative;
  font-size: 13.5px;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 9px;
  transition: color .18s, background .18s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .26s cubic-bezier(.2, .8, .2, 1);
  opacity: .9;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .045); }
.nav a:hover::after, .nav a.on::after { transform: scaleX(1); }
.nav a.on { color: var(--text); }

.hd-sp { flex: 1; }

.srch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 10px 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, .035);
  color: var(--dim);
  font-size: 13px;
  transition: border-color .18s, background .18s, color .18s;
}
.srch-btn:hover { border-color: var(--line-2); background: rgba(255, 255, 255, .06); color: var(--muted); }
.srch-btn svg { flex: none; }
.srch-btn kbd {
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1;
  padding: 4px 5px;
  border-radius: 5px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .04);
  color: var(--dim);
}

.pill-local {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 11px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 500;
  color: #7fe3c0;
  background: rgba(53, 211, 154, .09);
  border: 1px solid rgba(53, 211, 154, .24);
  white-space: nowrap;
}
.pill-local i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(53, 211, 154, .55);
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(53, 211, 154, .5); }
  70% { box-shadow: 0 0 0 7px rgba(53, 211, 154, 0); }
  100% { box-shadow: 0 0 0 0 rgba(53, 211, 154, 0); }
}

.menu-btn {
  display: none;
  width: 38px; height: 38px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .035);
  place-items: center;
  color: var(--text);
}

/* 移动端抽屉 */
.drawer-mask {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(3, 6, 12, .68);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .26s;
}
.drawer-mask.on { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 81;
  width: min(320px, 84vw);
  padding: 18px 18px calc(24px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #0a1322, #060a13);
  border-left: 1px solid var(--line);
  transform: translateX(102%);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
  display: flex; flex-direction: column; gap: 6px;
  overflow-y: auto;
}
.drawer.on { transform: none; }
.drawer-hd { display: flex; align-items: center; gap: 10px; padding: 4px 4px 14px; }
.drawer-hd .brand-mk { width: 30px; height: 30px; }
.drawer-hd b { font-size: 16px; font-weight: 600; }
.drawer-close { margin-left: auto; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); }
.drawer-lb { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); padding: 14px 6px 6px; }
.drawer a.dl-item {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 12px; border-radius: 12px;
  font-size: 14.5px; color: var(--text);
  border: 1px solid transparent;
}
.drawer a.dl-item:hover { background: rgba(255, 255, 255, .05); border-color: var(--line); }
.drawer a.dl-item span.ct { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--dim); }
.drawer .dl-note { margin-top: auto; padding: 16px 6px 0; font-size: 11.5px; color: var(--dim); line-height: 1.7; }
body.lock { overflow: hidden; }

/* ==========================================================================
   布局
   ========================================================================== */
main { flex: 1; width: 100%; position: relative; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 800px; }

/* ==========================================================================
   首页 Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: clamp(46px, 7vw, 82px) 0 clamp(30px, 4vw, 46px);
  overflow: hidden;
}
.hero-in { position: relative; z-index: 1; text-align: center; max-width: 880px; margin: 0 auto; }
.hero-orb {
  position: absolute; left: 50%; top: -120px;
  width: 720px; height: 460px;
  transform: translateX(-50%);
  pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at center, rgba(46,168,218,.22), rgba(79,125,243,.10) 45%, transparent 70%);
  filter: blur(30px);
  animation: orb 16s ease-in-out infinite alternate;
}
.hero-orb.g2 {
  left: 82%; top: -60px; width: 380px; height: 300px;
  background: radial-gradient(ellipse at center, rgba(246,196,69,.16), transparent 68%);
  animation: orb2 20s ease-in-out infinite alternate;
}
@keyframes orb { from { transform: translate(-50%, 0) scale(1); } to { transform: translate(-46%, 22px) scale(1.08); } }
@keyframes orb2 { from { transform: translate(0, 0); } to { transform: translate(-40px, 30px); } }

/* 主按钮的光带 */
.btn-p { position: relative; overflow: hidden; }
.btn-p::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.42), transparent);
  transform: skewX(-18deg);
  opacity: 0;
}
.btn-p:hover::after { animation: shine .7s ease; }
@keyframes shine { 0% { opacity: 1; left: -60%; } 100% { opacity: 0; left: 120%; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  height: 32px; padding: 0 8px 0 10px;
  border-radius: 99px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  font-size: 12px; color: var(--muted);
  box-shadow: 0 0 0 1px rgba(5, 8, 15, .6), 0 10px 30px -18px rgba(110, 212, 247, .8);
  animation: rise .7s cubic-bezier(.2, .8, .2, 1) both;
}
.eyebrow b { color: var(--cyan-2); font-weight: 600; }
.eyebrow .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px rgba(246, 196, 69, .9); }
.eyebrow .sep { width: 1px; height: 12px; background: var(--line-2); }
.eyebrow .mono { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; color: var(--dim); text-transform: uppercase; }

.hero h1 {
  margin: 22px 0 0;
  font-size: clamp(34px, 6.2vw, 62px);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -.035em;
  animation: rise .8s .06s cubic-bezier(.2, .8, .2, 1) both;
}
.hero h1 .gr {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-right: .06em;
}
.hero h1 .ln { display: block; }
.hero .lede {
  margin: 20px auto 0;
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(14px, 1.9vw, 16.5px);
  line-height: 1.8;
  animation: rise .8s .12s cubic-bezier(.2, .8, .2, 1) both;
}
.hero .lede b { color: var(--text); font-weight: 600; }

.hero-search {
  position: relative;
  max-width: 560px;
  margin: 30px auto 0;
  animation: rise .8s .18s cubic-bezier(.2, .8, .2, 1) both;
}
.hero-search button.hs-box {
  width: 100%;
  height: 54px;
  display: flex; align-items: center; gap: 12px;
  padding: 0 12px 0 18px;
  border-radius: 15px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018));
  color: var(--dim);
  font-size: 14.5px;
  text-align: left;
  box-shadow: 0 20px 44px -34px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.hero-search button.hs-box:hover {
  border-color: rgba(111, 212, 247, .45);
  background: linear-gradient(180deg, rgba(46, 168, 218, .1), rgba(255, 255, 255, .02));
  box-shadow: 0 0 0 4px rgba(46, 168, 218, .1), 0 24px 50px -34px rgba(46, 168, 218, .9);
}
.hero-search svg { color: var(--cyan-2); flex: none; }
.hero-search .hs-tx { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-search .hs-tx { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-search kbd {
  margin-left: auto;
  font-family: var(--mono); font-size: 11px; line-height: 1;
  padding: 6px 7px; border-radius: 6px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .05);
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 720px;
  margin: 34px auto 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .008));
  overflow: hidden;
  animation: rise .8s .24s cubic-bezier(.2, .8, .2, 1) both;
}
.stat-i { padding: 14px 8px 15px; text-align: center; border-left: 1px solid var(--line); }
.stat-i:first-child { border-left: 0; }
.stat-i b {
  display: block;
  font-family: var(--mono);
  font-size: clamp(21px, 2.9vw, 27px);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff, #a9c6e6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-i b.gold { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; }
.stat-i span { display: block; margin-top: 3px; font-size: 11.5px; color: var(--dim); letter-spacing: .02em; }

/* 特性条 */
.feats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; animation: rise .8s .3s cubic-bezier(.2, .8, .2, 1) both; }
.feat {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: var(--muted);
  padding: 7px 13px; border-radius: 99px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
}
.feat svg { color: var(--cyan-2); flex: none; }
.feat:nth-child(2) svg { color: var(--gold); }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ==========================================================================
   区块标题 / 筛选 / 工具网格
   ========================================================================== */
.sec { padding-top: 8px; }
.sec-hd {
  display: flex; align-items: flex-end; gap: 12px;
  margin: 0 0 16px;
}
.sec-hd .sh-l { display: flex; align-items: center; gap: 11px; min-width: 0; }
.sec-hd .sh-mark {
  width: 3px; height: 20px; border-radius: 3px;
  background: var(--grad);
  box-shadow: 0 0 14px rgba(46, 168, 218, .7);
  flex: none;
}
.sec-hd h2 { margin: 0; font-size: clamp(18px, 2.4vw, 22px); font-weight: 650; letter-spacing: -.02em; }
.sec-hd .sh-n { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.sec-hd .sh-a { margin-left: auto; font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.sec-hd .sh-a:hover { color: var(--cyan-2); }

.filters {
  position: sticky;
  top: var(--hd);
  z-index: 40;
  display: flex; align-items: center; gap: 7px;
  padding: 12px 0;
  margin-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  background: rgba(5, 8, 15, .94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.filters::-webkit-scrollbar { display: none; }
.fchip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 14px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  flex: none;
  transition: .2s;
}
.fchip:hover { color: var(--text); border-color: var(--line-2); background: rgba(255, 255, 255, .06); }
.fchip .n { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.fchip.on {
  color: #04121c;
  border-color: transparent;
  background: var(--grad);
  font-weight: 600;
  box-shadow: 0 10px 26px -14px rgba(46, 168, 218, .9);
}
.fchip.on .n { color: rgba(4, 18, 28, .62); }
.fchip .swatch { width: 6px; height: 6px; border-radius: 2px; flex: none; }

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(min(266px, 100%), 1fr));
  padding-bottom: 56px;
}

.tool {
  position: relative;
  display: flex; flex-direction: column;
  padding: 18px 18px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background:
    radial-gradient(240px 180px at var(--mx, 50%) var(--my, 0%), rgba(46, 168, 218, .10), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset;
  overflow: hidden;
  transition: transform .24s cubic-bezier(.2, .8, .2, 1), border-color .24s, box-shadow .24s;
  will-change: transform;
}
.tool::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(111, 212, 247, .75), rgba(246, 196, 69, .45), transparent);
  opacity: 0;
  transition: opacity .28s;
}
.tool:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
  box-shadow: 0 26px 46px -32px rgba(0, 0, 0, .95), 0 0 0 1px rgba(111, 212, 247, .08);
}
.tool:hover::before { opacity: 1; }
.tool:active { transform: translateY(-1px) scale(.995); }

.tool-ico {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid; place-items: center;
  color: var(--cyan-2);
  background: linear-gradient(160deg, rgba(46, 168, 218, .20), rgba(46, 168, 218, .05));
  border: 1px solid rgba(46, 168, 218, .22);
  margin-bottom: 13px;
  flex: none;
  transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}
.tool:hover .tool-ico { transform: translateY(-1px) rotate(-4deg); }
.tool[data-cat="image"] .tool-ico {
  color: var(--gold);
  background: linear-gradient(160deg, rgba(246, 196, 69, .18), rgba(246, 196, 69, .04));
  border-color: rgba(246, 196, 69, .22);
}
.tool[data-cat="dev"] .tool-ico {
  color: var(--violet);
  background: linear-gradient(160deg, rgba(157, 139, 245, .18), rgba(157, 139, 245, .04));
  border-color: rgba(157, 139, 245, .22);
}
.tool-nm { margin: 0 0 5px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; line-height: 1.35; }
.tool-ds { margin: 0; font-size: 12.8px; line-height: 1.6; color: var(--muted); }
.tool[data-cat="image"]:hover { border-color: rgba(246, 196, 69, .28); }
.tool[data-cat="dev"]:hover { border-color: rgba(157, 139, 245, .28); }
.tool[data-cat="image"] { background: radial-gradient(240px 180px at var(--mx, 50%) var(--my, 0%), rgba(246, 196, 69, .09), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012)); }
.tool[data-cat="dev"] { background: radial-gradient(240px 180px at var(--mx, 50%) var(--my, 0%), rgba(157, 139, 245, .09), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012)); }

.tool-arrow {
  position: absolute; right: 16px; top: 20px;
  color: var(--dim);
  opacity: 0; transform: translate(-4px, 2px);
  transition: .24s;
}
.tool:hover .tool-arrow { opacity: 1; transform: none; color: var(--cyan-2); }

/* 空搜索结果 */
.empty {
  display: none;
  padding: 54px 20px;
  text-align: center;
  color: var(--dim);
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
  margin-bottom: 48px;
}
.empty b { display: block; color: var(--muted); font-size: 15px; margin-bottom: 5px; }
.empty.on { display: block; }

/* ==========================================================================
   理由 / 说明
   ========================================================================== */
.why {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 12px 0 40px;
}
.why-i {
  position: relative;
  padding: 22px 20px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent);
  overflow: hidden;
}
.why-i::after {
  content: "";
  position: absolute; right: -30px; top: -30px;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 168, 218, .22), transparent 68%);
}
.why-i .wi-n {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--gold);
  opacity: .9;
}
.why-i h3 { margin: 8px 0 6px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.why-i p { margin: 0; font-size: 13px; line-height: 1.75; color: var(--muted); }

/* ==========================================================================
   按钮 / 输入
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px;
  border-radius: 12px;
  font-size: 14.5px; font-weight: 550;
  letter-spacing: -.005em;
  transition: transform .16s, background .18s, border-color .18s, box-shadow .18s, opacity .18s;
  white-space: nowrap;
}
.btn-p {
  color: #04121c;
  background: var(--grad);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 14px 30px -16px rgba(46, 168, 218, .9);
}
.btn-p:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 20px 38px -18px rgba(46, 168, 218, 1); }
.btn-p:active { transform: translateY(0) scale(.99); }
.btn-g {
  color: var(--text);
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line-2);
}
.btn-g:hover { background: rgba(255, 255, 255, .085); border-color: var(--line-3); }
.btn:disabled { cursor: not-allowed; transform: none !important; }
.btn-p:disabled { background: rgba(255,255,255,.055); color: var(--dim); box-shadow: inset 0 0 0 1px var(--line); }
.btn-g:disabled { opacity: .45; }
.btn-sm { height: 38px; padding: 0 15px; font-size: 13px; border-radius: 10px; }

.spin {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, .25);
  border-top-color: #04121c;
  animation: sp .7s linear infinite;
}
.btn-g .spin, .spin.on-dark { border-color: rgba(255, 255, 255, .28); border-top-color: #fff; }
@keyframes sp { to { transform: rotate(360deg); } }

/* ==========================================================================
   页脚
   ========================================================================== */
.ft {
  position: relative;
  margin-top: 24px;
  padding: 40px 0 30px;
  border-top: 1px solid var(--line);
}
.ft::before {
  content: "";
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: min(560px, 70%); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(111, 212, 247, .6), rgba(246, 196, 69, .45), transparent);
}
.ft-in {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(200px, 1.3fr) repeat(3, minmax(120px, .8fr));
  gap: 28px;
}
.ft-brand { display: flex; flex-direction: column; gap: 10px; }
.ft-brand .brand-mk { width: 34px; height: 34px; }
.ft-brand p { margin: 0; font-size: 12.5px; line-height: 1.8; color: var(--dim); max-width: 260px; }
.ft-col { display: flex; flex-direction: column; gap: 8px; }
.ft-t {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: .85;
  margin-bottom: 2px;
}
.ft-col a { font-size: 12.8px; color: var(--muted); transition: color .15s; }
.ft-col a:hover { color: var(--cyan-2); }
.ft-bot {
  max-width: var(--wrap);
  margin: 30px auto 0;
  padding: 16px 24px 0;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 11.8px; color: var(--dim);
}
.ft-bot .mono { font-family: var(--mono); font-size: 11px; letter-spacing: .02em; }

/* ==========================================================================
   Toast
   ========================================================================== */
.toast {
  position: fixed;
  left: 50%; bottom: 28px;
  transform: translate(-50%, 18px);
  z-index: 200;
  max-width: min(88vw, 460px);
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  color: var(--text);
  background: rgba(14, 23, 40, .92);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lift), 0 0 0 1px rgba(5, 8, 15, .6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0; pointer-events: none;
  transition: .24s;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.err { border-color: rgba(255, 125, 125, .45); color: #ffc9c9; }

/* ==========================================================================
   命令面板（搜索）
   ========================================================================== */
.pal-mask {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(2, 5, 11, .72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 12vh 16px 24px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.pal-mask.on { opacity: 1; pointer-events: auto; }
.pal {
  width: min(620px, 100%);
  max-height: 66vh;
  display: flex; flex-direction: column;
  border-radius: 18px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #0c1526, #070d18);
  box-shadow: 0 40px 100px -40px #000, 0 0 0 1px rgba(5, 8, 15, .8), 0 0 80px -40px rgba(46, 168, 218, .7);
  overflow: hidden;
  transform: translateY(-10px) scale(.985);
  transition: transform .24s cubic-bezier(.2, .8, .2, 1);
}
.pal-mask.on .pal { transform: none; }
.pal-in {
  display: flex; align-items: center; gap: 11px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
}
.pal-in svg { color: var(--cyan-2); flex: none; }
.pal-in input {
  flex: 1; min-width: 0;
  background: none; border: 0; outline: none;
  color: var(--text); font-size: 16px;
}
.pal-in input::placeholder { color: var(--dim); }
.pal-in .esc {
  font-family: var(--mono); font-size: 10.5px;
  padding: 4px 6px; border-radius: 5px;
  border: 1px solid var(--line-2);
  color: var(--dim);
}
.pal-list { overflow-y: auto; padding: 8px; overscroll-behavior: contain; }
.pal-grp {
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--dim); padding: 10px 10px 6px;
}
.pal-i {
  display: flex; align-items: center; gap: 11px;
  width: 100%;
  padding: 10px 11px;
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  text-align: left;
  border: 1px solid transparent;
}
.pal-i .pi { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; background: rgba(46, 168, 218, .12); color: var(--cyan-2); }
.pal-i[data-cat="image"] .pi { background: rgba(246, 196, 69, .12); color: var(--gold); }
.pal-i[data-cat="dev"] .pi { background: rgba(157, 139, 245, .12); color: var(--violet); }
.pal-i .pd { margin-left: auto; font-size: 11.5px; color: var(--dim); white-space: nowrap; }
.pal-i.sel { background: rgba(46, 168, 218, .13); border-color: rgba(111, 212, 247, .32); }
.pal-i:hover { background: rgba(255, 255, 255, .05); }
.pal-i.sel:hover { background: rgba(46, 168, 218, .17); }
.pal-hint { padding: 10px 16px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--dim); display: flex; gap: 14px; flex-wrap: wrap; }
.pal-hint span { display: inline-flex; align-items: center; gap: 5px; }
.pal-hint b { font-family: var(--mono); font-weight: 500; font-size: 10.5px; padding: 2px 5px; border-radius: 4px; border: 1px solid var(--line-2); color: var(--muted); }
.pal-none { padding: 30px 16px 34px; text-align: center; color: var(--dim); font-size: 13.5px; }

/* ==========================================================================
   入场动画
   ========================================================================== */
[data-rv] { opacity: 0; transform: translateY(16px); }
[data-rv].in { opacity: 1; transform: none; transition: opacity .55s cubic-bezier(.2, .8, .2, 1), transform .55s cubic-bezier(.2, .8, .2, 1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-rv] { opacity: 1; transform: none; }
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1000px) {
  .ft-in { grid-template-columns: 1fr 1fr; gap: 24px; }
  .ft-brand { grid-column: 1 / -1; }
}

@media (max-width: 880px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .pill-local { display: none; }
  .srch-btn .lbl, .srch-btn kbd { display: none; }
  .srch-btn { width: 38px; padding: 0; justify-content: center; }
  .why { grid-template-columns: 1fr; gap: 10px; }
  .why-i { padding: 18px; }
}

@media (max-width: 640px) {
  :root { --hd: 56px; --r: 16px; }
  .hd-in, .wrap, .ft-in, .ft-bot { padding-left: 16px; padding-right: 16px; }
  .brand-mk { width: 29px; height: 29px; }
  .brand-tx { font-size: 16px; }
  .hero { padding-top: 34px; }
  .hero-orb { width: 480px; height: 320px; top: -80px; }
  .hero-orb.g2 { display: none; }
  .hero h1 { margin-top: 18px; letter-spacing: -.03em; }
  .hero .lede { margin-top: 16px; }
  .hero-search { margin-top: 24px; }
  .hero-search button.hs-box { height: 50px; font-size: 14px; }
  .hero-search kbd { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); border-radius: 14px; }
  .stat-i { padding: 12px 6px; border-left: 0; border-top: 1px solid var(--line); }
  .stat-i:nth-child(-n+2) { border-top: 0; }
  .stat-i:nth-child(even) { border-left: 1px solid var(--line); }
  .feats { gap: 6px; }
  .feat { font-size: 11.5px; padding: 6px 10px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-bottom: 40px; }
  .tool { padding: 14px 13px 13px; border-radius: 13px; }
  .tool-ico { width: 34px; height: 34px; border-radius: 9px; margin-bottom: 10px; }
  .tool-ico svg { width: 18px; height: 18px; }
  .tool-nm { font-size: 13.5px; line-height: 1.4; }
  .tool-ds { font-size: 11.5px; line-height: 1.5; }
  .tool-arrow { display: none; }
  .filters { padding: 10px 0; margin-bottom: 12px; }
  .fchip { height: 33px; padding: 0 12px; font-size: 12.5px; }
  .ft { padding: 30px 0 20px; }
  .ft-in { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .ft-bot { flex-direction: column; gap: 8px; }
  .toast { bottom: calc(16px + env(safe-area-inset-bottom)); font-size: 13px; }
}

@media (max-width: 380px) {
  .grid { grid-template-columns: 1fr; }
  .tool-ds { font-size: 12.2px; }
  .hero h1 { font-size: 30px; }
}
