/* ==========================================================================
   通用中后台 · 基于 Arco Design 的静态后台模板
   布局骨架 + 主题扩展。组件样式全部来自 Arco，此文件只负责
   「布局 / 品牌色 / 明暗适配 / 业务小卡片」，不覆盖 Arco 组件默认外观。
   ========================================================================== */

/* ---------- 1. 语义变量：明暗两套 ---------- */
:root {
  --app-brand: #165dff;
  --app-brand-weak: rgba(22, 93, 255, 0.1);
  --app-brand-line: rgba(22, 93, 255, 0.24);
  --app-header-h: 60px;
  --app-tabs-h: 44px;
  --app-sider-w: 220px;
  --app-sider-mini-w: 48px;
  --app-footer-h: 48px;
  --app-pad: 16px;
}

body {
  --app-page-bg: #f4f5f7;
  --app-surface: #ffffff;
  --app-surface-2: #f7f8fa;
  --app-line: #e5e6eb;
  --app-line-soft: #f2f3f5;
  --app-card-shadow: 0 1px 2px rgba(0, 0, 0, 0.03), 0 4px 12px rgba(0, 0, 0, 0.03);
}

body[arco-theme='dark'] {
  --app-page-bg: #141416;
  --app-surface: #232324;
  --app-surface-2: #2a2a2b;
  --app-line: #333335;
  --app-line-soft: #2a2a2b;
  --app-card-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.2);
  --app-brand-weak: rgba(22, 93, 255, 0.18);
}

/* ---------- 2. 基础重置 ---------- */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background: var(--app-page-bg);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: var(--color-text-1);
  overflow: hidden;
}

#app {
  height: 100%;
}

* {
  box-sizing: border-box;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  background: var(--color-fill-4);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-4);
}

::-webkit-scrollbar-track {
  background: transparent;
}

/* ---------- 3. 整体骨架 ---------- */
.app-layout {
  display: flex;
  height: 100%;
  overflow: hidden;
}

/* 侧边栏 */
.app-sider {
  width: var(--app-sider-w);
  flex: 0 0 var(--app-sider-w);
  height: 100%;
  background: var(--app-surface);
  border-right: 1px solid var(--app-line);
  display: flex;
  flex-direction: column;
  transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    flex-basis 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  z-index: 20;
}

.app-layout.is-collapsed .app-sider {
  width: var(--app-sider-mini-w);
  flex-basis: var(--app-sider-mini-w);
}

/* 左头部区（2026-09-15 拍板）：不放图标 / 蓝色方块 —— 只剩「系统名称 + Admin Console」两行文字。
   折叠态（48px）本区留空，仅保留一条可点击回工作台的空白条。 */
.app-logo {
  height: var(--app-header-h);
  flex: 0 0 var(--app-header-h);
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-bottom: 1px solid var(--app-line);
  white-space: nowrap;
  cursor: pointer;
}

.app-logo-text {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.15;
  overflow: hidden;
}

/* 系统名称来自配置项、长度不可控 → 单行省略，避免撑破 220px 侧栏 */
.app-logo-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--color-text-1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-logo-sub {
  font-size: 10px;
  letter-spacing: 1.4px;
  color: var(--color-text-4);
  text-transform: uppercase;
}

.app-layout.is-collapsed .app-logo-text {
  display: none;
}

.app-menu-wrap {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 0 16px;
}

.app-menu-wrap .arco-menu {
  border-radius: 0;
}

.app-sider-foot {
  flex: 0 0 auto;
  padding: 10px 12px;
  border-top: 1px solid var(--app-line);
  font-size: 11px;
  color: var(--color-text-4);
  white-space: nowrap;
  overflow: hidden;
}

/* 主区 */
.app-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* 顶栏 */
.app-header {
  height: var(--app-header-h);
  flex: 0 0 var(--app-header-h);
  background: var(--app-surface);
  border-bottom: 1px solid var(--app-line);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px 0 12px;
  z-index: 15;
}

