:root {
  --bg: #060b16;
  --bg-2: #0a1120;
  --panel: rgba(16, 26, 44, 0.78);
  --panel-solid: #101a2c;
  --panel-2: rgba(24, 38, 62, 0.72);
  --line: rgba(148, 176, 220, 0.12);
  --line-strong: rgba(148, 176, 220, 0.22);
  --text: #e9f1ff;
  --muted: #8b9dbd;
  --muted-2: #64748f;
  --accent: #2ee6a8;
  --accent-2: #48b4ff;
  --accent-soft: rgba(46, 230, 168, 0.13);
  --danger: #ff6b81;
  --danger-soft: rgba(255, 107, 129, 0.12);
  --warn: #ffc857;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font-family: inherit; }
a { color: inherit; }
.hidden { display: none !important; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(139, 157, 189, 0.22);
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(139, 157, 189, 0.4); background-clip: content-box; }

/* ---------------- 背景氛围 ---------------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 8% -10%, rgba(46, 230, 168, 0.11), transparent 60%),
    radial-gradient(800px 600px at 100% 0%, rgba(72, 180, 255, 0.13), transparent 62%),
    linear-gradient(180deg, #070d19 0%, #050912 100%);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: drift 18s ease-in-out infinite alternate;
}
.blob.b1 { width: 460px; height: 460px; background: rgba(46, 230, 168, 0.22); left: -140px; top: -140px; }
.blob.b2 { width: 520px; height: 520px; background: rgba(72, 180, 255, 0.2); right: -180px; top: 12%; animation-delay: -6s; }
.blob.b3 { width: 420px; height: 420px; background: rgba(120, 90, 255, 0.14); left: 36%; bottom: -240px; animation-delay: -11s; }
.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 176, 220, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 176, 220, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 30%, black 0%, transparent 78%);
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(40px, 40px, 0) scale(1.08); }
}

/* ---------------- 通用组件 ---------------- */
.icon { width: 20px; height: 20px; flex: none; }
.icon.sm { width: 16px; height: 16px; }
.icon.lg { width: 26px; height: 26px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.07); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn.primary {
  background: linear-gradient(135deg, #2ee6a8, #35c7d8);
  border-color: transparent;
  color: #04140f;
  box-shadow: 0 10px 26px rgba(46, 230, 168, 0.22);
}
.btn.primary:hover { box-shadow: 0 12px 32px rgba(46, 230, 168, 0.32); background: linear-gradient(135deg, #46f0b6, #44d5e4); }
.btn.ghost { background: transparent; }
.btn.danger { background: var(--danger-soft); border-color: rgba(255, 107, 129, 0.24); color: #ff9aa9; }
.btn.danger:hover { background: rgba(255, 107, 129, 0.2); }
.btn.small { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 10px; }
.btn.block { width: 100%; height: 46px; font-size: 14.5px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.16s ease;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); border-color: var(--line); }
.icon-btn.danger:hover { background: var(--danger-soft); color: #ff9aa9; }

.card {
  position: relative;
  background: linear-gradient(160deg, rgba(23, 36, 58, 0.82), rgba(12, 20, 35, 0.78));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}
.card.pad { padding: 22px; }

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.card-head h3 { margin: 0; font-size: 15.5px; font-weight: 700; letter-spacing: 0.01em; }
.card-head p { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }

.muted { color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.badge.green { background: var(--accent-soft); color: #6ff0c4; border-color: rgba(46, 230, 168, 0.2); }
.badge.blue { background: rgba(72, 180, 255, 0.12); color: #8fd0ff; border-color: rgba(72, 180, 255, 0.22); }
.badge.orange { background: rgba(255, 200, 87, 0.1); color: #ffd985; border-color: rgba(255, 200, 87, 0.22); }
.badge.red { background: var(--danger-soft); color: #ff9aa9; border-color: rgba(255, 107, 129, 0.22); }
.badge.purple { background: rgba(168, 130, 255, 0.14); color: #c9b3ff; border-color: rgba(168, 130, 255, 0.26); }

/* ---------------- 登录 ---------------- */
.login-view {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  gap: 22px;
}
.login-card {
  width: min(430px, 100%);
  padding: 36px 36px 30px;
  border-radius: 26px;
  background: linear-gradient(165deg, rgba(23, 37, 60, 0.94), rgba(10, 17, 30, 0.92));
  border: 1px solid rgba(148, 176, 220, 0.16);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(24px);
  animation: rise 0.5s ease both;
}
.brand-block {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}
.brand-mark {
  width: 54px;
  height: 54px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(46, 230, 168, 0.2), rgba(72, 180, 255, 0.16));
  border: 1px solid rgba(46, 230, 168, 0.3);
  box-shadow: 0 10px 30px rgba(46, 230, 168, 0.18);
}
.brand-mark svg { width: 30px; height: 30px; }
.brand-mark.small { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 8px 20px rgba(46, 230, 168, 0.14); }
.brand-mark.small svg { width: 23px; height: 23px; }
.brand-block h1 { margin: 0; font-size: 20px; letter-spacing: 0.01em; }
.brand-block p { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field > span { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
input, select, textarea {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
textarea { height: auto; min-height: 84px; padding: 12px 14px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted-2); }
input:focus, select:focus, textarea:focus {
  border-color: rgba(46, 230, 168, 0.55);
  box-shadow: 0 0 0 3px rgba(46, 230, 168, 0.12);
  background: rgba(255, 255, 255, 0.055);
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b9dbd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
select option { background: #101a2c; color: var(--text); }

.login-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 22px;
  font-size: 12px;
  color: var(--muted-2);
}
.login-hint b { color: var(--muted); font-weight: 600; }
.login-hint .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.login-foot { margin: 0; font-size: 11.5px; color: rgba(139, 157, 189, 0.6); letter-spacing: 0.12em; }
.form-error {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--danger-soft);
  border: 1px solid rgba(255, 107, 129, 0.2);
  color: #ff9aa9;
  font-size: 12.5px;
}

/* ---------------- 主框架 ---------------- */
.app-shell {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100vh;
}
.sidebar {
  width: 248px;
  flex: none;
  display: flex;
  flex-direction: column;
  padding: 22px 14px 16px;
  background: rgba(9, 15, 27, 0.72);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(18px);
  z-index: 3;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 22px;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.logo-text strong { font-size: 16px; letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo-text span { margin-top: 3px; font-size: 10.5px; color: var(--muted-2); letter-spacing: 0.16em; text-transform: uppercase; }

.nav { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 3px; padding: 2px 0 10px; }
.nav-group {
  margin: 16px 12px 7px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.nav-group:first-child { margin-top: 2px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.16s ease;
  user-select: none;
}
.nav-item .icon { width: 18px; height: 18px; opacity: 0.9; }
.nav-item:hover { background: rgba(255, 255, 255, 0.045); color: var(--text); }
.nav-item.active {
  background: linear-gradient(90deg, rgba(46, 230, 168, 0.16), rgba(72, 180, 255, 0.07));
  border-color: rgba(46, 230, 168, 0.18);
  color: #effffa;
  box-shadow: inset 0 0 0 1px rgba(46, 230, 168, 0.04);
}
.nav-item.active .icon { color: var(--accent); opacity: 1; }
.nav-item .badge { margin-left: auto; }

.sidebar-foot { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.storage-mini {
  padding: 12px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}
.storage-mini .row { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-bottom: 8px; }
.storage-mini .row b { color: var(--text); font-weight: 600; }
.storage-mini .bar { height: 5px; }
.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 13px;
  cursor: pointer;
  transition: background 0.16s ease;
}
.user-chip:hover { background: rgba(255, 255, 255, 0.045); }
.user-chip .mini-avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #061a12;
  background: linear-gradient(135deg, #2ee6a8, #48b4ff);
}
.user-chip .meta { min-width: 0; flex: 1; }
.user-chip .meta strong { display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip .meta span { display: block; font-size: 10.5px; color: var(--muted-2); margin-top: 2px; }
.user-chip .icon-btn { width: 28px; height: 28px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 70px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 12, 22, 0.52);
  backdrop-filter: blur(14px);
}
.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.page-heading h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: 0.01em; }
.page-heading p { margin: 3px 0 0; font-size: 12px; color: var(--muted); }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px;
  border-radius: 99px;
  background: rgba(46, 230, 168, 0.08);
  border: 1px solid rgba(46, 230, 168, 0.18);
  font-size: 11.5px;
  color: #7becbf;
  white-space: nowrap;
}
.status-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 2.4s ease infinite; }
.clock { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(46, 230, 168, 0.28);
  background: linear-gradient(135deg, rgba(46, 230, 168, 0.9), rgba(72, 180, 255, 0.9));
  color: #04140f;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.avatar:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(46, 230, 168, 0.25); }
.menu-btn { display: none; }

.page {
  flex: 1;
  overflow-y: auto;
  padding: 26px 28px 48px;
  scroll-behavior: smooth;
}

/* ---------------- 布局 ---------------- */
.grid { display: grid; gap: 16px; }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; }
.spacer { flex: 1; }

/* ---------------- 仪表盘 ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 28px 30px;
  border-radius: 22px;
  background:
    radial-gradient(600px 300px at 82% 20%, rgba(72, 180, 255, 0.18), transparent 65%),
    radial-gradient(500px 300px at 10% 100%, rgba(46, 230, 168, 0.16), transparent 62%),
    linear-gradient(135deg, rgba(24, 40, 64, 0.92), rgba(11, 18, 32, 0.88));
  border: 1px solid rgba(148, 176, 220, 0.15);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 16px;
}
.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 1px solid rgba(46, 230, 168, 0.16);
  box-shadow: 0 0 0 40px rgba(46, 230, 168, 0.03), 0 0 0 90px rgba(72, 180, 255, 0.025);
  pointer-events: none;
}
.eyebrow { font-size: 10.5px; letter-spacing: 0.24em; color: var(--accent); font-weight: 700; }
.hero h1 { margin: 12px 0 8px; font-size: 26px; letter-spacing: 0.01em; }
.hero p { margin: 0; font-size: 13px; color: var(--muted); max-width: 520px; line-height: 1.6; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; position: relative; z-index: 1; }

.metric { padding: 18px; display: flex; align-items: center; gap: 12px; min-height: 112px; }
.metric-icon {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(46, 230, 168, 0.1);
  border: 1px solid rgba(46, 230, 168, 0.16);
  color: var(--accent);
}
.metric-icon.blue { background: rgba(72, 180, 255, 0.1); border-color: rgba(72, 180, 255, 0.18); color: #7cc6ff; }
.metric-icon.purple { background: rgba(140, 120, 255, 0.1); border-color: rgba(140, 120, 255, 0.18); color: #b3a4ff; }
.metric-icon.orange { background: rgba(255, 200, 87, 0.1); border-color: rgba(255, 200, 87, 0.18); color: #ffd985; }
.metric-body { flex: 1; min-width: 0; }
.metric-label { font-size: 11px; color: var(--muted); letter-spacing: 0.03em; white-space: nowrap; }
.metric-value { margin-top: 6px; font-size: 23px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.metric-value small { font-size: 11.5px; font-weight: 500; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.metric-sub { margin-top: 4px; font-size: 10.5px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ring { width: 54px; height: 54px; flex: none; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 5; }
.ring .bg { stroke: rgba(255, 255, 255, 0.07); }
.ring .fg { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset 0.6s ease; }
.ring.blue .fg { stroke: var(--accent-2); }
.ring.purple .fg { stroke: #a394ff; }

.storage-list { display: flex; flex-direction: column; gap: 18px; }
.storage-item { display: flex; flex-direction: column; gap: 9px; }
.storage-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.storage-top b { font-size: 13.5px; font-weight: 600; }
.storage-top span { font-size: 11.5px; color: var(--muted); }
.bar { height: 7px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.bar > i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.6s ease;
}
.bar.warn > i { background: linear-gradient(90deg, #ffc857, #ff8f5a); }
.bar.danger > i { background: linear-gradient(90deg, #ff8fa0, #ff5a72); }
.storage-foot { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted-2); }

.activity { display: flex; flex-direction: column; gap: 2px; }
.activity-item { display: flex; gap: 11px; padding: 9px 0; border-bottom: 1px dashed rgba(148, 176, 220, 0.08); font-size: 12.5px; }
.activity-item:last-child { border-bottom: none; }
.activity-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-top: 6px; flex: none; box-shadow: 0 0 8px rgba(46, 230, 168, 0.6); }
.activity-item .txt { flex: 1; min-width: 0; }
.activity-item .txt strong { font-weight: 600; }
.activity-item .txt p { margin: 2px 0 0; color: var(--muted-2); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity-item time { color: var(--muted-2); font-size: 10.5px; white-space: nowrap; padding-top: 2px; }

.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quick-tile {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  transition: all 0.16s ease;
  text-align: left;
  color: var(--text);
  font-size: 12.5px;
}
.quick-tile:hover { background: rgba(255, 255, 255, 0.055); border-color: var(--line-strong); transform: translateY(-1px); }
.quick-tile .q-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  flex: none;
}

/* ---------------- 文件 / 表格 ---------------- */
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.crumbs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 13px; min-width: 0; flex: 1; }
.crumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.crumb:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.crumb.current { color: var(--text); font-weight: 600; }
.crumb-sep { color: var(--muted-2); display: flex; }
.toolbar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.search-box { position: relative; }
.search-box .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted-2); pointer-events: none; }
.search-box input { width: 190px; height: 36px; padding-left: 34px; font-size: 12.5px; border-radius: 10px; }
.space-select { width: auto; min-width: 130px; height: 36px; font-size: 12.5px; border-radius: 10px; }

.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td {
  padding: 11px 16px;
  font-size: 12.8px;
  border-bottom: 1px solid rgba(148, 176, 220, 0.06);
  vertical-align: middle;
}
.table tbody tr { transition: background 0.14s ease; }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.028); }
.table tbody tr:last-child td { border-bottom: none; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--muted); }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions .icon-btn { width: 30px; height: 30px; }
.file-cell { display: flex; align-items: center; gap: 11px; min-width: 0; }
.file-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 420px; }
.file-name.link { cursor: pointer; }
.file-name.link:hover { color: var(--accent); }
.file-icon {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
}
.file-icon .icon { width: 18px; height: 18px; }
.file-icon.folder { color: #74c0ff; background: rgba(72, 180, 255, 0.1); }
.file-icon.image { color: #6ff0c4; background: rgba(46, 230, 168, 0.09); }
.file-icon.video { color: #b3a4ff; background: rgba(140, 120, 255, 0.1); }
.file-icon.audio { color: #ffd985; background: rgba(255, 200, 87, 0.09); }
.file-icon.document { color: #8fd0ff; background: rgba(72, 180, 255, 0.08); }
.file-icon.archive { color: #ffb28f; background: rgba(255, 143, 90, 0.09); }
.file-icon.code { color: #9aa7ff; background: rgba(120, 140, 255, 0.1); }
.file-path { margin-top: 3px; font-size: 10.5px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.empty {
  padding: 64px 20px;
  text-align: center;
  color: var(--muted-2);
}
.empty .empty-icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 16px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  color: var(--muted);
}
.empty .empty-icon .icon { width: 28px; height: 28px; }
.empty h3 { margin: 0 0 7px; font-size: 14.5px; color: var(--text); font-weight: 600; }
.empty p { margin: 0; font-size: 12.5px; line-height: 1.6; }
.empty .btn { margin-top: 18px; }

.dropzone.dragging { border-color: rgba(46, 230, 168, 0.55); box-shadow: inset 0 0 0 1px rgba(46, 230, 168, 0.25); }

/* ---------------- 媒体 ---------------- */
.tabs { display: flex; gap: 6px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); }
.tab {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  padding: 7px 14px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.tab:hover { color: var(--text); }
.tab.active { background: rgba(46, 230, 168, 0.14); color: #a8ffdd; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.media-card {
  overflow: hidden;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  transition: all 0.18s ease;
}
.media-card:hover { transform: translateY(-3px); border-color: rgba(46, 230, 168, 0.28); box-shadow: 0 18px 38px rgba(0, 0, 0, 0.3); }
.media-thumb { position: relative; aspect-ratio: 4 / 3; background: #0a1220; overflow: hidden; }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }
.media-card:hover .media-thumb img { transform: scale(1.04); }
.media-thumb .video-ph {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(300px 160px at 30% 10%, rgba(72, 180, 255, 0.16), transparent 70%),
    linear-gradient(135deg, #121f35, #0a1220);
  color: rgba(255, 255, 255, 0.35);
}
.media-thumb .play-badge {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, transparent 40%, rgba(3, 8, 16, 0.62));
}
.play-badge span {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  color: #fff;
}
.media-body { padding: 11px 13px 13px; }
.media-body b { display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-body span { display: block; margin-top: 4px; font-size: 10.5px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-kind {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 1;
  height: 22px;
  padding: 0 8px;
  border-radius: 7px;
  background: rgba(3, 8, 16, 0.6);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #dbe8ff;
}
.media-kind .icon { width: 12px; height: 12px; }

/* ---------------- 共享 / 应用 ---------------- */
.link-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 260px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(72, 180, 255, 0.08);
  border: 1px solid rgba(72, 180, 255, 0.16);
  color: #8fd0ff;
  font-size: 11.5px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.link-chip:hover { background: rgba(72, 180, 255, 0.14); }

.apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.app-card { padding: 18px; display: flex; flex-direction: column; gap: 13px; }
.app-top { display: flex; align-items: flex-start; gap: 12px; }
.app-icon {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(46, 230, 168, 0.16), rgba(72, 180, 255, 0.1));
  border: 1px solid rgba(46, 230, 168, 0.16);
  color: var(--accent);
}
.app-top .meta { flex: 1; min-width: 0; }
.app-top .meta strong { display: block; font-size: 13.5px; font-weight: 600; }
.app-top .meta span { display: block; margin-top: 4px; font-size: 10.5px; color: var(--muted-2); }
.app-desc { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.55; flex: 1; }
.app-actions { display: flex; align-items: center; gap: 8px; padding-top: 4px; }

.switch {
  position: relative;
  width: 40px;
  height: 23px;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: all 0.18s ease;
  flex: none;
}
.switch::after {
  content: "";
  position: absolute;
  width: 17px;
  height: 17px;
  top: 2px;
  left: 2px;
  border-radius: 50%;
  background: #8b9dbd;
  transition: all 0.18s ease;
}
.switch.on { background: rgba(46, 230, 168, 0.22); border-color: rgba(46, 230, 168, 0.4); }
.switch.on::after { left: 19px; background: var(--accent); box-shadow: 0 0 12px rgba(46, 230, 168, 0.6); }

.section-title { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 12px; }
.section-title:first-child { margin-top: 0; }
.section-title h3 { margin: 0; font-size: 14px; font-weight: 700; }
.section-title span { font-size: 11.5px; color: var(--muted-2); }

/* ---------------- 设置 ---------------- */
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px dashed rgba(148, 176, 220, 0.09); }
.setting-row:last-child { border-bottom: none; }
.setting-row .label { font-size: 13px; }
.setting-row .label p { margin: 4px 0 0; font-size: 11.5px; color: var(--muted-2); }
.setting-row .value { font-size: 12.5px; color: var(--muted); text-align: right; word-break: break-all; }
.code-line {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 11.5px;
  color: #9fb3d6;
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-tip { margin: -8px 0 14px; font-size: 11.5px; color: var(--muted-2); line-height: 1.5; }

/* ---------------- 弹窗 ---------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 7, 14, 0.66);
  backdrop-filter: blur(6px);
  animation: fade 0.18s ease both;
}
.modal {
  width: 100%;
  max-width: 460px;
  border-radius: 20px;
  background: linear-gradient(165deg, #16243c, #0c1424);
  border: 1px solid rgba(148, 176, 220, 0.18);
  box-shadow: var(--shadow);
  animation: rise 0.22s ease both;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 0; }
.modal-head h3 { margin: 0; font-size: 16px; font-weight: 700; }
.modal-body { padding: 18px 20px; overflow-y: auto; }
.modal-body .field:last-child { margin-bottom: 0; }
.modal-foot { display: flex; justify-content: flex-end; gap: 9px; padding: 0 20px 20px; }
.modal-text { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.7; }
.modal-text b { color: var(--text); }
.preview-box { display: grid; place-items: center; min-height: 200px; }
.preview-box img { max-width: 100%; max-height: 64vh; border-radius: 12px; display: block; }
.preview-box video { max-width: 100%; max-height: 64vh; border-radius: 12px; display: block; background: #000; }
.preview-box audio { width: 100%; }
.preview-title { margin: 14px 0 0; text-align: center; font-size: 12px; color: var(--muted); word-break: break-all; }

/* ---------------- 提示 / 上传 ---------------- */
.toast-root { position: fixed; right: 22px; bottom: 22px; z-index: 80; display: flex; flex-direction: column; gap: 9px; pointer-events: none; }
.toast {
  min-width: 220px;
  max-width: 360px;
  padding: 12px 15px;
  border-radius: 12px;
  background: rgba(20, 33, 54, 0.96);
  border: 1px solid var(--line-strong);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  font-size: 12.5px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  animation: slideIn 0.22s ease both;
  pointer-events: auto;
}
.toast.success { border-color: rgba(46, 230, 168, 0.28); }
.toast.success .icon { color: var(--accent); }
.toast.error { border-color: rgba(255, 107, 129, 0.32); }
.toast.error .icon { color: var(--danger); }
.toast.info .icon { color: var(--accent-2); }
.toast .icon { margin-top: 1px; }
.toast.fade-out { animation: fadeOut 0.3s ease both; }

.upload-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  width: 320px;
  padding: 16px;
  border-radius: 15px;
  background: rgba(18, 30, 50, 0.97);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  animation: slideIn 0.24s ease both;
}
.upload-float .u-head { display: flex; align-items: center; gap: 9px; font-size: 12.5px; margin-bottom: 11px; }
.upload-float .u-head b { flex: 1; font-weight: 600; }
.upload-float .u-pct { color: var(--accent); font-variant-numeric: tabular-nums; }
.upload-float .u-sub { margin-top: 8px; font-size: 10.5px; color: var(--muted-2); }

/* ---------------- 动画 ---------------- */
@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(0.99); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; transform: translateY(6px); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.anim-in { animation: rise 0.4s ease both; }
.anim-in.d1 { animation-delay: 0.04s; }
.anim-in.d2 { animation-delay: 0.08s; }
.anim-in.d3 { animation-delay: 0.12s; }
.anim-in.d4 { animation-delay: 0.16s; }

/* ---------------- 桌面启动器 ---------------- */
.brand-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 6px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}
.brand-btn:hover { background: rgba(255, 255, 255, 0.045); border-color: var(--line); }
.brand-btn strong { font-size: 15px; letter-spacing: 0.02em; }
.topbar-divider { width: 1px; height: 26px; background: var(--line); flex: none; }

.desktop { margin-bottom: 20px; }
.desktop-head { display: flex; align-items: baseline; gap: 10px; margin: 0 2px 12px; }
.desktop-head h2 { margin: 0; font-size: 16px; }
.desktop-head p { margin: 0; font-size: 12px; color: var(--muted); }
.desktop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 12px; }
.desk-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 10px 13px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.desk-tile:hover { transform: translateY(-2px); border-color: rgba(46, 230, 168, 0.3); background: rgba(255, 255, 255, 0.05); }
.desk-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(46, 230, 168, 0.16), rgba(72, 180, 255, 0.1));
  border: 1px solid rgba(46, 230, 168, 0.16);
  color: var(--accent);
}
.desk-icon .icon { width: 24px; height: 24px; }
.desk-label { font-size: 13px; font-weight: 600; }
.desk-sub { font-size: 10.5px; color: var(--muted-2); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1440px) {
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1240px) {
  .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-104%); transition: transform 0.24s ease; box-shadow: 0 0 60px rgba(0, 0, 0, 0.5); }
  .sidebar.open { transform: none; }
  .menu-btn { display: inline-flex; }
  .cols-3, .cols-2 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .hero { flex-direction: column; align-items: flex-start; }
  .hero-actions { justify-content: flex-start; }
  .clock { display: none; }
}
@media (max-width: 680px) {
  .page { padding: 16px 14px 40px; }
  .topbar { padding: 0 16px; height: 62px; }
  .topbar-divider, .brand-btn strong { display: none; }
  .desktop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .status-pill { display: none; }
  .cols-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .search-box input { width: 130px; }
  .file-name { max-width: 160px; }
  .media-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .hide-sm { display: none !important; }
  .modal { max-width: 100%; }
}

/* ------------------------------------------------------------------ 离线下载 */
.offline-list { display: flex; flex-direction: column; gap: 12px; }
.offline-row {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.offline-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--accent-2);
}
.offline-icon.running { color: var(--accent); }
.offline-icon.done { color: #6ff0c4; }
.offline-icon.paused { color: #ffd985; }
.offline-icon.error { color: var(--danger); }
.offline-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.offline-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.offline-top b {
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.offline-top .badge { flex-shrink: 0; }
.offline-url {
  font-size: 11.5px;
  color: var(--muted-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.offline-main .bar { margin-top: 1px; }
.offline-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11.5px;
  color: var(--muted);
}
.offline-meta span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offline-meta span:last-child { text-align: right; color: var(--muted-2); }
.offline-error { font-size: 11.5px; color: #ff9aa9; }
.offline-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
@media (max-width: 680px) {
  .offline-row { padding: 14px; }
  .offline-icon { display: none; }
  .offline-meta { flex-direction: column; gap: 3px; }
  .offline-meta span:last-child { text-align: left; }
}

/* 投屏设备与会话控制 */
.cast-list { display: flex; flex-direction: column; gap: 8px; }
.cast-device,
.cast-playing {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  text-align: left;
}
.cast-device { cursor: pointer; transition: border-color 0.18s, background 0.18s, transform 0.18s; }
.cast-device:hover { border-color: rgba(46, 230, 168, 0.36); background: var(--accent-soft); transform: translateY(-1px); }
.cast-device:disabled { opacity: 0.55; cursor: progress; transform: none; }
.cast-device .icon:last-child { color: var(--muted); flex-shrink: 0; }
.cast-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}
.cast-meta { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.cast-meta b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cast-meta small { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cast-playing { border-color: rgba(46, 230, 168, 0.28); background: var(--accent-soft); }
.cast-controls { display: flex; align-items: center; gap: 8px; margin-top: 14px; }

/* ---------------- 浏览器 ---------------- */
.browser-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 14px; }
.browser-input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(8, 14, 26, 0.75);
  color: var(--text);
  font-size: 13px;
  outline: none;
}
.browser-input:focus { border-color: rgba(72, 180, 255, 0.6); box-shadow: 0 0 0 3px rgba(72, 180, 255, 0.12); }
.browser-frame { height: calc(100vh - 258px); min-height: 420px; padding: 0; overflow: hidden; }
.browser-frame iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.browser-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--muted); }
.browser-empty-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; background: rgba(72, 180, 255, 0.12); color: #48b4ff; }
.browser-empty-icon .icon { width: 30px; height: 30px; }
.browser-empty p { margin: 0; font-size: 13px; }
.browser-tip { margin: 10px 2px 0; }

/* ---------------- 浏览器（多标签） ---------------- */
.bx { display: flex; flex-direction: column; gap: 10px; }
.bx-tabs { display: flex; align-items: center; gap: 8px; padding: 6px 8px; }
.bx-tablist { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; overflow-x: auto; }
.bx-tab { display: flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); color: var(--muted); font-size: 12px; cursor: pointer; max-width: 220px; flex: 0 0 auto; border: 1px solid transparent; }
.bx-tab.active { background: rgba(72, 180, 255, 0.14); border-color: rgba(72, 180, 255, 0.35); color: var(--text); }
.bx-tab-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bx-tab-close { display: grid; place-items: center; width: 18px; height: 18px; border: 0; border-radius: 6px; background: transparent; color: inherit; cursor: pointer; opacity: 0.55; }
.bx-tab-close:hover { opacity: 1; background: rgba(255, 255, 255, 0.1); }
.bx-bar { display: flex; align-items: center; gap: 4px; padding: 8px; flex-wrap: wrap; }
.bx-icon { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.bx-icon:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.bx-icon.on { color: #48b4ff; background: rgba(72, 180, 255, 0.12); }
.bx-icon:disabled { opacity: 0.3; cursor: default; }
.bx-icon:disabled:hover { background: transparent; color: var(--muted); }
.bx-zoom { display: flex; align-items: center; gap: 2px; font-size: 12px; color: var(--muted); padding: 0 4px; }
.bx-zoom span { min-width: 38px; text-align: center; }
.bx-bookmarks { display: none; align-items: center; gap: 6px; padding: 6px 10px; overflow-x: auto; }
.bx-bookmarks.on { display: flex; }
.bx-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.05); font-size: 12px; flex: 0 0 auto; }
.bx-chip-open { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 12px; padding: 0; }
.bx-chip-open:hover { color: #48b4ff; }
.bx-chip-x { display: grid; place-items: center; width: 18px; height: 18px; border: 0; border-radius: 5px; background: none; color: var(--muted); cursor: pointer; opacity: 0.5; }
.bx-chip-x:hover { opacity: 1; background: rgba(255, 255, 255, 0.1); }
.browser-frame { position: relative; height: calc(100vh - 320px); min-height: 420px; padding: 0; overflow: hidden; }
.bx-stage { position: absolute; inset: 0; overflow: hidden; background: #fff; }
.bx-stage iframe { position: absolute; left: 0; top: 0; border: 0; background: #fff; display: none; transform-origin: 0 0; }
.bx-stage iframe.on { display: block; }
.bx-home { position: absolute; inset: 0; display: none; overflow: auto; padding: 26px 30px; background: rgba(8, 14, 26, 0.9); }
.bx-home.on { display: block; }
.bx-home-inner { max-width: 720px; margin: 0 auto; }
.bx-home-logo { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgba(72, 180, 255, 0.12); color: #48b4ff; margin-bottom: 12px; }
.bx-home-logo .icon { width: 28px; height: 28px; }
.bx-home h3 { margin: 0 0 14px; font-size: 18px; }
.bx-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.bx-home-title { margin: 16px 0 8px; font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.bx-home-list { display: flex; flex-direction: column; gap: 4px; }
.bx-home-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border: 1px solid transparent; border-radius: 9px; background: rgba(255, 255, 255, 0.04); color: var(--text); font-size: 12px; cursor: pointer; text-align: left; }
.bx-home-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bx-home-item em { color: var(--muted); font-style: normal; font-size: 11px; flex: 0 0 auto; }
.bx-home-item:hover { border-color: rgba(72, 180, 255, 0.35); background: rgba(72, 180, 255, 0.1); }
.bx-panel { position: absolute; right: 12px; top: 12px; bottom: 12px; width: min(420px, 82%); display: none; flex-direction: column; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(10, 17, 32, 0.97); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); z-index: 6; overflow: hidden; }
.bx-panel.on { display: flex; }
.bx-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); font-size: 13px; }
.bx-panel-list { flex: 1; overflow: auto; padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.bx-panel-item { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, 0.04); color: var(--text); font-size: 12px; cursor: pointer; text-align: left; }
.bx-panel-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bx-panel-item em { color: var(--muted); font-style: normal; font-size: 11px; flex: 0 0 auto; }
.bx-panel-item:hover { background: rgba(72, 180, 255, 0.12); }
.bx-panel-empty { color: var(--muted); font-size: 12px; text-align: center; padding: 20px; }
#bx-box:fullscreen { height: 100vh; border-radius: 0; }
@media (max-width: 760px) {
  .browser-frame { height: calc(100vh - 300px); }
  .bx-zoom { display: none; }
}

/* ---------------- 浏览器（手机式布局） ---------------- */
.bx { display: flex; flex-direction: column; gap: 8px; }
.bx-top { display: flex; align-items: center; gap: 6px; padding: 8px 10px; }
.bx-top .browser-input { flex: 1; height: 40px; border-radius: 20px; background: rgba(255, 255, 255, 0.06); }
.bx-count { position: relative; }
.bx-count-badge { position: absolute; top: 1px; right: 1px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; background: #48b4ff; color: #04101f; font-size: 10px; line-height: 15px; text-align: center; font-weight: 600; }
.browser-frame { position: relative; height: calc(100vh - 268px); min-height: 380px; padding: 0; overflow: hidden; }
.bx-bottom { display: flex; align-items: stretch; justify-content: space-between; padding: 6px 4px; }
.bx-tool { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.bx-tool em { font-style: normal; font-size: 10px; }
.bx-tool:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.bx-tool:disabled { opacity: 0.35; cursor: default; }
.bx-tool:disabled:hover { background: transparent; color: var(--muted); }
.bx-loadbar { position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 7; overflow: hidden; }
.bx-loadbar.on::after { content: ''; display: block; height: 100%; width: 40%; background: #48b4ff; animation: bx-load 1s ease-in-out infinite; }
@keyframes bx-load {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(300%); }
}
.bx-tabrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 9px; background: rgba(255, 255, 255, 0.04); font-size: 12px; cursor: pointer; color: var(--text); }
.bx-tabrow.on { background: rgba(72, 180, 255, 0.14); }
.bx-tabrow-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bx-menu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; }
.bx-menu-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 12px; background: rgba(255, 255, 255, 0.04); color: var(--text); font-size: 12px; cursor: pointer; }
.bx-menu-item:hover { border-color: rgba(72, 180, 255, 0.4); background: rgba(72, 180, 255, 0.1); }
.bx-menu-zoom { margin-left: auto; margin-right: 8px; color: var(--muted); font-size: 12px; }
.bx-panel { width: min(480px, 92%); }
@media (max-width: 760px) {
  .browser-frame { height: calc(100vh - 250px); }
  .bx-top .browser-input { height: 38px; font-size: 13px; }
}
