/* ============================================================
   驾考约车管理系统 · 管理端主题
   设计语言：靛蓝主色 + 中性灰，白卡片 / 轻阴影 / 大留白
   ============================================================ */

:root {
  /* 主色 */
  --primary: #3d6bf5;
  --primary-strong: #2b52d9;
  --primary-soft: rgba(61, 107, 245, 0.10);
  --primary-softer: rgba(61, 107, 245, 0.06);
  --grad-primary: linear-gradient(135deg, #4f7cff 0%, #2f56e0 100%);

  /* 语义色 */
  --success: #17b890;
  --warning: #f59e2d;
  --danger: #f05a5a;
  --purple: #8b5cf6;

  /* 中性 */
  --bg-page: #f4f6fb;
  --bg-card: #ffffff;
  --border: #e6eaf2;
  --border-light: #eef1f7;
  --text-main: #26314a;
  --text-regular: #5a6579;
  --text-muted: #98a2b6;

  /* 形状与阴影 */
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-card: 0 1px 2px rgba(23, 37, 84, 0.04), 0 8px 24px rgba(23, 37, 84, 0.06);
  --shadow-pop: 0 12px 40px rgba(23, 37, 84, 0.16);

  /* 侧边栏 */
  --sidebar-bg: linear-gradient(180deg, #1c2544 0%, #16203a 100%);
  --sidebar-text: #9aa7c7;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  background: var(--bg-page);
  color: var(--text-main);
  font-family: "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
#app { min-height: 100vh; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #ccd4e3; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #b3bdd0; }
::-webkit-scrollbar-track { background: transparent; }

/* ============================================================
   登录页
   ============================================================ */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #243163 0%, #2f47a8 45%, #4468e8 100%);
}

/* 装饰层：网格 + 光晕 */
.login-decor { position: absolute; inset: 0; pointer-events: none; }
.login-decor--grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at 50% 35%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 35%, #000 25%, transparent 78%);
}
.login-decor--glow-a {
  background:
    radial-gradient(circle at 18% 22%, rgba(120, 160, 255, 0.35) 0%, transparent 42%),
    radial-gradient(circle at 82% 80%, rgba(96, 128, 255, 0.28) 0%, transparent 45%);
}
.login-decor--glow-b {
  background: radial-gradient(circle at 50% 120%, rgba(255, 255, 255, 0.12) 0%, transparent 55%);
}

.login-main { position: relative; z-index: 1; width: 420px; max-width: calc(100vw - 32px); }
.login-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(10, 22, 62, 0.35);
  padding: 40px 40px 34px;
}
.login-brand { text-align: center; margin-bottom: 28px; }
.login-logo {
  width: 88px;
  height: 88px;
  margin: 0 auto 16px;
  border-radius: 20px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(10, 22, 62, 0.25);
}
.login-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.login-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 1px;
}
.login-sub {
  color: var(--text-muted);
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: 0.5px;
}
.login-form .login-input { margin-bottom: 16px; }
.login-form .el-input__inner {
  height: 44px;
  line-height: 44px;
  border-radius: 10px;
  background: #f7f9fd;
  border: 1px solid #e6ebf5;
  color: var(--text-main);
}
.login-form .el-input__inner:focus {
  background: #fff;
  border-color: var(--primary);
}
.login-form .el-input__prefix { left: 12px; color: var(--text-muted); }
.login-form .el-input--prefix .el-input__inner { padding-left: 38px; }
.login-btn {
  width: 100%;
  height: 44px;
  margin-top: 6px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 8px;
  text-indent: 8px;
  background: var(--grad-primary);
  box-shadow: 0 10px 24px rgba(47, 86, 224, 0.32);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}
.login-btn:hover, .login-btn:focus {
  background: var(--grad-primary);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(47, 86, 224, 0.4);
}
.login-btn:active { transform: translateY(0); }
.login-tip {
  margin-top: 18px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
}
.login-tip i { color: var(--primary); margin-right: 4px; }
.login-footer {
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  margin-top: 22px;
  letter-spacing: 0.5px;
}
.icp-line { margin-top: 4px; }
.icp-link {
  color: inherit;
  text-decoration: none;
  opacity: 0.85;
}
.icp-link:hover { color: var(--primary); opacity: 1; }