.app-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.app-header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-2);
  cursor: pointer;
  transition: all 0.16s;
  font-size: 16px;
  border: none;
  background: transparent;
  padding: 0;
}

.icon-btn:hover {
  background: var(--color-fill-2);
  color: var(--app-brand);
}

.app-header-divider {
  width: 1px;
  height: 20px;
  background: var(--app-line);
  margin: 0 6px;
}

.app-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 4px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.16s;
}

.app-user:hover {
  background: var(--color-fill-2);
}

.app-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--app-brand);
  color: #fff;
  flex: 0 0 30px;
}

.app-user-avatar svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.app-user-name {
  font-size: 13px;
  color: var(--color-text-1);
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 页签栏 */
.app-tabs {
  height: var(--app-tabs-h);
  flex: 0 0 var(--app-tabs-h);
  background: var(--app-surface);
  border-bottom: 1px solid var(--app-line);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  overflow-x: auto;
  overflow-y: hidden;
}

.app-tabs::-webkit-scrollbar {
  height: 0;
}

.app-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 8px 0 10px;
  border-radius: 13px;
  font-size: 12px;
  color: var(--color-text-2);
  background: var(--app-surface-2);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  flex: 0 0 auto;
  transition: all 0.16s;
}

.app-tab:hover {
  color: var(--app-brand);
}

.app-tab.is-active {
  background: var(--app-brand-weak);
  color: var(--app-brand);
  border-color: var(--app-brand-line);
}

.app-tab-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}

.app-tab-close {
  font-size: 12px;
  opacity: 0.55;
  border-radius: 50%;
  display: inline-flex;
}

.app-tab-close:hover {
  opacity: 1;
  color: #f53f3f;
}

/* 内容区 */
.app-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--app-pad);
  background: var(--app-page-bg);
}

.app-page {
  animation: appFadeUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes appFadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.app-footer {
  padding: 16px 0 8px;
  text-align: center;
  font-size: 12px;
  color: var(--color-text-4);
  line-height: 1.8;
}

/* ---------- 4. 通用业务面板 ---------- */
.panel {
  background: var(--app-surface);
  border-radius: 8px;
  border: 1px solid var(--app-line-soft);
  box-shadow: var(--app-card-shadow);
  overflow: hidden;
}

.panel + .panel {
  margin-top: var(--app-pad);
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--app-line-soft);
}

.panel-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-1);
}

.panel-sub {
  font-size: 12px;
  color: var(--color-text-4);
}

.panel-extra {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-body {
  padding: 18px;
}

.panel-body.is-flush {
  padding: 0;
}

.bar-title {
  position: relative;
  padding-left: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-1);
}

.bar-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--app-brand);
}

/* 面板内 HTML 图例
   不使用 echarts 内置图例：容器宽度变化（如收起侧栏）时它的图例不会可靠重排，
   会停留在按旧宽度计算的位置，因此统一改用 HTML 图例。 */
.chart-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--color-text-3);
  flex-wrap: wrap;
}

.chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.chart-legend-item > i,
.chart-legend-row > i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex: 0 0 10px;
}

.chart-legend-list {
  margin-top: 14px;
  border-top: 1px dashed var(--app-line);
  padding-top: 10px;
}

.chart-legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 12.5px;
}

.chart-legend-name {
  color: var(--color-text-2);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-legend-value {
  color: var(--color-text-1);
  font-variant-numeric: tabular-nums;
}

.chart-legend-pct {
  width: 48px;
  text-align: right;
  color: var(--color-text-4);
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--color-text-3);
}

.dim {
  color: var(--color-text-4);
  font-size: 12px;
}

/* 正文色小字：与 .dim **同字号（12px）但不置灰**。
   用于表格里的「说明 / 配置项说明」列 —— 2026-09-23 用户要求这两列文字改黑、字号不变。
   ⇒ 只替换列内的 class，**别改 .dim 本身**（全站几十处仍靠它保持浅灰）。 */
.note {
  color: var(--color-text-1);
  font-size: 12px;
}

