/* ============================================================
   固定资产管理系统 — 科技感主题
   ============================================================ */

:root {
  --primary: #3b82f6;
  --primary-2: #22d3ee;
  --primary-dark: #1d4ed8;
  --cyan: #22d3ee;
  --glow: rgba(56, 189, 248, .55);
  --glow-soft: rgba(56, 189, 248, .16);

  --bg-0: #05070f;
  --bg-1: #080d1a;
  --bg-2: #0c1426;
  --bg-panel: rgba(15, 23, 42, .62);
  --bg-elev: rgba(23, 34, 56, .72);

  --line: rgba(78, 129, 197, .22);
  --line-soft: rgba(78, 129, 197, .12);
  --text-0: #e8eefc;
  --text-1: #b8c6e0;
  --text-2: #7e8fb0;

  --sidebar-bg: #070b16;
}

/* ---------- Element Plus 暗色变量：蓝黑科技风 ---------- */
html.dark {
  --el-color-primary: #3b82f6;
  --el-color-primary-light-3: #2f66c9;
  --el-color-primary-light-5: #26529e;
  --el-color-primary-light-7: #1d3c72;
  --el-color-primary-light-8: #172c52;
  --el-color-primary-light-9: #101d38;
  --el-color-primary-dark-2: #60a5fa;

  --el-bg-color: #0a1120;
  --el-bg-color-page: #05070f;
  --el-bg-color-overlay: rgba(14, 22, 40, .96);

  --el-text-color-primary: #e8eefc;
  --el-text-color-regular: #b8c6e0;
  --el-text-color-secondary: #8b9bbb;
  --el-text-color-placeholder: #5f6f90;
  --el-text-color-disabled: #47536b;

  --el-border-color: #1c2942;
  --el-border-color-light: #182338;
  --el-border-color-lighter: #141d2e;
  --el-border-color-extra-light: #101827;
  --el-border-color-dark: #24344f;
  --el-border-color-darker: #2d3f5e;

  --el-fill-color: #101a2d;
  --el-fill-color-light: #0d1626;
  --el-fill-color-lighter: #0b1220;
  --el-fill-color-extra-light: #080e1a;
  --el-fill-color-dark: #16203a;
  --el-fill-color-darker: #1b2744;
  --el-fill-color-blank: transparent;

  --el-mask-color: rgba(3, 7, 15, .72);
  --el-mask-color-extra-light: rgba(3, 7, 15, .3);
  --el-box-shadow: 0 12px 40px rgba(0, 0, 0, .55);
  --el-box-shadow-light: 0 8px 28px rgba(0, 0, 0, .45);
  --el-box-shadow-lighter: 0 6px 20px rgba(0, 0, 0, .4);

  /* 表格 */
  --el-table-bg-color: transparent;
  --el-table-tr-bg-color: transparent;
  --el-table-header-bg-color: rgba(59, 130, 246, .09);
  --el-table-header-text-color: #9cc3ff;
  --el-table-text-color: var(--text-1);
  --el-table-row-hover-bg-color: rgba(56, 189, 248, .1);
  --el-table-border-color: #16213a;
  --el-table-border: 1px solid #16213a;
  --el-table-expanded-cell-bg-color: transparent;

  /* 弹层/菜单 */
  --el-menu-bg-color: transparent;
  --el-menu-hover-bg-color: rgba(59, 130, 246, .12);
  --el-menu-text-color: var(--text-1);
  --el-menu-active-color: #fff;

  --el-disabled-bg-color: #0d1424;
  --el-disabled-text-color: #47536b;
  --el-disabled-border-color: #1a2438;
  --el-overlay-color-lighter: rgba(3, 7, 15, .72);
}

/* ---------- 基础 ---------- */
* { box-sizing: border-box; }
html, body, #app { height: 100%; margin: 0; }

body {
  color: var(--text-0);
  background: var(--bg-0);
  font-family: "Inter", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei",
    system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* 全局科技背景：网格 + 光晕 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 500px at 12% -8%, rgba(59, 130, 246, .22), transparent 60%),
    radial-gradient(800px 480px at 100% 0%, rgba(34, 211, 238, .16), transparent 55%),
    radial-gradient(1000px 700px at 50% 120%, rgba(37, 99, 235, .18), transparent 60%),
    linear-gradient(180deg, var(--bg-0), #04060c 70%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(78, 129, 197, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78, 129, 197, .06) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 78%);
}

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2a4270, #1a2c4c);
  border-radius: 6px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: #33507d; }

