/* ============================================================
   tokens.css — 无限影视 V3 整合设计系统 · Design Tokens
   融合基因:
   · 品牌靛蓝 #667eea (video-clone 原站) — 主交互色
   · 金色 accent #f59e0b + VIP 紫 #a855f7 (CMS2) — 高亮/会员
   · 暗色优先 + 亮色主题 (video-clone 双主题 + CMS2 暗色基因)
   · clamp() 响应式字体 (video-clone)
   · 大圆角 + 深阴影 + 玻璃拟态顶栏 (CMS2 v1.0.28 统一深色)
   ============================================================ */

:root {
  /* ---------- 品牌色 ---------- */
  --brand: #667eea;
  --brand-dark: #5a6fd8;
  --brand-deep: #4c5fd5;
  --brand-grad: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --brand-soft: rgba(102, 126, 234, 0.14);
  --brand-ring: rgba(102, 126, 234, 0.28);

  --accent: #f59e0b;        /* CMS2 金色 accent */
  --accent-soft: rgba(245, 158, 11, 0.14);
  --accent-grad: linear-gradient(90deg, #f59e0b, #ef4444);
  --vip: #a855f7;           /* CMS2 VIP 紫 */
  --vip-soft: rgba(168, 85, 247, 0.16);

  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;

  /* ---------- 字体刻度 (clamp 响应式, 原站实测) ---------- */
  --fs-xs: clamp(0.72rem, 0.68rem + 0.2vw, 0.8rem);
  --fs-sm: clamp(0.82rem, 0.78rem + 0.3vw, 0.92rem);
  --fs-base: clamp(0.95rem, 0.9rem + 0.35vw, 1.05rem);
  --fs-md: clamp(1.05rem, 0.98rem + 0.4vw, 1.15rem);
  --fs-lg: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --fs-xl: clamp(1.4rem, 1.25rem + 0.7vw, 1.7rem);
  --fs-2xl: clamp(1.7rem, 1.5rem + 1vw, 2.2rem);
  --fs-3xl: clamp(2rem, 1.7rem + 1.4vw, 2.8rem);

  /* ---------- 圆角 / 间距 / 阴影 ---------- */
  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;
  --r-pill: 999px;

  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px;

  --container: 1360px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 0.15s var(--ease);
  --t: 0.25s var(--ease);

  --header-h: 60px;
  --bottomnav-h: 56px;
  --sidebar-w: 248px;
}

/* ============================================================
   暗色主题 (默认)
   ============================================================ */
:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0f14;
  --bg-1: #14171e;
  --bg-2: #1a1e27;
  --bg-3: #222735;
  --card: #171a21;
  --card-hover: #1d212b;
  --border: #2a2e39;
  --border-soft: #232733;
  --text-1: #e6e8ee;
  --text-2: #a0aec0;
  --text-3: #6b7280;
  --header-bg: rgba(13, 15, 20, 0.82);
  --header-bg-rgb: 13, 15, 20;
  --hover-bg: rgba(102, 126, 234, 0.12);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 8px 32px rgba(102, 126, 234, 0.25);
}

/* ============================================================
   亮色主题
   ============================================================ */
[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f5f9;
  --bg-1: #ffffff;
  --bg-2: #f7f9fc;
  --bg-3: #eef1f7;
  --card: #ffffff;
  --card-hover: #f7f9fc;
  --border: #e2e8f0;
  --border-soft: #e8ecf3;
  --text-1: #1a202c;
  --text-2: #4a5568;
  --text-3: #94a3b8;
  --header-bg: rgba(255, 255, 255, 0.82);
  --header-bg-rgb: 255, 255, 255;
  --hover-bg: rgba(102, 126, 234, 0.08);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 8px 32px rgba(102, 126, 234, 0.18);
}

/* ============================================================
   全局基础
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 15px; -webkit-font-smoothing: antialiased; text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text-1);
  min-height: 100vh;
  line-height: 1.6;
  font-size: var(--fs-base);
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
::selection { background: var(--brand); color: #fff; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--border); }

/* ============================================================
   V3.0 · 2026 升级新增
   · 命令面板 (cmdk) · 主题切换按钮 · 实时通知铃铛
   · 页面切换 fade · 快捷操作按钮 · 全局键盘快捷键
   ============================================================ */