.mono {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 12px;
}

.mt-16 {
  margin-top: 16px;
}

.mb-16 {
  margin-bottom: 16px;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gap-8 {
  gap: 8px;
}

/* 欢迎横幅 */
.welcome {
  position: relative;
  border-radius: 10px;
  padding: 22px 24px;
  margin-bottom: var(--app-pad);
  overflow: hidden;
  color: #fff;
  background: linear-gradient(120deg, #165dff 0%, #2f6bff 42%, #0fc6c2 100%);
}

.welcome::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.welcome::before {
  content: '';
  position: absolute;
  right: 90px;
  bottom: -110px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.welcome-inner {
  position: relative;
  z-index: 1;
}

.welcome-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 6px;
}

.welcome-desc {
  font-size: 13px;
  opacity: 0.85;
  margin: 0 0 14px;
}

.welcome .arco-tag {
  margin-right: 8px;
}

/* 横幅上的快捷入口胶囊 */
.welcome-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.welcome-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 12px;
  border-radius: 13px;
  font-size: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(2px);
  transition: background 0.16s;
  cursor: default;
}

.welcome-chip:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* 监控页指标格 */
.metric-cell {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.metric-ring {
  flex: 0 0 82px;
  width: 82px;
  height: 82px;
  line-height: 0;
}

.metric-info {
  flex: 1;
  min-width: 0;
}

.metric-info .stat-label {
  margin-bottom: 2px;
  white-space: nowrap;
}

/* 指标卡 */
.stat-card {
  background: var(--app-surface);
  border-radius: 8px;
  border: 1px solid var(--app-line-soft);
  box-shadow: var(--app-card-shadow);
  padding: 18px;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

body[arco-theme='dark'] .stat-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.stat-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.stat-label {
  font-size: 13px;
  color: var(--color-text-3);
  margin-bottom: 8px;
}

.stat-value {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--color-text-1);
  font-variant-numeric: tabular-nums;
}

.stat-unit {
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-3);
  margin-left: 4px;
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex: 0 0 40px;
}

.stat-foot {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--app-line);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--color-text-3);
}

.trend-up,
.trend-down {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: 600;
}

/* A股/国内习惯：涨红跌绿 */
.trend-up {
  color: #f53f3f;
}

.trend-down {
  color: #00b42a;
}

/* 迷你进度条 */
.mini-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--color-fill-3);
  overflow: hidden;
  margin-top: 10px;
}

.mini-bar > i {
  display: block;
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s;
}

/* 待办列表 */
.todo-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--app-line-soft);
}

.todo-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.todo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  flex: 0 0 8px;
}

.todo-main {
  flex: 1;
  min-width: 0;
}

.todo-text {
  font-size: 13px;
  color: var(--color-text-1);
  margin-bottom: 3px;
}

.todo-text.is-done {
  text-decoration: line-through;
  color: var(--color-text-4);
}

/* 时间线日志 */
.log-list {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 4px;
}

.log-row {
  display: flex;
  gap: 10px;
  padding: 9px 0 9px 4px;
  border-bottom: 1px dashed var(--app-line-soft);
  font-size: 12.5px;
  align-items: baseline;
}

.log-time {
  color: var(--color-text-4);
  flex: 0 0 62px;
  font-variant-numeric: tabular-nums;
}

.log-tag {
  flex: 0 0 52px;
}

.log-text {
  color: var(--color-text-2);
  flex: 1;
  min-width: 0;
  word-break: break-all;
}

/* 商品卡 */
.goods-card {
  background: var(--app-surface);
  border: 1px solid var(--app-line-soft);
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}

.goods-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

body[arco-theme='dark'] .goods-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.goods-thumb {
  height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  color: rgba(255, 255, 255, 0.95);
  position: relative;
}

.goods-badge {
  position: absolute;
  left: 10px;
  top: 10px;
}

.goods-body {
  padding: 12px 14px 14px;
}

.goods-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-1);
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.goods-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--color-text-4);
  margin-bottom: 10px;
}