::selection { background: rgba(56, 189, 248, .35); color: #fff; }

/* ---------- 登录 ---------- */
.login-wrap {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow: hidden;
}
.login-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-wrap::before,
.login-wrap::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .55;
  animation: floaty 12s ease-in-out infinite;
}
.login-wrap::before { width: 460px; height: 460px; background: #1d4ed8; top: -120px; left: -80px; }
.login-wrap::after { width: 420px; height: 420px; background: #0891b2; bottom: -140px; right: -60px; animation-delay: -6s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-24px) scale(1.08); }
}

.login-card {
  position: relative;
  z-index: 1;
  width: 400px;
  max-width: 94vw;
  padding: 42px 36px 30px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(18, 28, 50, .92), rgba(9, 14, 28, .92));
  border: 1px solid var(--line);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, .06), 0 30px 80px rgba(0, 0, 0, .6),
    inset 0 1px 0 rgba(255, 255, 255, .04);
  backdrop-filter: blur(14px);
}
.login-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(56, 189, 248, .5), transparent 40%, transparent 60%, rgba(59, 130, 246, .4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.login-logo {
  width: 66px; height: 66px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(59, 130, 246, .25), rgba(34, 211, 238, .18));
  border: 1px solid rgba(56, 189, 248, .35);
  box-shadow: 0 0 30px rgba(56, 189, 248, .35), inset 0 0 20px rgba(56, 189, 248, .12);
}
.login-title {
  text-align: center; font-size: 22px; font-weight: 800; letter-spacing: 2px;
  background: linear-gradient(90deg, #93c5fd, #a5f3fc);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.login-sub { text-align: center; color: var(--text-2); font-size: 12px; letter-spacing: 2px; margin: 8px 0 26px; text-transform: uppercase; }

/* ---------- 页脚（版权 / 备案号） ---------- */
.app-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px;
  font-size: 12px;
  color: var(--text-2);
  text-align: center;
  line-height: 1.6;
}
.app-footer-sep { opacity: .55; }
.app-footer-link {
  color: var(--text-1);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .16s ease, border-color .16s ease;
}
.app-footer-link:hover {
  color: var(--cyan);
  border-bottom-color: rgba(56, 189, 248, .5);
}
/* 主界面页脚：顶部细线与内容分隔 */
.app-shell .app-footer {
  border-top: 1px solid var(--line-soft);
  background: rgba(8, 14, 28, .45);
  backdrop-filter: blur(10px);
}
/* 登录页页脚：压在装饰光晕之上 */
.login-footer {
  position: relative;
  z-index: 2;
}

/* ---------- 布局 ---------- */
.layout { display: flex; height: 100%; }

/* ---------- 应用外壳 ---------- */
.bare-wrap { min-height: 100%; }
.app-shell { height: 100vh; }

/* ---------- 侧边栏 ---------- */
.app-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: visible;
  background:
    radial-gradient(460px 280px at 6% -6%, rgba(59, 130, 246, .20), transparent 62%),
    radial-gradient(380px 240px at 110% 104%, rgba(34, 211, 238, .11), transparent 66%),
    linear-gradient(180deg, rgba(12, 20, 38, .97), rgba(5, 9, 18, .99));
  border-right: 1px solid var(--line-soft) !important;
  box-shadow: 12px 0 40px rgba(0, 0, 0, .32);
  transition: width .26s cubic-bezier(.4, 0, .2, 1);
}
.app-aside::after {
  content: "";
  position: absolute; top: 0; right: -1px; bottom: 0; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(56, 189, 248, .5) 18%,
    rgba(56, 189, 248, .5) 82%, transparent);
  pointer-events: none;
}

/* 折叠切换按钮（悬浮在侧边栏右缘） */
.side-toggle {
  position: absolute; right: -11px; top: 76px; z-index: 8;
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #17243e, #0a1222);
  border: 1px solid rgba(56, 189, 248, .35);
  color: var(--cyan); cursor: pointer; user-select: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .55);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.side-toggle .toggle-ico { font-size: 15px; line-height: 1; font-weight: 700; }
.side-toggle:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 18px rgba(56, 189, 248, .55);
  transform: scale(1.14);
}

