/* Generated by converter. Edit sources, not dist. */
/* GatePath 全站共享样式 — 设计变量、布局、导航、工具栏 */

:root {
  color-scheme: light dark;
  --bg: #f6f7f9;
  --panel: #ffffff;
  --text: #17202a;
  --muted: #637083;
  --line: #dfe4ea;
  --accent: #0f766e;
  --accent-strong: #0b5d56;
  --warn: #a15c00;
  --danger: #a12a2a;
  --ok: #1b7f4b;
  --soft: #eef3f2;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.18);
  --accent-glow: rgba(15, 118, 110, 0.12);
  --gradient-accent: linear-gradient(135deg, #0f766e, #14b8a6);
  --radius-lg: 14px;
  --radius-xl: 18px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101418;
    --panel: #171d23;
    --text: #edf2f7;
    --muted: #9aa8b7;
    --line: #28333d;
    --accent: #2dd4bf;
    --accent-strong: #5eead4;
    --warn: #f6ad55;
    --danger: #fc8181;
    --ok: #68d391;
    --soft: #1f2a30;
    --glass: rgba(23, 29, 35, 0.78);
    --glass-border: rgba(255, 255, 255, 0.06);
    --accent-glow: rgba(45, 212, 191, 0.1);
    --gradient-accent: linear-gradient(135deg, #2dd4bf, #14b8a6);
  }
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: color-mix(in srgb, var(--accent), transparent 72%);
  color: var(--text);
}

a { color: var(--accent-strong); }

header {
  position: sticky;
  top: 0;
  z-index: 12;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel), transparent 4%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.wrap {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
}

.hub-site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 16px 0 0;
  font-size: 13px;
}

.hub-site-nav a {
  text-decoration: none;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
}

.hub-site-nav a.active {
  border-color: var(--accent);
  color: var(--accent-strong);
  font-weight: 600;
}

.top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: end;
  padding: 20px 0 16px;
}

h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: 0;
}

.sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 640px;
}

.stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.stat {
  border: 1px solid var(--line);
  padding: 8px 10px;
  min-width: 72px;
  background: var(--bg);
  border-radius: 8px;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 18px;
  line-height: 1;
}

.stat span {
  color: var(--muted);
  font-size: 11px;
}

.toolbar {
  display: grid;
  gap: 10px;
  padding: 0 0 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.toolbar-primary,
.toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.toolbar-primary {
  display: grid;
  grid-template-columns: minmax(200px, 1.5fr) repeat(auto-fit, minmax(108px, 1fr));
  gap: 10px;
}

input, select, button {
  font: inherit;
  min-height: 38px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  padding: 8px 10px;
  min-width: 0;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

input[type="search"] {
  -webkit-appearance: none;
  appearance: none;
}

input[type="search"]::placeholder,
input::placeholder {
  color: color-mix(in srgb, var(--muted), transparent 20%);
}

.search-field {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

.search-field-grow {
  flex: 1;
  min-width: 200px;
}

.search-field input[type="search"] {
  width: 100%;
  padding-right: 52px;
}

.search-kbd-hint {
  position: absolute;
  right: 10px;
  display: inline-flex;
  align-items: center;
  pointer-events: none;
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.search-kbd-hint kbd {
  display: inline-block;
  min-width: 18px;
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--bg);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

.search-kbd-hint[hidden] { display: none; }

.search-field:has(.search-clear:not([hidden])) .search-kbd-hint {
  display: none;
}

.search-clear {
  position: absolute;
  right: 6px;
  min-height: 28px;
  width: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}

.search-clear:hover,
.search-clear:focus-visible {
  background: var(--soft);
  color: var(--text);
}

.search-clear[hidden] { display: none; }

button {
  cursor: pointer;
  background: var(--bg);
  white-space: nowrap;
}

button:active:not(:disabled) {
  transform: translateY(1px);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}

button.primary,
.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

button.active {
  border-color: var(--accent);
  color: var(--accent-strong);
  font-weight: 600;
  background: var(--soft);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible,
.hub-site-nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-chips button {
  font-size: 12px;
  padding: 6px 10px;
}

.filter-chips button.active {
  background: var(--soft);
  border-color: var(--accent);
  color: var(--accent-strong);
  font-weight: 600;
}

details.panel-fold {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  overflow: hidden;
}

details.panel-fold summary {
  cursor: pointer;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

details.panel-fold summary::-webkit-details-marker { display: none; }

details.panel-fold summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

details.panel-fold summary::after {
  content: "▾";
  font-size: 12px;
}

details.panel-fold:not([open]) summary::after { content: "▸"; }

details.panel-fold .panel-body {
  border-top: 1px solid var(--line);
  padding: 10px 12px;
  display: grid;
  gap: 10px;
}

.empty {
  color: var(--muted);
  font-size: 14px;
  padding: 32px 0;
  text-align: center;
}

.result-count {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 12px;
}

.empty-state {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  padding: 36px 16px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--panel), var(--bg) 50%);
}

.empty-state[hidden] { display: none; }

.empty-state .empty-title {
  margin: 0;
  font-size: 15px;
  color: var(--text);
  font-weight: 600;
}

.empty-state .empty-hint {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  max-width: 420px;
  line-height: 1.45;
}

.card-kbd-hint {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(12px);
  z-index: 30;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 24px color-mix(in srgb, #000, transparent 75%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast:not([hidden]) {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast[hidden] { display: none; }

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.loading-pulse {
  background: linear-gradient(
    90deg,
    var(--line) 0%,
    color-mix(in srgb, var(--line), var(--panel) 40%) 50%,
    var(--line) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

.filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.filter-badge[hidden] { display: none; }

button .filter-badge {
  margin-left: 6px;
}

body.detail-open { overflow: hidden; }

main { padding: 18px 0 36px; }

@media (max-width: 720px) {
  .top { grid-template-columns: 1fr; gap: 8px; }
  .stats { justify-content: flex-start; }
  .toolbar-primary { grid-template-columns: 1fr; }
  select, input[type="search"] { width: 100%; }
}

.client-bar,
.quick,
.display-bar,
.options-bar,
.letters,
.source-sidebar {
  scrollbar-color: color-mix(in srgb, var(--muted), transparent 50%) transparent;
}

.client-bar::-webkit-scrollbar,
.quick::-webkit-scrollbar,
.display-bar::-webkit-scrollbar,
.options-bar::-webkit-scrollbar,
.letters::-webkit-scrollbar,
.source-sidebar::-webkit-scrollbar {
  height: 5px;
  width: 5px;
}

.client-bar::-webkit-scrollbar-thumb,
.quick::-webkit-scrollbar-thumb,
.display-bar::-webkit-scrollbar-thumb,
.options-bar::-webkit-scrollbar-thumb,
.letters::-webkit-scrollbar-thumb,
.source-sidebar::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--muted), transparent 40%);
  border-radius: 999px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  button:active:not(:disabled) {
    transform: none;
  }
}