.goods-price {
  color: #f53f3f;
  font-size: 16px;
  font-weight: 600;
}

.goods-price small {
  font-size: 12px;
  font-weight: 400;
}

/* 个人中心 */
.profile-hero {
  border-radius: 8px;
  padding: 24px 20px;
  text-align: center;
  background: linear-gradient(140deg, rgba(22, 93, 255, 0.1), rgba(15, 198, 194, 0.08));
  border: 1px solid var(--app-line-soft);
}

.profile-name {
  font-size: 16px;
  font-weight: 600;
  margin: 12px 0 4px;
  color: var(--color-text-1);
}

.profile-role {
  font-size: 12px;
  color: var(--color-text-3);
  margin-bottom: 12px;
}

.profile-stats {
  display: flex;
  border-top: 1px solid var(--app-line);
  margin-top: 16px;
  padding-top: 14px;
}

.profile-stat {
  flex: 1;
  text-align: center;
}

.profile-stat b {
  display: block;
  font-size: 17px;
  color: var(--color-text-1);
}

.profile-stat span {
  font-size: 12px;
  color: var(--color-text-4);
}

.form-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-2);
  margin-bottom: 8px;
}

/* 通知浮层 */
.pop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--app-line-soft);
  font-size: 13px;
}

.pop-list {
  max-height: 320px;
  overflow-y: auto;
}

.pop-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--app-line-soft);
}

.pop-item:last-child {
  border-bottom: none;
}

.pop-item-title {
  font-size: 13px;
  color: var(--color-text-1);
  margin-bottom: 3px;
  line-height: 1.4;
}

/* 状态点 */
.status-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-2);
}

.status-cell > i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: 0 0 7px;
}

/* 实时采集徽标 */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 12px;
  font-size: 12px;
  color: #00b42a;
  background: rgba(0, 180, 42, 0.12);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00b42a;
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(0, 180, 42, 0.5);
  }
  50% {
    opacity: 0.6;
    box-shadow: 0 0 0 5px rgba(0, 180, 42, 0);
  }
}

/* 空状态占位 */
.app-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 70px 20px;
  gap: 14px;
  text-align: center;
}

.app-placeholder-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--app-brand);
  background: var(--app-brand-weak);
}

/* ---------- 5. Arco 局部微调 ---------- */
.app-menu-wrap .arco-menu-inner {
  padding: 4px 8px;
  overflow-y: auto;
}

.app-menu-wrap .arco-menu-item,
.app-menu-wrap .arco-menu-inline-header {
  border-radius: 6px !important;
  margin-bottom: 2px;
  /* 2026-09-16 拍板：栏目高度 38 → 48px（一级 + 二级同步，用户要求整体加高 10px）。
     ⚠️ line-height 与 height 必须同改，否则文字垂直居中会偏。 */
  line-height: 48px;
  height: 48px;
}

.app-menu-wrap .arco-menu-item.arco-menu-selected {
  background: var(--app-brand-weak);
  color: var(--app-brand);
  font-weight: 500;
}

.app-menu-wrap .arco-menu-item.arco-menu-selected::after {
  display: none;
}

.app-menu-wrap .arco-menu-icon {
  margin-right: 10px;
}

.arco-table-td .arco-btn-text {
  padding: 0 6px;
  height: 24px;
  font-size: 13px;
}

.arco-card {
  border-radius: 8px;
}

.arco-layout-sider {
  background: var(--app-surface);
}

/* 表格内主信息单元 */
.cell-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cell-user-name {
  font-size: 13px;
  color: var(--color-text-1);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cell-user-mail {
  font-size: 12px;
  color: var(--color-text-4);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 响应式：窄屏自动收起侧栏 */
@media (max-width: 860px) {
  .app-sider {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    box-shadow: 4px 0 18px rgba(0, 0, 0, 0.12);
  }
  .app-user-name {
    display: none;
  }
}

/* ==========================================================================
   登录页 / 启动页 / 业务页补充样式
   ========================================================================== */

/* ---------- 启动校验登录态 ---------- */
.boot-splash {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--color-text-3);
}
.boot-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #165dff, #0fc6c2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.boot-text {
  font-size: 13px;
}

