/* ============ 首屏安装命令、顶栏 GitHub 入口 ============ */
.hero-sub { margin-top: 18px; font-size: clamp(26px, 3.4vw, 42px); line-height: 1.2; font-weight: 700; letter-spacing: -.025em; }
.hero-cmd {
  margin-top: 30px; max-width: 760px; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 26px;
  border-radius: 22px; background: #111111; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .45);
}
[data-theme="dark"] .hero-cmd { background: #000; box-shadow: 0 0 0 1px #26272b, 0 18px 40px -18px rgba(0, 0, 0, .8); }
.hero-cmd code { flex: 1; min-width: 0; color: #f4f4f5; font-size: clamp(14px, 1.6vw, 19px); letter-spacing: .02em; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.hero-cmd code::-webkit-scrollbar { display: none; }
.hero-cmd code em { font-style: normal; color: #71717a; margin-right: 10px; }
.hero-cmd button {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 22px; border: 0; border-radius: 15px;
  background: #27272a; color: #f4f4f5; font: 500 16px var(--font); cursor: pointer; transition: background .2s;
}
.hero-cmd button:hover { background: #3f3f46; }
.hero-cta .btn-dark { height: 54px; padding: 0 28px; font-size: 16px; }
.hero-more { height: 54px; padding: 0 26px; font-size: 16px; background: var(--card); }
.hero-more svg { transition: transform .25s var(--ease-out); }
.hero-more:hover svg { transform: translateX(4px); }

.gh-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px 0 12px; border-radius: 999px;
  background: #0a0a0a; color: #fff; font-size: 14px; flex-shrink: 0; transition: transform .2s, opacity .2s;
}
[data-theme="dark"] .gh-pill { background: #fff; color: #0a0a0a; }
.gh-pill:hover { transform: translateY(-1px); opacity: .9; }
.gh-star { opacity: .55; font-size: 13px; }
.gh-pill b { font-weight: 600; font-variant-numeric: tabular-nums; }

.plat-tools { order: 2; margin-left: auto; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .hero-cmd { padding-left: 16px; border-radius: 16px; }
  .hero-cmd button { height: 40px; padding: 0 14px; font-size: 14px; }
}
