/* www.yhbd.top — DSH plugin hub stylesheet */
:root {
  --bg: #0d1117;
  --bg-2: #010409;
  --bg-elev: #161b22;
  --bg-elev2: #1f262e;
  --bg-elev3: #2a313c;
  --border: #30363d;
  --border-strong: #444c56;
  --text: #e6edf3;
  --text-dim: #8b949e;
  --text-muted: #6e7681;
  --accent: #58a6ff;
  --accent-2: #79c0ff;
  --accent-glow: rgba(88,166,255,0.15);
  --purple: #bc8cff;
  --purple-glow: rgba(188,140,255,0.15);
  --success: #3fb950;
  --warn: #d29922;
  --danger: #f85149;
  --link: #2f81f7;
  --code-bg: #161b22;

  /* Hero ambient color stops */
  --grad-blue: #58a6ff;
  --grad-purple: #bc8cff;
  --grad-cyan: #39d0d8;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

code, pre {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
}
code { background: var(--code-bg); padding: 2px 6px; border-radius: 4px; border: 1px solid var(--border); }
pre {
  background: var(--code-bg);
  padding: 14px 16px;
  border-radius: 6px;
  border: 1px solid var(--border);
  overflow-x: auto;
}
pre code { background: transparent; padding: 0; border: none; }

/* ------- Header / footer ------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: rgba(13,17,23,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, rgba(88,166,255,0.5), rgba(188,140,255,0.25) 45%, rgba(57,208,216,0.2) 75%, transparent);
  pointer-events: none;
}
.brand { display: flex; align-items: baseline; gap: 12px; }
.logo {
  font-weight: 700; font-size: 18px;
  color: var(--text) !important;
  letter-spacing: 0.2px;
}
.logo:hover { text-decoration: none; }
.tagline { color: var(--text-dim); font-size: 13px; }

/* YHBD.TOP brand logo in the header */
.logo-yhbd {
  display: inline-flex;
  align-items: center;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--text) !important;
}
.logo-yhbd:hover { text-decoration: none; }
.logo-y {
  width: 1.2em;
  height: 1.2em;
  flex: none;
  margin-right: 3px;
}
.logo-hbd { color: #79c0ff; }
.wordmark {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  padding-left: 10px;
  border-left: 1px solid var(--border-strong);
  white-space: nowrap;
}
.site-header nav { display: flex; gap: 18px; }
.site-header nav a {
  position: relative;
  color: var(--text-dim); font-size: 14px;
  padding: 4px 2px;
  transition: color .12s;
}
.site-header nav a.active, .site-header nav a:hover { color: var(--text); text-decoration: none; }
.site-header nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -5px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--purple));
}

/* Language switcher (right side of header) */
.lang-switcher {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px;
  margin-left: 16px;
  padding-left: 16px;
  border-left: 1px solid var(--border);
}
.lang-switcher a {
  color: var(--text-dim);
  text-decoration: none;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color .12s, background .12s;
}
.lang-switcher a:hover { color: var(--text); text-decoration: none; }
.lang-switcher a.on {
  color: var(--accent-2);
  font-weight: 500;
  background: rgba(88, 166, 255, 0.10);
}
.lang-switcher .lang-sep { color: var(--border-strong); }

@media (max-width: 760px) {
  .site-header { padding: 12px 16px; }
  .logo-yhbd { font-size: 17px; }
  .wordmark { display: none; }
  .site-header nav { gap: 10px; }
}

.site-footer {
  margin-top: 60px; padding: 24px 28px;
  border-top: 1px solid var(--border);
  color: var(--text-muted); font-size: 13px;
  display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between;
}

.container { max-width: 1280px; margin: 0 auto; padding: 28px; }

