/* www2.juheye.cn — 聚合页开源站 */
:root {
  --bg: #0a0e1a;
  --bg-soft: #0e1424;
  --panel: #121a2e;
  --panel-2: #16203a;
  --border: rgba(148, 170, 220, .14);
  --text: #e9edf7;
  --muted: #94a1bb;
  --accent: #6d8bff;
  --accent-2: #39d0d8;
  --grad: linear-gradient(120deg, #6d8bff 0%, #39d0d8 100%);
  --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 CJK SC", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 26, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 14px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand .en { color: var(--muted); font-weight: 500; font-size: 14px; margin-left: 2px; }
.site-nav { margin-left: auto; display: flex; gap: 26px; font-size: 15px; }
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.site-nav a.ext::after { content: " ↗"; font-size: 12px; }

/* ---------- hero ---------- */
.hero {
  padding: 88px 0 64px;
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(109, 139, 255, .16), transparent 70%),
    radial-gradient(600px 300px at 85% 10%, rgba(57, 208, 216, .12), transparent 70%);
  border-bottom: 1px solid var(--border);
}
.eyebrow {
  display: inline-block; font-family: var(--mono); font-size: 12.5px; letter-spacing: .18em;
  color: var(--accent-2); text-transform: uppercase; margin-bottom: 18px;
  padding: 5px 12px; border: 1px solid rgba(57, 208, 216, .35); border-radius: 999px;
  background: rgba(57, 208, 216, .07);
}
.hero h1 { font-size: 44px; line-height: 1.25; font-weight: 800; letter-spacing: .01em; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { margin-top: 18px; max-width: 640px; color: var(--muted); font-size: 17.5px; }
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 10px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #071018; }
.btn-primary:hover { box-shadow: 0 8px 24px rgba(109, 139, 255, .35); }
.btn-ghost { border-color: var(--border); color: var(--text); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: rgba(148, 170, 220, .4); }

/* ---------- install snippet ---------- */
.install {
  margin-top: 26px; display: flex; align-items: stretch; max-width: 720px;
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  background: var(--bg-soft);
}
.install code {
  flex: 1; padding: 13px 16px; font-family: var(--mono); font-size: 13.5px;
  color: #c7d3ee; white-space: nowrap; overflow-x: auto;
}
.install code .dollar { color: var(--accent-2); user-select: none; }
.install button {
  border: 0; border-left: 1px solid var(--border); background: var(--panel);
  color: var(--muted); padding: 0 18px; cursor: pointer; font-size: 13.5px; font-family: var(--sans);
}
.install button:hover { color: var(--text); background: var(--panel-2); }

/* ---------- stats ---------- */
.stats { border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 26px; padding-bottom: 26px; }
.stat b { display: block; font-size: 22px; font-weight: 700; }
.stat span { font-size: 13px; color: var(--muted); }

/* ---------- sections ---------- */
section.block { padding: 66px 0; }
.section-head { margin-bottom: 34px; }
.section-head h2 { font-size: 28px; font-weight: 750; }
.section-head p { color: var(--muted); margin-top: 8px; }

/* ---------- project cards ---------- */
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px;
  padding: 30px; transition: .15s;
}
.card:hover { border-color: rgba(109, 139, 255, .45); }
.card .card-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.card .card-top img { width: 44px; height: 44px; border-radius: 11px; }
.card h3 { font-size: 21px; font-weight: 750; }
.card .sub { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.card .desc { margin-top: 14px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  font-size: 12.5px; padding: 3px 11px; border-radius: 999px;
  border: 1px solid var(--border); color: #b9c4dd; background: rgba(255, 255, 255, .03);
}
.chip.tech { color: var(--accent-2); border-color: rgba(57, 208, 216, .3); }
.card-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.card-actions .btn { padding: 8px 18px; font-size: 14px; }

.card.soon { opacity: .78; border-style: dashed; }
.badge-soon {
  font-size: 12px; padding: 3px 10px; border-radius: 999px; margin-left: auto;
  color: #ffd479; border: 1px solid rgba(255, 212, 121, .4); background: rgba(255, 212, 121, .08);
}

/* ---------- quick start ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.step .num {
  width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  background: var(--grad); color: #071018; font-weight: 800; font-size: 14px; margin-bottom: 14px;
}
.step h3 { font-size: 16.5px; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.step pre {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 9px;
  padding: 12px 14px; overflow-x: auto; font-family: var(--mono); font-size: 12.8px; color: #c7d3ee;
  line-height: 1.65;
}
.step pre .c { color: #5e6c8a; }

/* ---------- trust note ---------- */
.trust {
  border: 1px solid rgba(57, 208, 216, .22); background: rgba(57, 208, 216, .05);
  border-radius: 14px; padding: 22px 26px; font-size: 14.5px; color: var(--muted);
}
.trust b { color: var(--text); }
.trust ul { margin: 10px 0 0 18px; }
.trust li { margin-top: 4px; }

/* ---------- project page ---------- */
.page-head { padding: 46px 0 30px; border-bottom: 1px solid var(--border); }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); }
.page-head h1 { font-size: 34px; font-weight: 800; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.page-head h1 img { width: 42px; height: 42px; border-radius: 10px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.meta {
  font-family: var(--mono); font-size: 12.8px; color: #b9c4dd;
  border: 1px solid var(--border); background: var(--panel); border-radius: 8px; padding: 4px 12px;
}
.meta b { color: var(--accent-2); font-weight: 600; }

.md { padding: 40px 0 70px; max-width: 860px; }
.md h1 { font-size: 30px; margin: 34px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.md h1:first-child { margin-top: 0; }
.md h2 { font-size: 23px; margin: 36px 0 12px; }
.md h3 { font-size: 18.5px; margin: 26px 0 10px; }
.md p, .md li { color: #c3cde4; }
.md p { margin: 12px 0; }
.md ul, .md ol { margin: 12px 0 12px 22px; }
.md li { margin-top: 5px; }
.md blockquote {
  margin: 16px 0; padding: 10px 18px; border-left: 3px solid var(--accent);
  background: rgba(109, 139, 255, .07); border-radius: 0 10px 10px 0; color: var(--muted);
}
.md code {
  font-family: var(--mono); font-size: .88em; background: rgba(148, 170, 220, .13);
  padding: 2px 7px; border-radius: 6px; color: #d7e1f8;
}
.md pre {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 18px; overflow-x: auto; margin: 16px 0; line-height: 1.65;
}
.md pre code { background: none; padding: 0; font-size: 13px; }
.md table { border-collapse: collapse; margin: 16px 0; width: 100%; font-size: 14.5px; display: block; overflow-x: auto; }
.md th, .md td { border: 1px solid var(--border); padding: 8px 14px; text-align: left; }
.md th { background: var(--panel-2); color: var(--text); font-weight: 650; white-space: nowrap; }
.md tr:nth-child(even) td { background: rgba(255, 255, 255, .015); }
.md hr { border: 0; border-top: 1px solid var(--border); margin: 30px 0; }
.md a { word-break: break-all; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding: 34px 0; margin-top: 40px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; color: var(--muted); font-size: 14px; }
.site-footer .links { display: flex; gap: 22px; }

/* ---------- 404 ---------- */
.nf { text-align: center; padding: 120px 24px; }
.nf h1 { font-size: 72px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf p { color: var(--muted); margin: 12px 0 26px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 36px; transform: translateX(-50%) translateY(16px);
  background: var(--panel-2); border: 1px solid var(--accent); color: var(--text);
  padding: 9px 20px; border-radius: 10px; font-size: 14px; opacity: 0; pointer-events: none;
  transition: .25s; z-index: 99;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 860px) {
  .hero h1 { font-size: 33px; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .site-nav { gap: 16px; font-size: 14px; }
  .brand .en { display: none; }
}