/* 顶部品牌区 */
.app-logo {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px 15px;
  border-bottom: 1px solid var(--line-soft);
  flex-shrink: 0;
  position: relative;
}
.app-logo::after {
  content: "";
  position: absolute; left: 18px; right: 18px; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, rgba(56, 189, 248, .6), transparent 68%);
}
.logo-mark {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  font-weight: 800; font-size: 18px; color: #04121f;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--cyan), var(--primary));
  box-shadow: 0 6px 18px rgba(56, 189, 248, .38), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.logo-meta { min-width: 0; overflow: hidden; }
.logo-text { color: #fff; font-weight: 700; font-size: 14.5px; white-space: nowrap; letter-spacing: .5px; }
.logo-sub {
  color: var(--text-2); font-size: 9.5px; letter-spacing: 2.2px;
  text-transform: uppercase; margin-top: 2px; white-space: nowrap;
}

/* 菜单 */
.app-menu {
  flex: 1; min-height: 0;
  overflow-y: auto; overflow-x: hidden;
  border-right: none !important;
  background: transparent;
  padding: 10px 12px 16px;
}
.app-menu::-webkit-scrollbar { width: 5px; height: 5px; }
.app-menu::-webkit-scrollbar-track { background: transparent; }
.app-menu::-webkit-scrollbar-thumb {
  background: rgba(78, 129, 197, .32); border-radius: 4px; border: none;
}
.app-menu::-webkit-scrollbar-thumb:hover { background: rgba(78, 129, 197, .55); }

.menu-section {
  padding: 15px 8px 7px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 1.7px; text-transform: uppercase;
  color: rgba(126, 143, 176, .7);
  display: flex; align-items: center; gap: 9px;
  white-space: nowrap;
}
.menu-section::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--cyan); opacity: .55; flex-shrink: 0;
}
.menu-section::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--line-soft), transparent);
}

.app-menu .el-menu-item {
  display: flex; align-items: center; gap: 11px;
  color: var(--text-1); height: 44px; line-height: 44px;
  margin: 2px 0;
  padding-left: 10px !important; padding-right: 10px;
  border-radius: 11px;
  overflow: visible;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
  border: 1px solid transparent;
  position: relative;
}
.app-menu .el-menu-item .menu-ico {
  width: 26px; height: 26px; line-height: 26px;
  margin-right: 0; flex-shrink: 0;
  border-radius: 8px; text-align: center; font-size: 14px;
  background: rgba(148, 163, 184, .1);
  border: 1px solid rgba(255, 255, 255, .05);
  transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.app-menu .el-menu-item:hover {
  background: rgba(59, 130, 246, .13);
  color: #fff;
  border-color: var(--line-soft);
}
.app-menu .el-menu-item:hover .menu-ico {
  background: rgba(56, 189, 248, .2);
  border-color: rgba(56, 189, 248, .35);
  transform: scale(1.07);
}
.app-menu .el-menu-item.is-active {
  background: linear-gradient(90deg, rgba(59, 130, 246, .4), rgba(34, 211, 238, .12) 72%, transparent);
  color: #fff;
  border-color: rgba(56, 189, 248, .3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 6px 20px rgba(56, 189, 248, .12);
}
.app-menu .el-menu-item.is-active .menu-ico {
  background: linear-gradient(135deg, rgba(34, 211, 238, .38), rgba(59, 130, 246, .38));
  border-color: rgba(56, 189, 248, .5);
  box-shadow: 0 3px 12px rgba(56, 189, 248, .35);
}
.app-menu .el-menu-item.is-active::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 20px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--cyan), var(--primary));
  box-shadow: 0 0 12px var(--glow);
}

/* 折叠态 */
.app-aside.is-collapsed .app-logo { padding: 15px 0; justify-content: center; }
.app-aside.is-collapsed .logo-meta { display: none; }
.app-aside.is-collapsed .app-menu { padding: 10px 4px 16px; }
.app-menu.el-menu--collapse { width: 100%; }
.app-menu.el-menu--collapse > .el-menu-item {
  padding-left: 0 !important; padding-right: 0; justify-content: center;
}
.app-menu.el-menu--collapse > .el-menu-item .menu-ico { margin-right: 0; }
.app-aside.is-collapsed .app-menu .el-menu-item { height: 42px; line-height: 42px; margin: 3px 0; }
.app-aside.is-collapsed .app-menu .el-menu-item.is-active::before { display: none; }
.app-aside.is-collapsed .side-foot {
  margin: 6px 10px 14px; padding: 0; justify-content: center;
  background: transparent; border-color: transparent;
}
.app-aside.is-collapsed .side-foot .dot { width: 8px; height: 8px; }

