/* ============ 管理端浅色主题 ============ */
* { box-sizing: border-box; }
html, body, #app { height: 100%; margin: 0; }
body { font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif; background: #f0f2f5; }

.app-aside { background: #001529; }
.app-aside .el-menu { border-right: none; }
.app-aside .el-menu { max-height: calc(100vh - 60px); overflow-y: auto; }
.app-aside .el-menu::-webkit-scrollbar { width: 4px; }
.app-aside .el-menu::-webkit-scrollbar-thumb { background: #1f3a5f; border-radius: 2px; }
.app-logo { height: 56px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; font-weight: 600; letter-spacing: 1px; background: #002140; }
.app-header { background: #fff; display: flex; align-items: center; padding: 0 16px; box-shadow: 0 1px 4px rgba(0,21,41,.08); z-index: 9; }
.app-header .sys-name { font-size: 16px; font-weight: 600; color: #001529; margin-right: 16px; }
.app-main { padding: 14px 16px; overflow: auto; }

.page-card { margin-bottom: 12px; }
.page-title-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.page-title-row h3 { margin: 0; font-size: 17px; }
.page-desc { color: #909399; font-size: 12px; margin: -6px 0 10px; }
.filter-form .el-form-item { margin-bottom: 8px; margin-right: 12px; }
.toolbar-row { display: flex; align-items: center; gap: 8px; margin: 4px 0 10px; }
.pagination-row { display: flex; justify-content: flex-end; margin-top: 10px; }
.mark { background: #ffe58f; padding: 0 1px; border-radius: 2px; }
.link-like { color: #409eff; cursor: pointer; text-decoration: none; }
.link-like:hover { text-decoration: underline; }
.demo-watermark { position: fixed; right: 24px; bottom: 20px; color: rgba(0,0,0,.08); font-size: 40px; font-weight: 700; pointer-events: none; z-index: 1; }

.el-table .cell .el-tag { margin-right: 0; }
.num-strong { font-weight: 600; }
.num-danger { color: #f56c6c; font-weight: 600; }
.num-warning { color: #e6a23c; font-weight: 600; }

/* 表单分区 */
.form-section { margin: 6px 0 12px; }
.form-section .el-divider__text { font-size: 13px; color: #303133; font-weight: 600; }

/* ============ 大屏深色主题（15.1 节） ============ */
.screen-wrap { height: 100vh; background: radial-gradient(ellipse at center, #0a1f44 0%, #051129 70%, #030b1e 100%); color: #d7e7ff; overflow: hidden; display: flex; flex-direction: column; padding: 10px 14px; font-size: 14px; }
.screen-header { display: flex; align-items: center; height: 62px; position: relative; flex: none; }
.screen-header .title-box { position: absolute; left: 50%; transform: translateX(-50%); text-align: center; }
.screen-header .title-box .t1 { font-size: 26px; font-weight: 700; letter-spacing: 3px; background: linear-gradient(180deg, #ffffff, #7db9ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.screen-header .title-box .t2 { font-size: 12px; color: #6ea8d8; letter-spacing: 6px; margin-top: 2px; }
.screen-header .side { display: flex; align-items: center; gap: 12px; width: 420px; }
.screen-header .side.right { margin-left: auto; justify-content: flex-end; }
.screen-header .clock { font-family: 'DIN Alternate', Consolas, monospace; font-size: 15px; color: #9fd0ff; }
.screen-filter { display: flex; align-items: center; gap: 10px; height: 40px; flex: none; padding: 0 6px; background: rgba(38, 90, 160, .18); border: 1px solid rgba(64, 158, 255, .25); border-radius: 4px; }
.screen-filter .lbl { color: #7db9ff; font-size: 13px; }

.stat-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 10px 0; flex: none; }
.stat-item { background: linear-gradient(180deg, rgba(30,80,150,.35), rgba(10,40,90,.25)); border: 1px solid rgba(64,158,255,.35); border-radius: 4px; padding: 10px 14px; position: relative; overflow: hidden; }
.stat-item::after { content: ''; position: absolute; left: 0; top: 0; width: 3px; height: 100%; background: #40a9ff; box-shadow: 0 0 8px #40a9ff; }
.stat-item .s-label { font-size: 13px; color: #8fb8e8; }
.stat-item .s-value { font-size: 26px; font-weight: 700; color: #fff; font-family: 'DIN Alternate', Consolas, monospace; }
.stat-item .s-unit { font-size: 12px; color: #7db9ff; margin-left: 4px; }
.stat-item .s-sub { font-size: 12px; color: #6ea8d8; margin-top: 2px; }

.screen-body { flex: 1; display: grid; grid-template-columns: 23% 1fr 23%; gap: 12px; min-height: 0; }
.screen-col { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.panel { background: rgba(13, 42, 88, .45); border: 1px solid rgba(64,158,255,.28); border-radius: 4px; display: flex; flex-direction: column; min-height: 0; }
.panel .p-title { flex: none; padding: 8px 12px; font-size: 14px; font-weight: 600; color: #cfe6ff; display: flex; align-items: center; gap: 8px; }
.panel .p-title::before { content: ''; width: 4px; height: 14px; background: #40a9ff; box-shadow: 0 0 6px #40a9ff; }
.panel .p-body { flex: 1; padding: 6px 10px 10px; min-height: 0; overflow: auto; }

.map-box { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.map-svg { flex: 1; width: 100%; min-height: 0; }
.map-legend { flex: none; display: flex; gap: 16px; padding: 6px 12px; font-size: 12px; color: #8fb8e8; }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }

.station-dot { cursor: pointer; }
.station-label { font-size: 13px; fill: #cfe6ff; }
.alert-ring { animation: ringPulse 1.6s ease-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes ringPulse { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(2.1); } }

/* 站点悬浮卡（15.4 节） */
.hover-card { position: absolute; width: 400px; background: rgba(6, 25, 56, .96); border: 1px solid rgba(64,158,255,.5); border-radius: 6px; box-shadow: 0 6px 24px rgba(0,0,0,.5); z-index: 30; font-size: 13px; color: #d7e7ff; }
.hover-card .hc-head { padding: 10px 12px; border-bottom: 1px solid rgba(64,158,255,.25); display: flex; justify-content: space-between; align-items: center; }
.hover-card .hc-head .name { font-size: 16px; font-weight: 700; color: #fff; }
.hover-card .hc-head .pos-tag { font-size: 12px; color: #7db9ff; }
.hover-card .hc-meta { padding: 6px 12px; display: flex; gap: 18px; color: #8fb8e8; border-bottom: 1px dashed rgba(64,158,255,.2); }
.hover-card .hc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; padding: 8px 12px; }
.hover-card .hc-grid .k { color: #8fb8e8; }
.hover-card .hc-grid .v { color: #fff; font-family: Consolas, monospace; }
.hover-card .hc-sec { padding: 6px 12px 0; color: #7db9ff; font-size: 12px; }
.hover-card table { width: 100%; margin: 4px 12px 8px; width: calc(100% - 24px); border-collapse: collapse; font-size: 12px; }
.hover-card th { color: #6ea8d8; text-align: left; font-weight: 400; padding: 3px 4px; border-bottom: 1px solid rgba(64,158,255,.2); }
.hover-card td { color: #d7e7ff; padding: 3px 4px; border-bottom: 1px dashed rgba(64,158,255,.12); }
.hover-card .hc-foot { padding: 6px 12px 10px; color: #6ea8d8; font-size: 12px; display: flex; justify-content: space-between; }
.more-link { color: #40a9ff; cursor: pointer; }

.screen-bottom { flex: none; display: grid; grid-template-columns: 1fr 23%; gap: 12px; height: 150px; margin-top: 12px; }

.dark-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.dark-table th { color: #6ea8d8; font-weight: 400; padding: 4px 6px; border-bottom: 1px solid rgba(64,158,255,.25); text-align: left; white-space: nowrap; }
.dark-table td { color: #d7e7ff; padding: 5px 6px; border-bottom: 1px dashed rgba(64,158,255,.12); white-space: nowrap; }
.dark-table .num { font-family: Consolas, monospace; color: #fff; }

.mini-kpi { display: flex; justify-content: space-around; padding: 6px 0 10px; }
.mini-kpi .m { text-align: center; }
.mini-kpi .m .v { font-size: 22px; font-weight: 700; font-family: Consolas, monospace; }
.mini-kpi .m .k { font-size: 12px; color: #8fb8e8; }
.mini-kpi .m.warn .v { color: #ffb74d; }
.mini-kpi .m.bad .v { color: #ff6d6d; }
.mini-kpi .m.good .v { color: #69f0ae; }

.el-message-box, .el-dialog, .el-drawer { --el-color-primary: #409eff; }
.screen-wrap .el-select__wrapper { background: rgba(13,42,88,.6); box-shadow: 0 0 0 1px rgba(64,158,255,.4) inset; color: #d7e7ff; }
.screen-wrap .el-select__placeholder { color: #8fb8e8; }




/* ---- 手机装备详情（8.6 节：375~430px 单列卡片） ---- */
.mobile-bg { min-height: 100vh; background: #e9edf3; padding: 12px 0 30px; }
.mobile-wrap { max-width: 430px; margin: 0 auto; padding: 0 12px; }
.mobile-banner { background: #fff7e6; color: #ad6800; border: 1px solid #ffe58f; border-radius: 6px; padding: 6px 10px; font-size: 12px; text-align: center; margin-bottom: 10px; }
.m-card { background: #fff; border-radius: 10px; padding: 14px; margin-bottom: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.m-sec-title { font-size: 14px; font-weight: 600; margin-bottom: 8px; color: #303133; }
.m-row { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0; border-bottom: 1px dashed #f0f0f0; }
.m-row:last-child { border-bottom: none; }
.m-k { color: #909399; flex: none; margin-right: 12px; }
.m-v { color: #303133; text-align: right; word-break: break-all; }
.m-alert { background: #fff2f0; border: 1px solid #ffccc7; color: #cf1322; border-radius: 8px; padding: 10px 12px; font-size: 13px; margin-bottom: 10px; }
.m-doc { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f5f5f5; cursor: pointer; }
.m-video { display: flex; align-items: center; gap: 10px; padding: 8px 0; cursor: pointer; }
.m-cover { width: 86px; height: 52px; background: linear-gradient(135deg, #1c2b3a, #2f4b68); border-radius: 6px; display: flex; align-items: center; justify-content: center; flex: none; }


/* 护网门三页独立菜单：隐藏内容区页签头（由左侧菜单切换） */
.gates-standalone .el-tabs__header { display: none; }
