/* ============================================================
 * 国轻总控（CTL）前端 - 全局样式
 * UI规范：蓝色主色调、白/浅灰背景、高对比度、简洁干净
 * ============================================================ */

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0; padding: 0;
    font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    font-size: 14px; color: #303133; background: #f5f7fa;
}
#app { height: 100%; }

/* ============ 登录页 ============ */
.login-page {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    height: 100vh;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 60%, #3a7bd5 100%);
}
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; color: #fff; }
.login-brand .brand-icon { font-size: 40px; }
.login-brand .brand-name { font-size: 26px; font-weight: 600; letter-spacing: 2px; }
.login-card { width: 420px; }
.login-card .el-card__header { text-align: center; font-size: 18px; font-weight: 600; color: #303133; }
.login-footer-tip { margin-top: 16px; text-align: center; font-size: 12px; color: #909399; }

/* ============ 布局框架 ============ */
.layout-root { height: 100vh; }
.layout-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; height: 64px; padding: 0 20px;
    background: #fff; box-shadow: 0 1px 4px rgba(0,21,41,0.08);
}
.layout-header .header-brand {
    display: flex; align-items: center; gap: 10px; margin-right: 24px;
    font-size: 18px; font-weight: 600; color: #2a5298; white-space: nowrap;
}
.layout-header .header-sub {
    font-size: 12px; font-weight: 400; color: #909399;
    padding-left: 8px; margin-left: 4px; border-left: 1px solid #dcdfe6;
}
.layout-header .header-right { display: flex; align-items: center; margin-left: auto; gap: 16px; }
.layout-header .admin-name { color: #606266; }
.layout-aside {
    position: fixed; top: 64px; bottom: 0; left: 0; z-index: 99;
    display: flex; flex-direction: column; overflow-x: hidden; transition: width 0.25s;
}
.layout-aside .el-menu { border-right: none; }
.layout-main {
    margin: 64px 0 0 0; min-height: calc(100vh - 64px);
    padding: 20px; background: #f5f7fa; transition: margin-left 0.25s;
}

/* ============ 通用页面结构 ============ */
.page-header { display: flex; align-items: center; height: 48px; margin-bottom: 16px; }
.page-header .page-title { font-size: 18px; font-weight: 600; color: #303133; }
.page-header .page-title::before {
    content: ""; display: inline-block; width: 4px; height: 18px;
    margin-right: 10px; vertical-align: -2px; background: #2a5298; border-radius: 2px;
}
.filter-bar { margin-bottom: 16px; padding: 18px 18px 0 18px; }
.filter-bar .el-form-item { margin-bottom: 18px; }
.table-card { margin-bottom: 16px; }
.block-title {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px;
}
.block-title .block-name { font-size: 15px; font-weight: 600; color: #303133; }
.block-title .block-name .el-tag { margin-left: 8px; }
.pager-wrap { display: flex; justify-content: flex-end; padding: 12px 0 4px 0; }

/* ============ 统计指标卡片 ============ */
.stat-cards {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px; margin-bottom: 16px;
}
.stat-card {
    position: relative; padding: 20px; background: #fff;
    border-radius: 6px; box-shadow: 0 1px 4px rgba(0,21,41,0.06);
}
.stat-card .stat-label { margin-bottom: 10px; font-size: 13px; color: #909399; }
.stat-card .stat-value { font-size: 28px; font-weight: 600; color: #303133; line-height: 1; }
.stat-card .stat-value.stat-danger { color: #f56c6c; }
.stat-card .stat-value.stat-primary { color: #2a5298; }

/* ============ 详情描述列表 ============ */
.detail-drawer .el-drawer__header { margin-bottom: 12px; }
.detail-section-title { margin: 18px 0 10px; font-size: 15px; font-weight: 600; color: #303133; }
.detail-section-title:first-child { margin-top: 0; }

/* ============ 工具类 ============ */
.mr8 { margin-right: 8px; }
.mb16 { margin-bottom: 16px; }
.text-muted { color: #909399; }
.text-danger { color: #f56c6c; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