/* ============================================================
   主框架布局
   ============================================================ */
.layout { display: flex; min-height: 100vh; }

/* ---- 侧边栏 ---- */
.sidebar {
  width: 224px;
  flex-shrink: 0;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 18px;
}
.brand-logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 11px;
  background: var(--grad-primary);
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(47, 86, 224, 0.4);
}
.brand-name {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.brand-sub {
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  margin-top: 3px;
  letter-spacing: 1px;
}
.sidebar-foot {
  margin-top: auto;
  padding: 14px 20px 18px;
  color: rgba(255, 255, 255, 0.28);
  font-size: 11px;
  letter-spacing: 1px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* 侧边菜单 */
.side-menu { border-right: none; background: transparent !important; padding: 4px 12px 8px; }
.side-menu .el-menu-item {
  height: 46px;
  line-height: 46px;
  margin: 4px 0;
  border-radius: 10px;
  border-left: 3px solid transparent;
  font-size: 14px;
  transition: background 0.18s ease, color 0.18s ease;
}
.side-menu .el-menu-item i {
  color: inherit;
  margin-right: 8px;
  font-size: 16px;
  width: 18px;
  text-align: center;
}
.side-menu .el-menu-item:hover {
  background-color: rgba(255, 255, 255, 0.07) !important;
  color: #e8edfb !important;
}
.side-menu .el-menu-item.is-active {
  background: linear-gradient(90deg, rgba(79, 124, 255, 0.28), rgba(79, 124, 255, 0.10)) !important;
  color: #ffffff !important;
  border-left-color: #6d8dff;
  font-weight: 600;
}
.side-menu .el-menu-item.is-active i { color: #8fabff; }

/* ---- 主区域 ---- */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 62px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-shadow: 0 1px 0 rgba(23, 37, 84, 0.06), 0 6px 18px rgba(23, 37, 84, 0.05);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar-left { display: flex; align-items: center; }
.topbar-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
  position: relative;
  padding-left: 12px;
}
.topbar-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 16px;
  border-radius: 4px;
  background: var(--grad-primary);
}
.topbar-user { display: flex; align-items: center; gap: 10px; }
.role-tag {
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.uname { color: var(--text-regular); font-weight: 500; }
.uname-link { cursor: pointer; }
.uname-link:hover { color: var(--primary); }
.profile-avatar-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.profile-avatar {
  width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: var(--bg-light, #eef1f8); display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 28px;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-avatar-act .tip { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.logout-btn {
  color: var(--text-muted);
  font-weight: 500;
  padding: 0 4px;
}
.logout-btn:hover { color: var(--primary); }

.content { padding: 20px; flex: 1; }

/* ============================================================
   通用卡片
   ============================================================ */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}
.card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 16px;
  padding-left: 10px;
  position: relative;
}
.card-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  border-radius: 3px;
  background: var(--grad-primary);
}
.page-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 14px;
}

/* 筛选区 / 工具条 */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.filter-bar .el-input, .filter-bar .el-select { width: 180px; }
.filter-bar .wide { width: 240px; }
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  align-items: center;
}
.toolbar .spacer { flex: 1; }

/* ============================================================
   统计卡片
   ============================================================ */
.stat-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}
.stat-card {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-width: 170px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: 0 1px 2px rgba(23, 37, 84, 0.04);
}
.stat-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--grad-primary);
  opacity: 0.85;
}
.stat-card .icon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: var(--primary-soft);
  color: var(--primary);
}
.stat-card .icon.green { background: rgba(23, 184, 144, 0.12); color: var(--success); }
.stat-card .icon.orange { background: rgba(245, 158, 45, 0.14); color: var(--warning); }
.stat-card .icon.red { background: rgba(240, 90, 90, 0.12); color: var(--danger); }
.stat-card .icon.purple { background: rgba(139, 92, 246, 0.12); color: var(--purple); }
.stat-card .label {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 10px;
}
.stat-card .num {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
}
.stat-card .num.green { color: var(--success); }
.stat-card .num.orange { color: var(--warning); }
.stat-card .num.red { color: var(--danger); }
.stat-card .num.purple { color: var(--purple); }