/* =============================================================
   NEW HOMEPAGE — hero / hot grid / filter section
   ============================================================= */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 48px;
  background:
    radial-gradient(ellipse at top left, rgba(88,166,255,0.08), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(188,140,255,0.06), transparent 50%),
    linear-gradient(180deg, var(--bg-elev) 0%, var(--bg) 100%);
}
.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.hero-grid-pattern {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}
.hero-glow-1 {
  width: 380px; height: 380px;
  background: var(--accent);
  top: -120px; left: -80px;
  opacity: 0.18;
}
.hero-glow-2 {
  width: 420px; height: 420px;
  background: var(--purple);
  bottom: -160px; right: -100px;
  opacity: 0.14;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 36px;
  padding: 56px 56px 48px;
  align-items: start;
}
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; padding: 36px 24px; gap: 28px; }
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(22,27,34,0.6);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 22px;
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Hero brand lockup — YHBD.TOP (RGB-flow Y + mono-blue HBD.TOP) and the
   expanded brand name, both above the big title */
.hero-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 30px;
  font-weight: 800;      /* hero-wide weight bump: 700 → 800 */
  letter-spacing: 0.01em; /* one notch tighter than before */
  line-height: 1.1;
  margin-bottom: 6px;
  user-select: none;
}
.hero-brand-y {
  /* Inherits the RGB flowing-light treatment from .hero-title-zh */
  background: linear-gradient(
    90deg,
    #ff5d8f 0%,
    #ff8a5b 14%,
    #ffd66b 28%,
    #79e36b 42%,
    #5be0e0 56%,
    #6b9bff 70%,
    #b56bff 84%,
    #ff5db8 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: rgb-shift 6s linear infinite;
  filter: drop-shadow(0 0 14px rgba(88, 166, 255, 0.30))
          drop-shadow(0 0 28px rgba(188, 140, 255, 0.18));
}
.hero-brand-hbd {
  color: #79c0ff; /* mono blue */
  text-shadow: 0 0 16px rgba(88, 166, 255, 0.35);
}
.hero-brand-arrow {
  margin: 0 0.35em 0 0.45em;
  color: var(--text-muted);
  font-size: 0.55em;
}
.hero-eyebrow {
  font-size: 0.45em;      /* stays on the same line as the domain mark */
  font-weight: 600;
  letter-spacing: 0.16em; /* one notch tighter */
  color: var(--text-dim);
}

.hero-title {
  margin: 0 0 18px;
  font-weight: 900;       /* hero-wide weight bump: 800 → 900 */
  letter-spacing: -0.03em; /* one notch tighter */
  line-height: 1.05;
}
.hero-title-zh {
  display: block;
  font-size: 56px;
  /* RGB rainbow gradient (smooth full spectrum, no banding) */
  background: linear-gradient(
    90deg,
    #ff5d8f 0%,
    #ff8a5b 14%,
    #ffd66b 28%,
    #79e36b 42%,
    #5be0e0 56%,
    #6b9bff 70%,
    #b56bff 84%,
    #ff5db8 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  /* Animate background position across the full gradient width.
     Combined with 200% background-size, this creates a smooth loop. */
  animation: rgb-shift 6s linear infinite;
  /* Subtle glow that follows the title color */
  filter: drop-shadow(0 0 24px rgba(88, 166, 255, 0.25))
          drop-shadow(0 0 48px rgba(188, 140, 255, 0.18));
}
@keyframes rgb-shift {
  0%   { background-position:   0% 50%; }
  100% { background-position: 200% 50%; }
}
.hero-title-en {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-dim);
  margin-top: 12px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: -0.01em;
}
@media (max-width: 760px) {
  .hero-title-zh { font-size: 36px; }
  .hero-title-en { font-size: 12px; margin-top: 8px; }
  .hero-brand { font-size: 22px; }
  .hero-brand-arrow { margin: 0 0.25em 0 0.3em; }
  .hero-eyebrow { font-size: 11px; letter-spacing: 0.12em; }
}

.hero-sub {
  margin: 0 0 26px;
  font-size: 16px;
  color: var(--text-dim);
  max-width: 540px;
  line-height: 1.7;
}
.hero-sub strong { color: var(--text); font-weight: 600; }

/* Hero search box */
.hero-search { margin-bottom: 28px; max-width: 600px; }
.searchbox {
  position: relative;
  display: flex; align-items: center;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 0 14px;
  transition: border-color .15s, box-shadow .15s;
}
.searchbox:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.searchbox-icon {
  color: var(--text-muted);
  font-size: 18px;
  margin-right: 10px;
}
.searchbox input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  padding: 14px 0;
  font-size: 15px;
  font-family: inherit;
}
.searchbox input::placeholder { color: var(--text-muted); }
.searchbox-kbd {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-elev2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
}

