:root { --lb-primary: #1A6FE8; --lb-navy: #0B3D91; --lb-bg: #F3F6FB; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: var(--lb-bg); color: #1F2937; }
#app { height: 100%; }

.login-wrap { height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1A6FE8 0%, #0B3D91 100%); }
.login-card { width: 380px; background: #fff; border-radius: 12px; padding: 36px 32px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2); }
.login-title { font-size: 26px; font-weight: 700; color: var(--lb-navy); text-align: center; }
.login-sub { font-size: 13px; color: #8A94A6; text-align: center; margin: 6px 0 28px; }

.layout { display: flex; height: 100%; }
.aside { width: 220px; background: #0B2A63; color: #fff; display: flex; flex-direction: column; flex-shrink: 0; }
.brand { height: 56px; display: flex; align-items: center; padding: 0 20px; font-size: 18px; font-weight: 700; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.brand small { font-size: 12px; font-weight: normal; opacity: 0.7; margin-left: 8px; }
.aside .el-menu { border-right: none; flex: 1; overflow-y: auto; padding: 8px 0 24px; }
/* ---- 左侧菜单：一级（父级）与二级（子级）层次分明、每项有边界 ---- */
.aside .el-menu > .el-menu-item,
.aside .el-menu > .el-sub-menu { margin: 4px 10px; border-radius: 8px; overflow: hidden; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.06); }
.aside .el-menu > .el-menu-item,
.aside .el-sub-menu__title { height: 44px !important; line-height: 44px !important; padding: 0 12px !important; font-size: 14px; font-weight: 600; color: #E3EAF7 !important; background: transparent !important; }
.aside .el-menu > .el-menu-item:hover,
.aside .el-sub-menu__title:hover { background: rgba(255, 255, 255, 0.08) !important; }
.aside .el-sub-menu.is-opened { background: rgba(0, 0, 0, 0.18); border-color: rgba(91, 140, 255, 0.35); }
.aside .el-sub-menu.is-opened > .el-sub-menu__title { color: #fff !important; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.aside .menu-ic { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; background: rgba(255, 255, 255, 0.1); color: #9DB8F0; margin-right: 10px; font-size: 15px; flex-shrink: 0; }
.aside .menu-ic .el-icon { margin: 0 !important; width: auto; font-size: 15px; }
.aside .el-menu-item.is-active .menu-ic, .aside .el-sub-menu.is-opened > .el-sub-menu__title .menu-ic { background: rgba(255, 255, 255, 0.2); color: #fff; }
/* 二级菜单：缩进、字号小一号、左侧竖线串起来 */
.aside .el-menu--inline { background: transparent !important; padding: 4px 0 6px; }
.aside .el-menu--inline .el-menu-item { position: relative; height: 36px !important; line-height: 36px !important; margin: 2px 8px 2px 24px; padding: 0 10px 0 18px !important; min-width: 0; border-radius: 6px; font-size: 13px; font-weight: normal; color: #A9B8D6 !important; background: transparent !important; }
.aside .el-menu--inline .el-menu-item::before { content: ''; position: absolute; left: 0; top: -2px; bottom: -2px; width: 1px; background: rgba(255, 255, 255, 0.14); }
.aside .el-menu--inline .el-menu-item::after { content: ''; position: absolute; left: -3px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: #3A5590; }
.aside .el-menu--inline .el-menu-item:hover { color: #fff !important; background: rgba(255, 255, 255, 0.07) !important; }
/* 当前页面 */
.aside .el-menu-item.is-active { color: #fff !important; background: #1A6FE8 !important; font-weight: 600; }
.aside .el-menu--inline .el-menu-item.is-active::after { background: #fff; box-shadow: 0 0 0 3px rgba(26, 111, 232, 0.5); }
.aside .el-menu > .el-menu-item.is-active { border-color: #1A6FE8; }
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.header { height: 56px; background: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid #E8ECF2; flex-shrink: 0; }
.header .title { font-size: 16px; font-weight: 600; }
.content { flex: 1; overflow: auto; padding: 16px 20px 40px; }

.panel { background: #fff; border-radius: 8px; padding: 16px; margin-bottom: 16px; }
.panel-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; align-items: center; }
.filters .el-input, .filters .el-select { width: 180px; }
.pager { display: flex; justify-content: flex-end; margin-top: 12px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: #fff; border-radius: 8px; padding: 14px 16px; }
.stat .label { font-size: 12px; color: #8A94A6; }
.stat .value { font-size: 24px; font-weight: 700; color: var(--lb-navy); margin-top: 4px; }
.stat .value.red { color: #E5484D; }
.stat .value.orange { color: #F08C00; }
.chart { height: 300px; }
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 1100px) { .chart-grid { grid-template-columns: 1fr; } }

.muted { color: #8A94A6; }
.small { font-size: 12px; }
.red { color: #E5484D; }
.green { color: #12A150; }
.mono { font-family: Menlo, Consolas, monospace; }
.row-overdue td { background: #FDECEC !important; }
.img-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.img-grid .el-image { width: 100%; height: 130px; border-radius: 6px; background: #F3F6FB; }
.img-grid .cap { font-size: 12px; text-align: center; color: #4B5563; margin-top: 4px; }
.kv { display: grid; grid-template-columns: 110px 1fr; row-gap: 8px; font-size: 13px; }
.kv .k { color: #8A94A6; }
.timeline-item { font-size: 13px; }
.json { white-space: pre-wrap; word-break: break-all; font-family: Menlo, Consolas, monospace; font-size: 12px; background: #F7F9FC; padding: 6px 8px; border-radius: 4px; max-height: 120px; overflow: auto; }
.tag-gap .el-tag { margin-right: 6px; }

/* ================= 详情抽屉（用户详情、行程详情、合乘关系） ================= */
.el-drawer { background: #F3F6FB; }
.el-drawer__header { margin: 0; padding: 14px 20px; background: linear-gradient(90deg, #0B3D91 0%, #1A6FE8 100%); color: #fff; }
.el-drawer__header .el-drawer__title, .el-drawer__header > span { font-size: 16px; font-weight: 600; color: #fff; }
.el-drawer__header .el-drawer__close-btn, .el-drawer__header .el-drawer__close-btn .el-icon { color: #fff; }
.el-drawer__body { padding: 16px 18px 28px; }
/* 抽屉顶部概要卡片 */
.dw-head { background: #fff; border: 1px solid #E3EAF5; border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; box-shadow: 0 2px 8px rgba(11, 61, 145, 0.04); }
.dw-head-row { display: flex; align-items: center; margin-bottom: 10px; }
.dw-avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #1A6FE8, #0B3D91); color: #fff; font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-right: 12px; }
.dw-avatar-green { background: linear-gradient(135deg, #12A150, #0B7A3B); }
.dw-head-main { flex: 1; min-width: 0; }
.dw-name { font-size: 16px; font-weight: 600; color: #1F2937; }
.dw-id { font-size: 12px; font-weight: normal; color: #8A94A6; margin-left: 4px; }
.dw-sub { font-size: 12px; color: #6B7280; margin-top: 3px; }
.dw-tags { margin-bottom: 4px; }
.dw-tags .el-tag { margin-bottom: 4px; }
.dw-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; margin-top: 6px; border-top: 1px dashed #E3EAF5; }
.dw-actions .el-button { margin-left: 0 !important; }
.dw-alert { margin-top: 10px; }
/* 抽屉内的分区卡片 */
.dw-sec { background: #fff; border: 1px solid #E3EAF5; border-radius: 10px; padding: 12px 16px 14px; margin-bottom: 12px; }
.dw-sec-t { display: flex; align-items: center; font-size: 14px; font-weight: 600; color: #0B3D91; margin-bottom: 10px; padding-left: 10px; border-left: 3px solid #1A6FE8; line-height: 1.2; }
.dw-count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 6px; border-radius: 10px; background: #E8F0FD; color: #1A6FE8; font-size: 12px; line-height: 18px; text-align: center; font-weight: 600; }
/* 抽屉/弹窗里的键值列表：每行有分隔线 */
.el-drawer .kv, .el-dialog .kv { row-gap: 0; }
.el-drawer .kv > div, .el-dialog .kv > div { padding: 7px 0; border-bottom: 1px dashed #EEF1F6; }
.el-drawer .kv > div:nth-last-child(-n+2), .el-dialog .kv > div:nth-last-child(-n+2) { border-bottom: none; }
/* 抽屉/弹窗里的小标题 */
.el-drawer .panel-title, .el-dialog .panel-title { font-size: 14px; color: #0B3D91; padding-left: 10px; border-left: 3px solid #1A6FE8; line-height: 1.2; margin: 16px 0 10px; }
.el-drawer .el-timeline { padding-left: 2px; margin-top: 4px; }

/* ================= 分区页签（完整显示、自动换行，不出现左右滚动箭头） ================= */
.lb-tabs > .el-tabs__header { margin: 0 0 12px; }
.lb-tabs > .el-tabs__header .el-tabs__nav-wrap { padding: 0 !important; margin-bottom: 0; }
.lb-tabs > .el-tabs__header .el-tabs__nav-wrap::after { display: none; }
.lb-tabs > .el-tabs__header .el-tabs__nav-prev, .lb-tabs > .el-tabs__header .el-tabs__nav-next { display: none; }
.lb-tabs > .el-tabs__header .el-tabs__nav-scroll { overflow: visible; }
.lb-tabs > .el-tabs__header .el-tabs__nav { float: none; display: flex; flex-wrap: wrap; gap: 8px; transform: none !important; }
.lb-tabs > .el-tabs__header .el-tabs__active-bar { display: none; }
.lb-tabs > .el-tabs__header .el-tabs__item { height: 32px; line-height: 30px; padding: 0 14px !important; border: 1px solid #D6E0F0; border-radius: 16px; background: #fff; color: #4B5563; font-size: 13px; transition: all 0.15s; }
.lb-tabs > .el-tabs__header .el-tabs__item:hover { color: #1A6FE8; border-color: #1A6FE8; }
.lb-tabs > .el-tabs__header .el-tabs__item.is-active { background: #1A6FE8; border-color: #1A6FE8; color: #fff; font-weight: 600; box-shadow: 0 2px 6px rgba(26, 111, 232, 0.3); }
.lb-tabs > .el-tabs__content { background: #fff; border: 1px solid #E3EAF5; border-radius: 10px; padding: 14px 16px; overflow: visible; }
.lb-tabs > .el-tabs__content .panel-title:first-child { margin-top: 0; }

/* ================= 弹窗（协议、投诉反馈、车主认证等） ================= */
.el-dialog { border-radius: 12px; overflow: hidden; padding: 0; }
.el-dialog__header { margin: 0; padding: 14px 20px; background: linear-gradient(90deg, #0B3D91 0%, #1A6FE8 100%); }
.el-dialog__header .el-dialog__title { color: #fff; font-size: 16px; font-weight: 600; }
.el-dialog__headerbtn { top: 2px; height: 48px; }
.el-dialog__headerbtn .el-dialog__close { color: #fff; }
.el-dialog__body { padding: 16px 20px; }
.el-dialog__footer { padding: 12px 20px 16px; border-top: 1px solid #EEF1F6; }
/* 确认框保持白色简洁样式 */
.el-message-box { border-radius: 12px; }

/* 待办提醒 */
.header-right { display: flex; align-items: center; }
.bell { cursor: pointer; padding: 4px 10px; border-radius: 16px; background: #F3F6FB; display: inline-flex; align-items: center; }
.bell-urgent { background: #FDECEC; animation: bell-pulse 1.6s infinite; }
@keyframes bell-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0.4); } 50% { box-shadow: 0 0 0 6px rgba(229, 72, 77, 0); } }
.bell-icon { font-size: 16px; margin-right: 4px; }
.bell-text { font-size: 13px; }
.alert-title { font-weight: 600; margin-bottom: 8px; display: flex; justify-content: space-between; }
.alert-row { display: flex; align-items: center; padding: 8px 6px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.alert-row:hover { background: #F3F6FB; }
.alert-zero { opacity: 0.5; }
.alert-dot { width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; background: #8A94A6; }
.dot-danger { background: #E5484D; }
.dot-warning { background: #F08C00; }
.dot-info { background: #1A6FE8; }
.flex1 { flex: 1; }
.menu-text { flex: 1; }
.menu-badge { background: #E5484D; color: #fff; border-radius: 10px; font-size: 11px; line-height: 18px; min-width: 18px; padding: 0 6px; text-align: center; margin-left: 8px; }
.urgent-bar { margin-bottom: 12px; cursor: pointer; }
.page-alert-bar { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #DCE6F8; border-left: 4px solid var(--lb-primary); border-radius: 6px; padding: 8px 14px; margin-bottom: 12px; }
.page-alert-bar.off { border-left-color: #C3CAD6; background: #FAFBFC; }
.pa-label { font-weight: 600; font-size: 13px; color: #1F2937; }
.pa-desc { font-size: 12px; color: #6B7280; }

/* 第三方服务配置 / 参数配置 */
.svc-usage { font-size: 13px; color: #374151; line-height: 1.7; }
.svc-apply { font-size: 13px; color: #6B7280; line-height: 1.7; background: #F7F9FC; padding: 8px 12px; border-radius: 6px; margin-top: 8px; }
.svc-saved { margin-top: 10px; border: 1px solid #B7E4C7; background: #F0FAF3; border-radius: 6px; padding: 10px 14px; }
.svc-saved-title { font-weight: 600; color: #12A150; margin-bottom: 6px; }
.svc-saved-grid { display: grid; grid-template-columns: 220px 1fr; row-gap: 4px; font-size: 13px; }
.svc-k { color: #6B7280; }
.svc-v { color: #1F2937; word-break: break-all; }
.cfg-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.cfg-hint { font-size: 12px; color: #8A94A6; line-height: 1.6; margin-top: 2px; width: 100%; }
.cfg-group-title { font-weight: 600; margin: 4px 0 10px; color: #0B3D91; }
.cfg-sum { font-size: 13px; margin-left: 8px; }
.detour-list { display: flex; flex-direction: column; gap: 8px; }
.detour-item { display: flex; align-items: center; gap: 12px; }

/* Logo 预览 */
.logo-main { display: flex; gap: 16px; align-items: flex-start; }
.logo-big { width: 120px; height: 120px; border-radius: 16px; border: 1px solid #E8ECF2; object-fit: cover; flex-shrink: 0; }
.bold { font-weight: 600; }
.logo-previews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pv-card { background: #F7F9FC; border-radius: 8px; padding: 12px; min-height: 130px; }
.pv-title { font-size: 12px; color: #8A94A6; margin-bottom: 10px; }
.pv-round { border-radius: 50%; object-fit: cover; border: 1px solid #E8ECF2; background: #fff; }
.pv-48 { width: 48px; height: 48px; }
.pv-32 { width: 32px; height: 32px; }
.pv-20 { width: 20px; height: 20px; }
.pv-search { display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 6px; padding: 10px; }
.pv-name { font-size: 15px; font-weight: 600; color: #1F2937; }
.pv-desc { font-size: 12px; color: #8A94A6; margin-top: 2px; }
.pv-tag { display: inline-block; font-size: 10px; color: #576B95; border: 1px solid #C9D1E3; border-radius: 3px; padding: 0 4px; margin-top: 4px; }
.pv-row { display: flex; align-items: center; gap: 8px; }
.pv-small { font-size: 13px; color: #374151; }
.pv-login { display: flex; align-items: center; gap: 10px; background: linear-gradient(180deg, #1A6FE8, #3D86F0); border-radius: 6px; padding: 14px 12px; color: #fff; }
.pv-sq { width: 40px; height: 40px; border-radius: 10px; background: #fff; object-fit: cover; }
.pv-login-name { font-size: 18px; font-weight: 700; letter-spacing: 2px; }
.pv-login-slogan { font-size: 11px; opacity: 0.9; }
