:root {
  --bg:#f4f6f3;
  --panel:#fff;
  --panel-2:#f9faf8;
  --text:#18221d;
  --muted:#6e7972;
  --line:#dfe5df;
  --accent:#2d6a4f;
  --accent-2:#52b788;
  --hot:#d97746;
  --shadow:0 18px 60px rgba(23,45,33,.08);
  --radius:18px;
  --font:"Segoe UI","Microsoft YaHei",system-ui,sans-serif
}
[data-theme="dark"] {
  --bg:#101511;
  --panel:#18201a;
  --panel-2:#131a15;
  --text:#e9f2ec;
  --muted:#9aa69e;
  --line:#2b372f;
  --accent:#74c69d;
  --accent-2:#95d5b2;
  --shadow:0 18px 60px rgba(0,0,0,.25)
}
* {
  box-sizing:border-box
}
html {
  scroll-behavior:smooth
}
body {
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font);
  min-height:100vh
}
.ambient {
  position:fixed;
  z-index:-1;
  filter:blur(2px);
  border-radius:50%;
  opacity:.6
}
.ambient-one {
  width:520px;
  height:520px;
  right:-180px;
  top:-220px;
  background:radial-gradient(circle,#cce8d7 0,transparent 68%)
}
.ambient-two {
  width:420px;
  height:420px;
  left:-250px;
  top:360px;
  background:radial-gradient(circle,#e7d7bd 0,transparent 70%)
}
button,input,select {
  font:inherit
}
button {
  cursor:pointer
}
.topbar {
  height:78px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 max(30px,calc((100vw - 1440px)/2));
  border-bottom:1px solid var(--line);
  background:color-mix(in srgb,var(--bg) 90%,transparent);
  backdrop-filter:blur(15px);
  position:sticky;
  top:0;
  z-index:20
}
.brand {
  display:flex;
  align-items:center;
  gap:12px;
  color:var(--text);
  text-decoration:none
}
.brand-mark {
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  background:var(--accent);
  color:white;
  border-radius:12px;
  font-size:14px;
  font-weight:800;
  letter-spacing:-1px;
  box-shadow:0 8px 18px color-mix(in srgb,var(--accent) 30%,transparent)
}
.brand strong,.brand small {
  display:block
}
.brand strong {
  font-size:17px
}
.brand small {
  font-size:11px;
  color:var(--muted);
  margin-top:2px
}
.tabs {
  align-self:stretch;
  display:flex;
  gap:5px
}
.tab {
  border:0;
  background:none;
  color:var(--muted);
  padding:0 18px;
  position:relative;
  font-weight:600
}
.tab:after {
  content:"";
  position:absolute;
  left:18px;
  right:18px;
  bottom:0;
  height:2px;
  background:var(--accent);
  transform:scaleX(0);
  transition:.2s
}
.tab.active {
  color:var(--text)
}
.tab.active:after {
  transform:scaleX(1)
}
.tab span {
  font-size:10px;
  padding:2px 6px;
  border-radius:8px;
  background:var(--line)
}
.top-actions {
  display:flex;
  align-items:center;
  gap:10px
}
.api-status {
  font-size:12px;
  color:var(--muted)
}
.api-status i {
  display:inline-block;
  width:7px;
  height:7px;
  border-radius:50%;
  background:#e9a23b;
  margin-right:5px
}
.api-status.online i {
  background:#48a868
}
.api-status.error i {
  background:#d85858
}
.icon-button,.github-link,.group-link {
  border:1px solid var(--line);
  background:var(--panel);
  color:var(--text);
  height:38px;
  border-radius:10px;
  padding:0 12px;
  text-decoration:none;
  display:flex;
  align-items:center
}
.github-link,.group-link {
  font-size:13px;
  font-weight:600
}
.group-link {
  border-color:var(--accent);
  color:#fff;
  background:var(--accent);
  white-space:nowrap;
  flex-shrink:0
}
.shell {
  width:min(1440px,calc(100% - 48px));
  margin:auto
}
.hero {
  padding:70px 0 58px;
  text-align:center;
  position:relative
}
.eyebrow {
  font-size:11px;
  font-weight:800;
  letter-spacing:2.3px;
  color:var(--accent);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px
}
.eyebrow span {
  width:22px;
  height:1px;
  background:var(--accent)
}
.hero h1 {
  font-family:Georgia,"Microsoft YaHei",serif;
  font-size:clamp(42px,5.1vw,74px);
  line-height:1.03;
  margin:16px 0 20px;
  letter-spacing:-2.8px
}
.hero h1 em {
  font-style:normal;
  color:var(--accent)
}
.hero>p {
  max-width:680px;
  margin:0 auto 30px;
  line-height:1.8;
  color:var(--muted);
  font-size:16px
}
.hero-search {
  width:min(840px,100%);
  margin:auto;
  height:66px;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:17px;
  padding:8px;
  display:flex;
  align-items:center;
  box-shadow:var(--shadow);
  transition:.2s
}
.hero-search:focus-within {
  border-color:var(--accent);
  box-shadow:0 18px 50px color-mix(in srgb,var(--accent) 15%,transparent)
}
.search-icon {
  font-size:28px;
  color:var(--muted);
  margin:0 10px
}
.hero-search input {
  flex:1;
  border:0;
  outline:0;
  background:transparent;
  color:var(--text);
  min-width:50px
}
.hero-search kbd {
  color:var(--muted);
  font-size:11px;
  border:1px solid var(--line);
  padding:4px 7px;
  border-radius:6px
}
.hero-search button,.primary-button {
  border:0;
  background:var(--accent);
  color:white;
  font-weight:700;
  border-radius:11px;
  padding:0 24px;
  height:48px;
  margin-left:10px
}
.quick-tags {
  margin-top:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  flex-wrap:wrap;
  font-size:12px;
  color:var(--muted)
}
.quick-tags button {
  border:1px solid var(--line);
  background:var(--panel);
  color:var(--muted);
  border-radius:20px;
  padding:6px 10px
}
.quick-tags button:hover {
  color:var(--accent);
  border-color:var(--accent)
}
.workspace {
  display:grid;
  grid-template-columns:285px 1fr;
  gap:28px;
  align-items:start;
  padding-bottom:60px
}
.filters {
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:20px;
  position:sticky;
  top:98px;
  box-shadow:0 8px 30px rgba(0,0,0,.025)
}
.filter-head {
  display:flex;
  justify-content:space-between;
  align-items:start;
  padding-bottom:16px;
  border-bottom:1px solid var(--line);
  margin-bottom:17px
}
.filter-head span,.filter-head small {
  display:block
}
.filter-head span {
  font-weight:750
}
.filter-head small {
  color:var(--muted);
  font-size:11px;
  margin-top:3px
}
.filter-head button {
  border:0;
  background:none;
  color:var(--accent);
  font-size:12px
}
.field-label {
  display:block;
  font-size:12px;
  font-weight:700;
  margin-top:14px;
  color:var(--text)
}
.field-label>small {
  float:right;
  color:var(--muted);
  font-weight:400
}
.field-label input,.field-label select,.toolbar-actions select {
  margin-top:7px;
  width:100%;
  height:42px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--panel-2);
  padding:0 11px;
  color:var(--text);
  outline:0
}
.field-label input:focus,.field-label select:focus {
  border-color:var(--accent)
}
.two-fields {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px
}
.range-row {
  margin-top:17px
}
.range-row label {
  font-size:12px;
  font-weight:700;
  display:flex;
  justify-content:space-between
}
.range-row strong {
  color:var(--accent)
}
.range-row input {
  width:100%;
  accent-color:var(--accent)
}
.range-row>div {
  display:flex;
  justify-content:space-between;
  color:var(--muted);
  font-size:10px
}
.primary-button {
  width:100%;
  margin:20px 0 0;
  height:45px;
  transition:.2s
}
.primary-button:hover {
  filter:brightness(1.08);
  transform:translateY(-1px)
}
.tip {
  display:flex;
  gap:9px;
  background:color-mix(in srgb,var(--accent) 7%,var(--panel));
  border-radius:10px;
  padding:12px;
  margin-top:12px;
  color:var(--muted)
}
.tip>span {
  color:var(--accent)
}
.tip p {
  margin:0;
  font-size:10px;
  line-height:1.55
}
.tip strong {
  display:block;
  color:var(--text);
  font-size:11px;
  margin-bottom:2px
}
.results-toolbar {
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
  margin:3px 0 18px
}
.section-kicker {
  font-size:10px;
  color:var(--hot);
  font-weight:800;
  letter-spacing:1.8px
}
.results-toolbar h2 {
  font-family:Georgia,"Microsoft YaHei",serif;
  font-size:29px;
  margin:6px 0 5px
}
.results-toolbar p {
  color:var(--muted);
  font-size:12px;
  margin:0
}
.toolbar-actions {
  display:flex;
  align-items:center;
  gap:8px
}
.period-tabs {
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:9px;
  padding:3px;
  display:flex
}
.period-tabs button {
  border:0;
  background:transparent;
  color:var(--muted);
  padding:7px 9px;
  border-radius:6px;
  font-size:11px
}
.period-tabs button.active {
  background:var(--accent);
  color:white
}
.toolbar-actions select {
  width:auto;
  margin:0;
  height:37px
}
.export-button {
  height:37px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--panel);
  color:var(--text);
  font-size:12px
}
.active-query {
  font-size:11px;
  color:var(--muted);
  background:var(--panel);
  border:1px solid var(--line);
  padding:9px 12px;
  border-radius:9px;
  margin-bottom:14px;
  display:flex;
  gap:10px;
  overflow:hidden
}
.active-query code {
  white-space:nowrap;
  text-overflow:ellipsis;
  overflow:hidden;
  color:var(--accent)
}
.repo-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px
}
.repo-card {
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:15px;
  padding:18px;
  min-height:280px;
  display:flex;
  flex-direction:column;
  position:relative;
  transition:transform .2s,border-color .2s,box-shadow .2s;
  overflow:hidden
}
.repo-card:before {
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:3px;
  height:0;
  background:var(--accent);
  transition:.25s
}
.repo-card:hover {
  transform:translateY(-3px);
  border-color:color-mix(in srgb,var(--accent) 45%,var(--line));
  box-shadow:0 14px 38px rgba(20,50,35,.09)
}
.repo-card:hover:before {
  height:100%
}
.card-top {
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start
}
.owner {
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0
}
.owner img {
  width:34px;
  height:34px;
  border-radius:9px;
  background:var(--line)
}
.owner a {
  display:block;
  color:var(--text);
  text-decoration:none;
  font-weight:750;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:190px
}
.owner small {
  color:var(--muted)
}
.favorite {
  border:0;
  background:none;
  color:var(--muted);
  font-size:21px;
  line-height:1
}
.favorite.active {
  color:#e6a82d
}
.repo-card>p {
  font-size:12px;
  line-height:1.6;
  color:var(--muted);
  height:58px;
  overflow:hidden;
  margin:17px 0 12px
}
.topics {
  display:flex;
  gap:5px;
  flex-wrap:wrap;
  min-height:47px;
  align-content:flex-start
}
.topics span {
  font-size:9px;
  color:var(--accent);
  background:color-mix(in srgb,var(--accent) 9%,transparent);
  padding:4px 7px;
  border-radius:10px
}
.repo-stats {
  display:flex;
  gap:14px;
  padding-top:13px;
  margin-top:auto;
  border-top:1px solid var(--line);
  font-size:11px;
  color:var(--muted)
}
.repo-stats strong {
  color:var(--text);
  font-weight:650
}
.repo-meta {
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:10px;
  color:var(--muted);
  margin-top:12px
}
.language {
  display:flex;
  align-items:center;
  gap:5px
}
.language i {
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--lang,#7d8c83)
}
.skeleton {
  animation:pulse 1.3s infinite;
  background:linear-gradient(90deg,var(--panel) 25%,var(--panel-2) 50%,var(--panel) 75%);
  background-size:200% 100%;
  min-height:280px;
  border-radius:15px;
  border:1px solid var(--line)
}
@keyframes pulse {
  to {
    background-position:-200% 0
  }
}
.empty {
  grid-column:1/-1;
  text-align:center;
  padding:70px 20px;
  background:var(--panel);
  border:1px dashed var(--line);
  border-radius:15px
}
.empty b {
  display:block;
  font-size:22px;
  margin-bottom:8px
}
.empty span {
  color:var(--muted);
  font-size:13px
}
.pagination {
  display:flex;
  justify-content:center;
  align-items:center;
  gap:15px;
  margin-top:25px
}
.pagination button {
  border:1px solid var(--line);
  background:var(--panel);
  color:var(--text);
  border-radius:9px;
  padding:9px 14px
}
.pagination span {
  font-size:12px;
  color:var(--muted)
}
.hidden {
  display:none!important
}
footer {
  border-top:1px solid var(--line);
  height:70px;
  padding:0 max(30px,calc((100vw - 1440px)/2));
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:var(--muted);
  font-size:11px
}
.toast {
  position:fixed;
  right:24px;
  bottom:24px;
  background:#17241c;
  color:white;
  padding:12px 17px;
  border-radius:10px;
  font-size:12px;
  box-shadow:var(--shadow);
  transform:translateY(30px);
  opacity:0;
  pointer-events:none;
  transition:.25s;
  z-index:30
}
.toast.show {
  transform:none;
  opacity:1
}
@media(max-width:1100px) {
  .repo-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .tabs {
    display:none
  }
  .workspace {
    grid-template-columns:250px 1fr
  }
  .shell {
    width:min(100% - 30px,1100px)
  }
  .results-toolbar {
    align-items:flex-start;
    flex-direction:column
  }
  .toolbar-actions {
    width:100%;
    flex-wrap:wrap
  }
}
@media(max-width:760px) {
  .topbar {
    padding:0 15px;
    height:66px
  }
  .api-status,.github-link {
    display:none
  }
  .group-link {
    height:34px;
    padding:0 10px;
    font-size:12px
  }
  .shell {
    width:calc(100% - 24px)
  }
  .hero {
    padding:45px 0 38px
  }
  .hero h1 {
    font-size:42px;
    letter-spacing:-1.8px
  }
  .hero-search {
    height:58px
  }
  .hero-search kbd {
    display:none
  }
  .hero-search button {
    padding:0 13px
  }
  .workspace {
    grid-template-columns:1fr
  }
  .filters {
    position:static
  }
  .repo-grid {
    grid-template-columns:1fr
  }
  .repo-card {
    min-height:255px
  }
  .period-tabs {
    width:100%;
    justify-content:space-between
  }
  .toolbar-actions select,.export-button {
    flex:1
  }
  .two-fields {
    grid-template-columns:1fr 1fr
  }
  footer {
    padding:0 15px
  }
  .brand small {
    display:none
  }
}
.install-button {
  border:0;
  border-radius:999px;
  background:#17271d;
  color:#fff;
  padding:9px 14px;
  font-weight:700;
  cursor:pointer;
  white-space:nowrap
}
@media (max-width: 720px) {
   .topbar {
    padding-left:12px;
    padding-right:12px
  }
   .top-actions .api-status,.top-actions .github-link {
    display:none
  }
   .group-link {
    height:34px;
    padding:0 10px;
    font-size:12px
  }
   .install-button {
    padding:8px 10px;
    font-size:12px
  }
}