/* ---------- 登录页 ---------- */
.login-page {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eaf2ff 0%, #f7f9fc 45%, #e6fbfa 100%);
}
body[arco-theme='dark'] .login-page {
  background: linear-gradient(135deg, #10131a 0%, #171a21 50%, #101820 100%);
}
.login-card {
  width: 400px;
  padding: 34px 32px 30px;
  border-radius: 14px;
  background: var(--color-bg-2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--color-border-1);
}
/* 登录框顶部（2026-09-15 拍板）：只有一行文字，无 logo 方块、无副标题 */
.login-title {
  margin-bottom: 26px;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text-1);
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.login-error {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgb(var(--red-6));
  font-size: 13px;
}

/* ---------- 顶栏角色小字 ---------- */
.app-user-role {
  font-size: 12px;
  color: var(--color-text-3);
  margin-left: 2px;
}

/* ---------- 业务页通用工具条 ---------- */
.search-bar {
  margin-bottom: 12px;
}
/* 检索区输入框：浅色模式白底 + 灰色边框 */
.search-bar .arco-input-wrapper,
.search-bar .arco-input-group,
.search-bar .arco-select-view,
.search-bar .arco-range-picker,
.search-bar .arco-picker,
.search-bar .arco-input-inner-wrapper,
.search-bar .arco-range-picker-input {
  background: #fff !important;
  border-color: var(--app-line) !important;
}
/* Arco Select / RangePicker 内部两个 input 也要白底 */
.search-bar .arco-range-picker .arco-input-wrapper,
.search-bar .arco-range-picker .arco-input-inner-wrapper {
  background: #fff !important;
}
.search-bar .arco-form-item {
  margin-bottom: 0;
}
/* 暗黑模式：深灰背景 + 深灰边框（仍用 !important 覆盖 Arco 主题变量） */
body[arco-theme='dark'] .search-bar .arco-input-wrapper,
body[arco-theme='dark'] .search-bar .arco-input-group,
body[arco-theme='dark'] .search-bar .arco-select-view,
body[arco-theme='dark'] .search-bar .arco-range-picker,
body[arco-theme='dark'] .search-bar .arco-picker,
body[arco-theme='dark'] .search-bar .arco-input-inner-wrapper,
body[arco-theme='dark'] .search-bar .arco-range-picker-input {
  background: var(--app-surface-2) !important;
  border-color: var(--app-line) !important;
}
.search-bar-actions {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 10px;
}
.search-bar-actions > .arco-btn {
  min-width: 96px;
}
/* 功能区：创建按钮贴行内最左，其余功能按钮组贴行内最右（全局规范 §2.10） */
.tool-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 12px;
}
/* 创建按钮之外的其余功能按钮组：整体推到行尾 */
.tool-bar .tool-actions {
  margin-left: auto;
}
.tool-bar > .a-button,
.tool-bar .arco-btn {
  min-width: 96px;
}
/* 合计条：表格上方一行文字汇总（当前筛选口径） */
.sum-bar {
  margin-bottom: 10px;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 20px;
  color: var(--color-text-2);
  background: var(--color-fill-1);
  border-radius: 4px;
}
.sum-bar b {
  color: var(--color-text-1);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.pager-bar {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}
.ellipsis {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}
.warn-tip {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: rgb(var(--orange-6));
  background: rgba(255, 125, 0, 0.1);
}

/* ---------- 弹窗内小行 / 日志 ---------- */
.mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 2px;
  border-bottom: 1px solid var(--color-border-1);
  font-size: 13px;
  color: var(--color-text-1);
}
.mini-row:last-child {
  border-bottom: none;
}
.log-item {
  border: 1px solid var(--color-border-1);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.log-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.log-url {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--color-text-1);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.log-body {
  margin-top: 6px;
  font-size: 12px;
}
.log-pre {
  margin: 4px 0 0;
  padding: 8px 10px;
  background: var(--color-fill-2);
  border-radius: 6px;
  max-height: 160px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-all;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--color-text-2);
}