/* 图表 */
.chart-box { width: 100%; height: 320px; }
.chart-col { display: flex; gap: 16px; }
.chart-col > .card { flex: 1; min-width: 0; }

/* ============================================================
   表格
   ============================================================ */
.el-table { color: var(--text-regular); }
.el-table th.el-table__cell {
  background: #f6f8fc;
  color: #55617a;
  font-weight: 600;
  border-bottom: 1px solid var(--border-light);
}
.el-table td.el-table__cell { border-bottom: 1px solid var(--border-light); }
.el-table--border, .el-table--border th.el-table__cell, .el-table--border td.el-table__cell {
  border-right: 1px solid var(--border-light);
}
.el-table--border { border: 1px solid var(--border); border-radius: 8px; }
.el-table::before { background: var(--border-light); }
.el-table .el-table__body tr:nth-child(even) > td.el-table__cell { background: #fafbfe; }
.el-table .el-table__body tr:hover > td.el-table__cell { background: var(--primary-softer); }
.el-table .el-table__body tr.current-row > td.el-table__cell { background: var(--primary-soft); }
.el-table__empty-text { color: var(--text-muted); }
.el-table .el-button--text { font-weight: 500; }

/* 空状态 */
.el-table__empty-block { background: #fcfdff; }
.el-table__empty-text i { display: block; font-size: 40px; color: #c9d2e3; margin-bottom: 10px; }
.table-tip { color: var(--text-muted); font-size: 13px; margin-bottom: 10px; }

/* ============================================================
   表单 / 弹窗
   ============================================================ */
.form-two-col .el-form-item { width: 48%; }
.dialog-foot { text-align: right; }
.dialog-foot .el-button + .el-button { margin-left: 10px; }

.el-form-item__label { color: var(--text-regular); font-weight: 500; }
.el-input__inner {
  border-radius: var(--radius-sm);
  border-color: var(--border);
  color: var(--text-main);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.el-input__inner:hover, .el-textarea__inner:hover { border-color: #c3cde0; }
.el-input__inner:focus, .el-textarea__inner:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.el-textarea__inner { border-radius: var(--radius-sm); }
.el-input-group__append, .el-input-group__prepend {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: #f6f8fc;
}
.el-select .el-input.is-focus .el-input__inner { border-color: var(--primary); }
.el-date-editor .el-range-input { color: var(--text-main); }
.el-date-editor .el-range-separator { color: var(--text-muted); }
.el-input__icon { color: var(--text-muted); }

.el-dialog {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-pop);
}
.el-dialog__header {
  padding: 18px 24px 14px;
  border-bottom: 1px solid var(--border-light);
  font-weight: 600;
}
.el-dialog__title { font-size: 16px; font-weight: 600; color: var(--text-main); }
.el-dialog__body { padding: 22px 24px; color: var(--text-regular); }
.el-dialog__footer {
  padding: 14px 24px 18px;
  border-top: 1px solid var(--border-light);
  background: #fbfcfe;
}
/* 个人信息弹窗在可视区域居中，内容超高时仅滚动正文 */
.profile-dialog-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-dialog-wrapper .el-dialog {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 40px);
  margin: 0 !important;
}
.profile-dialog-wrapper .el-dialog__header,
.profile-dialog-wrapper .el-dialog__footer { flex-shrink: 0; }
.profile-dialog-wrapper .el-dialog__body {
  min-height: 0;
  overflow-y: auto;
}
/* 车辆预约规则弹窗内容超高时仅滚动正文 */
.vehicle-rule-dialog-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}
.vehicle-rule-dialog-wrapper .el-dialog {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 40px);
  margin: 0 !important;
}
.vehicle-rule-dialog-wrapper .el-dialog__header,
.vehicle-rule-dialog-wrapper .el-dialog__footer { flex-shrink: 0; }
.vehicle-rule-dialog-wrapper .el-dialog__body {
  min-height: 0;
  overflow-y: auto;
}
.el-message-box {
  border-radius: 12px;
  border: none;
  box-shadow: var(--shadow-pop);
}
.el-message-box__title { font-weight: 600; }

.el-drawer__header {
  padding: 18px 24px 14px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-main);
  font-weight: 600;
}
.el-drawer__body { padding: 20px 24px; }

