@charset "utf-8";
/* ==========================================================================
   骐畅 · 安全智能防控平台  —— 全局设计系统
   主色 #2C80E1（PANTONE 2727C / R44 G128 B225）
   字体 阿里巴巴普惠体
   ========================================================================== */

/* ---------- 1. 字体 ---------- */
@font-face {
  font-family: 'Alibaba PuHuiTi';
  src: local('Alibaba PuHuiTi 3.0 45 Light'),
       url('../fonts/AlibabaPuHuiTi-3-45-Light.woff2') format('woff2'),
       url('../fonts/AlibabaPuHuiTi-3-45-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Alibaba PuHuiTi';
  src: local('Alibaba PuHuiTi 3.0 55 Regular'),
       url('../fonts/AlibabaPuHuiTi-3-55-Regular.woff2') format('woff2'),
       url('../fonts/AlibabaPuHuiTi-3-55-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Alibaba PuHuiTi';
  src: local('Alibaba PuHuiTi 3.0 65 Medium'),
       url('../fonts/AlibabaPuHuiTi-3-65-Medium.woff2') format('woff2'),
       url('../fonts/AlibabaPuHuiTi-3-65-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Alibaba PuHuiTi';
  src: local('Alibaba PuHuiTi 3.0 85 Bold'),
       url('../fonts/AlibabaPuHuiTi-3-85-Bold.woff2') format('woff2'),
       url('../fonts/AlibabaPuHuiTi-3-85-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- 2. 设计令牌 ---------- */
:root {
  /* 品牌主色 */
  --brand:            #2C80E1;
  --brand-600:        #2470CC;
  --brand-700:        #1C5CAE;
  --brand-800:        #164A8E;
  --brand-050:        #F4F9FF;
  --brand-100:        #E8F2FD;
  --brand-150:        #DCEBFB;
  --brand-200:        #C8DFF8;
  --brand-300:        #A5CBF3;
  --brand-400:        #6FB0EC;
  --brand-500:        #4593E6;

  /* 中性色 */
  --text-1:           #1E2A38;
  --text-2:           #4A5768;
  --text-3:           #7B8794;
  --text-4:           #9AA6B5;
  --line:             #E6ECF3;
  --line-strong:      #D5DDE7;
  --bg-page:          #F4F7FB;
  --bg-card:          #FFFFFF;
  --bg-hover:         #F2F7FD;
  --bg-stripe:        #FAFCFF;

  /* 语义色 */
  --success:          #17B26A;
  --success-bg:       #E7F8EF;
  --warning:          #F79009;
  --warning-bg:       #FEF4E6;
  --danger:           #E5484D;
  --danger-bg:        #FDECEC;
  --info:             #2C80E1;

  /* 尺寸 */
  --header-h:         56px;
  --sider-w:          232px;
  --sider-w-min:      56px;
  --radius-sm:        4px;
  --radius:           6px;
  --radius-lg:        10px;

  /* 阴影 */
  --shadow-1:         0 1px 2px rgba(16, 42, 80, .05);
  --shadow-2:         0 2px 8px rgba(16, 42, 80, .08);
  --shadow-3:         0 6px 20px rgba(16, 42, 80, .12);
  --shadow-brand:     0 2px 6px rgba(44, 128, 225, .28);

  /* 字体 */
  --font: 'Alibaba PuHuiTi', 'Alibaba PuHuiTi 3.0', 'PingFang SC', 'Hiragino Sans GB',
          'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ---------- 3. 基础重置 ---------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-1);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-600); }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 500; }
p { margin: 0; }
ul, li { margin: 0; padding: 0; list-style: none; }
img { display: block; border: 0; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #CFD8E3; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #B4C1D0; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 4. 布局骨架 ---------- */
.qc-app { display: flex; flex-direction: column; height: 100vh; }
.qc-body { flex: 1; display: flex; min-height: 0; }
.qc-main {
  flex: 1; min-width: 0; display: flex; flex-direction: column;
  background: var(--bg-page); overflow: hidden;
}
.qc-content { flex: 1; min-height: 0; overflow: auto; padding: 12px; }
.qc-content.is-flat { padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.qc-content.is-flat > * { flex: 1; min-height: 0; }

/* ---------- 5. 顶部导航 ---------- */
.qc-header {
  height: var(--header-h); flex: none; display: flex; align-items: center;
  background: linear-gradient(96deg, #4593E6 0%, var(--brand) 46%, #1C5CAE 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 2px 10px rgba(20, 60, 120, .22);
  position: relative; z-index: 60; padding-right: 12px;
}
.qc-brand {
  width: var(--sider-w); flex: none; display: flex; align-items: center; gap: 8px;
  padding: 0 12px; height: 100%; min-width: 0;
}
.qc-brand__logo {
  width: 26px; height: 26px; object-fit: contain;
  filter: brightness(0) invert(1); flex: none;
}
.qc-brand__name {
  color: #fff; font-size: 14.5px; font-weight: 600; letter-spacing: .3px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.qc-brand__sub {
  color: rgba(255, 255, 255, .72); font-size: 11px; margin-left: 2px; white-space: nowrap;
}

.qc-topnav { flex: 1; display: flex; align-items: center; min-width: 0; height: 100%; }
.qc-topnav__list { display: flex; align-items: center; gap: 2px; height: 100%; overflow: hidden; }
.qc-topnav__item {
  position: relative; height: 34px; padding: 0 13px; display: flex; align-items: center; gap: 6px;
  color: rgba(255, 255, 255, .86); font-size: 13.5px; border-radius: var(--radius);
  cursor: pointer; white-space: nowrap; transition: background .18s, color .18s;
  user-select: none;
}
.qc-topnav__item:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.qc-topnav__item.is-active {
  background: rgba(255, 255, 255, .24); color: #fff; font-weight: 500;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset;
}
.qc-topnav__item.is-active::after {
  content: ''; position: absolute; left: 13px; right: 13px; bottom: -11px; height: 3px;
  background: #fff; border-radius: 3px 3px 0 0;
}
.qc-topnav__ico { width: 16px; height: 16px; flex: none; opacity: .95; }
.qc-topnav__more { position: relative; }
.qc-topnav__more-btn {
  height: 34px; width: 30px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius); cursor: pointer; color: rgba(255, 255, 255, .85);
}
.qc-topnav__more-btn:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.qc-topnav__drop {
  position: absolute; top: 42px; right: 0; min-width: 168px; background: #fff;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-3); padding: 6px; z-index: 80;
  display: none; border: 1px solid var(--line);
}
.qc-topnav__drop.is-open { display: block; }
.qc-topnav__drop a {
  display: block; padding: 8px 10px; border-radius: var(--radius); color: var(--text-1);
  font-size: 13px; white-space: nowrap;
}
.qc-topnav__drop a:hover { background: var(--brand-100); color: var(--brand-700); }

.qc-header__right { display: flex; align-items: center; gap: 4px; flex: none; }
.qc-hicon {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius); cursor: pointer; color: rgba(255, 255, 255, .88);
  position: relative; transition: background .18s;
}
.qc-hicon:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.qc-hicon svg { width: 17px; height: 17px; }
.qc-hicon__dot {
  position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border-radius: 50%;
  background: #FF6B6B; border: 1.5px solid #2C80E1;
}
.qc-user {
  display: flex; align-items: center; gap: 7px; padding: 4px 8px 4px 4px; cursor: pointer;
  border-radius: 20px; transition: background .18s; margin-left: 2px;
}
.qc-user:hover { background: rgba(255, 255, 255, .14); }
.qc-user__avatar {
  width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .22);
  color: #fff; font-size: 11px; font-weight: 500; display: flex; align-items: center;
  justify-content: center; border: 1px solid rgba(255, 255, 255, .45); flex: none;
}
.qc-user__name { color: #fff; font-size: 13px; }
.qc-user__caret { width: 12px; height: 12px; opacity: .8; }
.qc-user-menu {
  position: absolute; top: 50px; right: 12px; width: 172px; background: #fff; z-index: 90;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-3); padding: 6px;
  border: 1px solid var(--line); display: none;
}
.qc-user-menu.is-open { display: block; }
.qc-user-menu a, .qc-user-menu button {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px;
  border-radius: var(--radius); color: var(--text-1); font-size: 13px;
  background: none; border: 0; cursor: pointer; text-align: left;
}
.qc-user-menu a:hover, .qc-user-menu button:hover { background: var(--brand-100); color: var(--brand-700); }
.qc-user-menu .sep { height: 1px; background: var(--line); margin: 5px 4px; }

/* ---------- 6. 侧边菜单 ---------- */
.qc-sider {
  width: var(--sider-w); flex: none; background: #fff; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; transition: width .2s ease; overflow: hidden;
}
.qc-sider.is-mini { width: var(--sider-w-min); }
.qc-sider__scroll { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 8px 0 16px; }
.qc-menu__group { margin-bottom: 2px; }
.qc-menu__group-title {
  height: 36px; padding: 0 14px 0 16px; display: flex; align-items: center; gap: 8px;
  color: var(--text-1); font-size: 13px; font-weight: 500; cursor: pointer;
  user-select: none; border-radius: 0;
}
.qc-menu__group-title:hover { color: var(--brand-600); }
.qc-menu__group-ico { width: 15px; height: 15px; flex: none; color: var(--text-3); }
.qc-menu__caret {
  width: 12px; height: 12px; margin-left: auto; color: var(--text-4);
  transition: transform .2s ease;
}
.qc-menu__group.is-open .qc-menu__caret { transform: rotate(90deg); }
.qc-menu__group.is-active > .qc-menu__group-title { color: var(--brand); }
.qc-menu__group.is-active > .qc-menu__group-title .qc-menu__group-ico { color: var(--brand); }
.qc-menu__sub { display: none; padding: 2px 0 4px; }
.qc-menu__group.is-open .qc-menu__sub { display: block; }
.qc-menu__item {
  height: 36px; margin: 2px 8px; padding: 0 10px 0 12px; display: flex; align-items: center;
  gap: 8px; border-radius: var(--radius); color: var(--text-2); font-size: 13px;
  cursor: pointer; position: relative; transition: background .16s, color .16s; white-space: nowrap;
}
.qc-menu__item .qc-menu__group-ico { width: 14px; height: 14px; }
.qc-menu__item:hover { background: var(--bg-hover); color: var(--brand-600); }
.qc-menu__item.is-active {
  background: var(--brand-100); color: var(--brand-700); font-weight: 500;
}
.qc-menu__item.is-active::before {
  content: ''; position: absolute; left: -8px; top: 7px; bottom: 7px; width: 3px;
  background: var(--brand); border-radius: 0 3px 3px 0;
}
.qc-menu__text { overflow: hidden; text-overflow: ellipsis; }

.qc-sider__trigger {
  height: 40px; flex: none; border-top: 1px solid var(--line); display: flex;
  align-items: center; justify-content: center; cursor: pointer; color: var(--text-3);
}
.qc-sider__trigger:hover { color: var(--brand); background: var(--bg-hover); }
.qc-sider__trigger svg { width: 15px; height: 15px; }

/* ---------- 7. 面包屑 / 页头 ---------- */
.qc-crumb {
  display: flex; align-items: center; gap: 6px; padding: 0 2px 10px; font-size: 12px;
  color: var(--text-3);
}
.qc-crumb a { color: var(--text-3); }
.qc-crumb a:hover { color: var(--brand); }
.qc-crumb .sep { color: var(--text-4); }
.qc-crumb .cur { color: var(--text-1); font-weight: 500; }

/* ---------- 8. 卡片 / 区块 ---------- */
.qc-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
}
.qc-card + .qc-card { margin-top: 12px; }
.qc-card__hd {
  height: 44px; padding: 0 14px; display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--line);
}
.qc-card__title { font-size: 14px; font-weight: 500; color: var(--text-1); }
.qc-card__title::before {
  content: ''; display: inline-block; width: 3px; height: 13px; background: var(--brand);
  border-radius: 2px; margin-right: 8px; vertical-align: -2px;
}
.qc-card__bd { padding: 14px; }
.qc-card__tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* ---------- 9. 筛选区 ---------- */
.qc-filter { padding: 14px 14px 2px; }
.qc-filter__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px 16px;
}
.qc-field { display: flex; align-items: center; gap: 8px; min-width: 0; }
.qc-field__label {
  flex: none; width: 92px; text-align: right; color: var(--text-2); font-size: 13px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.qc-field__ctrl { flex: 1; min-width: 0; }
.qc-filter__actions {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  padding: 8px 0 10px;
}
.qc-filter.is-collapsed .qc-filter__grid { display: none; }

/* ---------- 10. 表单控件 ---------- */
.qc-input, .qc-select {
  width: 100%; height: 32px; padding: 0 10px; border: 1px solid var(--line-strong);
  border-radius: var(--radius); background: #fff; color: var(--text-1); font-size: 13px;
  outline: none; transition: border-color .16s, box-shadow .16s;
}
.qc-input::placeholder { color: var(--text-4); }
.qc-input:hover, .qc-select:hover { border-color: var(--brand-400); }
.qc-input:focus, .qc-select:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(44, 128, 225, .14);
}
.qc-select {
  appearance: none; cursor: pointer; padding-right: 28px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2.5 4.5L6 8l3.5-3.5' fill='none' stroke='%237B8794' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 9px center;
}
.qc-range { display: flex; align-items: center; gap: 6px; }
.qc-range .qc-input { text-align: center; }
.qc-range__sep { color: var(--text-4); flex: none; }
.qc-textarea {
  width: 100%; min-height: 76px; padding: 8px 10px; border: 1px solid var(--line-strong);
  border-radius: var(--radius); resize: vertical; outline: none; font-size: 13px;
}
.qc-textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(44, 128, 225, .14); }
.qc-check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.qc-check input { width: 14px; height: 14px; accent-color: var(--brand); cursor: pointer; }

/* ---------- 11. 按钮 ---------- */
.qc-btn {
  height: 32px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: #fff;
  color: var(--text-2); font-size: 13px; cursor: pointer; white-space: nowrap;
  transition: all .16s ease; outline: none; flex: none; flex-shrink: 0;
}
.qc-btn:hover { border-color: var(--brand-400); color: var(--brand-600); }
.qc-btn:active { transform: translateY(1px); }
.qc-btn svg { width: 14px; height: 14px; }
.qc-btn--primary {
  background: linear-gradient(180deg, #4593E6 0%, var(--brand) 100%);
  border-color: var(--brand); color: #fff; box-shadow: var(--shadow-brand);
}
.qc-btn--primary:hover {
  background: linear-gradient(180deg, #4593E6 0%, var(--brand-600) 100%);
  border-color: var(--brand-600); color: #fff;
}
.qc-btn--ghost { background: var(--brand-050); border-color: var(--brand-200); color: var(--brand-700); }
.qc-btn--ghost:hover { background: var(--brand-100); border-color: var(--brand-300); color: var(--brand-700); }
.qc-btn--text { border-color: transparent; background: transparent; color: var(--brand); padding: 0 6px; }
.qc-btn--text:hover { background: var(--brand-050); border-color: transparent; color: var(--brand-600); }
.qc-btn--danger { border-color: #F3C4C5; background: #fff; color: var(--danger); }
.qc-btn--danger:hover { border-color: var(--danger); color: var(--danger); }
.qc-btn--danger-solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.qc-btn--danger-solid:hover { background: #D33F44; border-color: #D33F44; color: #fff; }
.qc-btn--sm { height: 26px; padding: 0 10px; font-size: 12px; }
.qc-btn--lg { height: 38px; padding: 0 22px; font-size: 14px; }
.qc-btn--block { width: 100%; }
.qc-btn[disabled] { opacity: .55; cursor: not-allowed; }
.qc-btn--icon { width: 32px; padding: 0; }

.qc-btn-group { display: inline-flex; gap: 8px; align-items: center; }
.qc-btn-group .qc-btn { border-radius: var(--radius); }

/* 分段控件（地图模式切换等） */
.qc-seg {
  display: inline-flex; padding: 2px; background: var(--bg-page); border-radius: var(--radius);
  border: 1px solid var(--line);
}
.qc-seg__item {
  height: 26px; padding: 0 12px; display: inline-flex; align-items: center; gap: 5px;
  border-radius: var(--radius-sm); color: var(--text-2); font-size: 12px; cursor: pointer;
  transition: all .16s;
}
.qc-seg__item:hover { color: var(--brand-600); }
.qc-seg__item.is-active { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }

/* ---------- 12. 表格 ---------- */
.qc-table-wrap { width: 100%; overflow: auto; }
.qc-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.qc-table thead th {
  position: sticky; top: 0; z-index: 2; background: var(--brand-200); color: var(--text-1);
  font-weight: 500; text-align: left; padding: 0 10px; height: 40px; white-space: nowrap;
  border-bottom: 1px solid var(--brand-300); font-size: 13px;
}
.qc-table thead th:first-child { border-top-left-radius: 0; }
.qc-table tbody td {
  padding: 0 10px; height: 42px; border-bottom: 1px solid #F1F4F9; color: var(--text-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px;
}
.qc-table tbody tr:hover td { background: var(--bg-hover); }
.qc-table tbody tr.is-checked td { background: var(--brand-050); }
.qc-table td.col-op, .qc-table th.col-op {
  position: sticky; right: 0; background: #fff; box-shadow: -6px 0 8px -6px rgba(16, 42, 80, .12);
  white-space: nowrap;
}
.qc-table thead th.col-op { background: var(--brand-200); }
.qc-table tbody tr:hover td.col-op { background: var(--bg-hover); }
.qc-table .col-idx { width: 52px; text-align: center; color: var(--text-3); }
.qc-table .col-chk { width: 44px; text-align: center; }
.qc-table .col-chk input { width: 14px; height: 14px; accent-color: var(--brand); cursor: pointer; }
.qc-link { color: var(--brand); cursor: pointer; position: relative; padding: 0 8px; }
.qc-link:hover { color: var(--brand-600); text-decoration: underline; }
.qc-link + .qc-link { margin-left: 0; }
.qc-link + .qc-link::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 13px; background: #C9D3DF;
}
.qc-link--danger { color: var(--danger); }
.qc-link--danger:hover { color: #C93B40; }

.qc-empty { padding: 48px 0; text-align: center; color: var(--text-4); }
.qc-empty__ico { width: 62px; height: 48px; margin: 0 auto 10px; opacity: .55; }
.qc-empty__txt { font-size: 13px; }

/* ---------- 13. 分页 ---------- */
.qc-pager {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  padding: 12px 14px; font-size: 12px; color: var(--text-3);
}
.qc-pager__total { margin-right: auto; }
.qc-pager__btn {
  min-width: 30px; height: 30px; padding: 0 8px; display: inline-flex; align-items: center;
  justify-content: center; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: #fff; color: var(--text-2); cursor: pointer; font-size: 12px;
}
.qc-pager__btn:hover { border-color: var(--brand-400); color: var(--brand-600); }
.qc-pager__btn.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.qc-pager__btn[disabled] { opacity: .5; cursor: not-allowed; }
.qc-pager__size {
  height: 30px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: #fff; padding: 0 6px; color: var(--text-2); cursor: pointer; outline: none;
}

/* ---------- 14. 工具栏（表格上方操作区） ---------- */
.qc-toolbar {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
.qc-toolbar__right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.qc-selected { color: var(--text-3); font-size: 12px; }
.qc-selected b { color: var(--brand); font-weight: 500; }

/* ---------- 15. 标签 / 状态 ---------- */
.qc-tag {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px;
  border-radius: 11px; font-size: 12px; line-height: 1; white-space: nowrap;
}
.qc-tag--brand { background: var(--brand-100); color: var(--brand-700); }
.qc-tag--success { background: var(--success-bg); color: #0E8A52; }
.qc-tag--warning { background: var(--warning-bg); color: #B25B00; }
.qc-tag--danger { background: var(--danger-bg); color: #C93B40; }
.qc-tag--default { background: #F0F3F7; color: var(--text-3); }
.qc-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }

/* ---------- 16. Tabs ---------- */
.qc-tabs { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 14px; }
.qc-tabs__item {
  height: 40px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-2); font-size: 13px; cursor: pointer; position: relative; white-space: nowrap;
  transition: color .16s;
}
.qc-tabs__item:hover { color: var(--brand-600); }
.qc-tabs__item.is-active { color: var(--brand-700); font-weight: 500; }
.qc-tabs__item.is-active::after {
  content: ''; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px;
  background: var(--brand); border-radius: 2px 2px 0 0;
}
.qc-tabs__badge {
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--brand);
  color: #fff; font-size: 11px; display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- 17. 弹窗 / 抽屉 ---------- */
.qc-mask {
  position: fixed; inset: 0; background: rgba(16, 32, 56, .45); z-index: 900;
  display: none; align-items: center; justify-content: center; backdrop-filter: blur(2px);
}
.qc-mask.is-open { display: flex; }
.qc-modal {
  width: 720px; max-width: calc(100vw - 40px); max-height: calc(100vh - 80px);
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-3);
  display: flex; flex-direction: column; overflow: hidden; animation: qcPop .18s ease;
}
@keyframes qcPop { from { transform: translateY(-8px) scale(.985); opacity: 0; } }
.qc-modal__hd {
  height: 50px; padding: 0 18px; display: flex; align-items: center;
  border-bottom: 1px solid var(--line); flex: none;
}
.qc-modal__title { font-size: 15px; font-weight: 500; }
.qc-modal__close {
  margin-left: auto; width: 28px; height: 28px; display: flex; align-items: center;
  justify-content: center; border-radius: var(--radius); cursor: pointer; color: var(--text-3);
}
.qc-modal__close:hover { background: var(--bg-hover); color: var(--text-1); }
.qc-modal__bd { flex: 1; overflow: auto; padding: 18px; }
.qc-modal__ft {
  height: 58px; padding: 0 18px; display: flex; align-items: center; justify-content: flex-end;
  gap: 8px; border-top: 1px solid var(--line); flex: none; background: #FCFDFF;
}
.qc-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.qc-form-grid .qc-field__label { width: 88px; }
.qc-form-item.span2 { grid-column: 1 / -1; }

.qc-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 560px; max-width: 92vw; background: #fff;
  z-index: 950; box-shadow: var(--shadow-3); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .24s ease;
}
.qc-drawer.is-open { transform: translateX(0); }

/* ---------- 18. 提示 ---------- */
.qc-toast {
  position: fixed; top: 74px; left: 50%; transform: translateX(-50%) translateY(-12px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3); padding: 10px 18px; font-size: 13px; color: var(--text-1);
  display: flex; align-items: center; gap: 8px; z-index: 1200; opacity: 0;
  pointer-events: none; transition: opacity .2s, transform .2s;
}
.qc-toast.is-open { opacity: 1; transform: translateX(-50%) translateY(0); }
.qc-toast svg { width: 16px; height: 16px; }

/* ---------- 19. 统计卡片 ---------- */
.qc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.qc-stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 14px 16px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-1);
}
.qc-stat__ico {
  width: 42px; height: 42px; border-radius: var(--radius-lg); display: flex; align-items: center;
  justify-content: center; background: var(--brand-100); color: var(--brand); flex: none;
}
.qc-stat__ico svg { width: 21px; height: 21px; }
.qc-stat__num { font-size: 22px; font-weight: 700; color: var(--text-1); line-height: 1.2; }
.qc-stat__label { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* ---------- 20. 通用工具 ---------- */
.qc-row { display: flex; align-items: center; gap: 8px; }
.qc-row--between { justify-content: space-between; }
.qc-wrap { flex-wrap: wrap; }
.qc-ml-auto { margin-left: auto; }
.qc-mt12 { margin-top: 12px; }
.qc-grow { flex: 1; min-width: 0; }
.qc-muted { color: var(--text-3); }
.qc-nowrap { white-space: nowrap; }
.qc-center { text-align: center; }
.qc-right { text-align: right; }
.qc-mono { font-variant-numeric: tabular-nums; }
.qc-hide { display: none !important; }

/* 迷你 KPI（报告预览等） */
.qc-mini-kpi {
  min-width: 120px; background: var(--brand-050); border: 1px solid var(--brand-200);
  border-radius: var(--radius-lg); padding: 12px 18px;
}
.qc-mini-kpi__n { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.qc-mini-kpi__l { font-size: 12px; color: var(--text-3); margin-top: 4px; }

/* ---------- 13. 补充：紧凑表格 / 状态标签 / 监控页脚 ---------- */
.qc-tag--muted { background: #F0F3F7; color: #6B7686; }
.qc-table--mini { font-size: 12.5px; }
.qc-table--mini thead th { height: 34px; background: var(--brand-100); border-bottom: 1px solid var(--brand-200); }
.qc-table--mini tbody td { height: 34px; padding: 0 12px; }

/* 实时监控：左侧车辆状态统计页脚 */
.vm-left__ft {
  flex: none; border-top: 1px solid var(--line); padding: 12px 14px 14px; background: var(--bg-page);
}
.vm-ft__t { font-size: 12px; color: var(--text-3); margin-bottom: 10px; font-weight: 500; }
.vm-ft__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.vm-ft__i {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 4px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.vm-ft__n { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.vm-ft__l { font-size: 11px; color: var(--text-3); }

/* 实时监控：主动安全 KPI */
.vm-safety { display: flex; gap: 12px; padding: 12px 14px; flex-wrap: wrap; }
.vm-safety__kpi {
  background: var(--brand-050); border: 1px solid var(--brand-200); border-radius: var(--radius-lg);
  padding: 12px 18px; min-width: 130px;
}
.vm-safety__n { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.vm-safety__l { font-size: 12px; color: var(--text-3); margin-top: 4px; }
