/**
 * 国轻管理（ORG）前端 - 全局样式
 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body, #app { height: 100%; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif; background: #f0f2f5; color: #303133; }

/* 大屏路由：JS 在 body 上加 .screen-mode 类，覆盖全局浅色主题 */
body.screen-mode { background: #0d1b2a; color: #e0e6ed; }
body.screen-mode #app { background: #0d1b2a; }

/* 登录页 */
.login-wrapper {
    display: flex; align-items: center; justify-content: center;
    height: 100vh; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.login-card { width: 420px; }
.login-brand { text-align: center; margin-bottom: 24px; }
.login-brand h1 { color: #fff; font-size: 28px; margin-bottom: 8px; }
.login-brand p { color: rgba(255,255,255,0.8); font-size: 16px; }
.login-footer { text-align: center; margin-top: 16px; color: #909399; font-size: 13px; }

/* Layout */
.layout-header {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px; background: #fff; border-bottom: 1px solid #e4e7ed;
    padding: 0 20px; position: fixed; top: 0; left: 0; right: 0; z-index: 100;
}
.layout-header-left { display: flex; align-items: center; gap: 16px; }
.layout-header-right { display: flex; align-items: center; gap: 12px; }
.brand-text { font-size: 18px; font-weight: 600; color: #303133; white-space: nowrap; }

.layout-aside {
    position: fixed; top: 64px; bottom: 0; left: 0; width: 220px;
    background: #304156; overflow-y: auto; z-index: 99;
    transition: width 0.28s;
}
.layout-aside .el-menu { border-right: none; }

.layout-main {
    margin-left: 220px; margin-top: 64px; padding: 20px;
    min-height: calc(100vh - 64px); transition: margin-left 0.28s;
}
.layout-aside.collapsed + .layout-main { margin-left: 64px; }
.layout-aside.collapsed { width: 64px; }

/* 页面通用 */
.page-header { margin-bottom: 16px; }
.page-title { font-size: 20px; font-weight: 600; color: #303133; }

.block-title { margin-bottom: 12px; }
.block-name { font-size: 16px; font-weight: 600; color: #303133; display: flex; align-items: center; gap: 8px; }

.filter-bar { margin-bottom: 16px; }
.filter-bar .el-form-item { margin-bottom: 0; }
.pager-wrap { margin-top: 16px; display: flex; justify-content: flex-end; }
.table-card { margin-bottom: 16px; }

/* 统计卡片 */
.stat-cards {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px; margin-bottom: 16px;
}
.stat-card {
    background: #fff; border-radius: 8px; padding: 20px;
    text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.stat-label { font-size: 14px; color: #909399; margin-bottom: 8px; }
.stat-value { font-size: 32px; font-weight: 700; color: #409eff; }
.stat-value.stat-primary { color: #409eff; }
.stat-value.stat-success { color: #67c23a; }
.stat-value.stat-warning { color: #e6a23c; }
.stat-value.stat-danger { color: #f56c6c; }

/* 大屏（DataV） */
.screen-wrapper {
    background: #0d1b2a; min-height: 100vh; color: #e0e6ed; padding: 20px;
    overflow: hidden;
}
.screen-header {
    text-align: center; padding: 16px 0 24px;
}
.screen-title {
    font-size: 28px; font-weight: 700; color: #fff; letter-spacing: 6px; line-height: 1.4;
}
.screen-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px;
}
.screen-kpi {
    padding: 24px 16px; text-align: center;
}
.screen-kpi .kpi-label { font-size: 16px; color: #8ecae6; margin-bottom: 12px; letter-spacing: 2px; line-height: 1.5; }
.screen-mid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px;
}
.screen-mid-item { min-height: 400px; }
.screen-section-inner { padding: 16px; height: 100%; }
.section-title {
    font-size: 16px; font-weight: 600; color: #8ecae6; margin-bottom: 12px;
    display: flex; align-items: center; letter-spacing: 1px; line-height: 1.5;
}

/* DataV 组件内部样式隔离：防止全局 * / body 规则污染组件内部渲染 */
.screen-wrapper .dv-border-box-content { padding: 0; }
.screen-wrapper .dv-scroll-board .header { color: #8ecae6 !important; font-size: 14px; line-height: 35px; }
.screen-wrapper .dv-scroll-board .rows .row-item { color: #e0e6ed !important; font-size: 14px; line-height: 35px; }
.screen-wrapper .dv-scroll-board .rows .index { color: #00ffff !important; }
.screen-wrapper .dv-digital-flop canvas { display: block; margin: 0 auto; }
