﻿:root {
      --bg: #ffffff;
      --line: #e7edf4;
      --text: #0f172a;
      --muted: #64748b;
      --accent: #0b63f6;
      --accent-soft: #edf4ff;
      --ok: #067647;
      --err: #b42318;
      --surface: #fbfdff;
    }
    * { box-sizing: border-box; }
    body {
      margin: 0;
      font-family: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
      background:
        radial-gradient(980px 380px at 50% -190px, #eef5ff 0%, #ffffff 70%) no-repeat,
        var(--bg);
      color: var(--text);
    }
    .wrap { width: min(1240px, 94vw); margin: 18px auto 40px; animation: fade-up .45s ease; }
    .topbar {
      position: sticky;
      top: 10px;
      z-index: 20;
      display: flex;
      justify-content: space-between;
      gap: 10px;
      align-items: center;
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 12px 14px;
      background: rgba(255,255,255,0.88);
      backdrop-filter: blur(8px);
      transition: transform .22s ease, opacity .22s ease;
    }
    .topbar.hide-on-scroll {
      transform: translateY(-130%);
      opacity: 0.01;
      pointer-events: none;
    }
    .brand h1 { margin: 0; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.2px; }
    .brand p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
    .btn {
      border: 1px solid var(--line);
      background: #fff;
      color: #1f2937;
      border-radius: 10px;
      padding: 9px 14px;
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
      transition: border-color .2s ease, transform .15s ease, box-shadow .2s ease;
    }
    .btn:hover { border-color: #d0d9e5; box-shadow: 0 7px 16px rgba(15, 23, 42, 0.06); }
    .btn:active { transform: translateY(1px); }
    .btn.primary { border-color: var(--accent); background: var(--accent); color: #fff; }
    .btn.primary:hover { box-shadow: 0 10px 20px rgba(11, 99, 246, 0.25); }
    .top-actions { display: flex; gap: 8px; }
    .hero { padding: 14px 2px 10px; }
    .hero h2 { margin: 0; font-size: clamp(25px, 3.2vw, 40px); line-height: 1.05; letter-spacing: -0.35px; }
    .hero p { margin: 8px 0 0; color: var(--muted); font-size: clamp(14px, 1.25vw, 16px); }
    .panel {
      border: 1px solid var(--line);
      border-radius: 16px;
      padding: 14px;
      background: linear-gradient(180deg, #ffffff 0%, var(--surface) 100%);
    }
    .toolbar {
      display: grid;
      grid-template-columns: minmax(280px, 1fr) auto auto auto;
      gap: 8px;
      align-items: center;
      margin-bottom: 10px;
    }
    .search { width: 100%; border: 1px solid var(--line); border-radius: 11px; padding: 11px 13px; font-size: 14px; background: #fff; }
    .search:focus { outline: none; border-color: #c8d7ec; box-shadow: 0 0 0 3px rgba(11, 99, 246, 0.08); }
    .chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
    .chip { border: 1px solid var(--line); background: #fff; color: #334155; border-radius: 999px; padding: 7px 12px; font-size: 13px; cursor: pointer; transition: border-color .2s ease; }
    .chip:hover { border-color: #d2dceb; }
    .chip.active { border-color: var(--accent); background: var(--accent-soft); color: #15438f; }
    .meta { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
    .list { display: grid; gap: 9px; max-height: 66vh; overflow: auto; padding-right: 2px; }
    .row {
      display: grid;
      grid-template-columns: 28px 1.45fr 0.7fr 0.45fr auto;
      gap: 10px;
      align-items: center;
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 11px 10px;
      background: #fff;
      transition: border-color .2s ease, box-shadow .2s ease;
    }
    .row:hover { border-color: #d7e0ec; box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05); }
    .pick { width: 17px; height: 17px; cursor: pointer; }
    .title-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    .name { font-size: 17px; font-weight: 700; line-height: 1.2; }
    .mode-badge { font-size: 11px; border-radius: 999px; padding: 2px 8px; border: 1px solid var(--line); color: #374151; background: #f8fafc; }
    .mode-badge.direct { border-color: #b7dcff; color: #0b4ea9; background: #eef6ff; }
    .mode-badge.official { border-color: #e9d5ff; color: #6d28d9; background: #f6f0ff; }
    .desc { font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.35; }
    .sys, .ver { color: var(--muted); font-size: 13px; white-space: nowrap; }
    .download { border: none; border-radius: 9px; padding: 8px 12px; font-size: 13px; font-weight: 700; cursor: pointer; background: #111827; color: #fff; }
    .status { margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; font-size: 13px; background: #fafafa; }
    .status.ok { color: var(--ok); border-color: #ccebdc; background: #f4fbf7; }
    .status.err { color: var(--err); border-color: #f4cccc; background: #fff7f7; }
    .contact { margin-top: 12px; }
    .contact h3 { margin: 0 0 8px; font-size: 18px; }
    .contact p { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
    .contact-list { display: grid; gap: 6px; }
    .contact-item { border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: 13px; background: #fff; }
    @keyframes fade-up {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .hidden { display: none; }
.empty { text-align: center; color: var(--muted); font-size: 13px; padding: 12px; border: 1px dashed var(--line); border-radius: 8px; }
.category-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  padding: 8px 4px 2px;
}
.loading-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  animation: loading-pulse .9s ease-in-out infinite;
}
@keyframes loading-pulse {
  0%, 100% { opacity: .25; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1); }
}
    @media (max-width: 980px) {
      .toolbar { grid-template-columns: 1fr 1fr; }
      .row { grid-template-columns: 28px 1fr auto; }
      .sys, .ver { display: none; }
      .topbar { align-items: flex-start; }
      .top-actions { flex-wrap: wrap; justify-content: flex-end; }
      .wrap { width: min(1240px, 96vw); }
      .panel { padding: 12px; }
    }.mode-badge.pan { border-color: #a7f3d0; color: #065f46; background: #ecfdf5; }
.status-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.btn.small { padding: 7px 11px; font-size: 12px; font-weight: 600; }
.log-panel {
  position: fixed;
  right: 10px;
  bottom: 10px;
  width: min(340px, calc(100vw - 20px));
  max-height: 34vh;
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
  overflow: hidden;
  z-index: 60;
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.log-panel.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px) scale(0.98);
}
.log-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  background: #f8fbff;
  font-size: 13px;
  font-weight: 700;
}
.log-actions { display: flex; gap: 6px; }
.log-list {
  margin: 0;
  padding: 6px;
  list-style: none;
  overflow: auto;
  display: grid;
  gap: 5px;
  font-size: 11px;
}
.log-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
  background: #fff;
  line-height: 1.35;
}
.log-item.ok { border-color: #ccebdc; background: #f5fcf7; }
.log-item.err { border-color: #f4cccc; background: #fff7f7; }
.log-item.muted { border-color: #dbe7f6; background: #f7faff; }
.log-time { color: var(--muted); margin-right: 6px; }
.log-empty { color: var(--muted); text-align: center; padding: 10px; }