/* 底部状态条 */
.side-foot {
  margin: 6px 12px 14px;
  padding: 11px 13px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(34, 211, 238, .1), rgba(59, 130, 246, .05));
  border: 1px solid var(--line-soft);
  color: var(--text-2);
  font-size: 11.5px;
  display: flex; align-items: center; gap: 9px;
  flex-shrink: 0;
}
.side-foot .foot-text { white-space: nowrap; }
.side-foot .foot-time {
  margin-left: auto; color: rgba(126, 143, 176, .7);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.side-foot .dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: pulse 2s infinite;
}
.app-aside.is-collapsed .side-foot { margin: 6px 10px 14px; padding: 0; justify-content: center; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.app-header {
  background: rgba(8, 14, 28, .72) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft) !important;
  display: flex; align-items: center; justify-content: space-between;
  height: 62px; position: relative;
}
.app-header::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, .45), transparent);
}
.header-title { font-size: 17px; font-weight: 700; color: #fff; letter-spacing: .4px; display: flex; align-items: center; gap: 10px; }
.header-title::before {
  content: ""; width: 4px; height: 18px; border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--primary));
  box-shadow: 0 0 10px var(--glow);
}
.header-right { display: flex; align-items: center; }
.user-chip {
  display: flex; align-items: center; gap: 7px; cursor: pointer;
  color: var(--text-1); font-size: 14px; outline: none;
  padding: 6px 12px; border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: rgba(56, 189, 248, .05);
  transition: all .16s;
}
.user-chip:hover { border-color: rgba(56, 189, 248, .4); color: #fff; }
.user-chip .avatar-ico {
  width: 26px; height: 26px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  color: #04121f; font-size: 13px;
}
.app-main { background: transparent; padding: 22px; overflow-y: auto; }

/* ---------- 顶栏/页面 ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; }
.content { flex: 1; overflow-y: auto; padding: 20px; }

.page-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; flex-wrap: wrap; gap: 12px;
}
.page-title {
  font-size: 19px; font-weight: 700; color: #fff;
  display: flex; align-items: center; gap: 10px;
}
.page-title::before {
  content: ""; width: 4px; height: 18px; border-radius: 3px;
  background: linear-gradient(180deg, var(--cyan), var(--primary));
  box-shadow: 0 0 10px var(--glow);
}
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- 卡片 / 统计 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
@media (max-width: 1100px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

.stat-card {
  position: relative;
  border-radius: 14px;
  padding: 20px;
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(160deg, rgba(20, 31, 54, .8), rgba(10, 16, 30, .72));
  border: 1px solid var(--line-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  backdrop-filter: blur(8px);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.stat-card::before {
  content: "";
  position: absolute; left: 0; top: 0; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--primary), transparent);
  opacity: .8;
}
.stat-card::after {
  content: "";
  position: absolute; right: -30px; top: -30px; width: 120px; height: 120px;
  border-radius: 50%; background: radial-gradient(circle, var(--glow-soft), transparent 70%);
}
.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, .4);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .45), 0 0 24px rgba(56, 189, 248, .18);
}
.stat-icon {
  width: 52px; height: 52px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 23px; color: #04121f !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .4);
  filter: saturate(1.1);
}
.stat-val { font-size: 26px; font-weight: 800; line-height: 1.15; color: #fff; letter-spacing: .5px; }
.stat-label { color: var(--text-2); font-size: 13px; margin-top: 2px; }

.panel {
  position: relative;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 18px;
  background: linear-gradient(160deg, rgba(17, 26, 46, .72), rgba(9, 14, 26, .66));
  border: 1px solid var(--line-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03), 0 10px 30px rgba(0, 0, 0, .28);
  backdrop-filter: blur(8px);
}
.panel-title {
  font-weight: 700; font-size: 15px; margin-bottom: 16px; color: #dbe7ff;
  display: flex; align-items: center; gap: 9px;
}
.panel-title::before {
  content: ""; width: 8px; height: 8px; border-radius: 2px;
  background: var(--cyan); box-shadow: 0 0 10px var(--glow);
  transform: rotate(45deg);
}

.chart-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 900px) { .chart-row { grid-template-columns: 1fr; } }
.chart { height: 300px; width: 100%; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 900px) { .grid2 { grid-template-columns: 1fr; } }

/* ---------- 资产详情 ---------- */
.asset-head { display: flex; gap: 20px; flex-wrap: wrap; }
.asset-imgs { display: flex; flex-wrap: wrap; gap: 10px; }
.asset-img-item {
  position: relative; width: 110px; height: 110px; border-radius: 10px;
  overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
}
.asset-img-item img { width: 100%; height: 100%; object-fit: cover; }
.asset-img-item .cover-flag {
  position: absolute; top: 4px; left: 4px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  color: #04121f; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 5px;
}
.asset-img-item .del {
  position: absolute; top: 4px; right: 4px; cursor: pointer;
  background: rgba(0, 0, 0, .55); color: #fff; border-radius: 50%;
  width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.qr-box { text-align: center; }
.qr-box img {
  width: 180px; height: 180px; padding: 10px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 0 24px rgba(56, 189, 248, .25);
}

/* ---------- 二维码标签打印 ---------- */
.label-toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.label-sheet { display: flex; flex-wrap: wrap; gap: 8px; }
.asset-label {
  width: 220px; height: 130px; border-radius: 8px;
  padding: 10px 12px; display: flex; gap: 10px;
  background: #fff; color: #0b1220;
  border: 1px solid #cbd5e1;
}
.asset-label .lbl-qr { width: 90px; height: 90px; flex-shrink: 0; }
.asset-label .lbl-qr img { width: 100%; height: 100%; }
.asset-label .lbl-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.asset-label .lbl-name { font-weight: 700; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-label .lbl-no { font-size: 12px; color: #334155; margin-top: 3px; }
.asset-label .lbl-small { font-size: 11px; color: #64748b; margin-top: 2px; }

/* ---------- 扫码页 ---------- */
.scan-wrap { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 20px; }
.scan-card {
  width: 440px; max-width: 94vw; padding: 26px 24px; text-align: center;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(18, 28, 50, .92), rgba(9, 14, 28, .92));
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .04);
  backdrop-filter: blur(12px);
}
.scan-header {
  background: linear-gradient(135deg, rgba(59, 130, 246, .35), rgba(34, 211, 238, .2));
  border-bottom: 1px solid var(--line-soft);
}
.scan-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 20px;
}
.scan-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}
.scan-title { font-size: 20px; font-weight: 700; color: #fff; }
.scan-sub { color: var(--text-2); margin: 6px 0 14px; }
.scan-gallery { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.scan-gallery img {
  width: 104px; height: 104px; object-fit: cover; border-radius: 10px;
  border: 1px solid var(--line);
}

/* 资产列表操作列：按钮不换行（仅作用于固定列，避免撑破表格总宽） */
.el-table .el-button + .el-button { margin-left: 6px; }
.el-table .el-table__fixed-right .cell,
.el-table .el-table__fixed .cell { white-space: nowrap; }
.el-table .show-overflow-tooltip > .cell { text-overflow: ellipsis; }

/* ---------- Element Plus 细节微调 ---------- */
html.dark .el-card,
html.dark .el-dialog,
html.dark .el-drawer,
html.dark .el-message-box {
  background: linear-gradient(160deg, rgba(18, 28, 50, .97), rgba(10, 16, 30, .97));
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .04);
}
html.dark .el-dialog__header,
html.dark .el-drawer__header { border-bottom: 1px solid var(--line-soft); margin-right: 0; }
html.dark .el-dialog__title { color: #fff; font-weight: 700; }

html.dark .el-button {
  border-radius: 9px; font-weight: 600;
}
html.dark .el-button--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border: none;
  box-shadow: 0 6px 18px rgba(56, 189, 248, .3);
}
html.dark .el-button--primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 8px 22px rgba(56, 189, 248, .45);
}
html.dark .el-button--default:hover {
  color: var(--cyan);
  border-color: rgba(56, 189, 248, .5);
  background: rgba(56, 189, 248, .08);
}

html.dark .el-input__wrapper,
html.dark .el-textarea__inner,
html.dark .el-select__wrapper {
  background: rgba(8, 14, 26, .7);
  box-shadow: 0 0 0 1px var(--line) inset;
  border-radius: 9px;
}
html.dark .el-input__wrapper.is-focus,
html.dark .el-textarea__inner:focus,
html.dark .el-select__wrapper.is-focused {
  box-shadow: 0 0 0 1px var(--cyan) inset, 0 0 12px rgba(56, 189, 248, .25);
}

html.dark .el-table {
  background: transparent;
  --el-table-bg-color: transparent;
  --el-table-tr-bg-color: transparent;
}
html.dark .el-table th.el-table__cell {
  background: rgba(59, 130, 246, .1);
  color: #9cc3ff;
  font-weight: 700;
}
html.dark .el-table tr { background: transparent; }
html.dark .el-table__cell { border-bottom-color: var(--line-soft); }
html.dark .el-table--enable-row-hover .el-table__body tr:hover > td.el-table__cell {
  background: rgba(56, 189, 248, .1);
}
html.dark .el-table::before,
html.dark .el-table__inner-wrapper::before { background-color: var(--line-soft); }

html.dark .el-tag {
  border-radius: 6px; font-weight: 600;
  background: rgba(59, 130, 246, .12);
  border-color: rgba(56, 189, 248, .28);
  color: #9cc3ff;
}

/* ---------- 资产状态标签（实色背景） ---------- */
.el-tag.st-tag {
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: .3px;
  border: 1px solid transparent;
}
.st-in_use      { background: #16a34a !important; border-color: #16a34a !important; color: #fff !important; }
.st-idle        { background: #eab308 !important; border-color: #eab308 !important; color: #241a00 !important; }
.st-lent        { background: #9333ea !important; border-color: #9333ea !important; color: #fff !important; }
.st-maintenance { background: #2563eb !important; border-color: #2563eb !important; color: #fff !important; }
.st-scrapped    { background: #64748b !important; border-color: #64748b !important; color: #fff !important; }
.st-lost        { background: #dc2626 !important; border-color: #dc2626 !important; color: #fff !important; }
.st-disposed    { background: #0891b2 !important; border-color: #0891b2 !important; color: #fff !important; }
.st-unknown     { background: #475569 !important; border-color: #475569 !important; color: #fff !important; }

/* ---------- 资产列表缩略图（照片 / 二维码） ---------- */
.cell-thumb {
  width: 52px; height: 52px; margin: 0 auto;
  border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line-soft);
  background: rgba(148, 163, 184, .08);
  display: flex; align-items: center; justify-content: center;
  cursor: zoom-in;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.cell-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cell-thumb:hover {
  transform: scale(1.1);
  border-color: rgba(56, 189, 248, .65);
  box-shadow: 0 0 18px rgba(56, 189, 248, .4);
}
.cell-thumb--qr { background: #fff; padding: 4px; border-color: rgba(255, 255, 255, .25); }
.cell-thumb--empty { color: #64748b; font-size: 11px; cursor: default; }
.cell-thumb--empty:hover { transform: none; box-shadow: none; border-color: var(--line-soft); }

.pop-thumb { display: block; width: 320px; border-radius: 10px; }
.pop-qr { display: block; width: 220px; margin: 0 auto; border-radius: 8px; }
.pop-cap {
  margin-top: 10px; font-size: 12px; color: #94a3b8;
  text-align: center; line-height: 1.5;
}
.pop-cap b { color: #dbe7ff; font-weight: 600; }

/* ---------- 组织架构同步提醒 ---------- */
.alert-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: 999px;
  background: rgba(239, 68, 68, .16);
  border: 1px solid rgba(239, 68, 68, .45);
  color: #fca5a5; font-size: 13px; font-weight: 700;
  cursor: pointer; user-select: none;
  transition: all .18s ease;
}
.alert-chip:hover {
  background: rgba(239, 68, 68, .3);
  border-color: rgba(239, 68, 68, .75);
  box-shadow: 0 0 16px rgba(239, 68, 68, .4);
  color: #fecaca;
}
.alert-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ef4444; box-shadow: 0 0 10px #ef4444;
  animation: pulse 1.4s infinite;
}
.org-panel {
  background: linear-gradient(160deg, rgba(239, 68, 68, .09), rgba(9, 14, 26, .66));
  border-color: rgba(239, 68, 68, .3);
}

html.dark .el-pagination {
  --el-pagination-bg-color: transparent;
  --el-pagination-button-bg-color: rgba(56, 189, 248, .08);
  --el-pagination-hover-color: var(--cyan);
}
html.dark .el-dropdown-menu__item:hover,
html.dark .el-select-dropdown__item.is-hovering { background: rgba(56, 189, 248, .12); }
html.dark .el-tabs__item.is-active { color: var(--cyan); }
html.dark .el-tabs__active-bar { background: linear-gradient(90deg, var(--cyan), var(--primary)); }
html.dark .el-form-item__label { color: var(--text-1); }
html.dark .el-descriptions__label { color: var(--text-2); }
html.dark .el-empty__description p { color: var(--text-2); }
html.dark .el-loading-mask { background: rgba(5, 7, 15, .72); }
html.dark .el-switch.is-checked .el-switch__core { background: linear-gradient(135deg, var(--primary), var(--primary-2)); border-color: transparent; }

/* 滚动条 */
html.dark ::-webkit-scrollbar-thumb { background: #1c2942; border-radius: 6px; }
html.dark ::-webkit-scrollbar-thumb:hover { background: #2a3b5e; }

/* 盘点结果行高亮（在册=绿，缺失=红，部分缺失=橙，盘盈=蓝） */
.el-table .inv-found > td.el-table__cell { background: rgba(16, 185, 129, .16) !important; }
.el-table .inv-missing > td.el-table__cell { background: rgba(239, 68, 68, .18) !important; }
.el-table .inv-partial > td.el-table__cell { background: rgba(245, 158, 11, .16) !important; }
.el-table .inv-extra > td.el-table__cell { background: rgba(56, 189, 248, .16) !important; }
.el-table .inv-found:hover > td.el-table__cell { background: rgba(16, 185, 129, .28) !important; }
.el-table .inv-missing:hover > td.el-table__cell { background: rgba(239, 68, 68, .30) !important; }
.el-table .inv-partial:hover > td.el-table__cell { background: rgba(245, 158, 11, .28) !important; }
.el-table .inv-extra:hover > td.el-table__cell { background: rgba(56, 189, 248, .28) !important; }

/* 扫码页确认在册 */
.scan-confirm { margin: 16px 0; padding: 14px; border-radius: 12px; background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.35); }
.scan-confirm .el-button { margin-top: 8px; }

/* 手机扫码盘点 */
.inv-scan-head { display: flex; align-items: flex-start; justify-content: space-between; }
.inv-stats { display: flex; gap: 10px; margin: 14px 0; }
.inv-stat { flex: 1; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 10px; padding: 8px 4px; text-align: center; }
.inv-stat .n { display: block; font-size: 22px; font-weight: 700; }
.inv-stat span:last-child { font-size: 12px; color: #94a3b8; }
.inv-stat .green { color: #34d399; }
.inv-stat .red { color: #f87171; }
.inv-stat .gray { color: #cbd5e1; }
.inv-scan-box { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #000; min-height: 240px; display: flex; align-items: center; justify-content: center; }
.inv-video { width: 100%; max-height: 60vh; display: block; object-fit: cover; }
.inv-nocam { text-align: center; padding: 22px 16px; }
.inv-scan-line { position: absolute; left: 8%; right: 8%; top: 50%; height: 2px; background: linear-gradient(90deg, transparent, #34d399, transparent); box-shadow: 0 0 12px #34d399; }
.inv-manual { display: flex; gap: 8px; margin-top: 12px; }
.inv-last { margin-top: 12px; padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.inv-success { background: rgba(16,185,129,.16); color: #6ee7b7; border: 1px solid rgba(16,185,129,.4); }
.inv-warning { background: rgba(245,158,11,.16); color: #fcd34d; border: 1px solid rgba(245,158,11,.4); }
.inv-danger { background: rgba(239,68,68,.16); color: #fca5a5; border: 1px solid rgba(239,68,68,.4); }
.inv-recent { margin-top: 12px; max-height: 220px; overflow-y: auto; }
.inv-recent-item { display: flex; align-items: center; gap: 8px; padding: 6px 2px; border-bottom: 1px dashed rgba(148,163,184,.2); font-size: 13px; }
.inv-recent-item .no { font-weight: 600; }
.inv-recent-item .nm { color: #94a3b8; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv-recent-item .tm { color: #64748b; font-size: 12px; }

/* 资产详情：居中卡片 + 图片可放大 */
.asset-detail-dialog { border-radius: 16px; }
.asset-detail-dialog .el-dialog__body { max-height: 72vh; overflow-y: auto; padding-top: 6px; }
.asset-detail-dialog .qr-box img { width: 150px; height: 150px; }
.asset-img-item .el-image { width: 100%; height: 100%; cursor: zoom-in; }
.asset-img-item .del,
.asset-img-item .cover-flag { z-index: 2; }
