@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;600;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  width: 100%; height: 100%; overflow: hidden;
  font-family: 'Inter', 'Segoe UI', '微软雅黑', sans-serif;
  font-size: 13px; color: #1a1a2e;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}
body.electron-mode { border: 1px solid rgba(0,0,0,0.1); border-top: none; }

/* ===== Toast ===== */
.toast-container {
  position: fixed; right: 24px; bottom: 72px; z-index: 9999;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
  min-width: 240px; max-width: 360px; padding: 10px 14px;
  border-radius: 8px; background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  border: 1px solid rgba(0,0,0,0.06);
  display: flex; align-items: flex-start; gap: 10px;
  animation: toastIn 0.22s cubic-bezier(.2,.8,.2,1);
  pointer-events: auto;
}
@keyframes toastIn { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.toast.success { border-left: 3px solid #10b981; }
.toast.error { border-left: 3px solid #ef4444; }
.toast.warning { border-left: 3px solid #f59e0b; }
.toast.info { border-left: 3px solid #2563eb; }
.toast .ico { width: 20px; height: 20px; flex-shrink: 0; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #fff; font-weight: 700; }
.toast.success .ico { background: #10b981; }
.toast.error .ico { background: #ef4444; }
.toast.warning .ico { background: #f59e0b; }
.toast.info .ico { background: #2563eb; }
.toast .msg { flex: 1; font-size: 12.5px; line-height: 1.5; color: #1a1a2e; }
.toast .close { background: none; border: none; cursor: pointer; color: #94a3b8; font-size: 14px; padding: 2px; line-height: 1; }
.toast .close:hover { color: #1a1a2e; }

/* ===== Loading ===== */
.loading {
  position: fixed; inset: 0; background: rgba(11, 26, 58, 0.55);
  backdrop-filter: blur(6px); z-index: 9998;
  display: none; align-items: center; justify-content: center; flex-direction: column; gap: 14px;
}
.loading.active { display: flex; animation: toastIn 0.2s ease; }
.loading .spinner {
  width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.25);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading #loadingText { color: #fff; font-weight: 500; letter-spacing: 0.3px; }

/* ===== Desktop (Win11 Bloom) ===== */
#desktop {
  position: fixed; inset: 0; bottom: 48px;
  background: #0b1a3a;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1920 1080' preserveAspectRatio='xMidYMid slice'><defs><radialGradient id='g1' cx='30%25' cy='25%25' r='60%25'><stop offset='0%25' stop-color='%23ff7eb3' stop-opacity='0.85'/><stop offset='40%25' stop-color='%23b286ff' stop-opacity='0.55'/><stop offset='100%25' stop-color='%230b1a3a' stop-opacity='0'/></radialGradient><radialGradient id='g2' cx='75%25' cy='75%25' r='55%25'><stop offset='0%25' stop-color='%2322d3ee' stop-opacity='0.6'/><stop offset='50%25' stop-color='%233b82f6' stop-opacity='0.4'/><stop offset='100%25' stop-color='%230b1a3a' stop-opacity='0'/></radialGradient><radialGradient id='g3' cx='50%25' cy='120%25' r='80%25'><stop offset='0%25' stop-color='%234ade80' stop-opacity='0.35'/><stop offset='60%25' stop-color='%2306b6d4' stop-opacity='0.15'/><stop offset='100%25' stop-color='%230b1a3a' stop-opacity='0'/></radialGradient></defs><rect width='100%25' height='100%25' fill='%230b1a3a'/><rect width='100%25' height='100%25' fill='url(%23g1)'/><rect width='100%25' height='100%25' fill='url(%23g2)'/><rect width='100%25' height='100%25' fill='url(%23g3)'/></svg>");
  background-size: cover; background-position: center;
}
#desktopIcons {
  position: absolute; inset: 0; padding: 16px;
}
.desk-icon {
  position: absolute; width: 100px; padding: 10px 4px; border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  cursor: pointer; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.desk-icon:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-3px) scale(1.05);
}
.desk-icon.selected {
  background: rgba(99,102,241,0.3);
  outline: 1.5px solid rgba(139,92,246,0.8);
  box-shadow: 
    0 0 0 4px rgba(139,92,246,0.15),
    inset 0 0 20px rgba(139,92,246,0.1);
}
.desk-icon-img {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  box-shadow: 
    0 6px 16px rgba(0,0,0,0.35),
    0 2px 4px rgba(0,0,0,0.2),
    inset 0 2px 0 rgba(255,255,255,0.3),
    inset 0 -1px 0 rgba(0,0,0,0.15);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.desk-icon:hover .desk-icon-img {
  box-shadow: 
    0 10px 28px rgba(0,0,0,0.4),
    0 4px 8px rgba(0,0,0,0.25),
    inset 0 2px 0 rgba(255,255,255,0.35),
    inset 0 -1px 0 rgba(0,0,0,0.15);
}
.desk-icon-img::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.1) 60%, transparent 100%);
  border-radius: 14px 14px 0 0;
  pointer-events: none;
}
.desk-icon-img::after {
  content: '';
  position: absolute;
  bottom: -10px; left: 50%;
  transform: translateX(-50%);
  width: 60%; height: 8px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.25) 0%, transparent 70%);
  filter: blur(4px);
  pointer-events: none;
}
.desk-icon-img svg { 
  width: 28px; height: 28px; 
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.25));
  position: relative;
  z-index: 1;
}
.desk-icon-name {
  color: #fff; font-size: 12px; font-weight: 600;
  text-align: center; line-height: 1.3;
  text-shadow: 
    0 1px 3px rgba(0,0,0,0.9),
    0 0 6px rgba(0,0,0,0.5),
    0 2px 4px rgba(0,0,0,0.3);
  word-break: break-all;
  max-width: 96px;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(0,0,0,0.15);
  backdrop-filter: blur(4px);
}

/* ===== Window Layer ===== */
#windowLayer { position: absolute; inset: 0; pointer-events: none; }
#windowLayer > * { pointer-events: auto; }
.win-window {
  position: absolute; min-width: 360px; min-height: 240px;
  background: rgba(243,244,246,0.88);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.28), 0 0 0 1px rgba(0,0,0,0.06);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.win-window.win-maximized { border-radius: 0 !important; }
.win-window.minimized { display: none; }
.win-titlebar {
  height: 40px; display: flex; align-items: center;
  padding: 0 8px 0 14px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  flex-shrink: 0; user-select: none;
}
.win-title { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; height: 40px; cursor: default; }
.win-title-icon {
  width: 22px; height: 22px; border-radius: 6px; display: flex; align-items: center; justify-content: center;
  background: #2563eb; color: #fff; font-size: 12px; flex-shrink: 0;
}
.win-title-icon svg { width: 14px; height: 14px; }
.win-title-name {
  font-size: 12.5px; color: #1f2937; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.win-titlebar .win-controls { display: flex; gap: 2px; flex-shrink: 0; }
.win-titlebar button {
  width: 46px; height: 32px; border: none; background: transparent;
  border-radius: 6px; cursor: pointer; color: #374151;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.12s;
}
.win-titlebar button:hover { background: rgba(0,0,0,0.06); }
.win-titlebar button.win-close:hover { background: #e81123; color: #fff; }
.win-titlebar button svg { width: 14px; height: 14px; }
.win-body { flex: 1; min-height: 0; overflow: hidden; background: rgba(255,255,255,0.7); }

/* Window resize handles */
.win-resize-handle {
  position: absolute; z-index: 10;
}
.win-resize-handle.rn { top: -3px; left: 6px; right: 6px; height: 6px; cursor: n-resize; }
.win-resize-handle.rs { bottom: -3px; left: 6px; right: 6px; height: 6px; cursor: s-resize; }
.win-resize-handle.rw { left: -3px; top: 6px; bottom: 6px; width: 6px; cursor: w-resize; }
.win-resize-handle.re { right: -3px; top: 6px; bottom: 6px; width: 6px; cursor: e-resize; }
.win-resize-handle.rnw { top: -3px; left: -3px; width: 12px; height: 12px; cursor: nw-resize; }
.win-resize-handle.rne { top: -3px; right: -3px; width: 12px; height: 12px; cursor: ne-resize; }
.win-resize-handle.rsw { bottom: -3px; left: -3px; width: 12px; height: 12px; cursor: sw-resize; }
.win-resize-handle.rse { bottom: -3px; right: -3px; width: 12px; height: 12px; cursor: se-resize; }
.win-window.win-maximized .win-resize-handle { display: none; }

/* ===== 窗口内工具栏 & 地址栏 (老式 nav 框架，兼容 Explorer-style) ===== */
.toolbar, .win-toolbar {
  height: 48px; display: flex; align-items: center; gap: 2px;
  padding: 0 10px; background: #fafafa;
  border-bottom: 1px solid #e5e7eb; flex-shrink: 0;
}
.tool-btn {
  height: 40px; min-width: 56px; border: none; background: transparent;
  border-radius: 6px; padding: 4px 10px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: #374151; font-family: inherit;
  transition: background 0.12s;
}
.tool-btn:hover:not(:disabled) { background: #e5e7eb; }
.tool-btn:disabled { color: #9ca3af; cursor: default; opacity: 0.6; }
.tool-btn.primary { color: #2563eb; }
.tool-btn.success { color: #10b981; }
.tool-btn.warning { color: #f59e0b; }
.tool-btn .icon-wrap { width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; }
.tool-btn .icon-wrap svg { width: 100%; height: 100%; }
.tool-btn .label { font-size: 11px; font-weight: 500; }
.tool-divider { width: 1px; height: 26px; background: #e5e7eb; margin: 0 4px; }

.addressbar, .win-addressbar {
  height: 40px; display: flex; align-items: center; gap: 6px;
  padding: 0 10px; border-bottom: 1px solid #f1f5f9; flex-shrink: 0;
  background: #fff;
}
.address-btn {
  width: 32px; height: 32px; border: none; border-radius: 6px;
  background: transparent; color: #475569; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.12s;
}
.address-btn:hover:not(:disabled) { background: #e5e7eb; }
.address-btn:disabled { color: #cbd5e1; cursor: default; }
.address-btn svg { width: 14px; height: 14px; }
.address-path {
  flex: 1; height: 28px; border-radius: 6px; padding: 0 10px;
  background: #f1f5f9; display: flex; align-items: center;
  font-size: 12.5px; color: #475569; overflow: hidden;
  white-space: nowrap;
}
.search-box {
  width: 280px; height: 28px; border-radius: 6px;
  background: #f1f5f9; display: flex; align-items: center;
  padding: 0 10px; gap: 8px; flex-shrink: 0;
}
.search-box svg { width: 13px; height: 13px; color: #64748b; flex-shrink: 0; }
.search-box input {
  flex: 1; border: none; background: transparent; outline: none;
  font-size: 12px; font-family: inherit; color: #1e293b;
}
.search-box input::placeholder { color: #94a3b8; }

.win-content {
  flex: 1; min-height: 0; overflow: hidden;
  display: flex;
}
.file-panel {
  flex: 1; display: flex; flex-direction: column;
  overflow: hidden; min-width: 0;
}
.file-header {
  padding: 10px 16px; border-bottom: 1px solid #f1f5f9;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; color: #475569;
}
.file-list {
  flex: 1; overflow-y: auto; padding: 14px 16px;
}
.file-list::-webkit-scrollbar { width: 8px; }
.file-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.action-panel {
  width: 300px; border-left: 1px solid #f1f5f9;
  background: #fafafa; padding: 16px; overflow-y: auto;
  flex-shrink: 0;
}

/* ===== Snap Layout ===== */
.snap-layout {
  position: fixed; z-index: 10002;
  display: grid; gap: 8px; padding: 10px;
  background: rgba(243, 243, 243, 0.97);
  backdrop-filter: blur(40px) saturate(180%);
  border-radius: 10px;
  box-shadow: 0 16px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(0,0,0,0.06);
}
.snap-zone {
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.snap-zone:hover { background: rgba(0,103,192,0.2); border-color: rgba(0,103,192,0.5); }

/* Win closing / minimizing animations */
@keyframes winCloseOut {
  to { transform: scale(0.96); opacity: 0; }
}
@keyframes winMinimizeOut {
  to { opacity: 0; transform: translateY(40px) scale(0.8); }
}
.win-closing { animation: winCloseOut 0.15s ease forwards; }
.win-minimizing { animation: winMinimizeOut 0.2s ease forwards; }

/* ===== Taskbar (Win11 Acrylic) ===== */
#taskbar {
  position: fixed; left: 0; right: 0; bottom: 0; height: 48px;
  background: rgba(243, 243, 243, 0.85);
  backdrop-filter: blur(60px) saturate(180%);
  -webkit-backdrop-filter: blur(60px) saturate(180%);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.6) inset, 0 -8px 24px rgba(0, 0, 0, 0.04);
  display: flex; align-items: center; z-index: 900;
}
.taskbar-left { flex: 1; padding-left: 12px; display: flex; align-items: center; }
.taskbar-center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 4px;
}
.taskbar-right { flex: 1; display: flex; align-items: center; justify-content: flex-end; padding-right: 12px; }
.taskbar-side-btn {
  width: 40px; height: 40px; border-radius: 8px; border: none;
  background: transparent; color: rgba(0, 0, 0, 0.7);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.12s, color 0.12s, transform 0.1s;
}
.taskbar-side-btn:hover { background: rgba(0, 0, 0, 0.06); color: rgba(0, 0, 0, 0.9); }
.taskbar-side-btn:active { transform: scale(0.94); }
.taskbar-side-btn svg { width: 18px; height: 18px; }

.taskbar-start {
  width: 40px; height: 40px; border-radius: 8px; border: none;
  background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.12s, transform 0.1s;
}
.taskbar-start:hover { background: rgba(0, 0, 0, 0.06); }
.taskbar-start:active { transform: scale(0.94); }
.taskbar-start svg { width: 22px; height: 22px; }

.taskbar-search {
  display: flex; align-items: center;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.08);
  height: 32px; border-radius: 16px; padding: 0 14px; gap: 8px;
  color: rgba(0, 0, 0, 0.6); font-size: 12px; font-weight: 500;
  transition: all 0.15s; cursor: default;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.taskbar-search:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.taskbar-search svg { width: 14px; height: 14px; }

.taskbar-apps-wrap { display: flex; align-items: center; padding-left: 4px; }
#taskbarApps { display: flex; align-items: center; gap: 2px; }

.taskbar-app {
  width: 40px; height: 40px; border-radius: 8px; border: none;
  background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: background 0.12s, transform 0.1s;
}
.taskbar-app:hover { background: rgba(0, 0, 0, 0.06); }
.taskbar-app:active { transform: scale(0.94); }
.taskbar-app::after {
  content: ''; position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%);
  width: 0; height: 3px; border-radius: 2px;
  background: #0078d4; transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.taskbar-app.active::after { width: 18px; height: 3px; }
.taskbar-app-icon {
  width: 24px; height: 24px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px;
}
.taskbar-app-icon svg { width: 16px; height: 16px; }

/* Tray */
.taskbar-tray { display: flex; align-items: center; gap: 1px; padding-right: 4px; }
.taskbar-tray-icon {
  width: 32px; height: 32px; border-radius: 6px; border: none;
  background: transparent; color: rgba(0, 0, 0, 0.7);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.12s, color 0.12s;
}
.taskbar-tray-icon:hover { background: rgba(0, 0, 0, 0.06); color: rgba(0, 0, 0, 0.9); }
.taskbar-tray-icon svg { width: 16px; height: 16px; }
.taskbar-clock {
  display: flex; flex-direction: column; align-items: flex-end;
  padding: 4px 10px; border-radius: 6px; cursor: pointer;
  transition: background 0.12s;
  line-height: 1.25;
}
.taskbar-clock:hover { background: rgba(0, 0, 0, 0.06); }
#trayTime, #trayDate {
  color: rgba(0, 0, 0, 0.85); font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
#trayTime { font-weight: 600; }

/* Win11 显示桌面竖条 */
.taskbar-showdesktop {
  width: 4px; height: 48px;
  background: transparent; cursor: pointer;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  transition: background 0.12s;
  flex-shrink: 0;
}
.taskbar-showdesktop:hover { background: rgba(0, 0, 0, 0.12); }

/* ===== Start Menu ===== */
#startMenu {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 56px; width: 620px; height: 680px; max-height: calc(100vh - 80px);
  background: rgba(243, 243, 243, 0.95);
  backdrop-filter: blur(50px) saturate(180%);
  -webkit-backdrop-filter: blur(50px) saturate(180%);
  border-radius: 12px;
  box-shadow: 0 16px 60px rgba(0,0,0,0.25), 0 0 0 1px rgba(0,0,0,0.06);
  z-index: 950;
  padding: 28px 32px 20px;
  display: flex; flex-direction: column; gap: 18px;
  animation: startIn 0.24s cubic-bezier(.2,.8,.2,1);
}
@keyframes startIn { from { transform: translate(-50%, 16px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.start-search {
  width: 100%; height: 40px; border-radius: 8px;
  background: rgba(0,0,0,0.04); border: 1px solid rgba(0,0,0,0.06);
  padding: 0 14px; display: flex; align-items: center; gap: 10px;
}
.start-search svg { width: 16px; height: 16px; color: rgba(0,0,0,0.5); }
.start-search input, input.start-search {
  flex: 1; height: 100%; background: transparent; border: none; outline: none;
  color: #1a1a2e; font-size: 13px; font-family: inherit;
}
.start-search input::placeholder, input.start-search::placeholder { color: rgba(0,0,0,0.4); }

.start-section-header {
  display: flex; align-items: center; justify-content: space-between;
  color: #1a1a2e; font-size: 13px; font-weight: 700;
  margin-bottom: 4px;
}
.start-section-header .start-allapps-btn {
  background: transparent; border: none; color: rgba(0,0,0,0.5);
  cursor: pointer; font-size: 11.5px; padding: 4px 8px; border-radius: 4px;
  font-family: inherit;
}
.start-section-header .start-allapps-btn:hover { color: #0067c0; background: rgba(0,0,0,0.05); }

.start-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px 8px;
}
.start-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 6px 8px; border-radius: 8px; cursor: pointer;
  transition: background 0.12s;
}
.start-item:hover { background: rgba(0,0,0,0.06); }
.start-item-icon {
  width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px;
}
.start-item-icon svg { width: 22px; height: 22px; }
.start-item-text { display: flex; flex-direction: column; align-items: center; min-height: 28px; }
.start-item-name { color: #1a1a2e; font-size: 11.5px; font-weight: 500; text-align: center; line-height: 1.2; }

/* 所有应用列表样式 */
.start-allapps-list {
  display: flex; flex-direction: column; gap: 2px;
  max-height: 400px; overflow-y: auto;
}
.start-allapps-list::-webkit-scrollbar { width: 6px; }
.start-allapps-list::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 3px; }
.start-allapps-item {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 12px; border-radius: 6px; cursor: pointer;
  transition: background 0.12s;
}
.start-allapps-item:hover { background: rgba(0,0,0,0.06); }
.start-allapps-item .start-item-icon {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.start-allapps-name {
  color: #1a1a2e; font-size: 13px; font-weight: 500;
}

.start-recommend { display: flex; flex-direction: column; gap: 2px; }
.rec-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: 6px; cursor: pointer;
  transition: background 0.12s;
}
.rec-item:hover { background: rgba(0,0,0,0.06); }
.rec-item-icon {
  width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; flex-shrink: 0;
}
.rec-item-icon svg { width: 18px; height: 18px; }
.rec-item-text { display: flex; flex-direction: column; min-width: 0; }
.rec-item-name { color: #1a1a2e; font-size: 12px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-item-sub { color: rgba(0,0,0,0.5); font-size: 10.5px; line-height: 1.3; }

.start-footer {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid rgba(0,0,0,0.08); padding-top: 12px;
}
.start-footer .start-power-btn {
  width: 40px; height: 40px; border-radius: 8px; border: none;
  background: transparent; color: rgba(0,0,0,0.7); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.12s;
}
.start-footer .start-power-btn:hover { background: rgba(0,0,0,0.08); color: #0067c0; }
.start-footer .start-power-btn svg { width: 18px; height: 18px; }

/* ===== Context Menu (Win11 Fluent UI 精确还原) ===== */
.ctx-menu, .ctx-submenu {
  position: fixed; min-width: 240px; max-width: 280px; padding: 6px;
  background: rgba(249, 249, 249, 0.92);
  backdrop-filter: blur(80px) saturate(180%);
  -webkit-backdrop-filter: blur(80px) saturate(180%);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.18), 0 4px 8px rgba(0,0,0,0.08);
  z-index: 10000;
  animation: ctxIn 0.12s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 12px;
  color: #1a1a1a;
  font-family: 'Segoe UI Variable Text', 'Segoe UI Variable', 'Segoe UI', 'Microsoft YaHei UI', system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: 0.1px;
}
.ctx-submenu { padding: 6px; min-width: 220px; }
@keyframes ctxIn { from { transform: scale(0.94) translateY(-2px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
.ctx-item {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 5px 10px 5px 8px; border-radius: 4px; cursor: pointer; color: #1a1a1a;
  transition: background 0.06s ease;
  height: 36px;
  box-sizing: border-box;
  user-select: none;
}
.ctx-item:hover:not(.ctx-disabled) { background: rgba(0, 0, 0, 0.05); }
.ctx-item:hover:not(.ctx-disabled) .ctx-icon { color: #0067c0; transform: scale(1.05); }
.ctx-item.ctx-danger:hover:not(.ctx-disabled) { background: rgba(196, 56, 42, 0.07); }
.ctx-item.ctx-danger:hover:not(.ctx-disabled) .ctx-icon,
.ctx-item.ctx-danger:hover:not(.ctx-disabled) .ctx-label { color: #c4382a; }
.ctx-disabled { color: rgba(0, 0, 0, 0.35); cursor: default; background: transparent !important; }
.ctx-disabled .ctx-icon { color: rgba(0, 0, 0, 0.22); }
.ctx-icon {
  width: 20px; height: 20px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(0, 0, 0, 0.65);
  transition: color 0.06s, transform 0.1s;
}
.ctx-icon svg { width: 16px; height: 16px; display: block; }
.ctx-label { flex: 1; font-weight: 400; font-size: 12px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctx-shortcut {
  color: rgba(0, 0, 0, 0.5); font-size: 12px;
  font-family: 'Segoe UI Variable Text', 'Segoe UI', sans-serif;
  font-weight: 300; margin-left: 16px;
}
.ctx-arrow { color: rgba(0, 0, 0, 0.5); font-size: 8px; margin-left: 4px; transition: transform 0.1s; }
.ctx-checked .ctx-label { font-weight: 600; }
.ctx-separator, .ctx-sep { height: 1px; background: rgba(0, 0, 0, 0.06); margin: 4px 10px; border: 0; }

/* ===== Explorer (Nav Hub / This PC) ===== */
.explorer { height: 100%; display: flex; flex-direction: column; background: #fff; }
.explorer-toolbar {
  height: 44px; display: flex; align-items: center; gap: 6px;
  padding: 0 12px; border-bottom: 1px solid #f1f5f9; background: #fafafa;
  flex-shrink: 0;
}
.tb-btn {
  height: 30px; min-width: 32px; padding: 0 10px;
  border: none; border-radius: 6px; background: transparent;
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  color: #374151; font-size: 12px; font-family: inherit;
  transition: background 0.12s;
}
.tb-btn:hover:not(:disabled) { background: #e5e7eb; }
.tb-btn:disabled { color: #cbd5e1; cursor: default; }
.tb-btn.primary { background: #eff6ff; color: #2563eb; font-weight: 600; }
.tb-btn.primary:hover:not(:disabled) { background: #dbeafe; }
.tb-btn svg { width: 14px; height: 14px; }
.tb-sep { width: 1px; height: 18px; background: #e5e7eb; margin: 0 4px; }

.explorer-address {
  height: 36px; display: flex; align-items: center; gap: 10px;
  padding: 0 14px; border-bottom: 1px solid #f1f5f9; background: #fff;
  flex-shrink: 0;
}
.address-path {
  flex: 1; height: 28px; border-radius: 6px;
  background: #f1f5f9; display: flex; align-items: center;
  padding: 0 10px; gap: 4px; overflow: hidden;
}
.address-seg {
  font-size: 12.5px; color: #475569; font-weight: 500;
  padding: 3px 8px; border-radius: 4px; cursor: pointer;
  white-space: nowrap;
}
.address-seg:hover { background: #e2e8f0; color: #1e293b; }
.address-sep { color: #94a3b8; font-size: 11px; }

.explorer-search {
  width: 260px; height: 28px; border-radius: 6px;
  background: #f1f5f9; padding: 0 10px;
  display: flex; align-items: center; gap: 8px;
}
.explorer-search svg { width: 13px; height: 13px; color: #64748b; }
.explorer-search input {
  flex: 1; border: none; background: transparent; outline: none;
  font-size: 12px; font-family: inherit; color: #1e293b;
}

.explorer-main { flex: 1; min-height: 0; display: flex; overflow: hidden; }
.explorer-sidebar {
  width: 220px; border-right: 1px solid #f1f5f9;
  background: #fafafa; padding: 12px 8px;
  overflow-y: auto; flex-shrink: 0;
}
.sb-group { margin-bottom: 16px; }
.sb-group-title {
  font-size: 10.5px; color: #94a3b8; font-weight: 700;
  padding: 4px 10px; letter-spacing: 0.5px; text-transform: uppercase;
}
.sb-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 6px; cursor: pointer;
  font-size: 12.5px; color: #374151; font-weight: 500;
}
.sb-item:hover { background: #eef2ff; color: #1e293b; }
.sb-item.active { background: #dbeafe; color: #1d4ed8; font-weight: 600; }
.sb-icon { width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sb-icon svg { width: 14px; height: 14px; }
.sb-icon.colored { color: #60a5fa; }

.explorer-content {
  flex: 1; min-width: 0; overflow: hidden;
  display: flex; flex-direction: column;
}
.content-header {
  padding: 12px 20px 8px;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.content-title {
  display: flex; align-items: center; gap: 10px;
}
.content-title h2 { font-size: 18px; color: #0f172a; font-weight: 700; }
.content-badge {
  display: inline-flex; align-items: center;
  padding: 3px 9px; background: #eff6ff; color: #2563eb;
  border-radius: 999px; font-size: 11px; font-weight: 600;
}
.content-tools { display: flex; gap: 8px; align-items: center; }
.view-switch { display: inline-flex; background: #f1f5f9; border-radius: 6px; padding: 2px; }
.view-switch button {
  padding: 4px 10px; border: none; background: transparent;
  font-size: 11px; color: #64748b; border-radius: 4px;
  cursor: pointer; font-family: inherit; font-weight: 500;
}
.view-switch button.active { background: #fff; color: #0f172a; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

.content-list { flex: 1; overflow-y: auto; padding: 0 20px 20px; }
.content-list::-webkit-scrollbar { width: 8px; }
.content-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.content-list::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Grid view */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(116px, 1fr));
  gap: 12px;
}
.grid-item {
  padding: 14px 10px; border-radius: 10px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; cursor: pointer;
  transition: background 0.12s;
  position: relative;
}
.grid-item:hover { background: #f8fafc; }
.grid-item.selected { background: #eff6ff; outline: 2px solid #bfdbfe; }
.grid-item-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; margin-bottom: 8px; flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.grid-item-icon svg { width: 28px; height: 28px; }
.grid-item-name {
  font-size: 12px; color: #1f2937; font-weight: 600;
  line-height: 1.35; word-break: break-all;
}
.grid-item-meta { font-size: 10.5px; color: #94a3b8; margin-top: 2px; }

/* List view */
.list-item {
  display: grid;
  grid-template-columns: 36px 2fr 1fr 1fr 0.5fr;
  gap: 12px;
  padding: 9px 14px; border-radius: 8px;
  cursor: pointer; font-size: 12.5px; color: #1f2937;
  align-items: center;
}
.list-item:hover { background: #f8fafc; }
.list-item.selected { background: #eff6ff; }
.list-icon {
  width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0;
}
.list-icon svg { width: 16px; height: 16px; }
.list-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-meta { color: #64748b; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-head {
  display: grid;
  grid-template-columns: 36px 2fr 1fr 1fr 0.5fr;
  gap: 12px; padding: 6px 14px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 11px; font-weight: 700; color: #64748b;
}

/* Empty state */
.empty {
  padding: 80px 20px; text-align: center; color: #94a3b8;
}
.empty-icon {
  width: 64px; height: 64px; margin: 0 auto 16px;
  border-radius: 18px; background: #f1f5f9;
  display: flex; align-items: center; justify-content: center;
  color: #cbd5e1;
}
.empty-icon svg { width: 32px; height: 32px; }
.empty h3 { font-size: 14px; color: #64748b; margin-bottom: 6px; }
.empty p { font-size: 12px; }

/* ===== Quick Settings Flyout ===== */
#quickSettings {
  position: fixed; right: 10px; bottom: 56px;
  width: 360px; background: rgba(243, 243, 243, 0.95);
  backdrop-filter: blur(50px) saturate(180%);
  border-radius: 12px; padding: 16px; z-index: 950;
  box-shadow: 0 16px 60px rgba(0,0,0,0.25), 0 0 0 1px rgba(0,0,0,0.06);
  animation: qsIn 0.24s cubic-bezier(.2,.8,.2,1);
  color: #1a1a2e;
  font-size: 12px;
}
@keyframes qsIn { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.qs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.qs-tile {
  padding: 12px 8px; border-radius: 8px;
  background: rgba(0,0,0,0.04);
  color: #1a1a2e;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  cursor: pointer; border: 1px solid transparent;
  transition: background 0.12s;
}
.qs-tile.on { background: rgba(0,103,192,0.15); border-color: rgba(0,103,192,0.4); }
.qs-tile:hover { background: rgba(0,0,0,0.08); }
.qs-icon { width: 20px; height: 20px; color: #1a1a2e; display: flex; align-items: center; justify-content: center; }
.qs-icon svg { width: 100%; height: 100%; }
.qs-label { font-weight: 500; font-size: 12px; }
.qs-sub { font-size: 10px; color: rgba(0,0,0,0.5); }
.qs-slider-row {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
  background: rgba(0,0,0,0.04);
  border-radius: 8px;
  padding: 8px 12px;
}
.qs-slider-icon { width: 18px; height: 18px; color: rgba(0,0,0,0.7); flex-shrink: 0; }
.qs-slider-icon svg { width: 100%; height: 100%; }
.qs-slider { flex: 1; accent-color: #0067c0; height: 4px; }
.qs-slider-val { min-width: 36px; text-align: right; color: rgba(0,0,0,0.6); font-family: 'JetBrains Mono', monospace; font-size: 11px; }
.qs-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 10px; border-top: 1px solid rgba(0,0,0,0.08);
}
.qs-accessibility {
  width: 28px; height: 28px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: rgba(0,0,0,0.7);
  transition: background 0.12s;
}
.qs-accessibility:hover { background: rgba(0,0,0,0.08); color: #0067c0; }
.qs-power {
  width: 28px; height: 28px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: rgba(0,0,0,0.7);
  transition: background 0.12s;
}
.qs-power:hover { background: rgba(0,0,0,0.08); color: #0067c0; }
.qs-power svg { width: 16px; height: 16px; }

/* ===== Tray Panel (日历) ===== */
.tray-panel {
  position: fixed; right: 10px; bottom: 56px; width: 360px;
  background: rgba(243, 243, 243, 0.97);
  backdrop-filter: blur(50px) saturate(180%);
  -webkit-backdrop-filter: blur(50px) saturate(180%);
  border-radius: 12px; padding: 18px; z-index: 950;
  box-shadow: 0 16px 60px rgba(0,0,0,0.25), 0 0 0 1px rgba(0,0,0,0.06);
  color: #1a1a2e;
  animation: qsIn 0.24s cubic-bezier(.2,.8,.2,1);
}
.tray-panel .cal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.tray-panel .cal-nav-btn {
  width: 28px; height: 28px; border-radius: 6px; border: none;
  background: rgba(0,0,0,0.04); color: #1a1a2e; cursor: pointer;
  font-size: 16px; display: flex; align-items: center; justify-content: center;
  transition: background 0.12s;
}
.tray-panel .cal-nav-btn:hover { background: rgba(0,0,0,0.08); }
.tray-panel .cal-title {
  font-size: 14px; font-weight: 600; color: #1a1a2e;
}
.tray-panel .cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
  font-size: 12px; text-align: center;
}
.tray-panel .cal-dow { padding: 4px; color: rgba(0,0,0,0.5); font-size: 10.5px; font-weight: 600; }
.tray-panel .cal-day {
  padding: 6px 0; border-radius: 50%; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #1a1a2e;
  transition: background 0.12s;
}
.tray-panel .cal-day:hover { background: rgba(0,0,0,0.08); }
.tray-panel .cal-day.cal-other { color: rgba(0,0,0,0.3); }
.tray-panel .cal-day.cal-today { background: #0067c0; color: #fff; font-weight: 700; }

/* ===== Notifications / Calendar ===== */
#notifications, #calendar {
  position: fixed; right: 10px; bottom: 56px; width: 380px;
  background: rgba(243, 243, 243, 0.95);
  backdrop-filter: blur(50px) saturate(180%);
  border-radius: 12px; padding: 18px; z-index: 950;
  box-shadow: 0 16px 60px rgba(0,0,0,0.25), 0 0 0 1px rgba(0,0,0,0.06);
  color: #1a1a2e;
  animation: qsIn 0.24s cubic-bezier(.2,.8,.2,1);
}
.notif-item {
  padding: 10px 12px; border-radius: 8px;
  background: rgba(0,0,0,0.04); margin-bottom: 8px;
  font-size: 12px;
}
.notif-title { font-weight: 600; margin-bottom: 2px; font-size: 12.5px; }
.notif-time { font-size: 10.5px; color: rgba(0,0,0,0.5); }

.cal-title { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
  font-size: 12px; text-align: center;
}
.cal-dow { padding: 4px; color: rgba(0,0,0,0.5); font-size: 10.5px; font-weight: 600; }
.cal-day {
  padding: 6px 0; border-radius: 50%; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #1a1a2e;
}
.cal-day:hover { background: rgba(0,0,0,0.08); }
.cal-day.other { color: rgba(0,0,0,0.3); }
.cal-day.today { background: #0067c0; color: #fff; font-weight: 700; }

/* ===== Task Manager / Window Switcher / Power ===== */
#taskManager, #windowSwitcher, #powerMenu {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 560px; max-width: 90vw; max-height: 80vh; overflow: auto;
  background: rgba(243, 243, 243, 0.97);
  backdrop-filter: blur(50px) saturate(180%);
  border-radius: 12px; padding: 24px; z-index: 960;
  box-shadow: 0 16px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(0,0,0,0.06);
  color: #1a1a2e;
  animation: tmIn 0.2s ease;
}
@keyframes tmIn { from { transform: translate(-50%,-50%) scale(0.96); opacity: 0; } to { transform: translate(-50%,-50%) scale(1); opacity: 1; } }
#powerMenu { width: 320px; }
.tm-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.tm-title { font-size: 16px; font-weight: 700; }
.close-btn {
  width: 28px; height: 28px; border-radius: 6px; border: none;
  background: rgba(0,0,0,0.06); color: #1a1a2e; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.close-btn:hover { background: #e81123; color: #fff; }
.pm-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: 8px; cursor: pointer; transition: background 0.12s;
}
.pm-item:hover { background: rgba(0,0,0,0.06); }
.pm-icon { width: 32px; height: 32px; border-radius: 8px; background: rgba(0,0,0,0.06); display: flex; align-items: center; justify-content: center; }
.pm-icon svg { width: 18px; height: 18px; }
.pm-label { font-size: 13px; font-weight: 500; }

/* ===== 现代 Explorer UI (此电脑 / NavHub) ===== */
.exp-body { height: 100%; display: flex; flex-direction: column; background: #f5f6f8; }

/* === 命令栏 === */
.exp-cmdbar {
  height: 48px; display: flex; align-items: center; gap: 4px;
  padding: 0 12px; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04); flex-shrink: 0; z-index: 2;
}
.exp-cmd-group { display: flex; align-items: center; gap: 2px; }
.exp-cmd-btn {
  height: 34px; min-width: 34px; padding: 0 8px;
  border: none; border-radius: 8px; background: transparent;
  color: #444; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  transition: all 0.15s ease; font-size: 12.5px;
}
.exp-cmd-btn:hover:not(:disabled) { background: #eef1f6; color: #0067c0; }
.exp-cmd-btn:active:not(:disabled) { background: #e0e5ed; transform: scale(0.95); }
.exp-cmd-btn:disabled { color: #c8ccd2; cursor: default; }
.exp-cmd-btn svg { width: 17px; height: 17px; }
.exp-cmd-arrow { width: 9px !important; height: 9px !important; opacity: 0.5; }
.exp-cmd-sep { width: 1px; height: 20px; background: #e5e7eb; margin: 0 6px; flex-shrink: 0; }
.exp-cmd-flex { flex: 1; }

/* === 地址栏 === */
.exp-address {
  flex: 1; height: 34px; background: #f5f6f8; border-radius: 8px;
  border: 1px solid #e5e7eb; padding: 0 6px;
  display: flex; align-items: center; gap: 2px;
  overflow: hidden; min-width: 0; transition: all 0.15s;
}
.exp-address:focus-within { border-color: #0067c0; background: #fff; box-shadow: 0 0 0 3px rgba(0,103,192,0.1); }
.exp-addr-crumb {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: #444; font-weight: 400;
  padding: 4px 8px; border-radius: 6px; cursor: pointer;
  white-space: nowrap; transition: background 0.12s;
}
.exp-addr-crumb:hover { background: rgba(0,0,0,0.04); }
.exp-addr-crumb.exp-addr-current { font-weight: 600; color: #1a1a2e; }
.exp-addr-ic { font-size: 14px; }
.exp-addr-txt { max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.exp-addr-sep { width: 14px; height: 14px; color: #9ca3af; flex-shrink: 0; }

/* === 搜索框 === */
.exp-search {
  width: 240px; height: 34px; border-radius: 8px;
  background: #f5f6f8; border: 1px solid #e5e7eb; padding: 0 10px;
  display: flex; align-items: center; gap: 8px; color: #6b7280; flex-shrink: 0;
  transition: all 0.15s;
}
.exp-search:focus-within { border-color: #0067c0; background: #fff; box-shadow: 0 0 0 3px rgba(0,103,192,0.1); }
.exp-search svg { width: 15px; height: 15px; }
.exp-search input {
  flex: 1; border: none; background: transparent; outline: none;
  font-size: 13px; font-family: inherit; color: #1a1a2e;
}

/* === 主区域 === */
.exp-main { flex: 1; min-height: 0; display: flex; overflow: hidden; }

/* === 侧边栏 === */
.exp-sidebar {
  width: 230px; background: #fff;
  padding: 10px 8px; overflow-y: auto; flex-shrink: 0;
  border-right: 1px solid #f0f0f0;
}
.exp-nav-section { margin-bottom: 8px; }
.exp-nav-section.exp-nav-collapsed .exp-nav-hd { opacity: 0.7; }
.exp-nav-hd {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: #9ca3af; font-weight: 600;
  padding: 8px 10px; cursor: pointer; user-select: none;
  letter-spacing: 0.5px; text-transform: uppercase; transition: opacity 0.12s;
  border-radius: 6px;
}
.exp-nav-hd:hover { background: rgba(0,0,0,0.03); }
.exp-nav-chev { width: 11px; height: 11px; flex-shrink: 0; transition: transform 0.15s; }
.exp-nav-collapsed .exp-nav-chev { transform: rotate(-90deg); }
.exp-nav-list { display: flex; flex-direction: column; gap: 2px; margin-top: 2px; }
.exp-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px 8px 24px; border-radius: 8px; cursor: pointer;
  font-size: 13px; color: #374151; font-weight: 400;
  transition: all 0.12s; position: relative;
}
.exp-nav-item:hover { background: #f3f4f6; }
.exp-nav-item.exp-nav-active { background: #eff6ff; color: #0067c0; font-weight: 600; }
.exp-nav-item.exp-nav-active::before {
  content: ''; position: absolute; left: 8px; top: 10px; bottom: 10px;
  width: 3px; background: #0067c0; border-radius: 3px;
}
.exp-nav-item > em { margin-left: auto; font-style: normal; font-size: 11px; color: #9ca3af; font-family: 'Segoe UI', monospace; background: #f3f4f6; padding: 1px 7px; border-radius: 10px; }
.exp-nav-item.exp-nav-active > em { background: #dbeafe; color: #0067c0; }
.exp-nav-emoji { font-size: 15px; width: 18px; text-align: center; flex-shrink: 0; }
.exp-nav-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.exp-nav-svg { width: 17px; height: 17px; flex-shrink: 0; }

/* === 内容区 === */
.exp-content {
  flex: 1; min-width: 0; overflow-y: auto; padding: 20px 24px;
  background: #f5f6f8;
}
.exp-content::-webkit-scrollbar { width: 8px; }
.exp-content::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; border: 2px solid #f5f6f8; }
.exp-content::-webkit-scrollbar-thumb:hover { background: #9ca3af; }
.exp-sidebar::-webkit-scrollbar { width: 6px; }
.exp-sidebar::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 3px; }

/* === 分组标题 === */
.exp-group-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 4px 12px;
}
.exp-group-header > span {
  font-size: 14px; font-weight: 700; color: #1f2937; letter-spacing: 0.2px;
}
.exp-group-actions { display: flex; gap: 4px; }
.exp-sort-btn {
  font-size: 12px; color: #6b7280; cursor: pointer;
  padding: 5px 10px; border-radius: 6px; transition: all 0.12s;
  font-weight: 500;
}
.exp-sort-btn:hover { background: #eef1f6; color: #0067c0; }

/* === 图标视图 === */
.exp-icons-grid {
  display: grid; gap: 6px; margin-bottom: 16px;
}
.exp-icons-extra { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.exp-icons-large { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.exp-icons-medium { grid-template-columns: repeat(auto-fill, minmax(95px, 1fr)); }
.exp-icons-small { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
.exp-icon-tile {
  display: flex; flex-direction: column; align-items: center;
  padding: 12px 6px 10px; border-radius: 10px; cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease; text-align: center;
}
.exp-icon-tile:hover { background: #fff; border-color: #e5e7eb; box-shadow: 0 2px 8px rgba(0,0,0,0.06); transform: translateY(-1px); }
.exp-icon-tile.exp-item-selected { background: #eff6ff; border-color: #93c5fd; box-shadow: 0 2px 8px rgba(0,103,192,0.12); }
.exp-icon-ic {
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px; flex-shrink: 0; margin-bottom: 8px;
}
.exp-icons-extra .exp-icon-ic { width: 60px; height: 60px; font-size: 34px; }
.exp-icons-large .exp-icon-ic { width: 48px; height: 48px; font-size: 28px; }
.exp-icons-medium .exp-icon-ic { width: 36px; height: 36px; font-size: 22px; }
.exp-icons-small .exp-icon-ic { width: 28px; height: 28px; font-size: 18px; border-radius: 8px; }
.exp-icon-name {
  font-size: 12.5px; color: #1f2937; line-height: 1.4; font-weight: 500;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  word-break: break-word;
}
.exp-icons-small .exp-icon-name { font-size: 11.5px; }

/* === 列表视图 === */
.exp-list-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 4px; margin-bottom: 16px;
}
.exp-list-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 8px; cursor: pointer;
  font-size: 13px; color: #1f2937; font-weight: 400;
  border: 1px solid transparent; transition: all 0.12s;
}
.exp-list-item:hover { background: #fff; border-color: #e5e7eb; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.exp-list-item.exp-item-selected { background: #eff6ff; border-color: #93c5fd; }
.exp-list-ic { font-size: 16px; flex-shrink: 0; }
.exp-list-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* === 磁贴视图 === */
.exp-tiles-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px; margin-bottom: 16px;
}
.exp-tile-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 10px; cursor: pointer;
  border: 1px solid transparent;
  background: #fff;
  transition: all 0.15s ease;
}
.exp-tile-card:hover { border-color: #e5e7eb; box-shadow: 0 4px 12px rgba(0,0,0,0.06); transform: translateY(-1px); }
.exp-tile-card.exp-item-selected { background: #eff6ff; border-color: #93c5fd; box-shadow: 0 4px 12px rgba(0,103,192,0.12); }
.exp-tile-ic {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
}
.exp-tile-info { flex: 1; min-width: 0; }
.exp-tile-name {
  font-size: 13.5px; font-weight: 600; color: #1f2937;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.exp-tile-sub { font-size: 11.5px; color: #6b7280; margin-top: 3px; }

/* === 主页文件夹快捷方式 === */
.exp-folders-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 8px; margin-bottom: 16px;
}
.exp-folder-tile {
  padding: 12px 14px; border-radius: 10px; cursor: pointer;
  transition: all 0.15s ease;
  display: flex; align-items: center; gap: 12px;
  border: 1px solid transparent; background: #fff;
}
.exp-folder-tile:hover { border-color: #e5e7eb; box-shadow: 0 4px 12px rgba(0,0,0,0.06); transform: translateY(-1px); }
.exp-folder-tile.exp-item-selected { background: #eff6ff; border-color: #93c5fd; }
.exp-folder-ic {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0; transition: transform 0.15s;
}
.exp-folder-name { font-size: 13.5px; font-weight: 600; color: #1f2937; line-height: 1.3; }
.exp-folder-sub { font-size: 11.5px; color: #6b7280; margin-top: 3px; }
.exp-folder-tile:hover .exp-folder-ic { transform: scale(1.06); }

/* === 驱动器列表 === */
.exp-drives-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 8px;
}
.exp-drive {
  padding: 16px; border-radius: 12px; cursor: pointer;
  transition: all 0.15s ease;
  display: flex; align-items: center; gap: 14px;
  border: 1px solid transparent; background: #fff;
}
.exp-drive:hover { border-color: #e5e7eb; box-shadow: 0 4px 16px rgba(0,0,0,0.06); transform: translateY(-1px); }
.exp-drive.exp-item-selected { background: #eff6ff; border-color: #93c5fd; }
.exp-drive-ic {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0; transition: transform 0.15s;
}
.exp-drive:hover .exp-drive-ic { transform: scale(1.06); }
.exp-drive-info { flex: 1; min-width: 0; }
.exp-drive-name { font-size: 14px; font-weight: 600; color: #1f2937; margin-bottom: 6px; }
.exp-drive-bar {
  height: 6px; background: #f3f4f6; border-radius: 3px; overflow: hidden;
  margin-bottom: 6px;
}
.exp-drive-bar > div { height: 100%; border-radius: 3px; transition: width 0.4s ease; }
.exp-drive-meta { font-size: 11.5px; color: #6b7280; }

/* === 空状态 === */
.exp-empty {
  padding: 80px 20px; text-align: center; color: #9ca3af; font-size: 14px;
}

/* === NavHub 旧状态栏（兼容） === */
.exp-status {
  height: 32px; padding: 0 16px;
  border-top: 1px solid #f0f0f0; background: #fff;
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: #6b7280; flex-shrink: 0;
}

/* === NavHub 预览面板（兼容） === */
.exp-preview {
  width: 280px; border-left: 1px solid #f0f0f0;
  background: #fff; padding: 16px; overflow-y: auto; flex-shrink: 0;
}
.exp-preview::-webkit-scrollbar { width: 6px; }
.exp-preview::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 3px; }

/* === NavHub 主内容区内部样式 === */
.exp-section-title {
  font-size: 14px; font-weight: 700; color: #1f2937;
  padding: 4px 4px 12px; display: flex; align-items: center; gap: 8px;
}

/* === NavHub 站点卡片网格 === */
.navhub-site-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px; padding: 0 4px 16px;
}
.navhub-site-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px; border-radius: 12px; cursor: pointer;
  border: 1px solid #f0f0f0; background: #fff;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative; overflow: hidden;
}
.navhub-site-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, transparent);
  transition: background 0.3s;
}
.navhub-site-card:hover {
  border-color: #e5e7eb; 
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}
.navhub-site-card:hover::before {
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}
.navhub-site-card.exp-item-selected {
  background: linear-gradient(135deg, #eff6ff, #dbeafe); 
  border-color: #93c5fd;
  box-shadow: 0 6px 20px rgba(0,103,192,0.15);
}
.navhub-site-ic {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.navhub-site-card:hover .navhub-site-ic { transform: scale(1.1) rotate(-2deg); }
.navhub-site-info { flex: 1; min-width: 0; }
.navhub-site-name {
  font-size: 14px; font-weight: 700; color: #1f2937;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}
.navhub-site-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.navhub-badge {
  font-size: 11px; color: #6b7280; background: #f3f4f6;
  padding: 3px 10px; border-radius: 12px; font-weight: 500;
  transition: all 0.15s;
}
.navhub-badge:hover { background: #e5e7eb; }

/* === NavHub 分类网格（exp-grid / exp-item） === */
.exp-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px; padding: 0 4px 16px;
}
.exp-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 12px; cursor: pointer;
  border: 1px solid #f0f0f0; background: #fff;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.exp-item:hover { 
  border-color: #e5e7eb; 
  box-shadow: 0 8px 24px rgba(0,0,0,0.08); 
  transform: translateY(-2px); 
}
.exp-item.exp-item-selected { 
  background: linear-gradient(135deg, #eff6ff, #dbeafe); 
  border-color: #93c5fd; 
  box-shadow: 0 4px 16px rgba(0,103,192,0.12);
}
.exp-item-ic {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.2s;
}
.exp-item:hover .exp-item-ic { transform: scale(1.08); }
.exp-item-name {
  font-size: 13.5px; font-weight: 600; color: #1f2937;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.exp-item-sub { font-size: 11.5px; color: #6b7280; margin-top: 4px; }

/* === 分类分组视图 === */
.exp-cat-groups { display: flex; flex-direction: column; gap: 20px; padding: 0 4px 16px; }
.exp-cat-group { display: flex; flex-direction: column; gap: 10px; }
.exp-cat-group-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: 10px; border: 1px solid #fcd34d;
  box-shadow: 0 2px 8px rgba(252,211,77,0.2);
}
.exp-cat-group-title { 
  font-size: 13px; font-weight: 700; color: #92400e;
  display: flex; align-items: center; gap: 6px;
}
.exp-cat-group-count { 
  font-size: 11px; color: #b45309; 
  background: rgba(255,255,255,0.6);
  padding: 2px 8px; border-radius: 8px;
}

/* === 侧边栏分类子列表 === */
.exp-nav-sub-list {
  display: flex; flex-direction: column; gap: 1px;
  margin: 3px 0 6px 18px; padding-left: 10px;
  border-left: 2px solid #e2e8f0;
}
.exp-nav-sub-item {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 6px;
  font-size: 12px; color: #475569;
  cursor: pointer; transition: all 0.15s;
}
.exp-nav-sub-item:hover { background: #f1f5f9; color: #1e293b; transform: translateX(2px); }
.exp-nav-sub-item.exp-nav-active { 
  background: linear-gradient(135deg, #dbeafe, #bfdbfe); 
  color: #1d4ed8; font-weight: 600; 
  box-shadow: 0 2px 6px rgba(29,78,216,0.15);
}
.exp-nav-sub-item em { margin-left: auto; font-size: 10.5px; color: #94a3b8; font-style: normal; }
.exp-nav-sub-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #cbd5e1; flex-shrink: 0;
  transition: background 0.15s;
}
.exp-nav-sub-item:hover .exp-nav-sub-dot { background: #3b82f6; }
.exp-nav-sub-item.exp-nav-active .exp-nav-sub-dot { background: #1d4ed8; }

/* === NavHub 网站列表 === */
.navhub-web-list {
  display: flex; flex-direction: column; gap: 4px; padding: 0 4px 16px;
}
.navhub-web-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 10px; cursor: pointer;
  border: 1px solid transparent; background: #fff;
  transition: all 0.15s ease;
}
.navhub-web-item:hover {
  border-color: #e5e7eb; box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.navhub-web-item.exp-item-selected {
  background: #eff6ff; border-color: #93c5fd;
}
.navhub-web-ic {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #f9fafb;
}
.navhub-web-name {
  font-size: 13px; font-weight: 500; color: #1f2937;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1;
}
.navhub-web-host {
  font-size: 11.5px; color: #9ca3af;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 200px;
}

/* === 状态栏 === */
.exp-statusbar {
  height: 32px; padding: 0 16px;
  border-top: 1px solid #f0f0f0; background: #fff;
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: #6b7280; flex-shrink: 0;
}

/* === 详细信息视图 === */
.exp-detail-hd {
  display: flex; align-items: center; padding: 6px 12px;
  background: #fbfbfb; border-bottom: 1px solid #f0f0f0;
  font-size: 11.5px; font-weight: 600; color: #595959;
  position: sticky; top: -14px; z-index: 2;
}
.exp-detail-hd > div { cursor: pointer; user-select: none; padding: 2px 4px; border-radius: 3px; }
.exp-detail-hd > div:hover { background: #f0f0f0; color: #0067c0; }
.exp-detail-hd .exp-detail-name { flex: 2; min-width: 0; display: flex; align-items: center; gap: 6px; }
.exp-detail-hd .exp-detail-date { flex: 2; min-width: 0; }
.exp-detail-hd .exp-detail-type { flex: 1.5; min-width: 0; }
.exp-detail-hd .exp-detail-size { flex: 1; min-width: 0; text-align: right; }

.exp-detail-list { display: flex; flex-direction: column; }
.exp-detail-row {
  display: flex; align-items: center; padding: 4px 12px;
  font-size: 12px; color: #1e1e1e; cursor: default;
  border-bottom: 1px solid #f5f5f5; transition: background 0.1s;
}
.exp-detail-row:hover { background: #f5f9fc; }
.exp-detail-row.exp-item-selected { background: #e5f0fb; }
.exp-detail-row > div { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.exp-detail-row .exp-detail-name { flex: 2; display: flex; align-items: center; gap: 8px; }
.exp-detail-row .exp-detail-date { flex: 2; color: #6e6e6e; font-size: 11px; }
.exp-detail-row .exp-detail-type { flex: 1.5; color: #6e6e6e; font-size: 11px; }
.exp-detail-row .exp-detail-size { flex: 1; text-align: right; color: #6e6e6e; font-size: 11px; }
.exp-detail-ic { font-size: 14px; flex-shrink: 0; }

/* === 右键菜单（Win11 Fluent UI 圆角+毛玻璃） === */
.exp-ctx-menu {
  position: fixed; z-index: 10000; min-width: 240px; max-width: 280px;
  background: rgba(249,249,249,0.92);
  backdrop-filter: blur(80px) saturate(180%);
  -webkit-backdrop-filter: blur(80px) saturate(180%);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 8px; padding: 6px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.18), 0 4px 8px rgba(0,0,0,0.08);
  font-size: 12px;
  font-family: 'Segoe UI Variable Text', 'Segoe UI Variable', 'Segoe UI', 'Microsoft YaHei UI', system-ui, sans-serif;
  animation: ctxIn 0.12s cubic-bezier(0.16, 1, 0.3, 1);
}
.exp-ctx-item {
  display: flex; align-items: center; gap: 12px;
  padding: 5px 10px 5px 8px; border-radius: 4px; cursor: pointer;
  color: #1a1a1a; transition: background 0.06s; position: relative;
  height: 36px; box-sizing: border-box; user-select: none;
}
.exp-ctx-item:hover { background: rgba(0,0,0,0.05); }
.exp-ctx-ic {
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: rgba(0,0,0,0.65); flex-shrink: 0;
  transition: color 0.06s, transform 0.1s;
}
.exp-ctx-item:hover .exp-ctx-ic { color: #0067c0; transform: scale(1.05); }
.exp-ctx-label { flex: 1; font-size: 12px; line-height: 1.2; white-space: nowrap; }
.exp-ctx-arrow { color: rgba(0,0,0,0.5); font-size: 8px; }
.exp-ctx-sep { height: 1px; background: rgba(0,0,0,0.06); margin: 4px 10px; border: 0; }
.exp-ctx-submenu {
  display: none; position: absolute; left: 100%; top: -6px;
  min-width: 220px; background: rgba(249,249,249,0.92);
  backdrop-filter: blur(80px) saturate(180%);
  -webkit-backdrop-filter: blur(80px) saturate(180%);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 8px; padding: 6px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.18), 0 4px 8px rgba(0,0,0,0.08);
}

/* === 属性对话框 === */
.exp-props-overlay {
  position: fixed; inset: 0; z-index: 10001;
  background: rgba(0,0,0,0.3); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
}
.exp-props-dialog {
  width: 400px; background: #fff; border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.2);
  overflow: hidden; animation: expPropsIn 0.2s ease;
}
@keyframes expPropsIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.exp-props-hd {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid #f0f0f0;
}
.exp-props-ic {
  width: 32px; height: 32px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.exp-props-title { flex: 1; font-size: 14px; font-weight: 600; color: #1e1e1e; }
.exp-props-close {
  width: 28px; height: 28px; border: none; border-radius: 4px;
  background: transparent; cursor: pointer; color: #6e6e6e; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.1s;
}
.exp-props-close:hover { background: #f0f0f0; color: #1e1e1e; }
.exp-props-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.exp-props-row { display: flex; gap: 12px; font-size: 12px; }
.exp-props-k { width: 72px; color: #6e6e6e; flex-shrink: 0; }
.exp-props-v { color: #1e1e1e; word-break: break-all; }
.exp-props-attr {
  display: flex; gap: 20px; padding-top: 12px; margin-top: 4px;
  border-top: 1px solid #f0f0f0; font-size: 12px; color: #6e6e6e;
}
.exp-props-attr label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.exp-props-attr input { accent-color: #0067c0; }
.exp-props-ft {
  padding: 12px 18px; border-top: 1px solid #f0f0f0;
  display: flex; justify-content: flex-end; gap: 8px;
}
.exp-props-ft .btn-primary {
  padding: 6px 24px; border: none; border-radius: 4px;
  font-size: 13px; cursor: pointer;
}

/* === 重命名输入框 === */
.exp-rename-input {
  font-size: 12px; font-family: inherit;
  padding: 2px 4px; border: 1px solid #0067c0;
  border-radius: 3px; outline: none;
  background: #fff; color: #1e1e1e;
  min-width: 80px; max-width: 100%;
}
.exp-rename-input:focus { box-shadow: 0 0 0 1px #0067c0; }

/* === 按钮 === */
.btn-primary { background: #0067c0; color: #fff; }
.btn-primary:hover { background: #005a9e; }

/* === NavHub 兼容样式（NavHub 中仍使用 .exp-toolbar/.exp-crumb） === */
.exp-toolbar {
  height: 40px; display: flex; align-items: center; gap: 4px;
  padding: 0 10px; border-bottom: 1px solid #f0f0f0; background: #fbfbfb;
  flex-shrink: 0;
}
.exp-tb-btn {
  height: 30px; min-width: 30px; padding: 0 8px;
  border: none; border-radius: 4px; background: transparent;
  color: #1e1e1e; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.12s;
}
.exp-tb-btn:hover { background: #f0f0f0; }
.exp-tb-btn.exp-tb-disabled { color: #c4c4c4; cursor: default; }
.exp-tb-btn.exp-tb-disabled:hover { background: transparent; }
.exp-tb-btn svg { width: 14px; height: 14px; }
.exp-tb-sep { width: 1px; height: 18px; background: #e5e5e5; margin: 0 4px; }
.exp-tb-btn.exp-tb-active { background: #e5f0fb; color: #0067c0; }

/* NavHub 旧地址栏 / 面包屑（保持可用） */
.exp-crumb {
  font-size: 12.5px; color: #1e1e1e; font-weight: 400;
  padding: 3px 6px; border-radius: 3px; cursor: pointer;
  white-space: nowrap; transition: background 0.1s;
}
.exp-crumb:hover { background: #f0f0f0; }
.exp-crumb.exp-crumb-current { color: #1e1e1e; font-weight: 600; }
.exp-crumb-sep { color: #8a8a8a; font-size: 10px; margin: 0 2px; }
.exp-btn {
  height: 26px; min-width: 28px; padding: 0 8px;
  border: none; border-radius: 4px; background: transparent;
  color: #1e1e1e; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.1s;
}
.exp-btn:hover { background: #f0f0f0; }
.exp-nav-btns { display: flex; gap: 2px; }
.exp-address .exp-crumb { display: inline-flex; align-items: center; }

/* NavHub 侧边栏 & 内容 (与 Explorer 风格对齐) */
.nh-module-tabs {
  height: 36px; display: flex; align-items: center; gap: 4px;
  padding: 0 14px; border-bottom: 1px solid #f1f5f9;
  background: #fff; flex-shrink: 0;
}
.nh-tab {
  padding: 5px 12px; border-radius: 6px;
  font-size: 12px; color: #64748b; font-weight: 500;
  cursor: pointer;
}
.nh-tab:hover { background: #f1f5f9; color: #0f172a; }
.nh-tab.active { background: #eff6ff; color: #2563eb; font-weight: 600; }

.nh-entries {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(116px, 1fr));
  gap: 12px;
  padding: 12px 0 0;
}
.nh-entry {
  padding: 12px 10px; border-radius: 10px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center; transition: background 0.12s;
}
.nh-entry:hover { background: #f8fafc; }
.nh-entry.selected { background: #eff6ff; outline: 2px solid #bfdbfe; }
.nh-entry-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.nh-entry-icon svg { width: 22px; height: 22px; }
.nh-entry-name { font-size: 12px; color: #0f172a; font-weight: 600; line-height: 1.3; word-break: break-all; }
.nh-entry-sub { font-size: 10.5px; color: #94a3b8; }

.nh-entries.list-view {
  display: flex; flex-direction: column; gap: 2px; padding: 8px 0 0;
}
.nh-list-head {
  display: grid;
  grid-template-columns: 32px 2fr 1fr 1fr 0.5fr;
  gap: 12px; padding: 6px 12px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 11px; font-weight: 700; color: #64748b;
}
.nh-entry.list-row {
  display: grid;
  grid-template-columns: 32px 2fr 1fr 1fr 0.5fr;
  gap: 12px; padding: 8px 12px; border-radius: 6px;
  flex-direction: row; text-align: left; align-items: center;
}
.nh-entry.list-row .nh-entry-icon {
  width: 26px; height: 26px; border-radius: 7px;
}
.nh-entry.list-row .nh-entry-icon svg { width: 14px; height: 14px; }
.nh-entry.list-row .nh-entry-name { font-size: 12.5px; }

/* ===== Utils ===== */
.w-full { width: 100%; }
.btn {
  padding: 6px 14px; border-radius: 6px; border: none;
  background: #2563eb; color: #fff; font-family: inherit;
  font-size: 12px; font-weight: 500; cursor: pointer;
  transition: background 0.12s;
}
.btn:hover { background: #1d4ed8; }
.btn.ghost { background: transparent; color: #64748b; border: 1px solid #e2e8f0; }
.btn.ghost:hover { background: #f1f5f9; color: #0f172a; }
.btn.danger { background: #ef4444; }
.btn.danger:hover { background: #dc2626; }
.btn.success { background: #10b981; }
.btn.success:hover { background: #059669; }

input.text, input[type=text], select, textarea {
  padding: 6px 10px; border: 1px solid #e2e8f0; border-radius: 6px;
  font-size: 12.5px; font-family: inherit; outline: none;
  transition: border-color 0.12s, box-shadow 0.12s;
}
input.text:focus, input[type=text]:focus, select:focus, textarea:focus {
  border-color: #60a5fa; box-shadow: 0 0 0 3px rgba(96,165,250,0.15);
}

.kbd {
  display: inline-block; padding: 2px 6px;
  background: #f1f5f9; border: 1px solid #e2e8f0;
  border-bottom-width: 2px; border-radius: 4px;
  font-size: 10.5px; color: #475569; font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}

/* ===== 内置浏览器 (Win11 Light) ===== */
.win-browser-chrome .win-titlebar { display: none !important; }
.win-browser-chrome .win-body { border-radius: 8px; overflow: hidden; }
.win-browser-chrome.win-maximized .win-body { border-radius: 0; }

.br-app {
  height: 100%; display: flex; flex-direction: column;
  background: #f5f5f5; position: relative; overflow: hidden;
}

/* 加载进度条 */
.br-progress {
  position: absolute; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, #0078d4, #60a5fa);
  z-index: 200; opacity: 0;
}

/* 一体化标题栏 + 标签栏 */
.br-header {
  height: 36px; display: flex; align-items: center;
  background: #efeff0; padding-left: 8px;
  flex-shrink: 0; user-select: none;
}
.br-tabs {
  display: flex; align-items: center; gap: 2px; flex: 1;
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none; height: 36px;
}
.br-tabs::-webkit-scrollbar { display: none; }

.br-tab {
  display: flex; align-items: center; gap: 7px;
  padding: 0 6px 0 10px; height: 28px;
  border-radius: 8px; cursor: pointer;
  font-size: 12px; color: #616161; max-width: 180px; min-width: 80px;
  transition: background 0.12s, color 0.12s;
  flex-shrink: 0; background: transparent;
}
.br-tab:hover { background: rgba(0,0,0,0.05); color: #323232; }
.br-tab.on {
  background: #f5f5f5; color: #0078d4;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.05);
}

.br-tab-ic {
  width: 14px; height: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: #909090;
}
.br-tab.on .br-tab-ic { color: #0078d4; }
.br-tab-ic svg { width: 13px; height: 13px; }
.br-fav-t { font-size: 10px; font-weight: 700; }
.br-spin {
  width: 11px; height: 11px;
  border: 2px solid rgba(0,0,0,0.1); border-top-color: #0078d4;
  border-radius: 50%; animation: brSpin 0.7s linear infinite;
}
@keyframes brSpin { to { transform: rotate(360deg); } }

.br-tab-txt {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; font-weight: 400;
}
.br-tab-x {
  width: 16px; height: 16px; border-radius: 50%; border: none;
  background: transparent; cursor: pointer; color: #909090;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; opacity: 0; transition: opacity 0.12s, background 0.1s;
}
.br-tab:hover .br-tab-x, .br-tab.on .br-tab-x { opacity: 1; }
.br-tab-x svg { width: 10px; height: 10px; }
.br-tab-x:hover { background: rgba(0,0,0,0.1); color: #323232; }

.br-tab-add {
  width: 24px; height: 24px; border-radius: 6px; border: none;
  background: transparent; cursor: pointer; color: #616161;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-left: 2px; transition: background 0.12s, color 0.12s;
}
.br-tab-add svg { width: 14px; height: 14px; }
.br-tab-add:hover { background: rgba(0,0,0,0.06); color: #323232; }

/* 窗口控制按钮 */
.br-win-ctrl { display: flex; align-items: center; height: 36px; flex-shrink: 0; }
.br-win-ctrl button {
  width: 36px; height: 36px; border: none; background: transparent;
  cursor: pointer; color: #616161;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.1s, color 0.1s;
}
.br-win-ctrl button svg { width: 12px; height: 12px; }
.br-win-ctrl button:hover { background: rgba(0,0,0,0.06); color: #323232; }
.br-win-ctrl .br-win-close:hover { background: #e81123; color: #fff; }

/* 工具栏 */
.br-bar {
  height: 42px; display: flex; align-items: center; gap: 2px;
  padding: 0 8px; background: #f5f5f5; flex-shrink: 0;
}
.br-btn {
  width: 32px; height: 32px; border: none; border-radius: 6px;
  background: transparent; color: #616161; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.12s, color 0.12s; flex-shrink: 0;
}
.br-btn:hover { background: rgba(0,0,0,0.06); color: #323232; }
.br-btn.off { color: #c8c8c8; cursor: default; }
.br-btn.off:hover { background: transparent; }
.br-btn svg { width: 16px; height: 16px; }

/* 地址栏 */
.br-addr {
  flex: 1; height: 32px; border-radius: 16px;
  background: #fff; border: 1px solid #e0e0e0;
  padding: 0 14px; margin: 0 6px;
  display: flex; align-items: center; gap: 8px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.br-addr:focus-within {
  border-color: #0078d4;
  box-shadow: 0 0 0 2px rgba(0,120,212,0.12);
}
.br-addr-ic { width: 13px; height: 13px; color: #0078d4; flex-shrink: 0; }
.br-addr input {
  flex: 1; border: none; background: transparent; outline: none;
  font-size: 13px; font-family: inherit; color: #323232;
}
.br-addr input::placeholder { color: #a0a0a0; }

/* 内容区 */
.br-view { flex: 1; min-height: 0; overflow: hidden; position: relative; }
.br-frame-wrap { width: 100%; height: 100%; }
.br-frame { width: 100%; height: 100%; border: none; background: #fff; }

/* 主页 */
.br-home {
  height: 100%; overflow-y: auto;
  background: linear-gradient(180deg, #eef4fb 0%, #f5f5f5 50%, #fafafa 100%);
  display: flex; flex-direction: column; align-items: center;
  padding: 6vh 20px 40px;
}
.br-hero { text-align: center; margin-bottom: 28px; position: relative; }
.br-hero-glow {
  position: absolute; top: -40px; left: 50%; transform: translateX(-50%);
  width: 300px; height: 120px;
  background: radial-gradient(ellipse, rgba(0,120,212,0.12), transparent 70%);
  pointer-events: none;
}
.br-hero-clock {
  font-size: 68px; font-weight: 200; color: #1a1a1a;
  letter-spacing: -3px; line-height: 1; position: relative;
  font-family: 'Segoe UI', 'Inter', sans-serif;
}
.br-hero-date {
  font-size: 13px; color: #8a8a8a; margin-top: 6px; font-weight: 500; position: relative;
}

.br-search {
  display: flex; align-items: center; gap: 10px;
  width: 100%; max-width: 500px; height: 44px;
  border-radius: 22px; background: #fff;
  border: 1px solid #e0e0e0; padding: 0 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  margin-bottom: 32px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.br-search:focus-within {
  border-color: #0078d4;
  box-shadow: 0 0 0 3px rgba(0,120,212,0.1), 0 2px 12px rgba(0,0,0,0.06);
}
.br-search svg { width: 16px; height: 16px; color: #a0a0a0; flex-shrink: 0; }
.br-search input {
  flex: 1; border: none; background: transparent; outline: none;
  font-size: 14px; font-family: inherit; color: #323232;
}
.br-search input::placeholder { color: #b0b0b0; }

/* 快捷卡片 */
.br-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px; width: 100%; max-width: 560px; margin-bottom: 24px;
}
.br-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 6px; border-radius: 10px; cursor: pointer;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(0,0,0,0.04);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  animation: brCardIn 0.35s ease backwards;
}
@keyframes brCardIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.br-card:hover {
  background: #fff; transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.br-card-ic {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px; font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.br-card span {
  font-size: 11px; color: #616161; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 74px;
}

/* 导航芯片 */
.br-chips-hd {
  font-size: 11px; font-weight: 700; color: #909090;
  letter-spacing: 0.5px; margin-bottom: 10px;
  width: 100%; max-width: 560px; padding: 0 2px;
}
.br-chips { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; max-width: 560px; }
.br-chip {
  padding: 5px 12px; border-radius: 14px; cursor: pointer;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(0,0,0,0.04);
  font-size: 12px; color: #616161; font-weight: 400;
  transition: background 0.12s, color 0.12s;
}
.br-chip:hover { background: #fff; color: #0078d4; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.br-chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; }

/* ===== 记事本 (Notepad) Win11 风格 v2 ===== */
.np-app {
  height: 100%; display: flex; flex-direction: column;
  background: #fff;
}

/* 菜单栏 - Win11 风格 */
.np-menubar {
  height: 28px; display: flex; align-items: center;
  background: #fff; border-bottom: 1px solid #eee;
  padding: 0 4px; flex-shrink: 0;
  user-select: none;
}
.np-menu-group { display: flex; align-items: center; }
.np-menu-item {
  padding: 4px 12px; font-size: 12px; color: #323232;
  cursor: pointer; border-radius: 4px;
  transition: background 0.1s, color 0.1s;
  position: relative;
}
.np-menu-item:hover, .np-menu-item.np-menu-active {
  background: #e8f3fb;
}

/* 菜单弹出面板 */
.np-menu-popup {
  position: fixed; z-index: 10000;
  min-width: 200px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  animation: npMenuFadeIn 0.12s ease;
}
@keyframes npMenuFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.np-menu-row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 12px; border-radius: 4px; cursor: pointer;
  color: #323232; font-size: 13px;
  transition: background 0.08s;
  white-space: nowrap;
}
.np-menu-row:hover { background: #e8f3fb; }
.np-menu-check { width: 16px; text-align: center; color: #0078d4; font-size: 12px; }
.np-menu-label { flex: 1; }
.np-menu-shortcut { font-size: 11px; color: #9e9e9e; }
.np-menu-sep {
  height: 1px; background: #f0f0f0;
  margin: 4px 6px;
}
.np-menu-arrow { color: #9e9e9e; font-size: 11px; }
.np-menu-item-has-sub { position: relative; }
.np-menu-sub {
  position: absolute; left: 100%; top: -6px;
  min-width: 180px;
  background: #fff; border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px; padding: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  display: none;
}
.np-menu-item-has-sub:hover .np-menu-sub {
  display: block;
}

/* 工具栏 - Win11 紧凑风格 */
.np-toolbar {
  height: 36px; display: flex; align-items: center; gap: 1px;
  padding: 0 6px; background: #fafafa;
  border-bottom: 1px solid #eee; flex-shrink: 0;
}
.np-tb-btn {
  width: 30px; height: 30px; border: none; border-radius: 4px;
  background: transparent; color: #616161; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.1s, color 0.1s;
}
.np-tb-btn:hover { background: rgba(0,0,0,0.06); color: #323232; }
.np-tb-btn.np-tb-active { background: #e8f3fb; color: #0078d4; }
.np-tb-btn svg { width: 14px; height: 14px; }
.np-tb-sep {
  width: 1px; height: 20px; background: #e5e5e5;
  margin: 0 4px; flex-shrink: 0;
}
.np-tb-flex { flex: 1; }

/* 缩放控制 */
.np-zoom {
  display: flex; align-items: center; gap: 2px;
  padding-right: 4px;
}
.np-zoom-btn {
  width: 26px; height: 26px; border: none; border-radius: 4px;
  background: transparent; color: #616161; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.1s;
}
.np-zoom-btn:hover { background: rgba(0,0,0,0.06); }
.np-zoom-btn svg { width: 12px; height: 12px; }
.np-zoom-level {
  font-size: 12px; color: #323232; min-width: 42px;
  text-align: center; font-variant-numeric: tabular-nums;
}

/* 编辑区 */
.np-editor-wrap {
  flex: 1; min-height: 0; overflow: hidden;
  background: #fff;
}
.np-editor {
  width: 100%; height: 100%;
  padding: 14px 18px;
  border: none; outline: none; resize: none;
  font-family: 'Segoe UI Variable', 'Segoe UI', 'Microsoft YaHei', sans-serif;
  font-size: 14px; line-height: 1.7;
  color: #1a1a1a; background: #fff;
  white-space: pre-wrap; overflow-wrap: break-word;
  tab-size: 4;
  scrollbar-width: thin;
  scrollbar-color: #c1c1c1 transparent;
  transition: font-size 0.15s ease;
}
.np-editor::-webkit-scrollbar { width: 10px; height: 10px; }
.np-editor::-webkit-scrollbar-track { background: #f1f1f1; }
.np-editor::-webkit-scrollbar-thumb {
  background: #c1c1c1; border-radius: 5px;
  border: 2px solid #f1f1f1;
}
.np-editor::-webkit-scrollbar-thumb:hover { background: #a8a8a8; }
.np-editor::selection {
  background: #0078d4; color: #fff;
}

/* 状态栏 */
.np-statusbar {
  height: 24px; display: flex; align-items: center;
  background: #f8f8f8; border-top: 1px solid #eee;
  padding: 0 14px; font-size: 11px; color: #616161;
  flex-shrink: 0;
}
.np-status-left { display: flex; align-items: center; gap: 6px; }
.np-status-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.np-status-sep { color: #c1c1c1; }

/* 查找对话框 */
.np-find-dialog {
  position: absolute; top: 60px; right: 16px; z-index: 100;
  width: 320px; background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  overflow: hidden;
  animation: npFindSlideIn 0.15s ease;
}
@keyframes npFindSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.np-find-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: #fafafa;
  font-size: 13px; font-weight: 600; color: #323232;
  border-bottom: 1px solid #eee;
}
.np-find-close {
  width: 24px; height: 24px; border: none; background: transparent;
  cursor: pointer; color: #616161; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px; transition: background 0.1s;
}
.np-find-close:hover { background: rgba(0,0,0,0.06); }
.np-find-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.np-find-row { display: flex; gap: 6px; }
.np-find-row input {
  flex: 1; height: 30px; padding: 0 10px;
  border: 1px solid #e0e0e0; border-radius: 4px;
  font-size: 13px; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.np-find-row input:focus {
  border-color: #0078d4;
  box-shadow: 0 0 0 2px rgba(0,120,212,0.15);
}
.np-find-nav {
  width: 30px; height: 30px; border: 1px solid #e0e0e0;
  border-radius: 4px; background: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #616161; transition: all 0.1s;
}
.np-find-nav:hover { background: #e8f3fb; border-color: #0078d4; color: #0078d4; }
.np-find-nav svg { width: 14px; height: 14px; }
.np-find-replace-btn {
  height: 30px; padding: 0 14px; border: none; border-radius: 4px;
  background: #0078d4; color: #fff; cursor: pointer;
  font-size: 12px; transition: background 0.1s;
}
.np-find-replace-btn:hover { background: #106ebe; }
.np-find-options {
  display: flex; gap: 18px; font-size: 12px; color: #616161;
}
.np-find-options label {
  display: flex; align-items: center; gap: 5px;
  cursor: pointer;
}
.np-find-options input { accent-color: #0078d4; }

/* 文件打开对话框 */
.np-file-dialog {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
}
.np-fd-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(2px);
}
.np-fd-dialog {
  position: relative; width: 420px; max-height: 520px;
  background: #fff; border-radius: 8px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.22);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: npFdFadeIn 0.15s ease;
}
@keyframes npFdFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
.np-fd-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: #f8f8f8;
  font-size: 14px; font-weight: 600; color: #323232;
  border-bottom: 1px solid #eee;
}
.np-fd-header button {
  width: 28px; height: 28px; border: none; background: transparent;
  cursor: pointer; color: #616161; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px; transition: background 0.1s;
}
.np-fd-header button:hover { background: rgba(0,0,0,0.06); }
.np-fd-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.np-fd-search {
  height: 32px; padding: 0 12px;
  border: 1px solid #e0e0e0; border-radius: 4px;
  font-size: 13px; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.np-fd-search:focus {
  border-color: #0078d4;
  box-shadow: 0 0 0 2px rgba(0,120,212,0.15);
}
.np-fd-list {
  max-height: 320px; overflow-y: auto;
  border: 1px solid #eee; border-radius: 4px;
}
.np-fd-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; cursor: pointer;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.08s;
}
.np-fd-item:last-child { border-bottom: none; }
.np-fd-item:hover { background: #e8f3fb; }
.np-fd-ic { font-size: 16px; }
.np-fd-name { flex: 1; font-size: 13px; color: #323232; }
.np-fd-size { font-size: 11px; color: #9e9e9e; }

/* ===== URL Fixer (链接修复器) ===== */
.uf-app {
  display: flex; flex-direction: column; height: 100%;
  background: #f8fafc; font-family: 'Inter', 'Segoe UI', 'Microsoft YaHei', sans-serif;
}
.uf-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; background: #fff;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}
.uf-header-left { display: flex; align-items: center; gap: 14px; }
.uf-logo {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; background: linear-gradient(135deg, #8b5cf6, #6366f1);
  border-radius: 12px;
}
.uf-title-main { font-size: 16px; font-weight: 700; color: #1e293b; }
.uf-title-sub { font-size: 12px; color: #64748b; margin-top: 2px; }
.uf-header-tabs { display: flex; gap: 4px; background: #f1f5f9; border-radius: 10px; padding: 4px; }
.uf-header-tab {
  display: flex; align-items: center; gap: 6px; padding: 8px 16px;
  border-radius: 8px; cursor: pointer; font-size: 13px;
  color: #64748b; transition: all 0.2s;
}
.uf-header-tab:hover { color: #1e293b; }
.uf-header-tab.active {
  background: #fff; color: #8b5cf6; font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.uf-tab-icon { font-size: 14px; }
.uf-body { flex: 1; overflow: hidden; position: relative; }

.uf-mode { display: none; height: 100%; overflow: auto; }
.uf-mode-active { display: flex; flex-direction: column; }

/* Toolbar */
.uf-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; background: #fff; border-bottom: 1px solid #e2e8f0;
  flex-wrap: wrap; gap: 12px;
}
.uf-stats { display: flex; gap: 16px; }
.uf-stat {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px; background: #f1f5f9; border-radius: 8px;
}
.uf-stat-num { font-size: 18px; font-weight: 700; color: #1e293b; }
.uf-stat-label { font-size: 12px; color: #64748b; }
.uf-stat-success { background: #dcfce7; }
.uf-stat-success .uf-stat-num { color: #16a34a; }
.uf-stat-failed { background: #fee2e2; }
.uf-stat-failed .uf-stat-num { color: #dc2626; }
.uf-stat-skipped { background: #fef3c7; }
.uf-stat-skipped .uf-stat-num { color: #d97706; }
.uf-stat-fixed { background: #ede9fe; }
.uf-stat-fixed .uf-stat-num { color: #7c3aed; }
.uf-stat-direct { background: #e0f2fe; }
.uf-stat-direct .uf-stat-num { color: #0284c7; }
.uf-stat-total { background: #f1f5f9; }
.uf-stat-total .uf-stat-num { color: #0f172a; }

.uf-actions { display: flex; gap: 8px; }
.uf-btn {
  padding: 8px 16px; border: none; border-radius: 8px; cursor: pointer;
  font-size: 13px; font-weight: 500; transition: all 0.15s;
  background: #f1f5f9; color: #475569;
}
.uf-btn:hover:not(:disabled) { background: #e2e8f0; }
.uf-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.uf-btn-primary { background: #8b5cf6; color: #fff; }
.uf-btn-primary:hover:not(:disabled) { background: #7c3aed; }
.uf-btn-danger { background: #fee2e2; color: #dc2626; }
.uf-btn-danger:hover:not(:disabled) { background: #fecaca; }
.uf-btn-large { padding: 12px 24px; font-size: 14px; }
.uf-btn-small { padding: 4px 10px; font-size: 12px; }

/* Progress */
.uf-progress {
  padding: 12px 20px; background: #fff; border-bottom: 1px solid #e2e8f0;
}
.uf-progress-bar {
  height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden;
}
.uf-progress-fill {
  height: 100%; background: linear-gradient(90deg, #8b5cf6, #6366f1);
  border-radius: 3px; transition: width 0.3s; width: 0%;
}
.uf-progress-text { font-size: 12px; color: #64748b; margin-top: 6px; }

/* Current item */
.uf-current {
  padding: 12px 20px; background: #fef3c7; border-bottom: 1px solid #fde68a;
}
.uf-current-item { display: flex; align-items: center; gap: 12px; }
.uf-current-spinner {
  width: 20px; height: 20px; border: 2px solid #f3f4f6; border-top-color: #8b5cf6;
  border-radius: 50%; animation: ufSpin 0.8s linear infinite;
}
@keyframes ufSpin { to { transform: rotate(360deg); } }
.uf-current-name { font-size: 14px; font-weight: 600; color: #1e293b; }
.uf-current-url { font-size: 12px; color: #64748b; margin-top: 2px; }
.uf-current-status { font-size: 12px; color: #64748b; margin-top: 4px; }

/* Main layout */
.uf-main { display: flex; flex: 1; overflow: hidden; }
.uf-panel { display: flex; flex-direction: column; overflow: hidden; }
.uf-panel-left { width: 360px; border-right: 1px solid #e2e8f0; background: #fff; }
.uf-panel-right { flex: 1; background: #f8fafc; }

.uf-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid #e2e8f0; background: #fff;
}
.uf-search {
  width: 160px; padding: 6px 12px; border: 1px solid #e2e8f0; border-radius: 6px;
  font-size: 12px; outline: none;
}
.uf-search:focus { border-color: #8b5cf6; box-shadow: 0 0 0 2px rgba(139,92,246,0.1); }

.uf-list { flex: 1; overflow-y: auto; }
.uf-list-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; cursor: pointer;
  border-bottom: 1px solid #f1f5f9; transition: background 0.1s;
}
.uf-list-item:hover { background: #f8fafc; }
.uf-list-item.uf-success { background: #f0fdf4; }
.uf-list-item.uf-failed { background: #fef2f2; }
.uf-list-status { font-size: 14px; }
.uf-list-info { flex: 1; min-width: 0; }
.uf-list-name { font-size: 13px; font-weight: 500; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uf-list-url { font-size: 11px; color: #64748b; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Right panel tabs */
.uf-tabs {
  display: flex; gap: 4px; padding: 8px 16px; background: #fff;
  border-bottom: 1px solid #e2e8f0;
}
.uf-tab {
  padding: 6px 14px; border-radius: 6px; cursor: pointer;
  font-size: 13px; color: #64748b; transition: all 0.15s;
}
.uf-tab.active { background: #f1f5f9; color: #1e293b; font-weight: 600; }
.uf-tab-panel { flex: 1; overflow: auto; padding: 16px; }

/* Detail */
.uf-detail-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; color: #94a3b8; gap: 8px;
}
.uf-detail-item { background: #fff; border-radius: 12px; padding: 20px; }
.uf-detail-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.uf-detail-title { font-size: 16px; font-weight: 700; color: #1e293b; }
.uf-detail-actions { display: flex; gap: 8px; }
.uf-detail-grid { display: flex; flex-direction: column; gap: 12px; }
.uf-detail-row { display: flex; gap: 12px; font-size: 13px; }
.uf-detail-row label { width: 80px; color: #64748b; flex-shrink: 0; }
.uf-detail-row span { color: #1e293b; word-break: break-all; }
.uf-detail-row.uf-success-row { padding: 8px 12px; background: #dcfce7; border-radius: 8px; }
.uf-detail-row.uf-error-row { padding: 8px 12px; background: #fee2e2; border-radius: 8px; }

.uf-url-group { display: flex; align-items: center; gap: 8px; flex: 1; }
.uf-url { color: #8b5cf6; cursor: pointer; text-decoration: none; }
.uf-url:hover { text-decoration: underline; }
.uf-copy-btn {
  padding: 4px 8px; border: 1px solid #e2e8f0; border-radius: 6px; background: #fff;
  cursor: pointer; font-size: 12px; transition: all 0.15s;
}
.uf-copy-btn:hover { background: #f1f5f9; }

.uf-confidence-bar { display: flex; align-items: center; gap: 8px; flex: 1; max-width: 200px; }
.uf-confidence-fill { height: 6px; background: linear-gradient(90deg, #8b5cf6, #10b981); border-radius: 3px; }

.uf-badge {
  display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px;
  font-size: 11px; font-weight: 500;
}
.uf-badge-success { background: #dcfce7; color: #16a34a; }
.uf-badge-error { background: #fee2e2; color: #dc2626; }
.uf-badge-pending { background: #fef3c7; color: #d97706; }
.uf-badge-info { background: #dbeafe; color: #2563eb; }

/* Links list in detail */
.uf-links-section { margin-top: 16px; }
.uf-links-title { font-size: 13px; font-weight: 600; color: #1e293b; margin-bottom: 8px; }
.uf-links-list { display: flex; flex-direction: column; gap: 4px; }
.uf-link-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  background: #f8fafc; border-radius: 6px; font-size: 12px;
}
.uf-link-best { background: #fef3c7; border: 1px solid #fde68a; }
.uf-link-score {
  width: 32px; text-align: center; font-weight: 600;
  color: #64748b;
}
.uf-link-best .uf-link-score { color: #d97706; }
.uf-link-text { flex: 0 0 120px; color: #475569; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uf-link-url { flex: 1; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uf-link-badge {
  background: #f59e0b; color: #fff; padding: 2px 6px; border-radius: 4px; font-size: 10px;
}

/* Log */
.uf-log { font-family: 'Courier New', monospace; font-size: 12px; }
.uf-log-entry {
  padding: 4px 8px; border-left: 2px solid #e2e8f0; margin-bottom: 2px;
  color: #475569;
}
.uf-log-info { border-color: #3b82f6; }
.uf-log-success { border-color: #10b981; color: #059669; }
.uf-log-error { border-color: #ef4444; color: #dc2626; }
.uf-log-processing { border-color: #f59e0b; color: #d97706; }

/* Empty state */
.uf-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 20px; text-align: center; color: #94a3b8; font-size: 13px;
}

/* Manual mode */
.uf-manual { padding: 20px; display: flex; flex-direction: column; gap: 20px; }
.uf-manual-section {
  background: #fff; border-radius: 12px; padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.uf-manual-header { margin-bottom: 16px; }
.uf-manual-title { font-size: 15px; font-weight: 700; color: #1e293b; }
.uf-manual-desc { font-size: 12px; color: #64748b; margin-top: 4px; }

.uf-input-group { display: flex; flex-direction: column; gap: 12px; }
.uf-textarea {
  width: 100%; min-height: 120px; padding: 12px; border: 1px solid #e2e8f0;
  border-radius: 8px; font-size: 13px; font-family: 'Courier New', monospace;
  resize: vertical; outline: none; transition: border-color 0.15s;
}
.uf-textarea:focus { border-color: #8b5cf6; }
.uf-input {
  width: 100%; padding: 10px 12px; border: 1px solid #e2e8f0;
  border-radius: 8px; font-size: 13px; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.uf-input:focus { border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139,92,246,0.1); }
.uf-form-row { display: flex; flex-direction: column; gap: 4px; }
.uf-form-row label { font-size: 12px; color: #64748b; font-weight: 500; }
.uf-input-actions { display: flex; gap: 10px; margin-top: 8px; }

.uf-result-section {
  background: #fff; border-radius: 12px; padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.uf-result-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px;
}
.uf-result-title { font-size: 14px; font-weight: 700; color: #1e293b; }
.uf-result-actions { display: flex; align-items: center; gap: 12px; }
.uf-result-summary { font-size: 12px; color: #64748b; }
.uf-result-list { display: flex; flex-direction: column; gap: 12px; }

.uf-result-item {
  display: flex; gap: 14px; padding: 14px; border-radius: 10px;
  background: #f8fafc; border: 1px solid #e2e8f0;
}
.uf-result-success { background: #f0fdf4; border-color: #bbf7d0; }
.uf-result-failed { background: #fef2f2; border-color: #fecaca; }
.uf-result-badge { flex-shrink: 0; font-size: 12px; font-weight: 600; }
.uf-result-content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.uf-result-original, .uf-result-real {
  display: flex; align-items: center; gap: 8px; font-size: 12px;
}
.uf-result-label { color: #64748b; flex-shrink: 0; width: 50px; }
.uf-result-url { color: #1e293b; word-break: break-all; }
.uf-real-url { color: #8b5cf6; cursor: pointer; }
.uf-real-url:hover { text-decoration: underline; }
.uf-result-arrow { text-align: center; color: #94a3b8; font-size: 16px; }
.uf-result-title { font-size: 12px; color: #475569; }
.uf-result-meta { display: flex; gap: 16px; font-size: 11px; color: #94a3b8; }
.uf-result-error { font-size: 12px; color: #dc2626; }
.uf-result-actions-col { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.uf-result-progress { padding: 20px; text-align: center; }
.uf-result-progress-text { font-size: 13px; color: #64748b; margin-bottom: 8px; }
.uf-result-progress-bar { height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden; }
.uf-result-progress-fill { height: 100%; background: #8b5cf6; border-radius: 3px; transition: width 0.3s; }

/* History */
.uf-history-section {
  background: #fff; border-radius: 12px; padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.uf-history-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px;
  font-size: 13px; font-weight: 600; color: #1e293b;
}
.uf-history-list { display: flex; flex-direction: column; gap: 6px; }
.uf-history-empty { padding: 20px; text-align: center; color: #94a3b8; font-size: 12px; }
.uf-history-item {
  display: grid; grid-template-columns: 1fr 24px 1fr auto auto; gap: 8px;
  align-items: center; padding: 8px 12px; background: #f8fafc;
  border-radius: 8px; font-size: 12px;
}
.uf-history-url, .uf-history-real {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.uf-history-real { color: #8b5cf6; cursor: pointer; }
.uf-history-real:hover { text-decoration: underline; }
.uf-history-arrow { text-align: center; color: #94a3b8; }
.uf-history-meta { display: flex; flex-direction: column; gap: 2px; }
.uf-history-title { color: #475569; font-size: 11px; }
.uf-history-time { color: #94a3b8; font-size: 11px; }

/* Crawler mode */
.uf-crawler { padding: 20px; display: flex; flex-direction: column; gap: 20px; }
.uf-crawler-progress {
  background: #fff; border-radius: 12px; padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.uf-crawler-progress-text { font-size: 13px; color: #64748b; line-height: 1.6; }
.uf-crawler-progress-done { font-size: 14px; color: #16a34a; text-align: center; line-height: 1.6; }

.uf-crawler-status {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px;
}
.uf-crawler-results-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px;
  font-size: 14px; font-weight: 600; color: #1e293b;
}
.uf-crawler-results-list { display: flex; flex-direction: column; gap: 12px; }
.uf-crawler-item {
  background: #fff; border-radius: 12px; padding: 16px;
  border-left: 4px solid #94a3b8;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.uf-crawler-success { border-left-color: #10b981; }
.uf-crawler-failed { border-left-color: #ef4444; }
.uf-crawler-item-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.uf-crawler-depth {
  background: #8b5cf6; color: #fff; padding: 2px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 600;
}
.uf-crawler-status { font-size: 14px; }
.uf-crawler-title { flex: 1; font-size: 13px; font-weight: 600; color: #1e293b; }
.uf-crawler-type {
  background: #f1f5f9; color: #64748b; padding: 2px 8px; border-radius: 4px;
  font-size: 11px;
}
.uf-crawler-item-body { display: flex; flex-direction: column; gap: 8px; }
.uf-crawler-original, .uf-crawler-real {
  display: flex; align-items: center; gap: 8px; font-size: 12px;
}
.uf-crawler-label { color: #64748b; flex-shrink: 0; width: 70px; }
.uf-crawler-meta { display: flex; gap: 16px; font-size: 11px; color: #94a3b8; }
.uf-crawler-error { font-size: 12px; color: #dc2626; }
.uf-crawler-links {
  margin-top: 8px; padding: 8px 12px; background: #f8fafc; border-radius: 6px;
}
.uf-crawler-links summary {
  cursor: pointer; font-size: 12px; color: #64748b; font-weight: 500;
}
.uf-crawler-link-item {
  display: flex; align-items: center; gap: 10px; padding: 6px 8px;
  font-size: 11px; border-bottom: 1px solid #e2e8f0;
}
.uf-crawler-link-item:last-child { border-bottom: none; }

/* ===== Real URLs Manager v8 - 卡片网格 + 功能增强 ===== */
.ru8 {
  display: flex; flex-direction: column; height: 100%;
  background: transparent;
  font-family: 'Segoe UI', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: #1f2937;
}

/* 头部 */
.ru8-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px 8px; flex-shrink: 0;
}
.ru8-head-l { display: flex; align-items: center; gap: 10px; }
.ru8-logo {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, #0067c0, #005a9e);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,103,192,0.3);
}
.ru8-title { font-size: 15px; font-weight: 600; color: #1f2937; }
.ru8-count {
  font-size: 11px; color: #6b7280; background: #e5e7eb;
  padding: 2px 8px; border-radius: 10px; min-width: 20px; text-align: center;
  font-weight: 500;
}
.ru8-head-r { display: flex; align-items: center; gap: 8px; }

.ru8-search {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 14px; background: rgba(255,255,255,0.6);
  border: 1px solid rgba(0,0,0,0.08); border-radius: 8px;
  color: #9ca3af; transition: all 0.15s;
}
.ru8-search:focus-within {
  background: #fff; border-color: #0067c0;
  box-shadow: 0 0 0 3px rgba(0,103,192,0.12); color: #0067c0;
}
.ru8-search input {
  border: none; background: transparent; outline: none;
  font-size: 13px; width: 200px; color: #1f2937;
}
.ru8-search input::placeholder { color: #9ca3af; }

/* 排序 */
.ru8-sort-wrap { position: relative; }
.ru8-sort-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 12px; font-size: 13px; font-weight: 500;
  border: 1px solid rgba(0,0,0,0.08); border-radius: 8px;
  background: rgba(255,255,255,0.6); color: #374151;
  cursor: pointer; transition: all 0.15s;
}
.ru8-sort-btn:hover { background: #fff; }
.ru8-sort-menu {
  position: absolute; top: 100%; right: 0; margin-top: 4px;
  background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1); padding: 4px; z-index: 100;
  min-width: 130px;
}
.ru8-sort-menu button {
  display: block; width: 100%; text-align: left;
  padding: 6px 10px; font-size: 13px; border: none;
  border-radius: 5px; background: transparent; color: #374151;
  cursor: pointer; transition: background 0.1s;
}
.ru8-sort-menu button:hover { background: #f3f4f6; }

.ru8-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 14px; font-size: 13px; font-weight: 500;
  border: 1px solid rgba(0,0,0,0.08); border-radius: 8px;
  background: rgba(255,255,255,0.6); color: #374151;
  cursor: pointer; transition: all 0.15s;
}
.ru8-btn:hover { background: #fff; border-color: rgba(0,0,0,0.12); }
.ru8-btn.primary {
  background: #0067c0; color: #fff; border-color: #0067c0;
}
.ru8-btn.primary:hover { background: #005a9e; }
.ru8-btn-sync {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff; border-color: transparent;
}
.ru8-btn-sync:hover {
  background: linear-gradient(135deg, #1d4ed8, #6d28d9);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* 主区域 - 左右分栏 */
.ru8-main {
  flex: 1; display: flex; overflow: hidden;
}

/* 左侧栏 */
.ru8-side {
  width: 200px; flex-shrink: 0;
  border-right: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.4);
  display: flex; flex-direction: column;
}
.ru8-side-h {
  font-size: 11px; font-weight: 600; color: #9ca3af;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 12px 16px 6px;
}
.ru8-side-list {
  flex: 1; overflow-y: auto; padding: 0 8px;
}
.ru8-side-list::-webkit-scrollbar { width: 4px; }
.ru8-side-list::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 2px; }

.ru8-side-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: 8px;
  cursor: pointer; transition: all 0.12s;
  font-size: 13px; color: #374151;
}
.ru8-side-item:hover { background: rgba(0,0,0,0.04); }
.ru8-side-item.on {
  background: rgba(0,103,192,0.08); color: #0067c0;
}
.ru8-side-ico {
  width: 20px; height: 20px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #6b7280;
}
.ru8-side-item.on .ru8-side-ico { color: #0067c0; }
.ru8-side-fav { width: 16px; height: 16px; border-radius: 3px; }
.ru8-side-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #9ca3af;
}
.ru8-side-name {
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ru8-side-c {
  font-size: 11px; color: #9ca3af; background: #f3f4f6;
  padding: 1px 7px; border-radius: 10px; min-width: 20px; text-align: center;
  flex-shrink: 0;
}
.ru8-side-item.on .ru8-side-c {
  background: rgba(0,103,192,0.15); color: #0067c0;
}

.ru8-side-stats {
  display: flex; gap: 8px; padding: 10px 16px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.ru8-side-stat { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.ru8-side-stat-n { font-size: 16px; font-weight: 700; color: #0067c0; }
.ru8-side-stat-l { font-size: 11px; color: #9ca3af; }

/* 内容区 */
.ru8-body {
  flex: 1; overflow-y: auto; padding: 4px 20px 20px;
}
.ru8-body::-webkit-scrollbar { width: 8px; }
.ru8-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 4px; }
.ru8-body::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.2); }

/* 卡片网格 */
.ru8-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px;
}

/* 单个卡片 */
.ru8-card {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column; gap: 10px;
  position: relative; overflow: hidden;
}
.ru8-badge-direct {
  position: absolute; top: 0; right: 0;
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #fff; font-size: 10px; font-weight: 600;
  padding: 2px 8px; border-radius: 0 10px 0 8px;
}
.ru8-badge-extracted {
  position: absolute; top: 0; right: 0;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff; font-size: 10px; font-weight: 600;
  padding: 2px 8px; border-radius: 0 10px 0 8px;
}
.ru8-badge-forum {
  position: absolute; top: 0; right: 0;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #fff; font-size: 10px; font-weight: 600;
  padding: 2px 8px; border-radius: 0 10px 0 8px;
}
.ru8-badge-dup {
  position: absolute; top: 0; left: 0;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff; font-size: 10px; font-weight: 600;
  padding: 2px 8px; border-radius: 10px 0 8px 0;
}
.ru8-card-dup {
  border-color: #fecaca !important;
  background: #fef2f2 !important;
}
.ru8-side-stat-warn .ru8-side-stat-n {
  color: #ef4444 !important;
}
.ru8-side-stat-warn .ru8-side-stat-l {
  color: #dc2626 !important;
}
.ru8-dup-item {
  padding: 12px; margin-bottom: 8px;
  background: #fff5f5; border: 1px solid #fecaca;
  border-radius: 8px;
}
.ru8-dup-url {
  font-size: 13px; font-weight: 600; margin-bottom: 4px;
  word-break: break-all;
}
.ru8-dup-title {
  font-size: 12px; color: #64748b; margin-bottom: 6px;
}
.ru8-dup-locs {
  font-size: 12px; color: #475569;
}
.ru8-dup-loc {
  padding: 2px 0;
}
.ru8-dup-loc-first {
  color: #475569;
}
/* 详情弹窗 */
.ru8-detail-main {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; background: #f8fafc; border-radius: 10px; margin-bottom: 12px;
}
.ru8-detail-fav {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px; font-weight: 700; flex-shrink: 0;
}
.ru8-detail-info { flex: 1; min-width: 0; }
.ru8-detail-domain { font-size: 14px; font-weight: 700; color: #0f172a; }
.ru8-detail-url { font-size: 12px; color: #64748b; word-break: break-all; }
.ru8-detail-section { margin-bottom: 12px; }
.ru8-detail-section-title {
  font-size: 12px; font-weight: 700; color: #334155;
  margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid #f1f5f9;
}
.ru8-detail-row {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; padding: 4px 0;
}
.ru8-detail-row label {
  width: 80px; flex-shrink: 0; color: #64748b; font-size: 12px;
}
.ru8-detail-dup-count {
  padding: 8px 12px; background: #fef2f2; border: 1px solid #fecaca;
  border-radius: 8px; font-size: 13px; color: #dc2626; margin-bottom: 8px;
  font-weight: 600;
}
.ru8-detail-locs { margin-bottom: 8px; }
.ru8-detail-loc-item {
  padding: 6px 10px; background: #fff; border: 1px solid #e2e8f0;
  border-radius: 6px; margin-bottom: 4px;
}
.ru8-detail-loc-label {
  font-size: 11px; color: #94a3b8; margin-bottom: 2px;
}
.ru8-detail-loc-path {
  font-size: 13px; color: #475569;
}
.ru8-detail-tip {
  font-size: 12px; color: #0ea5e9; padding: 8px 12px;
  background: #f0f9ff; border-radius: 6px;
}
.ru8-card:hover {
  background: rgba(255,255,255,0.95);
  border-color: rgba(0,103,192,0.2);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

.ru8-card-top {
  display: flex; align-items: flex-start; gap: 12px;
}
.ru8-fav-wrap {
  width: 36px; height: 36px; border-radius: 8px;
  background: #f3f4f6; flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.ru8-fav { width: 20px; height: 20px; object-fit: contain; }
.ru8-fav-fb {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; font-weight: 700;
}
.ru8-card-info { flex: 1; min-width: 0; }
.ru8-card-title {
  font-size: 13px; font-weight: 600; color: #1f2937;
  line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.ru8-card-domain {
  font-size: 11px; color: #9ca3af; margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: 'Consolas', 'Monaco', monospace;
}

.ru8-card-bottom {
  display: flex; align-items: center; gap: 8px;
  padding-top: 8px; border-top: 1px solid rgba(0,0,0,0.04);
}
.ru8-card-src {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; color: #6b7280;
  background: #f3f4f6; padding: 2px 8px; border-radius: 5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ru8-src-fav { width: 12px; height: 12px; border-radius: 2px; flex-shrink: 0; }
.ru8-card-time {
  font-size: 11px; color: #9ca3af; white-space: nowrap;
  margin-left: auto;
}
.ru8-card-ops {
  display: flex; gap: 2px; opacity: 0; transition: opacity 0.15s;
}
.ru8-card:hover .ru8-card-ops { opacity: 1; }
.ru8-card-ops button {
  width: 26px; height: 26px; border: none; border-radius: 6px;
  background: transparent; color: #9ca3af; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.12s;
}
.ru8-card-ops button:hover { background: rgba(0,0,0,0.06); color: #374151; }
.ru8-card-ops button.del:hover { background: rgba(239,68,68,0.1); color: #ef4444; }

/* 空状态 */
.ru8-empty {
  height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
}
.ru8-empty-t { font-size: 14px; font-weight: 600; color: #6b7280; margin-top: 8px; }
.ru8-empty-d { font-size: 12px; color: #9ca3af; margin-bottom: 8px; }

/* ===== 日志查看器 Logs Viewer ===== */
.lv-app {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  background: #f5f6f8;
}
/* 顶部统计卡 + 工具栏 */
.lv-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  flex-shrink: 0;
}
.lv-tb-left { display: flex; gap: 10px; }
.lv-stat-card {
  padding: 8px 14px; border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.06);
  background: #fff;
  display: flex; flex-direction: column; gap: 2px;
  min-width: 84px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  transition: all 0.15s;
}
.lv-stat-card:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,0.07); }
.lv-sc-num { font-size: 20px; font-weight: 800; line-height: 1; color: #1e293b; font-family: 'Inter', sans-serif; }
.lv-sc-label { font-size: 11px; color: #94a3b8; font-weight: 500; }
.lv-sc-info .lv-sc-num { color: #2563eb; }
.lv-sc-warn .lv-sc-num { color: #f59e0b; }
.lv-sc-error .lv-sc-num { color: #dc2626; }
.lv-sc-total .lv-sc-num { color: #1e293b; }

.lv-tb-right { display: flex; align-items: center; gap: 8px; }
.lv-sep { width: 1px; height: 24px; background: rgba(0,0,0,0.08); margin: 0 4px; }

.lv-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff; color: #374151;
  font-size: 12.5px; font-weight: 500;
  cursor: pointer; transition: all 0.15s;
  white-space: nowrap;
}
.lv-btn svg { width: 15px; height: 15px; }
.lv-btn:hover { background: #f9fafb; border-color: rgba(0,0,0,0.15); }
.lv-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.lv-btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  color: #fff; border-color: transparent;
  box-shadow: 0 1px 2px rgba(37,99,235,0.25);
}
.lv-btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  box-shadow: 0 2px 6px rgba(37,99,235,0.35);
}
.lv-btn-danger {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  color: #fff; border-color: transparent;
}
.lv-btn-danger:hover { background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%); }
.lv-btn-mini {
  padding: 4px 9px; border-radius: 6px; font-size: 11.5px;
  border: 1px solid rgba(0,0,0,0.08); background: #fff; color: #475569; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px;
  transition: all 0.12s;
}
.lv-btn-mini svg { width: 13px; height: 13px; }
.lv-btn-mini:hover { background: #f3f4f6; color: #1e293b; }

/* 下拉菜单 */
.lv-dropdown { position: relative; display: inline-block; }
.lv-dd-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 100;
  min-width: 160px; padding: 5px;
  background: #fff; border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  animation: lvDropIn 0.15s ease;
}
@keyframes lvDropIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.lv-dd-item {
  padding: 7px 10px; border-radius: 6px;
  font-size: 12.5px; color: #374151; cursor: pointer;
  transition: background 0.1s;
}
.lv-dd-item:hover { background: #f3f4f6; color: #1e293b; }

/* 筛选栏 */
.lv-filter {
  display: flex; align-items: flex-end; gap: 12px;
  padding: 12px 20px;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  flex-wrap: wrap; flex-shrink: 0;
}
.lv-filter-item {
  display: flex; flex-direction: column; gap: 4px;
}
.lv-filter-item label {
  font-size: 11px; color: #94a3b8; font-weight: 500;
  padding-left: 2px;
}
.lv-filter-item select,
.lv-filter-item input[type="date"],
.lv-filter-item input[type="text"] {
  height: 32px; padding: 0 10px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 7px; background: #f8fafc;
  font-size: 12.5px; color: #1e293b;
  transition: all 0.15s; font-family: inherit;
}
.lv-filter-item select:focus,
.lv-filter-item input:focus {
  outline: none; border-color: #2563eb; background: #fff;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.lv-filter-search { flex: 1; min-width: 200px; }
.lv-search-box {
  position: relative; height: 32px;
}
.lv-search-box svg {
  position: absolute; left: 9px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; color: #94a3b8;
}
.lv-search-box input {
  width: 100%; height: 100%; padding: 0 10px 0 30px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 7px; background: #f8fafc;
  font-size: 12.5px; color: #1e293b; font-family: inherit;
  transition: all 0.15s;
}
.lv-search-box input:focus {
  outline: none; border-color: #2563eb; background: #fff;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

/* 主内容区 */
.lv-main {
  flex: 1; display: flex; overflow: hidden;
  background: #f5f6f8;
  padding: 12px 20px 12px 20px;
  gap: 12px;
}

/* 日志列表 */
.lv-list {
  flex: 1.4; min-width: 0;
  background: #fff; border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.06);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.lv-list-head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #fafbfc 0%, #f4f5f7 100%);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 11px; font-weight: 600; color: #64748b;
  text-transform: uppercase; letter-spacing: 0.4px;
  flex-shrink: 0;
}
.lv-list-head > div { white-space: nowrap; }

.lv-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.035);
  cursor: pointer;
  transition: background 0.1s;
  font-size: 12.5px;
}
.lv-row:hover { background: #f8fafc; }
.lv-row.selected {
  background: rgba(37,99,235,0.06);
  box-shadow: inset 3px 0 0 #2563eb;
}
.lv-row-time { width: 140px; color: #64748b; font-size: 11.5px; font-family: 'JetBrains Mono', monospace; flex-shrink: 0; }
.lv-row-level {
  width: 80px; flex-shrink: 0;
  padding: 2px 8px; border-radius: 5px;
  font-size: 10.5px; font-weight: 700; text-align: center;
  letter-spacing: 0.3px;
}
.lv-row-app {
  width: 130px; flex-shrink: 0;
  color: #374151; font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lv-row-msg {
  flex: 1; min-width: 0;
  color: #1e293b;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lv-list { overflow-y: auto; }
.lv-list::-webkit-scrollbar { width: 8px; }
.lv-list::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 4px; }
.lv-list::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.2); }

/* 详情面板 */
.lv-detail {
  flex: 1; min-width: 0;
  background: #fff; border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.06);
  overflow-y: auto;
  padding: 18px 20px;
}
.lv-detail::-webkit-scrollbar { width: 8px; }
.lv-detail::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 4px; }

.lv-detail-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.lv-detail-level {
  display: inline-flex; align-items: center;
  padding: 4px 12px; border-radius: 7px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.5px;
}
.lv-detail-actions { display: flex; gap: 6px; }

.lv-detail-section { margin-bottom: 16px; }
.lv-detail-section-title {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; color: #64748b;
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.lv-detail-section-title svg { width: 14px; height: 14px; }
.lv-detail-section-title > .lv-btn-mini { margin-left: auto; text-transform: none; letter-spacing: 0; }
.lv-detail-message {
  padding: 12px 14px;
  background: #f8fafc; border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.04);
  font-size: 13px; color: #1e293b;
  line-height: 1.65; white-space: pre-wrap; word-break: break-word;
}
.lv-detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px;
  padding: 14px;
  background: #fafbfc; border-radius: 8px;
  margin-bottom: 16px;
}
.lv-detail-field { display: flex; flex-direction: column; gap: 3px; }
.lv-field-label { font-size: 10.5px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; }
.lv-field-value { font-size: 12.5px; color: #1e293b; }
.lv-mono { font-family: 'JetBrains Mono', 'Consolas', monospace; font-size: 11.5px; }

.lv-detail-json {
  padding: 12px 14px; margin: 0;
  background: #0f172a; color: #e2e8f0;
  border-radius: 8px;
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-size: 11.5px; line-height: 1.6;
  overflow-x: auto;
  max-height: 300px;
}
.lv-detail-text {
  padding: 10px 12px;
  background: #f8fafc; border-radius: 7px;
  font-size: 12px; color: #374151; line-height: 1.6;
  word-break: break-all;
}

/* 分页 */
.lv-pagination {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px 14px;
  background: #f5f6f8;
  flex-shrink: 0;
  border-top: 1px solid rgba(0,0,0,0.04);
}
.lv-pg-info { font-size: 12px; color: #64748b; }
.lv-pg-info strong { color: #1e293b; font-weight: 700; }
.lv-pg-buttons { display: flex; align-items: center; gap: 4px; }
.lv-page-btn {
  min-width: 32px; height: 30px; padding: 0 10px;
  border: 1px solid rgba(0,0,0,0.08); background: #fff;
  border-radius: 7px; font-size: 12px; color: #475569;
  cursor: pointer; transition: all 0.12s;
  font-weight: 500;
}
.lv-page-btn:hover:not(:disabled) { background: #f3f4f6; border-color: rgba(0,0,0,0.15); }
.lv-page-btn.active {
  background: #2563eb; border-color: #2563eb; color: #fff;
  box-shadow: 0 1px 3px rgba(37,99,235,0.3);
}
.lv-page-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.lv-page-ell { color: #94a3b8; padding: 0 2px; }

/* 空状态 */
.lv-empty {
  height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  padding: 60px 20px;
}
.lv-empty-icon { font-size: 48px; opacity: 0.5; }
.lv-empty-title { font-size: 15px; font-weight: 700; color: #475569; }
.lv-empty-sub { font-size: 12px; color: #94a3b8; text-align: center; max-width: 300px; line-height: 1.6; }

/* 清理对话框 */
.lv-clear-dialog { padding: 10px; }
.lv-clear-title { font-size: 14px; font-weight: 700; color: #1e293b; margin-bottom: 8px; }
.lv-clear-tip { font-size: 12px; color: #64748b; margin-bottom: 12px; }
.lv-clear-options { display: flex; flex-direction: column; gap: 6px; }
.lv-clear-opt {
  padding: 8px 10px; border-radius: 7px;
  font-size: 12.5px; color: #374151; cursor: pointer;
  transition: background 0.1s;
  display: flex; align-items: center; gap: 8px;
}
.lv-clear-opt:hover { background: #f3f4f6; }
.lv-clear-opt.lv-clear-danger { color: #dc2626; }
.lv-clear-opt.lv-clear-danger:hover { background: rgba(220,38,38,0.08); }

/* ===== 爬虫工具 (crawler) ===== */
.cr-app {
  display: flex; flex-direction: column;
  height: 100%; background: #f5f6f8;
}
.cr-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px;
  background: linear-gradient(135deg, #ec4899 0%, #f43f5e 50%, #e11d48 100%);
  color: #fff; flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(244, 63, 94, 0.18);
}
.cr-header-left { display: flex; align-items: center; gap: 14px; }
.cr-logo {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.25);
}
.cr-title { font-size: 17px; font-weight: 700; letter-spacing: 0.2px; }
.cr-sub { font-size: 12px; opacity: 0.92; margin-top: 2px; }
.cr-header-stats { display: flex; gap: 18px; }
.cr-stat { text-align: center; min-width: 56px; }
.cr-stat-num {
  font-size: 20px; font-weight: 700; color: #fff;
  font-family: 'JetBrains Mono', monospace;
  text-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.cr-stat-num.cr-stat-active { color: #fef3c7; }
.cr-stat-lbl { font-size: 10.5px; opacity: 0.85; margin-top: 2px; letter-spacing: 0.3px; }

.cr-body {
  flex: 1; min-height: 0;
  display: flex;
}
/* 左侧 */
.cr-left {
  width: 360px; flex-shrink: 0;
  background: #fff; border-right: 1px solid #f1f5f9;
  display: flex; flex-direction: column; min-height: 0;
}
.cr-toolbar {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
}
.cr-search {
  flex: 1; height: 32px; padding: 0 10px;
  background: #f1f5f9; border-radius: 8px;
  display: flex; align-items: center; gap: 6px;
  color: #64748b;
}
.cr-search input {
  flex: 1; border: none; background: transparent; outline: none;
  font-size: 12.5px; color: #1e293b; font-family: inherit;
}
.cr-search input::placeholder { color: #94a3b8; }
.cr-mini-btn {
  height: 32px; padding: 0 12px;
  border: 1px solid #e5e7eb; background: #fff;
  border-radius: 7px; font-size: 12px; font-weight: 500;
  color: #475569; cursor: pointer; transition: all 0.12s;
  font-family: inherit;
}
.cr-mini-btn:hover { background: #f8fafc; border-color: #cbd5e1; color: #1e293b; }

.cr-options {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  background: #fafbfc;
}
.cr-opt {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: #1e293b; cursor: pointer;
  font-weight: 500;
}
.cr-opt input[type="checkbox"] { width: 15px; height: 15px; cursor: pointer; accent-color: #ec4899; }
.cr-opt-tip {
  margin-left: auto; font-size: 10.5px; color: #94a3b8; font-weight: 400;
}

.cr-cat-list {
  flex: 1; overflow-y: auto; padding: 8px 0;
}
.cr-cat-list::-webkit-scrollbar { width: 8px; }
.cr-cat-list::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 4px; }
.cr-cat-list::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.2); }
.cr-nav-group { margin-bottom: 2px; }
.cr-nav-group-header {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; cursor: pointer;
  font-size: 12.5px; font-weight: 600; color: #1e293b;
  transition: background 0.1s;
  user-select: none;
}
.cr-nav-group-header:hover { background: #f8fafc; }
.cr-chevron { width: 14px; height: 14px; color: #94a3b8; flex-shrink: 0; }
.cr-check {
  width: 15px; height: 15px; cursor: pointer; accent-color: #ec4899;
  flex-shrink: 0;
}
.cr-nav-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-nav-count {
  font-size: 10.5px; color: #94a3b8; font-weight: 500;
  background: #f1f5f9; padding: 2px 7px; border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
}
.cr-cat-items { padding: 0 6px 6px; }
.cr-cat-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; margin: 2px 4px;
  border-radius: 8px; cursor: pointer;
  transition: background 0.1s;
  border: 1px solid transparent;
}
.cr-cat-row:hover { background: #f8fafc; }
.cr-cat-row.selected {
  background: rgba(236, 72, 153, 0.06);
  border-color: rgba(236, 72, 153, 0.25);
}

/* ===== 考证学习中心 (study) ===== */
.study-app {
  display: flex; flex-direction: column;
  height: 100%; background: #f5f6f8;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
/* 首页 Hero */
.study-hero {
  display: flex; align-items: center; gap: 18px;
  padding: 28px 32px; color: #fff; flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.15);
}
.study-hero-icon { font-size: 36px; }
.study-hero-title { font-size: 20px; font-weight: 700; letter-spacing: 0.3px; }
.study-hero-sub { font-size: 13px; opacity: 0.85; margin-top: 2px; }

/* 考试卡片网格 */
.study-exam-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px; padding: 20px; overflow-y: auto; flex: 1;
}
.study-exam-card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; border-radius: 14px; cursor: pointer;
  color: #fff; position: relative; overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  transition: transform 0.2s, box-shadow 0.2s;
}
.study-exam-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}
.study-exam-card::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 120px; height: 120px;
  background: rgba(255,255,255,0.12); border-radius: 50%;
}
.study-exam-icon { font-size: 32px; flex-shrink: 0; z-index: 1; }
.study-exam-info { flex: 1; z-index: 1; min-width: 0; }
.study-exam-name { font-size: 16px; font-weight: 700; }
.study-exam-desc { font-size: 11.5px; opacity: 0.9; margin-top: 4px; line-height: 1.45; }
.study-exam-stats { display: flex; gap: 6px; font-size: 11px; opacity: 0.85; margin-top: 8px; }
.study-exam-progress {
  height: 4px; background: rgba(255,255,255,0.25);
  border-radius: 2px; margin-top: 8px; overflow: hidden;
}
.study-exam-progress-bar { height: 100%; transition: width 0.4s; border-radius: 2px; }
.study-exam-arrow {
  font-size: 28px; font-weight: 300; opacity: 0.85; z-index: 1;
}

/* 学习主界面 Header */
.study-header {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; color: #fff; flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.study-header-back {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; cursor: pointer; background: rgba(255,255,255,0.15);
  transition: background 0.15s;
}
.study-header-back:hover { background: rgba(255,255,255,0.28); }
.study-header-icon { font-size: 26px; }
.study-header-info { flex: 1; min-width: 0; }
.study-header-title { font-size: 16px; font-weight: 700; }
.study-header-stats { font-size: 11.5px; opacity: 0.9; margin-top: 2px; }
.study-header-progress {
  width: 140px; height: 6px; background: rgba(255,255,255,0.25);
  border-radius: 3px; overflow: hidden; flex-shrink: 0;
}
.study-header-progress-bar {
  height: 100%; background: #fff;
  transition: width 0.4s; border-radius: 3px;
}

/* 学习主体 */
.study-body { flex: 1; display: flex; overflow: hidden; }

/* 侧边栏 */
.study-sidebar {
  width: 230px; background: #fff; padding: 12px 8px;
  overflow-y: auto; flex-shrink: 0;
  border-right: 1px solid #f0f0f0;
}
.study-sidebar-title {
  font-size: 11px; font-weight: 700; color: #94a3b8;
  text-transform: uppercase; letter-spacing: 0.6px;
  padding: 6px 10px 10px;
}
.study-subject { margin-bottom: 4px; }
.study-subject-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 10px; border-radius: 8px; cursor: pointer;
  transition: background 0.1s;
}
.study-subject-head:hover { background: #f5f7fa; }
.study-subject.active .study-subject-head {
  background: #eff6ff; color: #2563eb;
}
.study-subject-name { font-size: 13px; font-weight: 600; color: #1e293b; }
.study-subject.active .study-subject-name { color: #2563eb; }
.study-subject-count { font-size: 10.5px; color: #94a3b8; }
.study-ch-list { padding: 2px 0 6px 10px; }
.study-ch-item {
  padding: 6px 10px 6px 16px; margin: 1px 0;
  font-size: 12px; color: #475569;
  border-radius: 6px; cursor: pointer;
  position: relative; transition: all 0.1s;
  border-left: 2px solid transparent;
}
.study-ch-item::before {
  content: ''; position: absolute; left: 4px; top: 50%;
  width: 4px; height: 4px; border-radius: 50%;
  background: #cbd5e1; transform: translateY(-50%);
}
.study-ch-item:hover { background: #f5f7fa; color: #1e293b; }
.study-ch-item.active {
  background: #eff6ff; color: #2563eb; font-weight: 600;
  border-left-color: #2563eb;
}
.study-ch-item.active::before { background: #2563eb; }

/* 内容区 */
.study-content {
  flex: 1; overflow-y: auto; padding: 18px 22px;
  background: #fafbfc;
}

/* 总览页 */
.study-overview { max-width: 900px; margin: 0 auto; }
.study-overview-hero {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; background: #fff;
  border-radius: 14px; margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.study-overview-title { font-size: 16px; font-weight: 700; color: #0f172a; }
.study-overview-desc { font-size: 12px; color: #64748b; margin-top: 4px; }
.study-overview-stat { text-align: center; }
.study-overview-stat-num {
  font-size: 28px; font-weight: 800; color: #2563eb;
  font-family: 'JetBrains Mono', monospace;
}
.study-overview-stat-label { font-size: 11px; color: #64748b; margin-top: 2px; }
.study-overview-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px; margin-bottom: 20px;
}
.study-overview-sub {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: #fff;
  border-radius: 12px; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  transition: all 0.15s;
}
.study-overview-sub:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.study-overview-sub-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; flex-shrink: 0;
}
.study-overview-sub-name { font-size: 14px; font-weight: 600; color: #0f172a; }
.study-overview-sub-meta { font-size: 11px; color: #64748b; margin-top: 2px; }
.study-overview-sub-arrow { font-size: 22px; color: #cbd5e1; margin-left: auto; }
.study-overview-actions { display: flex; gap: 10px; }

/* 通用按钮 */
.study-btn-primary {
  padding: 10px 20px; background: #2563eb; color: #fff;
  border: none; border-radius: 10px; font-size: 13px;
  font-weight: 600; cursor: pointer; transition: all 0.15s;
  box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}
.study-btn-primary:hover { background: #1d4ed8; transform: translateY(-1px); }
.study-btn-ghost {
  padding: 10px 20px; background: #fff; color: #475569;
  border: 1px solid #e2e8f0; border-radius: 10px;
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: all 0.15s;
}
.study-btn-ghost:hover { background: #f8fafc; border-color: #cbd5e1; }

/* 模式切换 Tab */
.study-tabs {
  display: flex; gap: 4px; padding: 4px;
  background: #e2e8f0; border-radius: 10px;
  margin-bottom: 16px; width: fit-content;
}
.study-tab {
  padding: 7px 18px; font-size: 12.5px; font-weight: 600;
  color: #64748b; border-radius: 8px; cursor: pointer;
  transition: all 0.15s;
}
.study-tab:hover { color: #334155; }
.study-tab.active {
  background: #fff; color: #2563eb;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* 题目卡片 */
.study-q-list { display: flex; flex-direction: column; gap: 12px; }
.study-q-card {
  background: #fff; border-radius: 12px; padding: 16px 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.study-q-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.study-q-type {
  padding: 2px 8px; font-size: 11px; font-weight: 600;
  border-radius: 4px;
}
.study-q-status {
  font-size: 11px; font-weight: 600; padding: 2px 8px;
  border-radius: 4px; margin-left: auto;
}
.study-q-status.correct { background: #dcfce7; color: #16a34a; }
.study-q-status.wrong { background: #fee2e2; color: #dc2626; }
.study-q-status.unanswered { background: #f1f5f9; color: #94a3b8; }
.study-q-stem {
  font-size: 13.5px; color: #0f172a; line-height: 1.7;
  margin-bottom: 12px; font-weight: 500;
}
.study-options { display: flex; flex-direction: column; gap: 6px; }
.study-option {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; background: #f8fafc;
  border: 1.5px solid #e2e8f0; border-radius: 8px;
  cursor: pointer; transition: all 0.15s;
}
.study-option:hover { background: #f1f5f9; border-color: #cbd5e1; }
.study-option.selected {
  background: #eff6ff; border-color: #2563eb;
}
.study-option.correct {
  background: #dcfce7; border-color: #16a34a;
}
.study-option.wrong {
  background: #fee2e2; border-color: #dc2626;
}
.study-option-letter {
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; color: #475569;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
  border: 1.5px solid #cbd5e1;
}
.study-option.selected .study-option-letter {
  background: #2563eb; color: #fff; border-color: #2563eb;
}
.study-option.correct .study-option-letter {
  background: #16a34a; color: #fff; border-color: #16a34a;
}
.study-option.wrong .study-option-letter {
  background: #dc2626; color: #fff; border-color: #dc2626;
}
.study-option-text { font-size: 13px; color: #1e293b; line-height: 1.5; }

/* 解析 */
.study-analysis {
  margin-top: 14px; padding: 12px 14px;
  background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
  border-left: 3px solid #f59e0b; border-radius: 8px;
}
.study-analysis-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px; font-size: 12px; font-weight: 700; color: #92400e;
}
.study-answer { color: #475569; font-weight: 500; }
.study-answer b { color: #16a34a; font-size: 13px; }
.study-analysis-text {
  font-size: 12.5px; color: #475569; line-height: 1.7;
}
.study-q-video {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 8px; padding: 5px 10px;
  background: #fff; color: #2563eb;
  border: 1px solid #bfdbfe; border-radius: 6px;
  font-size: 11.5px; font-weight: 600; cursor: pointer;
  transition: all 0.15s;
}
.study-q-video:hover { background: #eff6ff; }

/* 做题模式 */
.study-quiz-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: #fff; border-radius: 10px;
  margin-bottom: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.study-quiz-progress { font-size: 13px; font-weight: 600; color: #1e293b; }
.study-quiz-actions { display: flex; gap: 8px; }
.study-quiz-result {
  margin-top: 12px; padding: 12px 16px;
  border-radius: 10px; font-size: 14px; font-weight: 700;
  text-align: center;
}
.study-quiz-result.correct { background: #dcfce7; color: #16a34a; }
.study-quiz-result.wrong { background: #fee2e2; color: #dc2626; }

/* 视频列表 */
.study-video-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.study-video-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.2s;
}
.study-video-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.1); }
.study-video-thumb {
  height: 120px; background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.study-video-play {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.95); color: #dc2626;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; padding-left: 3px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: transform 0.2s;
}
.study-video-card:hover .study-video-play { transform: scale(1.1); }
.study-video-num {
  position: absolute; top: 8px; left: 10px;
  background: rgba(0,0,0,0.5); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 4px;
}
.study-video-info { padding: 10px 12px; }
.study-video-title { font-size: 13px; font-weight: 600; color: #0f172a; line-height: 1.4; }
.study-video-meta { font-size: 11px; color: #64748b; margin-top: 4px; }

/* 空状态 */
.study-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; height: 100%; padding: 40px;
  color: #94a3b8; font-size: 13px; text-align: center;
}

.cr-cat-info { flex: 1; min-width: 0; }
.cr-cat-name {
  font-size: 12.5px; color: #1e293b; font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cr-cat-link {
  font-size: 10.5px; color: #94a3b8; margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: 'JetBrains Mono', monospace;
}
.cr-cat-badge {
  font-size: 10.5px; color: #64748b; background: #f1f5f9;
  padding: 2px 7px; border-radius: 8px; font-weight: 500;
  flex-shrink: 0;
}
.cr-empty {
  padding: 40px 20px; text-align: center;
  font-size: 12.5px; color: #94a3b8;
}

/* 右侧 */
.cr-right {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; min-height: 0;
  background: #fafbfc;
}
.cr-action-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  background: #fff; border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}
.cr-progress-wrap {
  flex: 1; display: flex; align-items: center; gap: 10px;
  min-width: 0;
}
.cr-progress-bar {
  flex: 1; height: 8px; background: #f1f5f9;
  border-radius: 4px; overflow: hidden; min-width: 80px;
}
.cr-progress-fill {
  height: 100%; background: linear-gradient(90deg, #ec4899, #f43f5e);
  border-radius: 4px; transition: width 0.3s ease;
  box-shadow: 0 0 8px rgba(244, 63, 94, 0.4);
}
.cr-progress-text {
  font-size: 11.5px; color: #64748b; font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
}
.cr-action-spacer { flex: 1; }
.cr-btn {
  height: 34px; padding: 0 16px;
  border: none; border-radius: 8px;
  font-size: 12.5px; font-weight: 600; cursor: pointer;
  transition: all 0.15s; font-family: inherit;
  display: inline-flex; align-items: center; gap: 6px;
}
.cr-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.cr-btn-primary {
  background: linear-gradient(135deg, #ec4899, #f43f5e);
  color: #fff;
  box-shadow: 0 3px 10px rgba(244, 63, 94, 0.3);
}
.cr-btn-primary:hover:not(:disabled) {
  box-shadow: 0 5px 16px rgba(244, 63, 94, 0.42);
  transform: translateY(-1px);
}
.cr-btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
}
.cr-btn-success:hover:not(:disabled) {
  box-shadow: 0 5px 16px rgba(16, 185, 129, 0.42);
  transform: translateY(-1px);
}
.cr-btn-warn {
  background: #f59e0b; color: #fff;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.3);
}
.cr-btn-warn:hover:not(:disabled) { background: #d97706; }
.cr-btn-ghost {
  background: #fff; color: #475569;
  border: 1px solid #e5e7eb;
}
.cr-btn-ghost:hover:not(:disabled) { background: #f8fafc; border-color: #cbd5e1; }

.cr-result-summary {
  display: flex; gap: 12px; padding: 10px 18px;
  background: #fff; border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}
.cr-sum-item {
  font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 6px;
}
.cr-sum-item.ok { color: #059669; background: rgba(16,185,129,0.1); }
.cr-sum-item.fail { color: #dc2626; background: rgba(239,68,68,0.1); }
.cr-sum-item.total { color: #2563eb; background: rgba(37,99,235,0.1); }

.cr-result-list {
  flex: 1; overflow-y: auto; padding: 12px 18px;
}
.cr-result-list::-webkit-scrollbar { width: 8px; }
.cr-result-list::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 4px; }
.cr-result-list::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.2); }

.cr-result-item {
  background: #fff; border-radius: 10px;
  margin-bottom: 8px; overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow 0.15s;
}
.cr-result-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.cr-result-item.fail { border-left: 3px solid #ef4444; }
.cr-result-item.ok { border-left: 3px solid #10b981; }
.cr-result-head {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
}
.cr-result-icon {
  width: 24px; height: 24px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.cr-result-icon.ok { background: #10b981; }
.cr-result-icon.fail { background: #ef4444; }
.cr-result-info { flex: 1; min-width: 0; }
.cr-result-name {
  font-size: 12.5px; font-weight: 600; color: #1e293b;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cr-result-msg {
  font-size: 11px; color: #64748b; margin-top: 2px;
}
.cr-result-msg.err { color: #dc2626; }
.cr-result-count {
  font-size: 13px; font-weight: 700; color: #ec4899;
  font-family: 'JetBrains Mono', monospace;
  flex-shrink: 0; padding: 2px 8px;
  background: rgba(236, 72, 153, 0.08); border-radius: 6px;
}
.cr-result-samples {
  padding: 6px 14px 10px 46px;
  display: flex; flex-direction: column; gap: 3px;
  border-top: 1px solid #f8fafc;
}
.cr-sample {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 11px;
}
.cr-sample-name { color: #475569; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-sample-url { color: #94a3b8; font-family: 'JetBrains Mono', monospace; flex-shrink: 0; }
.cr-sample-more { font-size: 10.5px; color: #94a3b8; padding: 2px 0; }

.cr-placeholder {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  padding: 60px 20px; color: #94a3b8; text-align: center;
}
.cr-placeholder-sub { font-size: 11.5px; opacity: 0.7; max-width: 280px; line-height: 1.5; }

/* 爬虫高级选项 */
.cr-adv-toggle {
  display: flex; align-items: center; gap: 4px;
  background: none; border: none; cursor: pointer;
  font-size: 12px; color: #6366f1; font-weight: 500;
  padding: 4px 0; margin-top: 8px;
  width: 100%; text-align: left;
}
.cr-adv-toggle:hover { color: #4f46e5; }
.cr-adv-panel {
  background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: 8px; padding: 10px 12px; margin-top: 8px;
  display: flex; flex-direction: column; gap: 8px;
}
.cr-adv-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
}
.cr-adv-row label { font-size: 11.5px; color: #64748b; font-weight: 500; }
.cr-adv-row input {
  width: 70px; padding: 4px 8px;
  border: 1px solid #e2e8f0; border-radius: 6px;
  font-size: 12px; font-family: 'JetBrains Mono', monospace;
  text-align: right;
}
.cr-adv-row input:focus { outline: none; border-color: #6366f1; }

/* 爬虫筛选栏 */
.cr-filter-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; background: #fff;
  border-bottom: 1px solid #f1f5f9;
}
.cr-filter-label { font-size: 12px; color: #64748b; font-weight: 500; }
.cr-filter-btn {
  padding: 4px 10px; border: 1px solid #e2e8f0;
  background: #fff; border-radius: 6px;
  font-size: 11.5px; color: #475569;
  cursor: pointer; transition: all 0.12s;
}
.cr-filter-btn:hover { background: #f8fafc; }
.cr-filter-btn.active {
  background: #6366f1; color: #fff;
  border-color: #6366f1;
}

/* 爬虫结果展开 */
.cr-result-item {
  max-height: 80px;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.cr-result-item.expanded {
  max-height: 2000px;
  overflow: visible;
}
.cr-result-head {
  display: flex; align-items: center; gap: 10px;
}
.cr-expand-arrow {
  width: 16px; height: 16px; display: flex;
  align-items: center; justify-content: center;
  color: #94a3b8; font-size: 11px;
  transition: transform 0.2s;
}
.cr-result-item.expanded .cr-expand-arrow {
  transform: rotate(90deg);
}
.cr-result-toggle {
  color: #94a3b8; font-size: 10px;
  margin-left: auto;
}
.cr-empty {
  text-align: center; padding: 40px 20px;
  color: #94a3b8; font-size: 13px;
}

/* ===== 回收站 ===== */
.recycle-app {
  display: flex; flex-direction: column;
  height: 100%; overflow: hidden;
}
.recycle-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 28px; background: #fff;
  border-bottom: 1px solid #e2e8f0; flex-shrink: 0;
}
.recycle-header-left { display: flex; align-items: center; gap: 14px; }
.recycle-logo {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, #64748b, #475569);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(100, 116, 139, 0.3);
}
.recycle-title { font-size: 18px; font-weight: 700; color: #0f172a; }
.recycle-sub { font-size: 12px; color: #64748b; margin-top: 2px; }
.recycle-header-actions { display: flex; gap: 10px; }
.recycle-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border: 1px solid #e2e8f0;
  background: #fff; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: #475569;
  cursor: pointer; transition: all 0.15s;
  font-family: inherit;
}
.recycle-btn:hover { background: #f8fafc; }
.recycle-btn-danger {
  background: #fee2e2; border-color: #fecaca; color: #dc2626;
}
.recycle-btn-danger:hover { background: #fecaca; }

.recycle-body {
  flex: 1; overflow-y: auto;
  padding: 20px 28px; display: flex; flex-direction: column; gap: 16px;
  background: #f8fafc;
}
.recycle-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.recycle-stat {
  background: #fff; border-radius: 12px;
  padding: 16px; border: 1px solid #e2e8f0;
  text-align: center;
}
.recycle-stat-num {
  font-size: 28px; font-weight: 800;
  font-family: 'JetBrains Mono', monospace; color: #0f172a;
}
.recycle-stat-lbl { font-size: 12px; color: #64748b; margin-top: 4px; }

.recycle-list {
  background: #fff; border-radius: 12px;
  border: 1px solid #e2e8f0; overflow: hidden;
}
.recycle-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-bottom: 1px solid #f1f5f9;
  transition: background 0.12s;
}
.recycle-item:last-child { border-bottom: none; }
.recycle-item:hover { background: #f8fafc; }
.recycle-item-ic {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.recycle-item-ic.nav { background: #dbeafe; color: #2563eb; }
.recycle-item-ic.cat { background: #fef3c7; color: #f59e0b; }
.recycle-item-ic.web { background: #ede9fe; color: #8b5cf6; }
.recycle-item-info { flex: 1; min-width: 0; }
.recycle-item-name {
  font-size: 13px; font-weight: 600; color: #0f172a;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.recycle-item-meta {
  display: flex; align-items: center; gap: 10px;
  margin-top: 3px; font-size: 11px; color: #64748b;
}
.recycle-item-type {
  padding: 1px 8px; border-radius: 4px;
  font-size: 10.5px; font-weight: 600;
}
.recycle-item-type.type-nav { background: #dbeafe; color: #2563eb; }
.recycle-item-type.type-cat { background: #fef3c7; color: #b45309; }
.recycle-item-type.type-web { background: #ede9fe; color: #7c3aed; }
.recycle-item-time { font-family: 'JetBrains Mono', monospace; color: #94a3b8; }
.recycle-item-actions { display: flex; gap: 6px; flex-shrink: 0; }
.recycle-action-btn {
  padding: 6px 12px; border: 1px solid #e2e8f0;
  background: #fff; border-radius: 6px;
  font-size: 11.5px; cursor: pointer; color: #475569;
  transition: all 0.12s; font-family: inherit;
}
.recycle-action-btn:hover { background: #f1f5f9; }
.recycle-action-btn.danger {
  border-color: #fecaca; color: #dc2626;
}
.recycle-action-btn.danger:hover { background: #fee2e2; }

.recycle-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 60px 20px; gap: 8px;
  color: #94a3b8;
}
.recycle-empty-t { font-size: 15px; font-weight: 600; color: #64748b; }
.recycle-empty-d { font-size: 12px; color: #94a3b8; }

/* ===== 登录界面 ===== */
.login-mask {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
}
.login-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 25% 30%, rgba(99,102,241,0.35), transparent 50%),
    radial-gradient(circle at 75% 70%, rgba(139,92,246,0.35), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(236,72,153,0.2), transparent 70%),
    linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
}
.login-card {
  position: relative; z-index: 1;
  width: 380px; max-width: 92vw;
  background: rgba(255,255,255,0.98);
  border-radius: 16px;
  padding: 32px 28px 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.1);
  animation: loginCardIn 0.4s ease-out;
}
@keyframes loginCardIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.login-logo {
  display: flex; justify-content: center; margin-bottom: 14px;
}
.login-title {
  text-align: center; font-size: 22px; font-weight: 700; color: #0f172a;
  margin-bottom: 4px; letter-spacing: 0.5px;
}
.login-subtitle {
  text-align: center; font-size: 12.5px; color: #64748b; margin-bottom: 20px;
}
.login-form { display: flex; flex-direction: column; gap: 12px; }
.login-field { display: flex; flex-direction: column; gap: 5px; }
.login-field label {
  font-size: 12px; color: #475569; font-weight: 500; padding-left: 2px;
}
.login-field input {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid #e2e8f0; border-radius: 8px;
  font-size: 14px; color: #0f172a; background: #fff;
  transition: all 0.2s; box-sizing: border-box;
}
.login-field input:focus {
  outline: none; border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}
.login-error {
  background: #fef2f2; color: #dc2626;
  font-size: 12px; padding: 8px 12px; border-radius: 6px;
  border: 1px solid #fecaca;
}
.login-btn {
  width: 100%; padding: 11px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff; border: none; border-radius: 8px;
  font-size: 14px; font-weight: 600; letter-spacing: 2px;
  cursor: pointer; margin-top: 4px;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}
.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(99,102,241,0.4);
}
.login-btn:active { transform: translateY(0); }
.login-options {
  display: flex; justify-content: center; align-items: center;
  gap: 12px; margin-top: 8px;
}
.login-options a {
  font-size: 12px; color: #6366f1; text-decoration: none;
  cursor: pointer; transition: color 0.2s;
}
.login-options a:hover { color: #4338ca; text-decoration: underline; }
.login-checkbox {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; color: #64748b; cursor: pointer;
}
.login-checkbox input { cursor: pointer; }
.login-hint {
  text-align: center; font-size: 11px; color: #94a3b8;
  margin-top: 12px; padding-top: 12px;
  border-top: 1px dashed #e2e8f0;
}

/* ===== 任务栏用户头像 ===== */
.taskbar-user {
  display: flex; align-items: center;
  padding: 0 8px; height: 32px;
  border-radius: 6px; cursor: pointer;
  transition: background 0.15s;
}
.taskbar-user:hover { background: rgba(255,255,255,0.08); }
.taskbar-user-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: #fff;
  background: #6366f1;
  border: 1.5px solid rgba(255,255,255,0.3);
}

/* ===== 用户菜单 ===== */
.user-menu {
  position: fixed; z-index: 10000;
  min-width: 240px;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.05);
  animation: userMenuIn 0.18s ease-out;
}
@keyframes userMenuIn {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.user-menu-header {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 10px 12px;
}
.user-menu-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 600; color: #fff;
  flex-shrink: 0;
}
.user-menu-info { flex: 1; min-width: 0; }
.user-menu-name {
  font-size: 13.5px; font-weight: 600; color: #0f172a;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.user-menu-meta {
  font-size: 11px; color: #64748b; margin-top: 2px;
}
.user-menu-divider {
  height: 1px; background: #e2e8f0; margin: 4px 6px;
}
.user-menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 6px;
  font-size: 13px; color: #334155;
  cursor: pointer; transition: all 0.12s;
}
.user-menu-item:hover {
  background: #f1f5f9;
}
.user-menu-item svg {
  width: 16px; height: 16px; flex-shrink: 0;
  color: #64748b;
}
.user-menu-item.danger { color: #dc2626; }
.user-menu-item.danger svg { color: #dc2626; }
.user-menu-item.danger:hover { background: #fef2f2; }
.user-menu-shortcut {
  margin-left: auto; font-size: 11px; color: #94a3b8;
}

/* 开始菜单用户头像也用圆形彩色 */
.start-user-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: #fff;
  background: #6366f1;
}

/* ===== 批量管理 v2.0 ===== */
.bm-app {
  display: flex; flex-direction: column; height: 100%;
  background: #f8fafc;
}
.bm-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; background: #fff;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}
.bm-header-left { display: flex; align-items: center; gap: 12px; }
.bm-logo {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}
.bm-title { font-size: 15px; font-weight: 700; color: #0f172a; }
.bm-sub { font-size: 12px; color: #64748b; margin-top: 2px; }
.bm-header-stats { display: flex; gap: 12px; }
.bm-stat {
  padding: 8px 16px; background: #f1f5f9;
  border-radius: 10px; text-align: center; min-width: 70px;
}
.bm-stat-num { font-size: 20px; font-weight: 800; color: #0f172a; font-family: 'JetBrains Mono', monospace; }
.bm-stat-lbl { font-size: 11px; color: #64748b; font-weight: 500; margin-top: 2px; }
.bm-stat-warn { background: #fef3c7; }
.bm-stat-warn .bm-stat-num { color: #d97706; }
.bm-stat-info { background: #dbeafe; }
.bm-stat-info .bm-stat-num { color: #2563eb; }

.bm-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px; background: #fff;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}
.bm-tabs { display: flex; gap: 4px; }
.bm-tab {
  padding: 7px 14px; border: 1px solid transparent;
  border-radius: 8px; background: transparent;
  font-size: 13px; font-weight: 500; color: #64748b;
  cursor: pointer; transition: all 0.15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.bm-tab:hover { background: #f1f5f9; color: #0f172a; }
.bm-tab.on { background: #eff6ff; color: #2563eb; border-color: #bfdbfe; }
.bm-tab-count {
  background: #e2e8f0; color: #475569;
  padding: 1px 7px; border-radius: 10px;
  font-size: 11px; font-weight: 600; min-width: 20px; text-align: center;
}
.bm-tab.on .bm-tab-count { background: #bfdbfe; color: #2563eb; }

.bm-tools { display: flex; align-items: center; gap: 8px; }
.bm-search {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; background: #f1f5f9; border-radius: 8px;
  transition: all 0.15s;
}
.bm-search:focus-within {
  background: #fff; box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}
.bm-search input {
  border: none; background: transparent; outline: none;
  font-size: 13px; width: 180px; color: #0f172a;
}
.bm-search input::placeholder { color: #94a3b8; }
.bm-select {
  height: 32px; padding: 0 12px; border: 1px solid #e2e8f0;
  border-radius: 8px; background: #fff; color: #475569;
  font-size: 12.5px; outline: none; cursor: pointer;
}
.bm-select:focus { border-color: #2563eb; box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15); }
.bm-sep { width: 1px; height: 24px; background: #e2e8f0; }
.bm-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 14px;
  border: 1px solid transparent; border-radius: 8px;
  font-size: 12.5px; font-weight: 500; cursor: pointer;
  transition: all 0.15s; font-family: inherit;
}
.bm-btn-primary { background: #2563eb; color: #fff; }
.bm-btn-primary:hover { background: #1d4ed8; box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25); }
.bm-btn-ghost { background: #fff; color: #475569; border-color: #e2e8f0; }
.bm-btn-ghost:hover { background: #f1f5f9; color: #0f172a; }
.bm-btn-danger { background: #fee2e2; color: #dc2626; }
.bm-btn-danger:hover { background: #fecaca; }

.bm-body { flex: 1; overflow: hidden; padding: 16px 20px; }
.bm-table-wrap {
  background: #fff; border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden; height: 100%;
  display: flex; flex-direction: column;
}

.bm-table { display: flex; flex-direction: column; height: 100%; }
.bm-th {
  display: grid; padding: 10px 16px;
  background: #f8fafc; border-bottom: 1px solid #e2e8f0;
  font-size: 12px; font-weight: 700; color: #64748b;
  letter-spacing: 0.3px;
  align-items: center;
  grid-template-columns: 40px 1fr 1.5fr 80px 80px 100px 120px 100px;
}
.bm-th-chk { display: flex; align-items: center; }
.bm-th-sort { cursor: pointer; color: #334155; }
.bm-th-sort:hover { color: #2563eb; }

.bm-tbody { flex: 1; overflow-y: auto; }
.bm-tr {
  display: grid; padding: 10px 16px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer; transition: background 0.1s;
  align-items: center;
  grid-template-columns: 40px 1fr 1.5fr 80px 80px 100px 120px 100px;
}
.bm-tr:hover { background: #f8fafc; }
.bm-tr.selected { background: #eff6ff; }
.bm-td { font-size: 12.5px; color: #334155; overflow: hidden; }
.bm-td-chk { display: flex; align-items: center; }
.bm-td-name { display: flex; align-items: center; gap: 10px; font-weight: 500; color: #0f172a; }
.bm-td-num { color: #64748b; text-align: center; font-family: 'JetBrains Mono', monospace; }
.bm-td-url { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; }
.bm-td-url a { color: #2563eb; text-decoration: none; cursor: pointer; }
.bm-td-url a:hover { text-decoration: underline; }
.bm-td-actions { display: flex; gap: 2px; justify-content: flex-end; }

.bm-fav {
  width: 26px; height: 26px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: #fff; flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.bm-row-btn {
  width: 28px; height: 28px; border: none; border-radius: 6px;
  background: transparent; color: #64748b; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.12s;
}
.bm-row-btn:hover { background: #f1f5f9; color: #0f172a; }
.bm-row-btn.bm-row-danger:hover { background: #fef2f2; color: #dc2626; }

.bm-status {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 12px;
  font-size: 11px; font-weight: 600;
}
.bm-status.fresh { background: #dcfce7; color: #16a34a; }
.bm-status.old { background: #fef3c7; color: #d97706; }
.bm-status.stale { background: #fee2e2; color: #dc2626; }
.bm-status.never { background: #f1f5f9; color: #64748b; }

.bm-total {
  padding: 10px 16px; background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  font-size: 12px; color: #64748b; font-weight: 500;
}
.bm-overflow {
  padding: 10px 16px; background: #fef3c7;
  color: #92400e; font-size: 12px; text-align: center;
  border-top: 1px solid #fde68a;
}
.bm-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; color: #94a3b8;
}

/* ===== 导航中心增强样式 ===== */
.nh-scan-banner {
  padding: 10px 16px; border-radius: 10px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; margin-bottom: 12px;
  animation: scanBannerIn 0.3s ease;
}
@keyframes scanBannerIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.nh-scan-banner.warn {
  background: #fef3c7; color: #92400e;
  border: 1px solid #fde68a;
}
.nh-scan-banner.error {
  background: #fee2e2; color: #991b1b;
  border: 1px solid #fecaca;
}
.nh-scan-banner.info {
  background: #dbeafe; color: #1e40af;
  border: 1px solid #bfdbfe;
}
.nh-scan-banner-ic { font-size: 18px; }
.nh-scan-banner-text { flex: 1; }
.nh-scan-banner-action {
  padding: 6px 14px; border-radius: 6px;
  border: none; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all 0.15s;
  background: #fff; color: #2563eb;
  border: 1px solid #bfdbfe;
}
.nh-scan-banner-action:hover { background: #eff6ff; }

.nh-quick-stats {
  display: flex; gap: 10px; margin-bottom: 12px;
  flex-wrap: wrap;
}
.nh-quick-stat {
  flex: 1; min-width: 120px;
  padding: 10px 14px; background: #fff;
  border: 1px solid #e2e8f0; border-radius: 10px;
  display: flex; align-items: center; gap: 10px;
  transition: all 0.15s;
}
.nh-quick-stat:hover { border-color: #c7d2fe; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.nh-quick-stat-ic {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #fff;
}
.nh-quick-stat-num {
  font-size: 18px; font-weight: 800; color: #0f172a;
  font-family: 'JetBrains Mono', monospace;
}
.nh-quick-stat-lbl { font-size: 11px; color: #64748b; }

/* Modal Dialog (通用对话框) */
.modal-overlay {
  position: fixed; inset: 0; z-index: 10001;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  animation: modalFadeIn 0.15s ease;
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal-dialog {
  width: 440px; max-width: 92vw;
  background: #fff; border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
  overflow: hidden;
  animation: modalSlideUp 0.2s ease;
}
@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid #f1f5f9;
}
.modal-title { font-size: 15px; font-weight: 700; color: #0f172a; }
.modal-close {
  width: 30px; height: 30px; border: none; background: transparent;
  border-radius: 6px; cursor: pointer; color: #64748b;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; transition: all 0.12s;
}
.modal-close:hover { background: #f1f5f9; color: #0f172a; }
.modal-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.modal-field { display: flex; flex-direction: column; gap: 5px; }
.modal-field label {
  font-size: 12px; color: #475569; font-weight: 500;
  padding-left: 2px;
}
.modal-field label .req { color: #ef4444; margin-left: 2px; }
.modal-field input,
.modal-field select,
.modal-field textarea {
  width: 100%; padding: 9px 12px;
  border: 1.5px solid #e2e8f0; border-radius: 8px;
  font-size: 13px; color: #0f172a; font-family: inherit;
  outline: none; transition: all 0.15s;
  box-sizing: border-box;
}
.modal-field input:focus,
.modal-field select:focus,
.modal-field textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.modal-field textarea { resize: vertical; min-height: 80px; }
.modal-field input[type="color"] {
  padding: 4px; height: 40px; cursor: pointer;
}
.modal-footer {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 14px 20px; background: #f8fafc;
  border-top: 1px solid #f1f5f9;
}
.modal-btn {
  padding: 9px 20px; border: none; border-radius: 8px;
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: all 0.15s; font-family: inherit;
}
.modal-btn-primary { background: #2563eb; color: #fff; }
.modal-btn-primary:hover { background: #1d4ed8; }
.modal-btn-ghost { background: #fff; color: #475569; border: 1px solid #e2e8f0; }
.modal-btn-ghost:hover { background: #f1f5f9; }

/* 导航中心分类卡片增强 */
.nh-cat-card {
  background: #fff; border: 1px solid #e2e8f0;
  border-radius: 12px; padding: 14px;
  cursor: pointer; transition: all 0.2s;
  position: relative; overflow: hidden;
}
.nh-cat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: linear-gradient(90deg, transparent, transparent);
  transition: background 0.3s;
}
.nh-cat-card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.nh-cat-card:hover::before {
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}
.nh-cat-card-top {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
}
.nh-cat-icon {
  width: 36px; height: 36px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.nh-cat-name {
  font-size: 14px; font-weight: 700; color: #0f172a;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nh-cat-sub {
  font-size: 11px; color: #64748b; margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nh-cat-meta {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 8px; border-top: 1px solid #f1f5f9;
  font-size: 12px;
}
.nh-cat-count {
  font-weight: 600; color: #2563eb;
  font-family: 'JetBrains Mono', monospace;
}
.nh-cat-nav {
  font-size: 10.5px; color: #94a3b8;
  max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nh-cat-scan {
  position: absolute; top: 12px; right: 12px;
  width: 8px; height: 8px; border-radius: 50%;
}
.nh-cat-scan.fresh { background: #10b981; }
.nh-cat-scan.old { background: #f59e0b; }
.nh-cat-scan.stale { background: #ef4444; }
.nh-cat-scan.never { background: #94a3b8; }

/* 导航中心网格布局 */
.nh-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  padding: 4px 0;
}
.nh-section-title {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; font-weight: 700; color: #0f172a;
  margin: 18px 0 10px; padding: 0 2px;
}
.nh-section-title .nh-count-badge {
  font-size: 11px; font-weight: 500; color: #64748b;
  background: #f1f5f9; padding: 2px 10px; border-radius: 10px;
}
.nh-empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 60px 20px;
  color: #94a3b8;
}
.nh-empty-state svg { width: 64px; height: 64px; opacity: 0.3; margin-bottom: 16px; }
.nh-empty-state-t { font-size: 15px; font-weight: 600; color: #64748b; margin-bottom: 4px; }
.nh-empty-state-d { font-size: 12px; color: #94a3b8; }

/* 导航中心侧边栏子列表 */
.nh-sub-list {
  display: flex; flex-direction: column; gap: 2px;
  padding: 4px 0;
}
.nh-sub-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: 8px; cursor: pointer;
  font-size: 12.5px; color: #475569;
  transition: all 0.12s;
  border: 1px solid transparent;
}
.nh-sub-item:hover { background: #f1f5f9; color: #0f172a; }
.nh-sub-item.selected {
  background: #eff6ff; color: #2563eb;
  border-color: #bfdbfe; font-weight: 500;
}
.nh-sub-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #cbd5e1; flex-shrink: 0;
}
.nh-sub-item.selected .nh-sub-dot { background: #2563eb; }
.nh-sub-name {
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nh-sub-count {
  font-size: 11px; color: #94a3b8;
  background: #f1f5f9; padding: 1px 6px; border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
}
.nh-sub-item.selected .nh-sub-count {
  background: #dbeafe; color: #2563eb;
}

/* ===== 数据统计仪表板 ===== */
.stats-app {
  display: flex; flex-direction: column;
  height: 100%; overflow: hidden;
}
.stats-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 28px; background: #fff;
  border-bottom: 1px solid #e2e8f0; flex-shrink: 0;
}
.stats-header-left { display: flex; align-items: center; gap: 14px; }
.stats-logo {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}
.stats-title { font-size: 18px; font-weight: 700; color: #0f172a; }
.stats-sub { font-size: 12px; color: #64748b; margin-top: 2px; }
.stats-header-actions { display: flex; gap: 10px; }
.stats-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border: 1px solid #e2e8f0;
  background: #fff; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: #475569;
  cursor: pointer; transition: all 0.15s;
  font-family: inherit;
}
.stats-btn:hover { background: #f8fafc; border-color: #cbd5e1; }
.stats-btn-primary {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff; border-color: transparent;
}
.stats-btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #6d28d9);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.stats-body {
  flex: 1; overflow-y: auto;
  padding: 24px 28px; display: flex; flex-direction: column; gap: 20px;
  background: #f8fafc;
}

/* KPI 卡片 */
.stats-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}
.stats-kpi {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}
.stats-kpi:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.stats-kpi-ic {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stats-kpi-info { min-width: 0; }
.stats-kpi-num {
  font-size: 26px; font-weight: 800;
  font-family: 'JetBrains Mono', monospace; line-height: 1;
}
.stats-kpi-lbl {
  font-size: 12px; color: #64748b;
  margin-top: 4px; font-weight: 500;
}

/* 行布局 */
.stats-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.stats-card {
  background: #fff; border-radius: 14px;
  border: 1px solid #e2e8f0; overflow: hidden;
  display: flex; flex-direction: column;
}
.stats-card-full { grid-column: 1 / -1; }
.stats-card-head {
  padding: 16px 20px; border-bottom: 1px solid #f1f5f9;
  display: flex; align-items: center; justify-content: space-between;
}
.stats-card-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: #0f172a;
}
.stats-card-body { padding: 16px 20px; flex: 1; }

/* 扫描状态 */
.stats-scan-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; padding: 14px 16px;
}
.stats-scan-item {
  text-align: center; padding: 10px 4px;
  border-radius: 10px; transition: transform 0.15s;
}
.stats-scan-item:hover { transform: scale(1.03); }
.stats-scan-item.fresh { background: linear-gradient(135deg, #dcfce7, #bbf7d0); }
.stats-scan-item.old { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.stats-scan-item.stale { background: linear-gradient(135deg, #fee2e2, #fecaca); }
.stats-scan-item.never { background: linear-gradient(135deg, #f1f5f9, #e2e8f0); }
.stats-scan-num {
  font-size: 22px; font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
}
.stats-scan-item.fresh .stats-scan-num { color: #065f46; }
.stats-scan-item.old .stats-scan-num { color: #92400e; }
.stats-scan-item.stale .stats-scan-num { color: #991b1b; }
.stats-scan-item.never .stats-scan-num { color: #475569; }
.stats-scan-lbl { font-size: 11px; color: #64748b; margin-top: 2px; }

.stats-scan-bar {
  display: flex; height: 8px; border-radius: 4px;
  overflow: hidden; margin: 0 16px;
}
.stats-bar-seg { transition: all 0.3s; }
.stats-bar-seg.fresh { background: #10b981; }
.stats-bar-seg.old { background: #f59e0b; }
.stats-bar-seg.stale { background: #ef4444; }
.stats-bar-seg.never { background: #cbd5e1; }

/* 条形列表 */
.stats-bar-list {
  display: flex; flex-direction: column; padding: 8px 16px 16px;
  gap: 4px; overflow-y: auto;
}
.stats-bar-item {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 10px; border-radius: 8px;
  transition: background 0.12s;
}
.stats-bar-item:hover { background: #f8fafc; }
.stats-bar-rank {
  width: 22px; height: 22px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #64748b, #475569);
  flex-shrink: 0;
}
.stats-bar-item:nth-child(1) .stats-bar-rank { background: linear-gradient(135deg, #f59e0b, #d97706); }
.stats-bar-item:nth-child(2) .stats-bar-rank { background: linear-gradient(135deg, #94a3b8, #64748b); }
.stats-bar-item:nth-child(3) .stats-bar-rank { background: linear-gradient(135deg, #d97706, #b45309); }
.stats-bar-info { flex: 1; min-width: 0; }
.stats-bar-name {
  font-size: 13px; font-weight: 600; color: #0f172a;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.stats-bar-sub {
  font-size: 10.5px; color: #64748b;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  margin-top: 1px;
}
.stats-bar-track {
  height: 6px; background: #f1f5f9; border-radius: 3px;
  margin-top: 5px; overflow: hidden;
}
.stats-bar-fill {
  height: 100%; border-radius: 3px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 2px;
}
.stats-bar-val {
  font-size: 13px; font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: #2563eb; min-width: 30px; text-align: right;
}

/* 最近扫描 */
.stats-recent-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px; padding: 16px 20px;
}
.stats-recent-item {
  display: grid; grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto; gap: 4px 12px;
  padding: 10px 14px; background: #f8fafc;
  border-radius: 10px; border: 1px solid #f1f5f9;
  transition: all 0.15s;
}
.stats-recent-item:hover {
  background: #fff; border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.stats-recent-time {
  grid-row: 1 / 3;
  font-size: 11px; color: #64748b;
  padding: 2px 0; font-weight: 500;
}
.stats-recent-name {
  font-size: 13px; font-weight: 600; color: #0f172a;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.stats-recent-nav {
  font-size: 11px; color: #64748b;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.stats-recent-count {
  grid-row: 1 / 3; grid-column: 3;
  font-size: 14px; font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: #8b5cf6;
}

.stats-empty {
  text-align: center; padding: 30px 20px;
  color: #94a3b8; font-size: 13px;
}

/* 响应式 */
@media (max-width: 768px) {
  .stats-row { grid-template-columns: 1fr; }
  .stats-kpi-row { grid-template-columns: repeat(2, 1fr); }
  .stats-scan-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-header { flex-direction: column; gap: 12px; align-items: flex-start; }
}