:root {
  --v3-version: "V3.0";
  --v3-build: "2026-09-07";
  /* 命令面板遮罩: 比 modal-overlay 略浅 */
  --cmd-bg: var(--card);
  --cmd-border: var(--border);
  --cmd-shadow: 0 24px 64px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255,255,255,0.05);
  --kbd-bg: var(--bg-2);
  --kbd-border: var(--border);
  --kbd-shadow: 0 2px 0 var(--border), 0 1px 0 rgba(255,255,255,0.04) inset;
}
[data-theme="light"] {
  --cmd-shadow: 0 24px 64px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(0,0,0,0.04);
}

/* 键盘按键视觉 */
.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: var(--kbd-bg);
  border: 1px solid var(--kbd-border);
  border-bottom-width: 2px;
  border-radius: 5px;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  box-shadow: var(--kbd-shadow);
  line-height: 1;
}

/* 主题切换按钮 */
.theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: var(--bg-2);
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--t);
}
.theme-toggle:hover {
  color: var(--brand);
  border-color: var(--brand-ring);
  background: var(--brand-soft);
}
.theme-toggle svg { width: 16px; height: 16px; }

/* 通知铃铛 */
.notif-btn {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: var(--bg-2);
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--t);
}
.notif-btn:hover { color: var(--brand); border-color: var(--brand-ring); background: var(--brand-soft); }
.notif-btn .badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px var(--bg);
  animation: notif-pulse 1.6s infinite;
}
@keyframes notif-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 2px var(--bg), 0 0 0 0 rgba(239,68,68,0.5); }
  50% { transform: scale(1.1); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px rgba(239,68,68,0); }
}

/* 命令面板 (Cmd+K) */
.cmdk-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s var(--ease);
}
[data-theme="light"] .cmdk-overlay { background: rgba(15, 23, 42, 0.32); }
.cmdk-overlay.open { opacity: 1; pointer-events: auto; }
.cmdk {
  width: 620px;
  max-width: calc(100vw - 32px);
  max-height: 60vh;
  background: var(--cmd-bg);
  border: 1px solid var(--cmd-border);
  border-radius: 16px;
  box-shadow: var(--cmd-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(-12px) scale(0.98);
  transition: transform 0.2s var(--ease);
}
.cmdk-overlay.open .cmdk { transform: translateY(0) scale(1); }
.cmdk-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-soft);
}
.cmdk-search svg { width: 18px; height: 18px; color: var(--text-3); flex: none; }
.cmdk-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  color: var(--text-1);
}
.cmdk-search input::placeholder { color: var(--text-3); }
.cmdk-search .esc-hint {
  font-size: 11px;
  color: var(--text-3);
  display: flex;
  gap: 4px;
  align-items: center;
}
.cmdk-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}
.cmdk-section {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 12px 4px;
}
.cmdk-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-1);
  transition: background 0.1s;
}
.cmdk-item:hover, .cmdk-item.active {
  background: var(--brand-soft);
  color: var(--text-1);
}
.cmdk-item .ci-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-size: 16px;
}
.cmdk-item.active .ci-icon { background: var(--brand-grad); color: #fff; }
.cmdk-item .ci-text { flex: 1; min-width: 0; }
.cmdk-item .ci-title { font-weight: 500; }
.cmdk-item .ci-desc { font-size: 11px; color: var(--text-3); margin-top: 1px; }
.cmdk-item .ci-kbd { display: flex; gap: 4px; }
.cmdk-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
}
.cmdk-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--border-soft);
  background: var(--bg-1);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  color: var(--text-3);
}
.cmdk-footer .ftr-group { display: flex; align-items: center; gap: 4px; }
.cmdk-footer .sp { flex: 1; }