/* ---------- 权限抽屉 ---------- */
.perm-group {
  padding: 8px 0;
  border-bottom: 1px dashed var(--color-border-1);
}
.perm-pages {
  padding-left: 18px;
}
.perm-page {
  padding: 6px 0;
}
.perm-ops {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding-left: 22px;
  margin-top: 4px;
}


/* ---------- 页签样式（右切换区 .filter-tabs）---------- */
/* 页签样式（与检索区拉开层次） */
.filter-tabs {
  margin: 4px 0 10px;
}

/* ---------- 表格单元格：多行堆叠 ---------- */
.cell-stack {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 13px;
  line-height: 1.5;
}
.cell-stack-right {
  align-items: flex-end;
  text-align: right;
}
.cell-stack-center {
  align-items: center;
  text-align: center;
}
.cell-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  word-break: break-all;
}

/* ---------- 单元格：编号等宽 / 空值占位 ---------- */
.cell-code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  color: var(--color-text-2);
}
.cell-empty {
  color: var(--color-text-3);
}

/* ---------- 状态小标（表格单元格内）---------- */
.cell-bill {
  flex: none;
}
.cell-bill.is-ok {
  color: rgb(var(--green-6));
}
.cell-bill.is-err {
  color: rgb(var(--red-6));
}
.cell-bill.is-pending {
  color: var(--color-text-3);
}

/* ---------- 计划任务（page-job）---------- */
/* ==========================================================================
   计划任务（page-job）
   ========================================================================== */
.job-name {
  font-weight: 500;
}
.job-status {
  display: flex;
  align-items: center;
  gap: 8px;
}
.job-on {
  color: rgb(var(--green-6));
}
.job-off {
  color: var(--color-text-3);
}

/* ---------- 危险数值（负数等）：红字 ---------- */
/* 危险数值（负数 / 负余额）：红字。
   ⚠️ 曾经的坑：页面 JS 早已引用 `cell-danger`，但 CSS 里**从未定义过这个类** ⇒
   负数标红一直是**静默失效**的（类名加上了、没有任何样式可见）。这里补上定义。
   ⚠️ 必须连 `.sum-bar b.cell-danger` 一起写：`.sum-bar b` 的特异性是 (0,0,1,1)，
      而裸 `.cell-danger` 是 (0,0,1,0) ⇒ 会被它盖掉，合计条里的负数仍然不红。 */
.cell-danger,
.sum-bar b.cell-danger {
  color: rgb(var(--danger-6));
}