/* 按钮 */
.el-button {
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: all 0.18s ease;
}
.el-button--primary {
  background: var(--grad-primary);
  border: none;
  box-shadow: 0 6px 14px rgba(47, 86, 224, 0.24);
}
.el-button--primary:hover, .el-button--primary:focus {
  background: var(--grad-primary);
  border: none;
  opacity: 0.92;
  box-shadow: 0 10px 20px rgba(47, 86, 224, 0.32);
  transform: translateY(-1px);
}
.el-button--success {
  background: linear-gradient(135deg, #23c99b, #12a97e);
  border: none;
  box-shadow: 0 6px 14px rgba(18, 169, 126, 0.22);
}
.el-button--success:hover, .el-button--success:focus {
  background: linear-gradient(135deg, #23c99b, #12a97e);
  border: none;
  opacity: 0.92;
}
.el-button--danger {
  background: linear-gradient(135deg, #f47070, #e24b4b);
  border: none;
  box-shadow: 0 6px 14px rgba(226, 75, 75, 0.22);
}
.el-button--danger:hover, .el-button--danger:focus {
  background: linear-gradient(135deg, #f47070, #e24b4b);
  border: none;
  opacity: 0.92;
}
.el-button--warning {
  background: linear-gradient(135deg, #f8b25c, #ea9236);
  border: none;
}
.el-button--default {
  border-color: var(--border);
  color: var(--text-regular);
  background: #fff;
  box-shadow: 0 1px 2px rgba(23, 37, 84, 0.04);
}
.el-button--default:hover, .el-button--default:focus {
  color: var(--primary);
  border-color: rgba(61, 107, 245, 0.5);
  background: var(--primary-softer);
}
.el-button--text { color: var(--primary); padding: 0 4px; }
.el-button--text:hover { color: var(--primary-strong); }
.el-button.is-round { border-radius: 999px; }

/* 单选 / 多选 / 开关 */
.el-radio__input.is-checked .el-radio__inner {
  border-color: var(--primary);
  background: var(--primary);
}
.el-radio__input.is-checked + .el-radio__label { color: var(--primary); }
.el-checkbox__input.is-checked .el-checkbox__inner,
.el-checkbox__input.is-indeterminate .el-checkbox__inner {
  border-color: var(--primary);
  background: var(--primary);
}
.el-checkbox__input.is-checked + .el-checkbox__label { color: var(--primary); }
.el-switch.is-checked .el-switch__core {
  border-color: var(--primary);
  background: var(--primary);
}
.el-radio-button__orig-radio:checked + .el-radio-button__inner {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: -1px 0 0 0 var(--primary);
}

/* 标签 Tag：状态绿/橙/红/灰 */
.el-tag {
  border-radius: 999px;
  border: none;
  font-weight: 500;
  letter-spacing: 0.3px;
}
/* 默认（primary 风格）在前，语义变体覆盖在后 */
.el-tag { background: rgba(61, 107, 245, 0.12); color: var(--primary-strong); }
.el-tag--success { background: rgba(23, 184, 144, 0.14); color: #11916f; }
.el-tag--warning { background: rgba(245, 158, 45, 0.16); color: #c47a12; }
.el-tag--danger { background: rgba(240, 90, 90, 0.14); color: #d14343; }
.el-tag--info { background: rgba(152, 162, 182, 0.16); color: #77839a; }

/* 分页 */
.pagination-bar { margin-top: 16px; text-align: right; }
.el-pagination.is-background .el-pager li {
  border-radius: 6px;
  font-weight: 500;
  min-width: 28px;
}
.el-pagination.is-background .el-pager li:not(.disabled).active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 10px rgba(61, 107, 245, 0.3);
}
.el-pagination.is-background .btn-prev, .el-pagination.is-background .btn-next {
  border-radius: 6px;
}
.el-pagination button:disabled { color: #c0c6d4; }
.el-pagination__total { color: var(--text-muted); }
.el-pagination__jump { color: var(--text-muted); }

/* Tabs */
.el-tabs__item { color: var(--text-regular); font-weight: 500; }
.el-tabs__item.is-active { color: var(--primary); }
.el-tabs__active-bar {
  background: var(--grad-primary);
  height: 3px;
  border-radius: 3px;
}
.el-tabs__nav-wrap::after { background: var(--border-light); height: 1px; }

/* Alert / Message / Loading */
.el-alert { border-radius: var(--radius-sm); border: none; }
.el-alert--warning { background: rgba(245, 158, 45, 0.12); color: #b4710f; }
.el-alert--success { background: rgba(23, 184, 144, 0.12); color: #11916f; }
.el-alert--error { background: rgba(240, 90, 90, 0.12); color: #cf4242; }
.el-alert--info { background: rgba(61, 107, 245, 0.10); color: var(--primary-strong); }
.el-message {
  border: none;
  border-radius: 10px;
  box-shadow: var(--shadow-pop);
  padding: 12px 18px;
}
.el-loading-mask { background: rgba(255, 255, 255, 0.65); }
.el-loading-spinner .el-loading-text { color: var(--primary); }

/* 下拉菜单 */
.el-dropdown-menu {
  border: none;
  border-radius: 10px;
  box-shadow: var(--shadow-pop);
  padding: 6px;
}
.el-dropdown-menu__item { border-radius: 6px; }
.el-dropdown-menu__item:not(.is-disabled):hover {
  background: var(--primary-softer);
  color: var(--primary);
}

/* 分割线 / 提示文本 */
.el-divider__text {
  color: var(--text-muted);
  font-size: 12px;
  background: #fff;
}
.el-divider--horizontal { margin: 22px 0 18px; }
.tip { color: var(--text-muted); font-size: 12px; }

/* 文本块 */
.pre-block {
  background: #f7f9fd;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  max-height: 320px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-all;
  font-size: 13px;
  color: var(--text-regular);
  line-height: 1.8;
  font-family: Consolas, "Courier New", monospace;
}

/* 详情 */
.detail-item { margin-bottom: 10px; display: flex; }
.detail-item .k {
  width: 110px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.detail-item .v { color: var(--text-main); word-break: break-all; }
.mt0 { margin-top: 0; }

/* 低课时预警条 */
.warn-line { margin-bottom: 12px; }
.warn-line-click { cursor: pointer; }

/* ============ 车辆预约看板（淡色科技感） ============ */
.bb {
  --bb-bg: #f5f8fc;
  --bb-panel: #ffffff;
  --bb-line: #e4e9f2;
  --bb-cyan: #409eff;
  --bb-teal: #36cfc9;
  --bb-text: #303133;
  --bb-text-dim: #909399;
  --bb-glow: 0 0 0 1px rgba(64, 158, 255, .4), 0 10px 26px -12px rgba(64, 158, 255, .45);
  background:
    radial-gradient(1000px 260px at 85% -80px, rgba(64, 158, 255, .10), transparent),
    radial-gradient(800px 220px at 5% -60px, rgba(54, 207, 201, .08), transparent),
    linear-gradient(180deg, #f2f7fd, var(--bb-bg));
  border: 1px solid #e4e9f2;
  border-radius: 10px;
  padding: 18px;
  color: var(--bb-text);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 102px);
  overflow: hidden;
}

/* 顶部标题 + 日期控制 */
.bb-hero { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; flex: none; gap: 12px; padding: 4px 6px 16px; }
.bb-title {
  font-size: 20px; font-weight: 700; letter-spacing: 1px;
  background: linear-gradient(90deg, #1d4ed8, #0e7490);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bb-sub { font-size: 12px; color: var(--bb-text-dim); letter-spacing: 1px; margin-top: 4px; }
.bb-date-ctrl { display: flex; align-items: center; gap: 8px; }
.bb-nav-btn, .bb-today-btn {
  height: 32px; min-width: 32px; border-radius: 6px; cursor: pointer;
  border: 1px solid #dcdfe6; background: #fff; color: #606266;
  transition: all .2s;
}
.bb-today-btn { padding: 0 12px; }
.bb-nav-btn:hover, .bb-today-btn:hover { border-color: var(--bb-cyan); color: var(--bb-cyan); box-shadow: 0 2px 10px rgba(64, 158, 255, .25); }

/* 主体：左车辆栏 + 右时段区 */
.bb-body { display: flex; flex: 1; min-height: 0; gap: 16px; align-items: stretch; overflow: hidden; }
.bb-rail {
  width: 292px; flex: none; display: flex; flex-direction: column; min-height: 0;
  border: 1px solid var(--bb-line); border-radius: 10px;
  background: var(--bb-panel); padding: 12px; box-shadow: 0 2px 12px rgba(31, 45, 61, .05);
}
.bb-rail-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; font-weight: 700; letter-spacing: 1px; color: var(--bb-text-dim); padding: 2px 4px 10px;
}
.bb-rail-count { font-size: 12px; color: var(--bb-cyan); }
.bb-rail-list { display: flex; flex: 1; flex-direction: column; gap: 10px; min-height: 0; overflow-y: auto; padding-right: 4px; }

/* 车辆卡片 */
.bb-car {
  position: relative; flex: none; border: 1px solid var(--bb-line); border-radius: 10px;
  padding: 10px 12px 8px; cursor: pointer; background: #fafcfe;
  transition: border-color .2s, box-shadow .25s;
}
.bb-car:hover { border-color: rgba(64, 158, 255, .5); box-shadow: 0 8px 20px -8px rgba(64, 158, 255, .35); }
.bb-car.on { border-color: var(--bb-cyan); box-shadow: var(--bb-glow); background: #ecf5ff; }
/* 车辆图片 + 文字叠加（百分比由 OpenCV 实测图片 2048x2048 得出） */
.bb-car-img { position: relative; width: 100%; }
.bb-car-photo { width: 100%; height: auto; display: block; border-radius: 6px; }
.bb-car-roof {
  position: absolute; left: 50.51%; top: 23.66%; transform: translate(-50%, -50%);
  width: 28%; text-align: center; line-height: 1;
  font-size: 14px; font-weight: 700; color: #0b3d91; letter-spacing: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bb-car-plate {
  position: absolute; left: 49.98%; top: 71.2%; transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  width: 38%; height: 6.5%; text-align: center; line-height: 1;
  font-size: 13px; font-weight: 700; color: #0f172a; letter-spacing: .5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bb-car-meta { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 4px 0; }
.bb-car-name { font-size: 14px; font-weight: 700; color: var(--bb-text); }
.bb-car-type { font-size: 12px; color: var(--bb-text-dim); }
.bb-car-dot {
  position: absolute; top: 10px; right: 10px; width: 8px; height: 8px; border-radius: 50%;
  background: #dcdfe6; transition: all .2s;
}
.bb-car.on .bb-car-dot { background: var(--bb-cyan); box-shadow: 0 0 6px rgba(64, 158, 255, .8); }
.bb-empty-mini { text-align: center; color: var(--bb-text-dim); font-size: 13px; padding: 24px 0; }

/* 右侧时段区 */
.bb-main { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.bb-summary {
  display: flex; flex: none; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  border: 1px solid var(--bb-line); border-radius: 10px; background: var(--bb-panel);
  box-shadow: 0 2px 12px rgba(31, 45, 61, .05);
  padding: 10px 16px; margin-bottom: 14px;
}
.bb-summary-car { display: flex; align-items: center; gap: 10px; }
.bb-summary-no { font-size: 16px; font-weight: 700; letter-spacing: 1px; }
.bb-plate {
  font-size: 12px; font-weight: 700; color: #fff; letter-spacing: 1px;
  background: linear-gradient(180deg, #1d4ed8, #0b3d91);
  border: 1px solid rgba(226, 232, 240, .6); border-radius: 4px; padding: 2px 8px;
}
.bb-summary-date { font-size: 13px; color: var(--bb-text-dim); }
.bb-summary-stats { display: flex; gap: 8px; }
.bb-chip {
  font-size: 12px; color: var(--bb-text-dim); border: 1px solid var(--bb-line);
  border-radius: 999px; padding: 4px 12px; background: #f7f9fc;
}
.bb-chip b { color: var(--bb-text); }
.bb-c-cyan { color: var(--bb-cyan) !important; }

/* 时段卡片 */
.bb-slots {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  flex: 1; align-content: start; gap: 12px; min-height: 0; overflow-y: auto;
  padding-right: 4px; padding-bottom: 2px;
}
.bb-slot {
  border: 1px solid var(--bb-line); border-radius: 10px; padding: 12px 14px;
  background: var(--bb-panel); transition: border-color .2s, box-shadow .2s;
}
.bb-slot.st-ok { border-color: rgba(64, 158, 255, .45); }
.bb-slot.st-ok:hover { box-shadow: 0 6px 20px -8px rgba(64, 158, 255, .4); }
.bb-slot.st-full { border-color: rgba(230, 162, 60, .5); }
.bb-slot.st-off { opacity: .6; background: #fafafa; }
.bb-slot-head { display: flex; justify-content: space-between; align-items: center; }
.bb-slot-time { font-size: 15px; font-weight: 700; letter-spacing: .5px; }
.bb-slot-time i { color: var(--bb-cyan); margin-right: 6px; }
.bb-status { font-size: 12px; font-weight: 700; }
.st-ok .bb-status { color: var(--bb-cyan); }
.st-full .bb-status { color: #e6a23c; }
.st-off .bb-status { color: var(--bb-text-dim); }
/* 按时间维度：练车完成 / 练车中 / 待练车 */
.st-done { opacity: .72; background: #f7f8fa; }
.st-done .bb-status { color: #909399; }
.st-doing { border-color: rgba(103, 194, 58, .55); box-shadow: 0 0 0 1px rgba(103, 194, 58, .15); }
.st-doing .bb-status { color: #67c23a; }
.st-doing .bb-cap-fill { background: linear-gradient(90deg, #67c23a, #85ce61); }
.st-todo { border-color: rgba(64, 158, 255, .45); }
.st-todo .bb-status { color: var(--bb-cyan); }

/* 学员行内操作按钮 */
.bb-ops { display: flex; gap: 2px; margin-left: auto; }
.bb-ops .el-button { padding: 4px 6px; }

/* 容量条 */
.bb-cap { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.bb-cap-bar {
  flex: 1; height: 6px; border-radius: 3px; overflow: hidden;
  background: #ebeef5;
}
.bb-cap-fill {
  height: 100%; border-radius: 3px; transition: width .4s;
  background: linear-gradient(90deg, var(--bb-cyan), var(--bb-teal));
}
.bb-cap-text { font-size: 12px; color: var(--bb-text-dim); white-space: nowrap; }

/* 学员列表 */
.bb-students { display: flex; flex-direction: column; gap: 8px; }
.bb-stu {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid #ebeef5; border-radius: 8px; padding: 7px 10px;
  background: #f7f9fc;
}
.bb-ava {
  width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--bb-cyan), var(--bb-teal));
  color: #fff; font-size: 14px; font-weight: 700; font-style: normal;
}
.bb-ava img { width: 100%; height: 100%; object-fit: cover; }
.bb-ava i { font-style: normal; }
.bb-stu-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bb-stu-info b { font-size: 13px; color: var(--bb-text); }
.bb-stu-info em { font-style: normal; font-size: 12px; color: var(--bb-text-dim); }
.bb-stu-empty { text-align: center; color: #c0c4cc; font-size: 12px; padding: 10px 0 4px; }

.bb-empty {
  grid-column: 1 / -1; text-align: center; color: var(--bb-text-dim); padding: 60px 0;
}
.bb-empty i { font-size: 40px; color: #c0c4cc; }
.bb-empty p { margin-top: 10px; font-size: 13px; }