/* 通知中心面板 */
.notif-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  max-height: 440px;
  background: var(--cmd-bg);
  border: 1px solid var(--cmd-border);
  border-radius: 14px;
  box-shadow: var(--cmd-shadow);
  z-index: 9998;
  overflow: hidden;
  display: none;
  flex-direction: column;
  transform-origin: top right;
  animation: notif-in 0.18s var(--ease);
}
@keyframes notif-in {
  from { opacity: 0; transform: scale(0.96) translateY(-4px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.notif-panel.open { display: flex; }
.notif-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 13px;
  font-weight: 600;
}
.notif-head .sp { flex: 1; }
.notif-head button {
  background: none;
  border: none;
  font-size: 12px;
  color: var(--text-3);
  cursor: pointer;
}
.notif-head button:hover { color: var(--brand); }
.notif-list { flex: 1; overflow-y: auto; padding: 6px; }
.notif-item {
  padding: 10px 12px;
  border-radius: 10px;
  display: flex;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
  transition: background 0.1s;
  position: relative;
}
.notif-item:hover { background: var(--bg-2); }
.notif-item.unread::before {
  content: '';
  position: absolute;
  left: 6px; top: 18px;
  width: 6px; height: 6px;
  background: var(--brand);
  border-radius: 50%;
}
.notif-item .ni-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  flex: none;
  font-size: 14px;
}
.notif-item .ni-icon.ok { background: rgba(34,197,94,0.16); color: #22c55e; }
.notif-item .ni-icon.warn { background: rgba(245,158,11,0.16); color: #f59e0b; }
.notif-item .ni-icon.err { background: rgba(239,68,68,0.16); color: #ef4444; }
.notif-item .ni-icon.info { background: var(--brand-soft); color: var(--brand); }
.notif-item .ni-body { flex: 1; min-width: 0; }
.notif-item .ni-title { font-weight: 600; color: var(--text-1); }
.notif-item .ni-text { font-size: 12px; color: var(--text-2); margin-top: 2px; word-break: break-word; }
.notif-item .ni-time { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.notif-empty {
  padding: 40px 16px;
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
}

/* 页面切换 fade 动画 */
@keyframes page-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.admin-main > div[id="admin-body"] {
  animation: page-in 0.25s var(--ease);
}

/* 快捷操作卡 (Quick Actions) */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.qa-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: var(--text-1);
  transition: all var(--t);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.qa-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, var(--brand-soft) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--t);
}
.qa-card:hover {
  border-color: var(--brand-ring);
  background: var(--card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
.qa-card:hover::before { opacity: 1; }
.qa-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex: none;
  background: var(--brand-grad);
  color: #fff;
  box-shadow: 0 4px 12px rgba(102,126,234,0.25);
}
.qa-icon.green { background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); box-shadow: 0 4px 12px rgba(34,197,94,0.25); }
.qa-icon.amber { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); box-shadow: 0 4px 12px rgba(245,158,11,0.25); }
.qa-icon.purple { background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%); box-shadow: 0 4px 12px rgba(168,85,247,0.25); }
.qa-icon.cyan { background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%); box-shadow: 0 4px 12px rgba(6,182,212,0.25); }
.qa-icon.rose { background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%); box-shadow: 0 4px 12px rgba(244,63,94,0.25); }
.qa-text { flex: 1; min-width: 0; }
.qa-title { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.qa-desc { font-size: 11px; color: var(--text-3); }
.qa-arrow {
  color: var(--text-3);
  font-size: 14px;
  transition: transform var(--t), color var(--t);
}
.qa-card:hover .qa-arrow { color: var(--brand); transform: translateX(3px); }

/* 趋势迷你折线 (stat-card 内) */
.stat-trend-bar {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 14px;
  vertical-align: middle;
}
.stat-trend-bar svg { width: 36px; height: 14px; }
.stat-trend-bar .up { color: var(--success); }
.stat-trend-bar .down { color: var(--danger); }

/* 视频封面悬浮预览 */
.vthumb-wrap {
  position: relative;
  flex: none;
}
.vthumb {
  width: 64px;
  height: 90px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--bg-3);
  display: block;
  transition: transform var(--t);
}
.vthumb-wrap:hover .vthumb {
  transform: scale(1.4);
  box-shadow: var(--shadow-lg);
  z-index: 10;
  position: relative;
}