/* ---------- 表格辅助小字：单行省略（常与 .cell-wrap 叠加）---------- */
.cell-sub {
  font-size: 12px;
  color: var(--color-text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- 表格辅助小字：强制换行（最多 2 行）----------
   ⚠️ 必须与 .cell-sub 叠加使用（class="cell-sub cell-wrap"），否则会丢掉小字的字号与浅色。 */
.cell-wrap {
  white-space: normal;
  word-break: break-all;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

/* ---------- 车辆归属弹框：新增归属表单 ---------- */
.assign-form {
  margin-top: 16px;
}
.assign-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

/* ---------- 车辆编辑弹框：车牌 / VIN 只读提示 ---------- */
.readonly-hint {
  margin-left: 8px;
  font-size: 12px;
}

/* ==========================================================================
   运单管理（page-order，开发任务2）
   ========================================================================== */

/* 表格：照片单元格（缩略图 + 下方两行：标签 / 数值）
   开发任务3：4 张图横排一组，格子等分运输信息列的可用宽度，
   图片随之伸缩 ⇒ 宽屏不会右侧留白、窄屏也不会挤出边界 */
.pic-cell {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  /* 宽屏上限：超宽屏下不让缩略图无限拉宽（否则磅单被裁成一条） */
  max-width: 128px;
  flex-direction: column;
  align-items: center;
}
.pic-wrap {
  position: relative;
  display: inline-block;
  line-height: 0;
  cursor: zoom-in;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--app-line);
}
.pic-thumb {
  width: 100%;
  height: 64px;
  object-fit: cover;
  display: block;
  background: var(--app-surface-2);
}
.pic-thumb.lg {
  width: 96px;
  height: 72px;
}
/* 「共 N 次」角标：多条装卸货时提示只显示了最新一条 */
.pic-badge {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 0 3px;
  font-size: 10px;
  line-height: 14px;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border-top-left-radius: 4px;
}

/* ---------- 开发任务3：运输信息格（状态标签 + 4 图 + 底部备注） ---------- */
.pic-row {
  display: flex;
  align-items: flex-start;
  /* 4 格等分列宽；触及 max-width 上限后靠 space-between 把余量摊成间距 */
  justify-content: space-between;
  gap: 10px;
}
/* 列表里的缩略图撑满格子（弹框里的 .lg 仍按 96×72 固定） */
.pic-cell .pic-wrap {
  width: 100%;
}
/* 无照片时的占位：与缩略图同尺寸，保证 4 格对齐、行高不塌 */
.pic-empty {
  width: 100%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--color-text-3);
  border: 1px dashed var(--app-line);
  border-radius: 4px;
}
.pic-label {
  margin-top: 3px;
  font-size: 11px;
  line-height: 15px;
  color: var(--color-text-3);
  white-space: nowrap;
}
.pic-value {
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: var(--color-text-1);
  white-space: nowrap;
}
.transport-cell {
  display: flex;
  flex-direction: column;
  gap: 5px;
  /* 这一列的内容最高、决定行高；td 自带的内边距在上沿几乎为 0，
     状态标签会贴着行分隔线（看起来像被压住），这里补一点上间距 */
  padding: 4px 0 2px;
}
.transport-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 22px;
}
/* 备注通栏：单行省略，全文靠 title 悬浮看 */
.transport-remark {
  font-size: 12px;
  color: var(--color-text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- 开发任务3：客户 / 运力 格内的第一行强调 ---------- */
.cell-strong {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- 开发任务3：操作列竖排（查看 / 审核） ---------- */
.op-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.pic-cap {
  display: block;
  font-size: 11px;
  line-height: 14px;
  text-align: center;
  color: var(--color-text-3);
  margin-top: 2px;
}

/* 表格：审核拒绝红字（不能复用 .cell-sub，会被它后面的 color 盖掉） */
.audit-reject {
  font-size: 12px;
  color: rgb(var(--danger-6));
}

/* 弹框：明细分块 */
.detail-block {
  margin-bottom: 14px;
}
.detail-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-1);
  padding-left: 8px;
  border-left: 3px solid var(--app-brand);
  margin-bottom: 8px;
  line-height: 16px;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 16px;
}
.detail-item {
  display: flex;
  gap: 8px;
  font-size: 13px;
  line-height: 20px;
}
.detail-label {
  flex: 0 0 64px;
  color: var(--color-text-3);
}
.detail-value {
  flex: 1;
  min-width: 0;
  word-break: break-all;
  color: var(--color-text-1);
}
.detail-void {
  margin-top: 8px;
  font-size: 12px;
  color: rgb(var(--danger-6));
}

/* 弹框：装卸货记录 */
.load-item {
  padding: 8px 10px;
  border: 1px solid var(--app-line);
  border-radius: 6px;
  margin-bottom: 8px;
  background: var(--app-surface-2);
}
.load-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  margin-bottom: 8px;
}
.load-pics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* 弹框：审核记录 */
.check-item {
  padding: 8px 0;
  border-bottom: 1px dashed var(--app-line);
}
.check-item:last-child {
  border-bottom: none;
}
.check-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.check-opinion {
  margin-top: 4px;
  font-size: 13px;
  color: var(--color-text-2);
  white-space: pre-wrap;
  word-break: break-all;
}

/* 弹框：审核按钮行（贴右） */
.audit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}
