:root {
  --ink: #172033;
  --muted: #667085;
  --line: #dfe5ef;
  --panel: #fff;
  --blue: #1d4ed8;
  --blue2: #eff5ff;
  --bg: #f4f7fb;
  --amber: #f59e0b;
  --shadow: 0 16px 42px rgba(31,52,84,.10);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(rgba(29, 78, 216, 0.08) 1.2px, transparent 1.2px) 0 0 / 24px 24px, radial-gradient(rgba(29, 78, 216, 0.08) 1.2px, transparent 1.2px) 12px 12px / 24px 24px, linear-gradient(180deg, #eaf2ff 0%, #f4f7fb 260px) #f4f7fb !important;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}

button, input {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 70px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(29,78,216,.25);
}

.logo svg {
  width: 28px;
  fill: #fff;
}

h1 {
  font-size: 1.55rem;
  margin: 0 0 5px;
  letter-spacing: .01em;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}

.source {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #526070;
  font-size: .86rem;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.9);
  padding: 9px 12px;
  border-radius: 999px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
}

.dot.live {
  background: #16a34a;
  box-shadow: 0 0 0 4px rgba(22,163,74,.10);
}

.dot.error {
  background: #dc2626;
}

.workspace {
  background: var(--panel);
  border: 1px solid rgba(217,226,238,.9);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.search-zone {
  padding: 26px;
  border-bottom: 1px solid var(--line);
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.input-wrap {
  position: relative;
}

.input-wrap svg {
  position: absolute;
  left: 17px;
  top: 50%;
  transform: translateY(-50%);
  width: 21px;
  stroke: #748096;
}

#query {
  width: 100%;
  height: 54px;
  border: 1.5px solid #cbd5e1;
  border-radius: 13px;
  padding: 0 50px;
  font-size: 1.08rem;
  color: var(--ink);
  outline: none;
  transition: .18s;
  background: #fbfdff;
}

#query:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(29,78,216,.10);
  background: #fff;
}

.refresh {
  height: 54px;
  border: 0;
  border-radius: 13px;
  padding: 0 18px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 7px 18px rgba(29,78,216,.20);
}

.refresh svg {
  width: 18px;
  stroke: currentColor;
}

.summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 26px;
  color: var(--muted);
  font-size: .9rem;
  background: #fbfcfe;
  border-bottom: 1px solid var(--line);
}

.empty {
  min-height: 330px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 44px;
  color: var(--muted);
}

.empty svg {
  width: 52px;
  height: 52px;
  stroke: #b4c0d0;
  margin-bottom: 12px;
}

.empty h2 {
  font-size: 1.05rem;
  color: #38475d;
  margin: 0 0 7px;
}

.progress {
  width: min(360px, 80vw);
  height: 8px;
  border-radius: 999px;
  background: #e8edf5;
  margin: 18px auto 8px;
  overflow: hidden;
}

.progress > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  width: 12%;
  border-radius: inherit;
  transition: width .25s;
}

footer {
  text-align: center;
  color: #8a96a7;
  font-size: .78rem;
  margin-top: 18px;
}

#refresh, .folder-download {
  background: linear-gradient(90deg, #0084ff 0%, #1652f0 100%) !important;
  border: none !important;
}

.item:hover {
  transform: scale(1.006) !important;
  transform-origin: center center !important;
  box-shadow: 0 8px 22px rgba(29, 78, 216, 0.15) !important;
  background: #ffffff !important;
  z-index: 10 !important;
}

.chip:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.16) !important;
  border-color: #b9cdfa !important;
  color: #1744b5 !important;
}

.open:hover {
  background: #eff5ff !important;
  border-color: #2563eb !important;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.12) !important;
  transform: translateY(-1px) !important;
}

#query:focus {
  border-color: #0084ff !important;
  box-shadow: 0 0 0 4px rgba(0, 132, 255, 0.20), 0 6px 20px rgba(0, 132, 255, 0.08) !important;
  background: #ffffff !important;
}

.name::after {
  content: "复制";
  font-size: 11px;
  color: #1d4ed8;
  background: #eff5ff;
  border: 1px solid #cbdcfc;
  border-radius: 6px;
  padding: 2px 7px;
  margin-left: 8px;
  transition: all 0.2s ease;
}

.name:hover::after {
  background: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.25);
  transform: translateY(-1px);
}