/* sidebar 版本号角标 */
.sidebar-version {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  padding: 10px 12px;
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.5;
  transition: padding 0.2s var(--ease), background 0.2s;
}
.sidebar-version.collapsed {
  padding: 4px 8px;
  background: transparent;
  border-color: transparent;
}
.sidebar-version.collapsed .ver-toggle { position: static; }
.sidebar-version.collapsed { pointer-events: none; }
.sidebar-version.collapsed .ver-toggle { pointer-events: auto; }
.sidebar-version.collapsed .ver-detail { display: none; }
.sidebar-version .ver-toggle {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 20px;
  height: 20px;
  border: none;
  background: var(--bg-3);
  color: var(--text-2);
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s, color 0.15s;
}
.sidebar-version .ver-toggle:hover { background: var(--brand-soft); color: var(--brand); }
.sidebar-version.collapsed .ver-toggle { position: static; }
.sidebar-version .ver-tag {
  display: inline-block;
  background: var(--brand-grad);
  color: #fff;
  padding: 2px 8px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 10px;
  margin-right: 6px;
}
.sidebar-version .ver-time {
  font-size: 10px;
  color: var(--text-3);
  margin-top: 4px;
  font-family: ui-monospace, monospace;
}

/* 角标徽章 (sidebar nav) */
.admin-nav a {
  position: relative;
}
.admin-nav a .nav-badge {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.admin-nav a .nav-badge.hot { background: var(--accent); }
.admin-nav a .nav-badge.new { background: var(--success); }

/* 响应式: 移动端调整命令面板 */
@media (max-width: 640px) {
  .cmdk-overlay { padding-top: 4vh; }
  .cmdk { max-height: 88vh; }
  .notif-panel { width: calc(100vw - 24px); right: -8px; }
  .quick-actions { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   V4.4 iOS 风格顶栏 (圆角胶囊搜索 + 圆形 icon 按钮)
   ============================================================ */
.admin-topbar {
  background: var(--bg-1);
  border-bottom: 1px solid var(--border-soft);
  padding: 10px 20px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}
.admin-topbar .topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.admin-topbar .topbar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-grad);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(102,126,234,0.3);
  transition: transform 0.15s;
}
.admin-topbar .topbar-avatar:hover { transform: scale(1.05); }
.admin-topbar .crumb { font-size: 13px; color: var(--text-2); }
.admin-topbar .crumb b { color: var(--text-1); }

.admin-topbar .topbar-search-wrap {
  flex: 1;
  max-width: 480px;
  margin: 0 auto;
  height: 38px;
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  display: flex;
  align-items: center;
  padding: 0 14px 0 14px;
  gap: 10px;
  color: var(--text-3);
  transition: all 0.15s;
}
.admin-topbar .topbar-search-wrap:hover {
  background: var(--bg-3);
  border-color: var(--border);
}
.admin-topbar .topbar-search-wrap:focus-within {
  background: var(--card);
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.admin-topbar .topbar-search-ic {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--text-3);
}
.admin-topbar .topbar-search-text {
  flex: 1;
  font-size: 13px;
  color: var(--text-3);
  user-select: none;
}
.admin-topbar .topbar-search-kbd {
  font-size: 10px;
  font-family: ui-monospace, monospace;
  color: var(--text-3);
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 5px;
  padding: 2px 6px;
  flex: none;
}
.admin-topbar .topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.admin-topbar .topbar-ic-btn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  position: relative;
}
.admin-topbar .topbar-ic-btn:hover {
  background: var(--bg-3);
  color: var(--brand);
  border-color: var(--brand-ring);
  transform: translateY(-1px);
}
.admin-topbar .topbar-ic-btn svg {
  width: 16px;
  height: 16px;
}
.admin-topbar .topbar-ic-btn span[data-theme-ic] {
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-topbar .topbar-ic-btn span[data-theme-ic] svg {
  width: 16px;
  height: 16px;
}

/* 暗色主题微调: 顶栏背景更暗 */
[data-theme="dark"] .admin-topbar {
  background: rgba(13, 15, 20, 0.85);
  border-bottom-color: var(--border);
}
[data-theme="dark"] .admin-topbar .topbar-search-wrap {
  background: rgba(34, 39, 53, 0.5);
  border-color: var(--border);
}
[data-theme="dark"] .admin-topbar .topbar-search-kbd {
  background: var(--bg-2);
}

/* 移动端: 隐藏搜索框文字, 留图标 */
@media (max-width: 720px) {
  .admin-topbar { padding: 8px 12px; gap: 8px; }
  .admin-topbar .crumb { display: none; }
  .admin-topbar .topbar-search-wrap { max-width: none; }
  .admin-topbar .topbar-search-text { display: none; }
  .admin-topbar .topbar-search-kbd { display: none; }
  .admin-topbar .topbar-ic-btn { width: 32px; height: 32px; border-radius: 10px; }
}