.search-suggestions {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-top: 12px;
}
.suggest-label { color: var(--text-muted); font-size: 12px; }
.suggest-chip {
  padding: 3px 10px;
  background: rgba(88,166,255,0.08);
  border: 1px solid rgba(88,166,255,0.20);
  color: var(--accent-2);
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  transition: background .12s, transform .12s;
}
.suggest-chip:hover {
  background: rgba(88,166,255,0.18);
  transform: translateY(-1px);
}

/* Hero stats */
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.stat-pill {
  display: flex; align-items: baseline; gap: 6px;
  padding: 8px 14px;
  background: rgba(22,27,34,0.6);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none !important;
  transition: border-color .12s, transform .12s;
}
.stat-pill:hover { border-color: var(--accent); transform: translateY(-1px); }
.stat-pill b {
  color: var(--accent-2);
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.stat-pill span {
  color: var(--text-muted);
  font-size: 12px;
}

/* Hero about card (right column on desktop, below on mobile) */
.hero-about {
  display: flex;
}
.hero-about-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 22px 22px 20px;
  background:
    linear-gradient(135deg, rgba(88,166,255,0.08), rgba(188,140,255,0.05) 60%, rgba(57,208,216,0.06)),
    rgba(13,17,23,0.6);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  text-decoration: none !important;
  color: var(--text);
  overflow: hidden;
  transition: border-color .15s, transform .15s;
}
.hero-about-card::before {
  content: '';
  position: absolute;
  top: 0; right: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(88,166,255,0.25), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-about-card::after {
  content: '';
  position: absolute;
  bottom: -30px; left: -30px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(188,140,255,0.20), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-about-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.hero-about-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.hero-about-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px;
  background: rgba(88,166,255,0.12);
  border: 1px solid rgba(88,166,255,0.30);
  color: var(--accent-2);
  border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.hero-about-arrow {
  color: var(--text-dim);
  font-size: 16px;
  transition: color .12s, transform .12s;
}
.hero-about-card:hover .hero-about-arrow {
  color: var(--accent-2);
  transform: translate(2px, -2px);
}
.hero-about-title {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  position: relative;
  z-index: 1;
}
.hero-about-tagline {
  margin: 0 0 14px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  color: var(--accent-2);
  font-style: italic;
  position: relative;
  z-index: 1;
}
.hero-about-desc {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-dim);
  position: relative;
  z-index: 1;
}
.hero-about-features {
  list-style: none; margin: 0 0 18px; padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  position: relative;
  z-index: 1;
}
.hero-about-features li {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px;
  color: var(--text);
}
.hero-about-features .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.hero-about-features .d-blue   { background: var(--accent); box-shadow: 0 0 6px rgba(88,166,255,0.6); }
.hero-about-features .d-purple { background: var(--purple);  box-shadow: 0 0 6px rgba(188,140,255,0.6); }
.hero-about-features .d-green  { background: var(--success); box-shadow: 0 0 6px rgba(63,185,80,0.6); }
.hero-about-features .d-orange { background: var(--warn);    box-shadow: 0 0 6px rgba(210,153,34,0.6); }

.hero-about-cta {
  display: flex; align-items: center; gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}
.hero-about-cta code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  color: var(--accent-2);
  background: rgba(88,166,255,0.08);
  padding: 2px 8px;
  border: 1px solid rgba(88,166,255,0.20);
  border-radius: 4px;
}
.hero-about-card:hover .hero-about-cta { color: var(--text-dim); }
.hero-about-card:hover .hero-about-cta code { color: var(--accent-2); background: rgba(88,166,255,0.15); }

/* ---------- Section heads ---------- */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px;
  margin: 0 0 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.section-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex; align-items: baseline; gap: 12px;
}
.section-num {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  color: var(--accent);
  font-weight: 400;
  letter-spacing: 0.05em;
}
.section-head .muted { margin: 0; }

/* ---------- Hot grid (Top 20) ---------- */
.top-grid { margin-bottom: 56px; }
.hot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.hot-card {
  display: flex; flex-direction: column;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none !important;
  color: var(--text);
  transition: border-color .15s, transform .15s;
}
.hot-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.hot-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg-elev2), var(--bg));
  overflow: hidden;
}
.hot-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .3s;
}
.hot-card:hover .hot-card-thumb img { transform: scale(1.04); }
.hot-card-placeholder {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  background:
    radial-gradient(ellipse at center, rgba(88,166,255,0.15), transparent 70%),
    var(--bg-elev2);
}
.hot-card-placeholder span {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  color: var(--text-muted);
  text-transform: lowercase;
}
.hot-card-rank {
  position: absolute; top: 8px; left: 8px;
  padding: 2px 8px;
  background: rgba(13,17,23,0.85);
  backdrop-filter: blur(4px);
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  color: var(--text);
  font-weight: 600;
}
.hot-card-kind {
  position: absolute; top: 8px; right: 8px;
}
.hot-card-body {
  padding: 14px 14px 12px;
  display: flex; flex-direction: column; gap: 8px;
  flex: 1;
}
.hot-card-title {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hot-card-desc {
  margin: 0;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.hot-card-meta {
  display: flex; align-items: center; gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

/* ---------- Filter section ---------- */
.filter-section { margin-bottom: 60px; }
.filter-bar-wrap {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 18px;
}
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-top: 12px;
}
.filter-bar:first-child { margin-top: 0; }
.filter-label { color: var(--text-dim); font-size: 13px; margin-right: 4px; }

.chip, .tagchip {
  padding: 4px 12px;
  border: 1px solid var(--border);
  background: var(--bg-elev2);
  color: var(--text-dim);
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-family: inherit;
  transition: all .12s;
  text-decoration: none !important;
  display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover, .tagchip:hover { background: var(--bg-elev3); color: var(--text); border-color: var(--border-strong); }
.chip.active, .tagchip.active {
  background: rgba(88,166,255,0.16);
  border-color: var(--accent);
  color: var(--accent-2);
}
.chip .count, .tagchip .count {
  font-size: 11px; color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  padding: 0 6px; border-radius: 6px;
}
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tagchip.big { padding: 6px 14px; font-size: 13px; }

.select {
  padding: 5px 28px 5px 10px;
  background: var(--bg-elev2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%238b949e' stroke-width='2'%3E%3Cpath d='M3 5l3 3 3-3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}
.select:focus { outline: none; border-color: var(--accent); }

.result-count {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  margin: 0 0 14px;
  padding-left: 4px;
}

/* =============================================================
   OLD STYLES (kept for detail / kinds / stats / about pages)
   ============================================================= */

.top-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
@media (max-width: 760px) { .top-list { grid-template-columns: 1fr; } }

.top-list li {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
}
.rank { color: var(--text-muted); font-size: 14px; font-weight: 600; min-width: 30px; }
.top-link { flex: 1; min-width: 0; color: var(--text); }
.top-link:hover { text-decoration: none; }
.top-link strong { display: block; font-size: 14px; margin-bottom: 4px; color: var(--accent-2); }
.top-link .meta { display: flex; gap: 10px; font-size: 12px; color: var(--text-dim); margin-bottom: 4px; flex-wrap: wrap; }
.top-link .desc { display: block; font-size: 13px; color: var(--text-dim); line-height: 1.5; }

/* Plugin grid (search results) */
.plugin-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}
.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  transition: border-color .12s, transform .12s;
}
.card:hover { border-color: var(--accent); }
.card.mini { padding: 0; overflow: hidden; }
.card h3 { margin: 0 0 10px; font-size: 15px; }
.card ul { margin: 0; padding-left: 18px; }
.card ul li { margin: 4px 0; font-size: 13px; }
.card .more { display: inline-block; margin-top: 10px; font-size: 13px; }

.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.plugin-grid .card a {
  display: block; color: var(--text);
}
.plugin-grid .card a:hover { text-decoration: none; }
.plugin-grid .card strong {
  display: block; font-size: 13px; color: var(--accent-2);
  margin-bottom: 6px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.plugin-grid .card .meta {
  display: flex; gap: 10px; font-size: 12px; color: var(--text-dim); margin-bottom: 6px; flex-wrap: wrap;
}
.plugin-grid .card .desc {
  font-size: 12px; color: var(--text-dim);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ------- Kind / category badges ------- */
.kind {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  border-radius: 4px;
  font-weight: 500;
  background: rgba(88,166,255,0.12);
  color: var(--accent-2);
  backdrop-filter: blur(4px);
}
.kind.k-plugin { background: rgba(63,185,80,0.18); color: #56d364; }
.kind.k-client { background: rgba(210,153,34,0.20); color: #e3b341; }
.kind.k-skin   { background: rgba(248,113,113,0.16); color: #ff7b72; }
.kind.k-resource { background: rgba(139,148,158,0.20); color: #c9d1d9; }
.kind.k-other { background: rgba(139,148,158,0.14); color: #c9d1d9; }

.stars { color: #e3b341; font-size: 12px; font-variant-numeric: tabular-nums; }
.lic { color: var(--text-muted); font-size: 11px; padding: 0 6px; border: 1px solid var(--border); border-radius: 4px; }

.cat {
  display: inline-block;
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 4px;
  background: rgba(139,148,158,0.10);
  color: var(--text-dim) !important;
  text-decoration: none !important;
}
.cat:hover { background: rgba(139,148,158,0.20); color: var(--text) !important; }

/* =============================================================
   Plugin detail page
   ============================================================= */
.crumbs { font-size: 13px; color: var(--text-dim); margin-bottom: 18px; }
.crumbs a { color: var(--text-dim); }

.plugin-detail header h1 {
  margin: 0 0 10px; font-size: 28px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.plugin-detail .meta-row {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0;
}
.plugin-detail .desc { font-size: 16px; color: var(--text); margin: 14px 0; line-height: 1.7; }
.plugin-detail .desc.intro { font-size: 17px; }
.catalog-desc { margin-top: -6px; font-size: 12px; font-style: italic; opacity: 0.75; }
.plugin-detail .links { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }

/* HERO IMAGE on detail page */
.hero-image {
  display: block;
  margin: 0 0 24px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  transition: border-color .15s;
}
.hero-image:hover { border-color: var(--accent); }
.hero-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  object-position: top center;
}

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none !important;
  font-family: inherit;
  transition: background .12s, border-color .12s;
}
.btn:hover { background: var(--bg-elev2); border-color: var(--accent); }
.btn.primary { background: var(--accent); color: #0d1117; border-color: var(--accent); font-weight: 500; }
.btn.primary:hover { background: var(--accent-2); }
.btn.small { padding: 4px 10px; font-size: 12px; }

.install-block { margin: 28px 0; }
.install-block pre { margin: 8px 0; }

/* =============================================================
   README section (full rendered markdown)
   ============================================================= */
.readme-section { margin: 28px 0; }
.readme-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.readme-section-head h2 { margin: 0; font-size: 22px; font-weight: 700; }
.readme-section-meta { color: var(--text-muted); font-size: 12px; }

.readme-collapsible {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elev);
  overflow: hidden;
}
.readme-collapsible > summary {
  cursor: pointer;
  padding: 14px 18px;
  background: var(--bg-elev2);
  border-bottom: 1px solid var(--border);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  color: var(--accent-2);
  user-select: none;
  list-style: none;
  display: flex; align-items: center; gap: 8px;
  transition: background .12s;
}
.readme-collapsible > summary::-webkit-details-marker { display: none; }
.readme-collapsible > summary::before {
  content: '▶';
  display: inline-block;
  font-size: 9px;
  color: var(--text-muted);
  transition: transform .15s;
}
.readme-collapsible[open] > summary::before { transform: rotate(90deg); }
.readme-collapsible > summary:hover { background: var(--bg-elev3); }
.readme-collapsible > summary > .readme-toggle-short { display: none; }
.readme-collapsible[open] > summary > .readme-toggle { display: none; }
.readme-collapsible[open] > summary > .readme-toggle-short { display: inline; }
.readme-collapsible[open] > summary { border-bottom: 1px solid var(--border); }

.readme-body {
  padding: 24px 28px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  max-width: 100%;
  word-wrap: break-word;
}
/* README inner element styling */
.readme-body h1,
.readme-body h2,
.readme-body h3,
.readme-body h4,
.readme-body h5,
.readme-body h6 {
  margin: 1.6em 0 0.6em;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.readme-body h1 { font-size: 1.8em; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.readme-body h2 { font-size: 1.45em; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.readme-body h3 { font-size: 1.2em; }
.readme-body h4 { font-size: 1.05em; }
.readme-body h5,
.readme-body h6 { font-size: 1em; color: var(--text-dim); }
.readme-body h1:first-child,
.readme-body h2:first-child { margin-top: 0; }

.readme-body p { margin: 0 0 1em; }
.readme-body a {
  color: var(--accent-2);
  text-decoration: none;
  border-bottom: 1px dashed rgba(88,166,255,0.4);
}
.readme-body a:hover { border-bottom-style: solid; }

.readme-body code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.88em;
  background: rgba(110, 118, 129, 0.20);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--accent-2);
}
.readme-body pre {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  overflow-x: auto;
  margin: 1em 0;
  font-size: 13px;
  line-height: 1.55;
}
.readme-body pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: var(--text);
  font-size: inherit;
}
.readme-body pre code.lang-bash,
.readme-body pre code.lang-sh,
.readme-body pre code.lang-shell { color: #c9d1d9; }
.readme-body pre code.lang-js,
.readme-body pre code.lang-javascript,
.readme-body pre code.lang-ts,
.readme-body pre code.lang-typescript { color: #c9d1d9; }
.readme-body pre code.lang-json { color: #c9d1d9; }
.readme-body pre code.lang-yaml { color: #c9d1d9; }

.readme-body blockquote {
  margin: 1em 0;
  padding: 8px 16px;
  border-left: 3px solid var(--accent);
  background: rgba(88,166,255,0.06);
  border-radius: 0 6px 6px 0;
  color: var(--text-dim);
}
.readme-body blockquote p:last-child { margin-bottom: 0; }

.readme-body ul,
.readme-body ol {
  margin: 0 0 1em;
  padding-left: 1.6em;
}
.readme-body li { margin: 4px 0; }
.readme-body li > ul,
.readme-body li > ol { margin: 4px 0; }

.readme-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2em 0;
}

.readme-body table {
  border-collapse: collapse;
  width: auto;
  max-width: 100%;
  margin: 1em 0;
  font-size: 0.9em;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  display: block;
  overflow-x: auto;
}
.readme-body th,
.readme-body td {
  padding: 8px 14px;
  border: 1px solid var(--border);
  text-align: left;
}
.readme-body th {
  background: var(--bg-elev2);
  color: var(--text);
  font-weight: 600;
}
.readme-body td { color: var(--text-dim); }

.readme-body img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--border);
  margin: 0.5em 0;
}

.readme-footer {
  margin: 14px 0 0;
  padding: 0 4px;
  font-size: 12px;
}
.readme-footer code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  padding: 1px 6px;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--accent-2);
}

.toc { list-style: none; padding-left: 0; column-count: 2; column-gap: 24px; }
.toc li { font-size: 13px; color: var(--text-dim); padding: 3px 0; break-inside: avoid; }
.toc li.l1 { color: var(--text); font-weight: 500; }
.toc li.l2 { padding-left: 12px; }
.toc li.l3 { padding-left: 24px; }

details summary {
  cursor: pointer; color: var(--accent-2);
  padding: 6px 0; user-select: none;
}

/* mini thumbnail in related cards */
.card.mini a { display: block; color: var(--text); }
.card.mini a:hover { text-decoration: none; }
.card.mini .card-thumb {
  display: block;
  width: 100%;
  height: 100px;
  object-fit: cover;
  object-position: top center;
  background: var(--bg-elev2);
  border-bottom: 1px solid var(--border);
}
.card.mini strong,
.card.mini .meta,
.card.mini .desc { padding: 0 12px; }
.card.mini strong { display: block; padding-top: 10px; font-size: 12px; color: var(--accent-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card.mini .meta { padding-top: 6px; padding-bottom: 6px; font-size: 11px; }
.card.mini .desc { padding-bottom: 10px; font-size: 11px; -webkit-line-clamp: 2; }
.related .plugin-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* =============================================================
   Stats / kinds / about pages
   ============================================================= */
.site-notice {
  margin: 18px 0 24px;
  padding: 14px 18px;
  background: rgba(88, 166, 255, 0.08);
  border: 1px solid rgba(88, 166, 255, 0.30);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}
.site-notice strong { color: var(--accent-2); font-weight: 600; }
.site-notice del { color: var(--text-muted); }

/* ============================================================
   About page — humorous redesign
   ============================================================ */
.about-hero {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
  margin: 8px 0 28px;
}
.about-big {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
}
.about-big strong { color: var(--accent-2); }
.about-quip {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}
.role-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border-strong);
  background: var(--bg-elev2);
  color: var(--text);
}
.role-badge.b-dev   { background: rgba(88, 166, 255, 0.12); border-color: rgba(88, 166, 255, 0.4);  color: var(--accent-2); }
.role-badge.b-admin { background: rgba(188, 140, 255, 0.12); border-color: rgba(188, 140, 255, 0.4); color: #cda8ff; }
.role-badge.b-ops   { background: rgba(63, 185, 80, 0.12);   border-color: rgba(63, 185, 80, 0.4);   color: #56d364; }
.role-badge.b-cs    { background: rgba(210, 153, 34, 0.14);  border-color: rgba(210, 153, 34, 0.4);  color: #e3b341; }
.role-badge.b-qa    { background: rgba(248, 113, 113, 0.12); border-color: rgba(248, 113, 113, 0.4); color: #ff7b72; }

.about-footer {
  margin-top: 36px;
  padding: 16px 20px;
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
}

.contact-email {
  margin: 16px 0;
}
.contact-email a {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 17px;
  color: var(--accent-2);
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 10px 18px;
  text-decoration: none !important;
  transition: border-color .12s, background .12s;
}
.contact-email a:hover {
  border-color: var(--accent);
  background: var(--bg-elev2);
}

.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px; margin: 24px 0;
}
.stat {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}
.stat-num { font-size: 28px; font-weight: 700; color: var(--accent-2); }
.stat-label { color: var(--text-dim); font-size: 13px; margin-top: 4px; }

.data-table {
  width: 100%; border-collapse: collapse; margin: 12px 0 24px;
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 6px; overflow: hidden;
}
.data-table th, .data-table td { padding: 8px 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: 13px; }
.data-table th { background: var(--bg-elev2); color: var(--text-dim); font-weight: 500; }
.data-table td.num, .data-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table tr:last-child td { border-bottom: none; }

/* =============================================================
   Misc
   ============================================================= */
.muted { color: var(--text-muted); }
.small { font-size: 12px; }
h2 small { color: var(--text-muted); font-weight: normal; font-size: 14px; }

@media (max-width: 760px) {
  .site-header { flex-wrap: wrap; gap: 8px 10px; padding: 10px 14px; }
  .site-header .brand { flex: 1 1 auto; }
  .site-header nav.site-nav-main {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    gap: 14px;
    padding-top: 4px;
    border-top: 1px solid var(--border);
    margin-top: 2px;
    font-size: 14px;
  }
  .site-header nav.site-nav-main a { padding: 2px 0; }
  .lang-switcher {
    margin-left: auto;
    padding-left: 10px;
    border-left: 1px solid var(--border);
    font-size: 12px;
  }
  .lang-switcher a { padding: 2px 4px; }
  .container { padding: 16px; }
  .toc { column-count: 1; }
  .hot-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

/* 超小屏（<400px）：nav 间距更紧 */
@media (max-width: 400px) {
  .site-header nav.site-nav-main { gap: 10px; }
  .site-header .brand .tagline { display: none; }
}
