/* ============================================================
 * 能源能耗管理系统 - 通用页面样式
 * 版本：v2.0 高端深色数字能源大屏统一组件库
 * 依赖：style-enhanced.css (复用配色变量与背景体系)
 * ============================================================ */

/* ============ 页面布局 ============ */
/* 业务页面（非首页 overview）启用垂直滚动：module 撑满 content 高度，page-wrap 内部滚动 */
.module.active:not(#module-overview) {
    height: 100%;
    overflow: hidden;
}
.page-wrap {
    padding: 14px 16px;
    height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(86, 180, 220, 0.16);
    position: relative;
}
.page-header::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, #5cd6f0, transparent);
    border-radius: 1px;
}

.page-header h2 {
    font-size: 19px;
    color: #e8f4ff;
    margin: 0;
    font-weight: 600;
    letter-spacing: 1.2px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.page-header h2 i {
    color: #5cd6f0;
    font-size: 18px;
    text-shadow: 0 0 8px rgba(86, 200, 235, 0.45);
}

.page-header .breadcrumb {
    font-size: 12px;
    color: rgba(168, 197, 221, 0.65);
    letter-spacing: 0.5px;
}

/* ============ 指标卡片 ============ */
.kpi-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.kpi-item {
    background: linear-gradient(180deg, rgba(24, 52, 96, 0.62) 0%, rgba(12, 28, 58, 0.52) 100%);
    border: 1px solid rgba(110, 210, 245, 0.32);
    border-radius: 6px;
    padding: 14px 16px;
    box-shadow:
        0 4px 16px rgba(0, 12, 32, 0.45),
        0 0 12px rgba(86, 200, 235, 0.08),
        inset 0 0 22px rgba(86, 200, 235, 0.05);
    backdrop-filter: blur(12px) saturate(130%);
    -webkit-backdrop-filter: blur(12px) saturate(130%);
    transition: all 0.3s ease;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}
.kpi-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 8%, rgba(110, 220, 250, 0.7) 50%, transparent 92%);
}

.kpi-item:hover {
    border-color: rgba(110, 220, 250, 0.55);
    box-shadow:
        0 6px 22px rgba(0, 12, 32, 0.55),
        0 0 20px rgba(86, 200, 235, 0.2),
        inset 0 0 22px rgba(86, 200, 235, 0.1);
    transform: translateY(-2px);
}

.kpi-item .kpi-label {
    font-size: 12px;
    color: rgba(200, 225, 248, 0.82);
    display: block;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.kpi-item .kpi-value {
    font-size: 28px;
    font-weight: 700;
    color: #6ee5ff;
    line-height: 1.2;
    font-family: 'Orbitron', 'Microsoft YaHei', sans-serif;
    letter-spacing: 0.5px;
    text-shadow:
        0 0 10px rgba(110, 229, 255, 0.7),
        0 0 24px rgba(86, 200, 235, 0.45),
        0 0 44px rgba(86, 200, 235, 0.22);
}

.kpi-item .kpi-unit {
    font-size: 12px;
    color: rgba(168, 197, 221, 0.65);
    margin-left: 4px;
    font-family: 'Microsoft YaHei', sans-serif;
    font-weight: 400;
}

.kpi-item .kpi-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(86, 200, 235, 0.18), rgba(56, 140, 220, 0.1));
    color: #5cd6f0;
    border: 1px solid rgba(86, 180, 220, 0.25);
    box-shadow: 0 0 10px rgba(86, 200, 235, 0.15);
}

/* ============ 图表区域 ============ */
.chart-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
}

.chart-grid.cols-2 {
    grid-template-columns: 1fr 1fr;
}

.chart-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.chart-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.table-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
}

.table-grid.cols-2 {
    grid-template-columns: 1fr 1fr;
}

.chart-panel {
    background: linear-gradient(180deg, rgba(24, 52, 96, 0.6) 0%, rgba(12, 28, 58, 0.5) 100%);
    border: 1px solid rgba(110, 210, 245, 0.32);
    border-radius: 6px;
    box-shadow:
        0 4px 16px rgba(0, 12, 32, 0.45),
        0 0 12px rgba(86, 200, 235, 0.08),
        inset 0 0 22px rgba(86, 200, 235, 0.05);
    backdrop-filter: blur(12px) saturate(130%);
    -webkit-backdrop-filter: blur(12px) saturate(130%);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}
.chart-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 8%, rgba(110, 220, 250, 0.7) 50%, transparent 92%);
    z-index: 1;
}

.chart-panel:hover {
    border-color: rgba(110, 220, 250, 0.55);
    box-shadow:
        0 6px 22px rgba(0, 12, 32, 0.55),
        0 0 20px rgba(86, 200, 235, 0.18);
}

.chart-panel-header {
    padding: 9px 14px;
    border-bottom: 1px solid rgba(110, 210, 245, 0.22);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, rgba(86, 200, 235, 0.18) 0%, rgba(40, 100, 170, 0.08) 50%, transparent 100%);
    position: relative;
}
.chart-panel-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 3px;
    background: linear-gradient(180deg, #6ee5ff, #3892d8);
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 10px rgba(110, 229, 255, 0.55);
}

.chart-panel-header h3 {
    font-size: 13.5px;
    color: #e8f4ff;
    margin: 0;
    font-weight: 600;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.chart-panel-header h3 i {
    color: #5cd6f0;
    font-size: 12px;
}

.chart-panel-body {
    padding: 10px 12px;
}

.chart-box {
    width: 100%;
    height: 280px;
}

/* ============ 表格 ============ */
.table-panel {
    background: linear-gradient(180deg, rgba(24, 52, 96, 0.6) 0%, rgba(12, 28, 58, 0.5) 100%);
    border: 1px solid rgba(110, 210, 245, 0.32);
    border-radius: 6px;
    margin-bottom: 14px;
    box-shadow:
        0 4px 16px rgba(0, 12, 32, 0.45),
        0 0 12px rgba(86, 200, 235, 0.08),
        inset 0 0 22px rgba(86, 200, 235, 0.05);
    backdrop-filter: blur(12px) saturate(130%);
    -webkit-backdrop-filter: blur(12px) saturate(130%);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}
.table-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 8%, rgba(110, 220, 250, 0.7) 50%, transparent 92%);
    z-index: 1;
}

.table-panel:hover {
    border-color: rgba(110, 220, 250, 0.55);
}

.table-panel-header {
    padding: 9px 14px;
    border-bottom: 1px solid rgba(110, 210, 245, 0.22);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, rgba(86, 200, 235, 0.18) 0%, rgba(40, 100, 170, 0.08) 50%, transparent 100%);
    position: relative;
}
.table-panel-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 3px;
    background: linear-gradient(180deg, #6ee5ff, #3892d8);
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 10px rgba(110, 229, 255, 0.55);
}

.table-panel-header h3 {
    font-size: 13.5px;
    color: #e8f4ff;
    margin: 0;
    font-weight: 600;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.table-panel-header h3 i {
    color: #5cd6f0;
    font-size: 12px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    padding: 9px 12px;
    font-size: 12px;
    color: rgba(190, 215, 240, 0.72);
    text-align: left;
    border-bottom: 1px solid rgba(86, 180, 220, 0.2);
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.3px;
    background: rgba(56, 140, 200, 0.05);
}

.data-table td {
    padding: 8px 12px;
    font-size: 12px;
    color: #e8f4ff;
    border-bottom: 1px solid rgba(86, 180, 220, 0.08);
    transition: background 0.2s;
}

.data-table tr:hover td {
    background: rgba(56, 140, 200, 0.08);
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* ============ 标签页 ============ */
.tab-nav {
    display: flex;
    gap: 2px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(86, 180, 220, 0.18);
    position: relative;
}

.tab-nav-item {
    padding: 9px 18px;
    font-size: 13px;
    color: rgba(190, 215, 240, 0.65);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.25s ease;
    user-select: none;
    letter-spacing: 0.5px;
    position: relative;
}

.tab-nav-item:hover {
    color: #e8f4ff;
}

.tab-nav-item.active {
    color: #5cd6f0;
    border-bottom-color: #5cd6f0;
    text-shadow: 0 0 8px rgba(86, 200, 235, 0.4);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: tabFadeIn 0.35s ease;
}

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

/* ============ 按钮 ============ */
.btn {
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid rgba(86, 180, 220, 0.3);
    background: linear-gradient(180deg, rgba(56, 140, 200, 0.14), rgba(56, 140, 200, 0.06));
    color: #5cd6f0;
    transition: all 0.25s ease;
    outline: none;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn:hover {
    background: linear-gradient(180deg, rgba(86, 200, 235, 0.22), rgba(56, 140, 200, 0.12));
    border-color: rgba(86, 200, 235, 0.55);
    box-shadow: 0 0 12px rgba(86, 200, 235, 0.22);
    color: #8fe5f5;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(86, 200, 235, 0.3), rgba(56, 140, 220, 0.2));
    color: #e8f4ff;
    border-color: rgba(86, 200, 235, 0.5);
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(86, 200, 235, 0.4), rgba(56, 140, 220, 0.28));
    box-shadow: 0 0 14px rgba(86, 200, 235, 0.3);
    color: #fff;
}

/* ============ 文本展示区 ============ */
.text-section {
    padding: 16px 18px;
    background: linear-gradient(180deg, rgba(24, 52, 96, 0.6) 0%, rgba(12, 28, 58, 0.5) 100%);
    border: 1px solid rgba(110, 210, 245, 0.32);
    border-radius: 6px;
    margin-bottom: 14px;
    box-shadow:
        0 4px 16px rgba(0, 12, 32, 0.45),
        0 0 12px rgba(86, 200, 235, 0.08),
        inset 0 0 22px rgba(86, 200, 235, 0.05);
    backdrop-filter: blur(12px) saturate(130%);
    -webkit-backdrop-filter: blur(12px) saturate(130%);
    transition: all 0.3s ease;
    position: relative;
}
.text-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 8%, rgba(110, 220, 250, 0.7) 50%, transparent 92%);
}

.text-section:hover {
    border-color: rgba(110, 220, 250, 0.55);
}

.text-section h3 {
    font-size: 14px;
    color: #5cd6f0;
    margin: 0 0 10px 0;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(86, 200, 235, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
}

.text-section p {
    font-size: 12.5px;
    color: rgba(220, 240, 255, 0.82);
    line-height: 1.85;
    margin: 0 0 8px 0;
    letter-spacing: 0.3px;
}

.text-section p:last-child {
    margin-bottom: 0;
}

/* ============ 表单（系统设置等） ============ */
.form-group {
    margin-bottom: 14px;
}
.form-group label {
    display: block;
    font-size: 12px;
    color: rgba(190, 215, 240, 0.78);
    margin-bottom: 5px;
    letter-spacing: 0.3px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 7px 10px;
    font-size: 12px;
    color: #e8f4ff;
    background: rgba(8, 20, 42, 0.5);
    border: 1px solid rgba(86, 180, 220, 0.25);
    border-radius: 4px;
    outline: none;
    transition: all 0.25s;
    box-sizing: border-box;
    font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgba(86, 200, 235, 0.55);
    box-shadow: 0 0 10px rgba(86, 200, 235, 0.18);
    background: rgba(12, 28, 56, 0.6);
}
.form-group select option {
    background: rgba(8, 20, 42, 0.95);
    color: #e8f4ff;
}

/* ============ 操作栏 ============ */
.action-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    justify-content: flex-end;
    align-items: center;
}

/* ============ 告警中心页面专用样式 ============ */
.alert-page .alert-kpi-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 14px;
}

.alert-kpi-a {
    background: linear-gradient(145deg, rgba(10, 22, 40, 0.85), rgba(14, 30, 55, 0.75));
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 10px;
    padding: 14px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(0, 12, 32, 0.4);
}
.alert-kpi-a::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    border-radius: 3px 0 0 3px;
}
.alert-kpi-a:hover {
    transform: translateY(-2px);
}

/* 各卡片主题色 */
.alert-kpi-a.card-critical { border-color: rgba(232, 90, 90, 0.35); }
.alert-kpi-a.card-critical::before { background: linear-gradient(180deg, #e85a5a, #c62828); }
.alert-kpi-a.card-critical:hover { box-shadow: 0 6px 25px rgba(232, 90, 90, 0.25); }
.alert-kpi-a.card-warning { border-color: rgba(245, 158, 60, 0.35); }
.alert-kpi-a.card-warning::before { background: linear-gradient(180deg, #f59e3c, #e65100); }
.alert-kpi-a.card-warning:hover { box-shadow: 0 6px 25px rgba(245, 158, 60, 0.25); }
.alert-kpi-a.card-info { border-color: rgba(94, 229, 255, 0.35); }
.alert-kpi-a.card-info::before { background: linear-gradient(180deg, #5ee5ff, #00bcd4); }
.alert-kpi-a.card-info:hover { box-shadow: 0 6px 25px rgba(94, 229, 255, 0.25); }
.alert-kpi-a.card-success { border-color: rgba(95, 214, 160, 0.35); }
.alert-kpi-a.card-success::before { background: linear-gradient(180deg, #5fd6a0, #2e7d32); }
.alert-kpi-a.card-success:hover { box-shadow: 0 6px 25px rgba(95, 214, 160, 0.25); }
.alert-kpi-a.card-total { border-color: rgba(78, 168, 232, 0.35); }
.alert-kpi-a.card-total::before { background: linear-gradient(180deg, #4ea8e8, #1565c0); }
.alert-kpi-a.card-total:hover { box-shadow: 0 6px 25px rgba(78, 168, 232, 0.25); }

/* 各卡片内元素 */
.alert-kpi-a .ak-num {
    font-size: 24px;
    font-weight: 700;
    color: #e8f4fd;
    line-height: 1;
    margin-bottom: 4px;
}
.alert-kpi-a .ak-label {
    font-size: 12px;
    color: #8ba4bd;
    margin-bottom: 3px;
}
.alert-kpi-a .ak-sub {
    font-size: 11px;
    color: #5a7090;
}
.alert-kpi-a .ak-sub.urgent { color: #e85a5a; font-weight: 600; }
.alert-kpi-a .ak-sub.down { color: #5fd6a0; }

/* 脉冲圆环 */
.alert-kpi-a .ak-icon-ring {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.alert-kpi-a .ak-icon-ring i {
    position: relative;
    z-index: 2;
    font-size: 16px;
}
.alert-kpi-a .ak-icon-ring .ak-ring-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(232, 90, 90, 0.5);
    animation: alert-pulse 2s ease-out infinite;
}
@keyframes alert-pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* 条形仪表 */
.alert-kpi-a .ak-bar-gauge {
    width: 56px;
    flex-shrink: 0;
}
.alert-kpi-a .ak-bar-track {
    height: 6px;
    background: rgba(245, 158, 60, 0.15);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 3px;
}
.alert-kpi-a .ak-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e3c, #ff6d00);
    border-radius: 3px;
}
.alert-kpi-a .ak-bar-ticks {
    display: flex;
    justify-content: space-between;
    font-size: 8px;
    color: #5a7090;
}
.alert-kpi-a .ak-icon-block {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(245, 158, 60, 0.25), rgba(255, 109, 0, 0.15));
    border-radius: 8px;
    color: #f59e3c;
    font-size: 14px;
}

/* 图标计数 */
.alert-kpi-a .ak-icon-count {
    position: relative;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(94, 229, 255, 0.2), rgba(0, 188, 212, 0.1));
    border-radius: 8px;
    color: #5ee5ff;
    font-size: 16px;
}
.alert-kpi-a .ak-count-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    background: #5ee5ff;
    color: #0a1628;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 对勾进度 */
.alert-kpi-a .ak-check-ring {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}
.alert-kpi-a .ak-check-ring svg { width: 100%; height: 100%; }

/* Sparkline */
.alert-kpi-a .ak-spark {
    width: 60px;
    height: 30px;
    flex-shrink: 0;
}
.alert-kpi-a .ak-spark svg { width: 100%; height: 100%; }
.alert-kpi-a .ak-icon-trend {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(78, 168, 232, 0.2), rgba(21, 101, 192, 0.1));
    border-radius: 6px;
    color: #4ea8e8;
    font-size: 13px;
}
.alert-kpi-a .ak-body { flex: 1; min-width: 0; }

/* 告警页面图表 */
.alert-page .chart-box {
    height: 180px;
}

/* KPI 面板 */
.alert-kpi-panel .chart-panel-body {
    padding: 10px 14px;
}
.kpi-metrics-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}
.kpi-metric-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(10, 22, 40, 0.4);
    border: 1px solid rgba(0, 188, 212, 0.1);
    border-radius: 8px;
    padding: 7px 10px;
}
.kpi-metric-item .km-ring {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}
.kpi-metric-item .km-ring svg { width: 100%; height: 100%; }
.kpi-metric-item .km-info { flex: 1; min-width: 0; }
.kpi-metric-item .km-num {
    font-size: 14px;
    font-weight: 700;
    color: #e8f4fd;
    line-height: 1;
}
.kpi-metric-item .km-unit { font-size: 9px; color: #5a7090; margin-left: 2px; }
.kpi-metric-item .km-label { font-size: 9px; color: #8ba4bd; margin-top: 2px; }

/* TOP 告警来源 */
.top-sources-box {
    background: rgba(10, 22, 40, 0.4);
    border: 1px solid rgba(0, 188, 212, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
}
.top-sources-box .ts-title {
    font-size: 10px;
    color: #8ba4bd;
    margin-bottom: 5px;
    font-weight: 600;
}
.top-sources-box .ts-list { display: flex; flex-direction: column; gap: 2px; }
.top-sources-box .ts-item {
    display: flex;
    align-items: center;
    font-size: 10px;
    color: #c0d6e8;
    padding: 2px 0;
    border-bottom: 1px dashed rgba(0, 188, 212, 0.08);
}
.top-sources-box .ts-item:last-child { border-bottom: none; }
.top-sources-box .ts-item .rank {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    background: linear-gradient(135deg, #4ea8e8, #1565c0);
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
}
.top-sources-box .ts-item.r1 .rank { background: linear-gradient(135deg, #e85a5a, #c62828); }
.top-sources-box .ts-item.r2 .rank { background: linear-gradient(135deg, #f59e3c, #e65100); }
.top-sources-box .ts-item.r3 .rank { background: linear-gradient(135deg, #5ee5ff, #00bcd4); }
.top-sources-box .ts-item .count { margin-left: auto; color: #5a7090; font-size: 9px; }

/* ============ 响应式适配 ============ */
@media (max-width: 1200px) {
    .chart-grid.cols-3,
    .chart-grid.cols-4 {
        grid-template-columns: 1fr 1fr;
    }
    .alert-page .alert-kpi-row {
        grid-template-columns: repeat(3, 1fr);
    }
    .table-grid.cols-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .chart-grid.cols-2,
    .chart-grid.cols-3,
    .chart-grid.cols-4 {
        grid-template-columns: 1fr;
    }
    .table-grid.cols-2 {
        grid-template-columns: 1fr;
    }
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .action-bar {
        justify-content: stretch;
    }
    .action-bar .btn {
        flex: 1;
    }
}

/* ============ 光伏系统专用样式（参照充电桩管理界面风格） ============ */
.pv-main-layout {
    display: flex;
    gap: 10px;
    margin-bottom: 0;
    min-height: 280px;
}
.pv-sidebar {
    width: 210px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}
.pv-device-area {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* 区域导航按钮 */
.pv-area-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.pv-area-btn {
    padding: 8px 6px;
    text-align: center;
    font-size: 12.5px;
    color: rgba(200, 225, 248, 0.72);
    border: 1px solid rgba(110, 210, 245, 0.25);
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(20, 42, 78, 0.5) 0%, rgba(10, 24, 52, 0.4) 100%);
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
    user-select: none;
}
.pv-area-btn:hover {
    border-color: rgba(110, 220, 250, 0.5);
    color: #e8f4ff;
    background: linear-gradient(180deg, rgba(30, 60, 108, 0.6) 0%, rgba(16, 36, 72, 0.5) 100%);
}
.pv-area-btn.active {
    background: linear-gradient(135deg, rgba(110, 229, 255, 0.28) 0%, rgba(78, 168, 232, 0.18) 100%);
    border-color: rgba(110, 229, 255, 0.6);
    color: #6ee5ff;
    box-shadow: 0 0 12px rgba(110, 229, 255, 0.2), inset 0 0 8px rgba(110, 229, 255, 0.1);
    text-shadow: 0 0 8px rgba(110, 229, 255, 0.4);
}

/* 逆变器区域标题栏 */
.pv-device-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    background: linear-gradient(90deg, rgba(86, 200, 235, 0.18) 0%, rgba(40, 100, 170, 0.08) 50%, transparent 100%);
    border-bottom: 1px solid rgba(110, 210, 245, 0.22);
    border-radius: 6px 6px 0 0;
    position: relative;
}
.pv-device-header::before {
    content: '';
    position: absolute;
    left: 0; top: 5px; bottom: 5px;
    width: 3px;
    background: linear-gradient(180deg, #6ee5ff, #4ea8e8);
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 10px rgba(110, 229, 255, 0.55);
}
.pv-device-header h3 {
    font-size: 14px;
    color: #e8f4ff;
    margin: 0;
    font-weight: 600;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pv-device-header h3 i {
    color: #6ee5ff;
    font-size: 13px;
}
.pv-status-legend {
    display: flex;
    gap: 16px;
    align-items: center;
}
.pv-legend-item {
    font-size: 12px;
    color: rgba(200, 225, 248, 0.72);
    display: flex;
    align-items: center;
    gap: 5px;
}
.pv-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.pv-dot-gen { background: #5fd6a0; box-shadow: 0 0 6px rgba(95,214,160,0.6); }
.pv-dot-standby { background: #6ee5ff; box-shadow: 0 0 6px rgba(110,229,255,0.6); }
.pv-dot-fault { background: #e85a5a; box-shadow: 0 0 6px rgba(232,90,90,0.6); }

/* 3×3 逆变器设备卡片网格 */
.pv-device-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 10px;
    background: linear-gradient(180deg, rgba(12, 28, 58, 0.35) 0%, rgba(8, 20, 42, 0.3) 100%);
    border: 1px solid rgba(110, 210, 245, 0.2);
    border-top: none;
    border-radius: 0 0 6px 6px;
    flex: 1;
}
.pv-inverter-card {
    background: linear-gradient(180deg, rgba(18, 40, 76, 0.6) 0%, rgba(10, 24, 52, 0.55) 100%);
    border: 1px solid rgba(110, 210, 245, 0.2);
    border-radius: 6px;
    padding: 8px 10px 6px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.pv-inverter-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 8%, rgba(110, 220, 250, 0.5) 50%, transparent 92%);
}
.pv-inverter-card:hover {
    border-color: rgba(110, 220, 250, 0.45);
    box-shadow: 0 4px 16px rgba(0, 12, 32, 0.4), 0 0 14px rgba(110, 229, 255, 0.15);
    transform: translateY(-2px);
}

/* 逆变器卡片头部：编号+状态/控制按钮 */
.pv-inv-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.pv-inv-name {
    font-size: 11.5px;
    color: #6ee5ff;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 0 6px rgba(110, 229, 255, 0.3);
}
.pv-inv-badges {
    display: flex;
    gap: 4px;
}
.pv-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
    letter-spacing: 0.3px;
}
.pv-badge-gen { background: rgba(95,214,160,0.18); color: #7ae0b0; border: 1px solid rgba(95,214,160,0.35); }
.pv-badge-standby { background: rgba(110,229,255,0.15); color: #8fdfff; border: 1px solid rgba(110,229,255,0.3); }
.pv-badge-fault { background: rgba(232,90,90,0.18); color: #f08080; border: 1px solid rgba(232,90,90,0.35); }
.pv-badge-ongrid { background: rgba(95,214,160,0.12); color: #7ae0b0; border: 1px solid rgba(95,214,160,0.25); }
.pv-badge-offgrid { background: rgba(232,90,90,0.12); color: #f08080; border: 1px solid rgba(232,90,90,0.25); }

/* 逆变器中间区域：图标 + 实时功率 */
.pv-inv-mid {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(110, 210, 245, 0.1);
    margin-bottom: 6px;
}
.pv-inv-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(110, 229, 255, 0.15) 0%, rgba(78, 168, 232, 0.08) 100%);
    border: 1px solid rgba(110, 210, 245, 0.2);
    font-size: 18px;
    color: #6ee5ff;
    flex-shrink: 0;
    position: relative;
}
.pv-inv-icon i {
    text-shadow: 0 0 10px rgba(110, 229, 255, 0.5);
}
.pv-inverter-card.status-fault .pv-inv-icon {
    background: linear-gradient(135deg, rgba(232,90,90,0.15) 0%, rgba(200,60,60,0.08) 100%);
    border-color: rgba(232,90,90,0.25);
    color: #e85a5a;
}
.pv-inverter-card.status-fault .pv-inv-icon i {
    text-shadow: 0 0 10px rgba(232,90,90,0.5);
}
.pv-inverter-card.status-standby .pv-inv-icon {
    background: linear-gradient(135deg, rgba(110,229,255,0.1) 0%, rgba(78,168,232,0.06) 100%);
    color: rgba(110,229,255,0.6);
}
.pv-inv-power {
    flex: 1;
}
.pv-inv-power-val {
    font-size: 19px;
    font-weight: 700;
    color: #6ee5ff;
    line-height: 1;
    font-family: 'Orbitron', 'Microsoft YaHei', sans-serif;
    text-shadow: 0 0 10px rgba(110,229,255,0.5), 0 0 20px rgba(110,229,255,0.25);
}
.pv-inverter-card.status-fault .pv-inv-power-val {
    color: #e85a5a;
    text-shadow: 0 0 10px rgba(232,90,90,0.4);
}
.pv-inverter-card.status-standby .pv-inv-power-val {
    color: rgba(110,229,255,0.7);
    text-shadow: none;
}
.pv-inv-power-unit {
    font-size: 11px;
    color: rgba(180, 210, 240, 0.6);
    margin-left: 2px;
}
.pv-inv-power-label {
    font-size: 10.5px;
    color: rgba(180, 210, 240, 0.55);
    margin-top: 3px;
}

/* 逆变器底部数据行 */
.pv-inv-data {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px 8px;
}
.pv-inv-data-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 10.5px;
}
.pv-inv-data-item .label {
    color: rgba(180, 210, 240, 0.55);
}
.pv-inv-data-item .value {
    color: #e8f4ff;
    font-weight: 500;
    font-family: 'Orbitron', 'Microsoft YaHei', sans-serif;
}

/* 告警表格等级颜色 */
.table-panel .alarm-critical { color: #f08080; font-weight: 500; }
.table-panel .alarm-warning { color: #f5b87a; font-weight: 500; }
.table-panel .alarm-info { color: #6ee5ff; font-weight: 500; }

/* ============ 光伏·充电桩 能量流向条 ============ */
.energy-flow-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(18, 48, 90, 0.55) 0%, rgba(10, 28, 60, 0.45) 100%);
    border: 1px solid rgba(110, 210, 245, 0.25);
    border-radius: 6px;
    margin-bottom: 10px;
    box-shadow: 0 0 12px rgba(86, 200, 235, 0.08), inset 0 0 20px rgba(86, 200, 235, 0.04);
}
.flow-node {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 5px;
    flex-shrink: 0;
}
.flow-node i {
    font-size: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.flow-node span {
    font-size: 11.5px;
    color: rgba(200, 225, 248, 0.7);
    letter-spacing: 0.3px;
}
.flow-node strong {
    font-size: 16px;
    font-weight: 700;
    font-family: 'Orbitron', 'Microsoft YaHei', sans-serif;
    margin-left: 2px;
}
.flow-sun {
    background: linear-gradient(135deg, rgba(255,180,80,0.18) 0%, rgba(255,140,50,0.08) 100%);
    border: 1px solid rgba(255,180,80,0.3);
}
.flow-sun i {
    background: linear-gradient(135deg, rgba(255,180,80,0.25), rgba(255,140,50,0.12));
    color: #ffc860;
    text-shadow: 0 0 10px rgba(255,180,80,0.5);
}
.flow-sun strong { color: #ffc860; text-shadow: 0 0 8px rgba(255,180,80,0.35); }
.flow-charge {
    background: linear-gradient(135deg, rgba(95,214,160,0.16) 0%, rgba(60,180,130,0.08) 100%);
    border: 1px solid rgba(95,214,160,0.3);
}
.flow-charge i {
    background: linear-gradient(135deg, rgba(95,214,160,0.25), rgba(60,180,130,0.12));
    color: #5fd6a0;
    text-shadow: 0 0 10px rgba(95,214,160,0.5);
}
.flow-charge strong { color: #5fd6a0; text-shadow: 0 0 8px rgba(95,214,160,0.35); }
.flow-save {
    background: linear-gradient(135deg, rgba(110,229,255,0.16) 0%, rgba(78,168,232,0.08) 100%);
    border: 1px solid rgba(110,229,255,0.28);
}
.flow-save i {
    background: linear-gradient(135deg, rgba(110,229,255,0.25), rgba(78,168,232,0.12));
    color: #6ee5ff;
    text-shadow: 0 0 10px rgba(110,229,255,0.5);
}
.flow-save strong { color: #6ee5ff; text-shadow: 0 0 8px rgba(110,229,255,0.35); }
.flow-co2 {
    background: linear-gradient(135deg, rgba(120,240,180,0.14) 0%, rgba(80,200,140,0.06) 100%);
    border: 1px solid rgba(120,240,180,0.25);
}
.flow-co2 i {
    background: linear-gradient(135deg, rgba(120,240,180,0.22), rgba(80,200,140,0.1));
    color: #7df0b4;
    text-shadow: 0 0 10px rgba(120,240,180,0.45);
}
.flow-co2 strong { color: #7df0b4; text-shadow: 0 0 8px rgba(120,240,180,0.3); }

.flow-line {
    flex: 1;
    min-width: 60px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,180,80,0.5), rgba(95,214,160,0.5));
    border-radius: 1px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.flow-line-slim {
    flex: 0 0 30px;
    min-width: 20px;
    height: 2px;
    background: linear-gradient(90deg, rgba(95,214,160,0.4), rgba(110,229,255,0.4));
}
.flow-dot {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6ee5ff;
    box-shadow: 0 0 8px rgba(110,229,255,0.7);
    animation: flowDotMove 2s linear infinite;
}
.flow-dot:nth-child(1) { left: 15%; animation-delay: 0s; }
.flow-dot:nth-child(2) { left: 48%; animation-delay: 0.7s; }
.flow-dot:nth-child(3) { left: 80%; animation-delay: 1.4s; }
@keyframes flowDotMove {
    0% { opacity: 0; transform: translateX(-10px); }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; transform: translateX(10px); }
}
.flow-percent {
    position: absolute;
    top: -20px;
    font-size: 11px;
    color: rgba(200, 230, 255, 0.8);
    white-space: nowrap;
}
.flow-percent b {
    color: #6ee5ff;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 8px rgba(110,229,255,0.5);
}

/* KPI类型颜色 */
.kpi-item.kpi-pv .kpi-value { color: #6ee5ff; text-shadow: 0 0 12px rgba(110,229,255,0.3); }
.kpi-item.kpi-charge .kpi-value { color: #5fd6a0; text-shadow: 0 0 12px rgba(95,214,160,0.3); }
.kpi-item.kpi-benefit .kpi-value { color: #ffc860; text-shadow: 0 0 12px rgba(255,200,96,0.3); }
.kpi-item.kpi-carbon .kpi-value { color: #7df0b4; text-shadow: 0 0 12px rgba(125,240,180,0.3); }
.kpi-item .kpi-label i {
    margin-right: 4px;
    font-size: 12px;
    opacity: 0.8;
}

/* ============ 充电桩区域 ============ */
.charge-section {
    background: linear-gradient(180deg, rgba(18, 40, 76, 0.5) 0%, rgba(10, 24, 52, 0.4) 100%);
    border: 1px solid rgba(110, 210, 245, 0.22);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 12, 32, 0.4), inset 0 0 20px rgba(86, 200, 235, 0.04);
}
.charge-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    background: linear-gradient(90deg, rgba(95,214,160,0.15) 0%, rgba(40,100,170,0.06) 50%, transparent 100%);
    border-bottom: 1px solid rgba(95,214,160,0.2);
    position: relative;
}
.charge-section-header::before {
    content: '';
    position: absolute;
    left: 0; top: 5px; bottom: 5px;
    width: 3px;
    background: linear-gradient(180deg, #5fd6a0, #36d8ce);
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 10px rgba(95,214,160,0.5);
}
.charge-section-header h3 {
    font-size: 14px;
    color: #e8f4ff;
    margin: 0;
    font-weight: 600;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.charge-section-header h3 i {
    color: #5fd6a0;
    font-size: 13px;
}
.charge-status-legend {
    display: flex;
    gap: 14px;
    align-items: center;
}
.charge-supply-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #ffc860;
    padding: 3px 10px;
    background: rgba(255,200,96,0.1);
    border: 1px solid rgba(255,200,96,0.28);
    border-radius: 3px;
    margin-left: 8px;
}
.charge-supply-tag i { font-size: 11px; }
.charge-dot-charging { background: #5fd6a0; box-shadow: 0 0 6px rgba(95,214,160,0.6); }
.charge-dot-idle { background: #6ee5ff; box-shadow: 0 0 6px rgba(110,229,255,0.6); }
.charge-dot-fault { background: #e85a5a; box-shadow: 0 0 6px rgba(232,90,90,0.6); }

/* 充电桩网格 4×2 */
.charge-device-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 10px;
    background: linear-gradient(180deg, rgba(12, 28, 58, 0.3) 0%, rgba(8, 20, 42, 0.25) 100%);
}
.charge-pile-card {
    background: linear-gradient(180deg, rgba(14, 36, 70, 0.55) 0%, rgba(8, 22, 48, 0.5) 100%);
    border: 1px solid rgba(95,214,160,0.2);
    border-radius: 6px;
    padding: 10px 10px 8px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.charge-pile-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 8%, rgba(95,214,160,0.45) 50%, transparent 92%);
}
.charge-pile-card:hover {
    border-color: rgba(95,214,160,0.4);
    box-shadow: 0 4px 16px rgba(0, 12, 32, 0.4), 0 0 14px rgba(95,214,160,0.12);
    transform: translateY(-2px);
}
.charge-pile-card.status-fault {
    border-color: rgba(232,90,90,0.3);
}
.charge-pile-card.status-fault::before {
    background: linear-gradient(90deg, transparent 8%, rgba(232,90,90,0.5) 50%, transparent 92%);
}
.charge-pile-card.status-idle {
    border-color: rgba(110,210,245,0.18);
    opacity: 0.82;
}

/* 充电桩卡片头部 */
.charge-pile-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.charge-pile-name {
    font-size: 11.5px;
    color: #5fd6a0;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 0 6px rgba(95,214,160,0.3);
}
.charge-pile-card.status-fault .charge-pile-name { color: #e85a5a; text-shadow: 0 0 6px rgba(232,90,90,0.3); }
.charge-pile-card.status-idle .charge-pile-name { color: rgba(110,229,255,0.65); text-shadow: none; }
.charge-pile-badges { display: flex; gap: 4px; }
.charge-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
}
.charge-badge-charging { background: rgba(95,214,160,0.18); color: #7ae0b0; border: 1px solid rgba(95,214,160,0.35); }
.charge-badge-idle { background: rgba(110,229,255,0.12); color: #8fdfff; border: 1px solid rgba(110,229,255,0.25); }
.charge-badge-fault { background: rgba(232,90,90,0.18); color: #f08080; border: 1px solid rgba(232,90,90,0.35); }

/* 充电桩中部：图标+功率 */
.charge-pile-mid {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(95,214,160,0.08);
    margin-bottom: 6px;
}
.charge-pile-icon {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(95,214,160,0.15) 0%, rgba(60,180,130,0.08) 100%);
    border: 1px solid rgba(95,214,160,0.2);
    font-size: 20px;
    color: #5fd6a0;
    flex-shrink: 0;
}
.charge-pile-icon i { text-shadow: 0 0 10px rgba(95,214,160,0.5); }
.charge-pile-card.status-fault .charge-pile-icon {
    background: linear-gradient(135deg, rgba(232,90,90,0.15) 0%, rgba(200,60,60,0.08) 100%);
    border-color: rgba(232,90,90,0.25);
    color: #e85a5a;
}
.charge-pile-card.status-fault .charge-pile-icon i { text-shadow: 0 0 10px rgba(232,90,90,0.5); }
.charge-pile-card.status-idle .charge-pile-icon {
    background: linear-gradient(135deg, rgba(110,229,255,0.08) 0%, rgba(78,168,232,0.04) 100%);
    border-color: rgba(110,229,255,0.15);
    color: rgba(110,229,255,0.5);
}
.charge-pile-power { flex: 1; }
.charge-pile-power-val {
    font-size: 20px;
    font-weight: 700;
    color: #5fd6a0;
    line-height: 1;
    font-family: 'Orbitron', 'Microsoft YaHei', sans-serif;
    text-shadow: 0 0 10px rgba(95,214,160,0.5), 0 0 20px rgba(95,214,160,0.25);
}
.charge-pile-card.status-fault .charge-pile-power-val { color: #e85a5a; text-shadow: 0 0 10px rgba(232,90,90,0.4); }
.charge-pile-card.status-idle .charge-pile-power-val { color: rgba(110,229,255,0.5); text-shadow: none; }
.charge-pile-power-unit { font-size: 11px; color: rgba(180,210,240,0.6); margin-left: 2px; }
.charge-pile-power-label { font-size: 10.5px; color: rgba(180,210,240,0.5); margin-top: 3px; }

/* 充电桩底部数据 */
.charge-pile-data {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px 8px;
}
.charge-pile-data-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 10.5px;
}
.charge-pile-data-item .label { color: rgba(180,210,240,0.5); }
.charge-pile-data-item .value {
    color: #e8f4ff;
    font-weight: 500;
    font-family: 'Orbitron', 'Microsoft YaHei', sans-serif;
}
.charge-pile-data-item .value.pv-ratio-high { color: #ffc860; }

/* 车辆信息条 */
.charge-pile-vehicle {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px dashed rgba(95,214,160,0.1);
    font-size: 10px;
    color: rgba(180,210,240,0.5);
    display: flex;
    justify-content: space-between;
}
.charge-pile-vehicle .plate {
    color: #5fd6a0;
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
}

/* ============ 碳足迹核算页面专用样式 ============ */
.carbon-page-wrap {
    padding: 8px 12px 10px;
    height: 100%;
    box-sizing: border-box;
    overflow-y: auto;
}
.carbon-page-wrap .page-header {
    margin-bottom: 10px;
    padding-bottom: 8px;
}
.carbon-page-wrap .page-header h2 {
    font-size: 17px;
}
.carbon-page-wrap .chart-grid {
    gap: 10px;
    margin-bottom: 10px;
}

/* 四大指标卡片 */
.carbon-kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}
.carbon-kpi-card {
    position: relative;
    padding: 12px 14px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(24, 56, 104, 0.62) 0%, rgba(12, 32, 66, 0.52) 100%);
    border: 1px solid rgba(110, 210, 245, 0.32);
    box-shadow:
        0 4px 20px rgba(0, 12, 32, 0.48),
        0 0 16px rgba(86, 200, 235, 0.1),
        inset 0 0 28px rgba(86, 200, 235, 0.05);
    backdrop-filter: blur(14px) saturate(135%);
    -webkit-backdrop-filter: blur(14px) saturate(135%);
    transition: all 0.3s ease;
}
.carbon-kpi-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 5%, rgba(110, 220, 250, 0.75) 50%, transparent 95%);
}
.carbon-kpi-card:hover {
    transform: translateY(-2px);
    border-color: rgba(110, 220, 250, 0.55);
    box-shadow:
        0 8px 28px rgba(0, 16, 40, 0.55),
        0 0 24px rgba(86, 200, 235, 0.22),
        inset 0 0 28px rgba(86, 200, 235, 0.1);
}
.carbon-kpi-card .ck-glow {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 45%;
    background: linear-gradient(180deg, transparent 0%, rgba(110, 229, 255, 0.06) 100%);
    pointer-events: none;
}
.carbon-kpi-card.daily .ck-glow { background: linear-gradient(180deg, transparent 0%, rgba(110, 229, 255, 0.08) 100%); }
.carbon-kpi-card.monthly .ck-glow { background: linear-gradient(180deg, transparent 0%, rgba(78, 168, 232, 0.08) 100%); }
.carbon-kpi-card.annual .ck-glow { background: linear-gradient(180deg, transparent 0%, rgba(95, 214, 160, 0.08) 100%); }
.carbon-kpi-card.total .ck-glow { background: linear-gradient(180deg, transparent 0%, rgba(92, 214, 240, 0.08) 100%); }

.carbon-kpi-card .ck-label {
    font-size: 12px;
    color: rgba(200, 225, 248, 0.85);
    letter-spacing: 0.6px;
    margin-bottom: 6px;
}
.carbon-kpi-card .ck-value {
    font-size: 28px;
    font-weight: 700;
    font-family: 'Orbitron', 'Microsoft YaHei', sans-serif;
    line-height: 1.1;
    letter-spacing: 0.6px;
    text-shadow:
        0 0 12px rgba(110, 229, 255, 0.65),
        0 0 28px rgba(86, 200, 235, 0.45),
        0 0 52px rgba(86, 200, 235, 0.22);
}
.carbon-kpi-card.daily .ck-value { color: #6ee5ff; }
.carbon-kpi-card.monthly .ck-value { color: #4ea8e8; }
.carbon-kpi-card.annual .ck-value { color: #5fd6a0; }
.carbon-kpi-card.total .ck-value { color: #5cd6f0; }
.carbon-kpi-card .ck-unit {
    font-size: 12px;
    color: rgba(168, 197, 221, 0.7);
    margin-left: 6px;
    font-weight: 500;
    font-family: 'Microsoft YaHei', sans-serif;
}
.carbon-kpi-card .ck-trend {
    margin-top: 6px;
    font-size: 11px;
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(16, 38, 72, 0.45);
    border: 1px solid rgba(110, 210, 245, 0.15);
}
.carbon-kpi-card .ck-trend.down { color: #7df0b4; }
.carbon-kpi-card .ck-trend.stable { color: rgba(168, 197, 221, 0.7); }

/* 新增小模块行 */
.carbon-mini-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}
.carbon-mini-card {
    position: relative;
    padding: 10px 12px;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(22, 52, 96, 0.58) 0%, rgba(12, 30, 62, 0.48) 100%);
    border: 1px solid rgba(110, 210, 245, 0.28);
    box-shadow:
        0 4px 18px rgba(0, 12, 32, 0.45),
        0 0 14px rgba(86, 200, 235, 0.08),
        inset 0 0 24px rgba(86, 200, 235, 0.04);
    backdrop-filter: blur(12px) saturate(130%);
    -webkit-backdrop-filter: blur(12px) saturate(130%);
    overflow: hidden;
    transition: all 0.3s ease;
}
.carbon-mini-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 8%, rgba(110, 220, 250, 0.6) 50%, transparent 92%);
}
.carbon-mini-card:hover {
    border-color: rgba(110, 220, 250, 0.5);
    box-shadow: 0 6px 24px rgba(0, 12, 32, 0.5), 0 0 20px rgba(86, 200, 235, 0.15);
}
.carbon-mini-card .mini-header {
    font-size: 12px;
    color: #e8f4ff;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.carbon-mini-card .mini-header i { color: #5cd6f0; font-size: 11px; }

/* 进度环形 */
.progress-ring-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 6px;
}
.progress-ring { width: 80px; height: 80px; }
.progress-text {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    font-weight: 700;
    color: #6ee5ff;
    font-family: 'Orbitron', 'Microsoft YaHei', sans-serif;
    text-shadow: 0 0 10px rgba(110, 229, 255, 0.55);
}
.progress-text span { font-size: 20px; }
.progress-label {
    text-align: center;
    font-size: 11px;
    color: rgba(168, 197, 221, 0.7);
}

/* 光伏减碳量 */
.pv-offset-card { text-align: center; }
.pv-offset-icon {
    width: 40px; height: 40px;
    margin: 2px auto 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #7df0b4;
    background: linear-gradient(135deg, rgba(125, 240, 180, 0.16), rgba(80, 195, 140, 0.08));
    border: 1px solid rgba(125, 240, 180, 0.3);
    box-shadow: 0 0 16px rgba(125, 240, 180, 0.2);
}
.pv-offset-icon i { text-shadow: 0 0 12px rgba(125, 240, 180, 0.55); }
.pv-offset-value {
    font-size: 20px;
    font-weight: 700;
    color: #7df0b4;
    font-family: 'Orbitron', 'Microsoft YaHei', sans-serif;
    text-shadow: 0 0 10px rgba(125, 240, 180, 0.45);
}
.pv-offset-unit {
    font-size: 11px;
    color: rgba(168, 197, 221, 0.7);
    margin-left: 4px;
    font-family: 'Microsoft YaHei', sans-serif;
}
.pv-offset-label {
    margin-top: 4px;
    font-size: 11px;
    color: rgba(168, 197, 221, 0.65);
}

/* 重点时段小折线 */
.peak-chart-card { display: flex; flex-direction: column; }
.peak-chart-box {
    flex: 1;
    min-height: 80px;
    width: 100%;
}

/* 明细统计行 */
.carbon-detail-row {
    margin-bottom: 10px;
}

/* 碳足迹页面图表统一缩小 */
.carbon-page-wrap .chart-panel-header {
    padding: 6px 12px;
}
.carbon-page-wrap .chart-panel-body {
    padding: 6px 10px;
}
.carbon-page-wrap .chart-box {
    height: 168px;
}

/* 建议 + 导出 */
.carbon-suggest-row {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 10px;
    margin-bottom: 0;
    align-items: stretch;
}
.carbon-suggest-row .suggestion-panel { margin-bottom: 0; }
.suggestion-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.suggestion-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    background: rgba(16, 38, 72, 0.35);
    border: 1px solid rgba(110, 210, 245, 0.12);
    transition: all 0.25s ease;
}
.suggestion-item:hover {
    background: rgba(24, 52, 96, 0.45);
    border-color: rgba(110, 210, 245, 0.25);
    transform: translateX(3px);
}
.suggestion-item .sg-icon {
    width: 28px; height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
    color: #6ee5ff;
    background: linear-gradient(135deg, rgba(110, 229, 255, 0.15), rgba(78, 168, 232, 0.08));
    border: 1px solid rgba(110, 210, 245, 0.2);
    box-shadow: 0 0 10px rgba(110, 229, 255, 0.12);
}
.suggestion-item .sg-text { flex: 1; min-width: 0; }
.suggestion-item .sg-title {
    font-size: 12px;
    color: #e8f4ff;
    font-weight: 600;
    margin-bottom: 2px;
    letter-spacing: 0.3px;
}
.suggestion-item .sg-desc {
    font-size: 11px;
    color: rgba(180, 210, 240, 0.72);
    line-height: 1.4;
}

/* 导出卡片 */
.carbon-export-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 14px;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(22, 52, 96, 0.58) 0%, rgba(12, 30, 62, 0.48) 100%);
    border: 1px solid rgba(110, 210, 245, 0.28);
    box-shadow:
        0 4px 18px rgba(0, 12, 32, 0.45),
        0 0 14px rgba(86, 200, 235, 0.08),
        inset 0 0 24px rgba(86, 200, 235, 0.04);
    backdrop-filter: blur(12px) saturate(130%);
    -webkit-backdrop-filter: blur(12px) saturate(130%);
    position: relative;
    overflow: hidden;
}
.carbon-export-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 8%, rgba(110, 220, 250, 0.6) 50%, transparent 92%);
}
.carbon-export-card .export-title {
    font-size: 14px;
    color: #e8f4ff;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}
.carbon-export-card .export-desc {
    font-size: 11px;
    color: rgba(168, 197, 221, 0.7);
    line-height: 1.5;
    margin-bottom: 10px;
}
.btn-carbon-export {
    padding: 7px 16px;
    font-size: 12px;
    border-radius: 20px;
    border: 1px solid rgba(110, 229, 255, 0.45);
    background: linear-gradient(135deg, rgba(110, 229, 255, 0.22), rgba(78, 168, 232, 0.12));
    color: #e8f4ff;
    box-shadow: 0 0 14px rgba(86, 200, 235, 0.18);
    transition: all 0.25s ease;
}
.btn-carbon-export:hover {
    background: linear-gradient(135deg, rgba(110, 229, 255, 0.35), rgba(78, 168, 232, 0.22));
    border-color: rgba(110, 229, 255, 0.7);
    box-shadow: 0 0 22px rgba(86, 200, 235, 0.32);
    transform: translateY(-1px);
}

/* ============ 光伏页面：紧凑单屏布局 ============ */
.module#module-electric-pv .page-header { margin-bottom: 6px; padding-bottom: 6px; }
.module#module-electric-pv .page-header h2 { font-size: 16px; }
.module#module-electric-pv .kpi-group { gap: 6px; margin-bottom: 6px; }
.module#module-electric-pv .kpi-item { padding: 6px 8px; }
.module#module-electric-pv .kpi-label { font-size: 10px; }
.module#module-electric-pv .kpi-value { font-size: 20px; }
.module#module-electric-pv .energy-flow-bar { margin: 6px 0; padding: 6px 8px; }
.module#module-electric-pv .flow-node { padding: 4px 6px; }
.module#module-electric-pv .flow-node span { font-size: 10px; }
.module#module-electric-pv .flow-node strong { font-size: 13px; }
.module#module-electric-pv .flow-percent { font-size: 10px; }
.module#module-electric-pv .pv-charge-layout { height: calc(100vh - 200px); }
.module#module-electric-pv .pv-device-grid,
.module#module-electric-pv .charge-device-grid { padding: 6px; gap: 5px; }
.module#module-electric-pv .pv-inverter-card { padding: 6px 7px 5px; }
.module#module-electric-pv .charge-pile-card { padding: 5px 7px 5px; }
.module#module-electric-pv .pv-inv-detail { margin-top: 4px; padding: 3px 5px; }
.module#module-electric-pv .pv-detail-row { padding: 1px 0; font-size: 9px; }
.module#module-electric-pv .charge-electric-row { padding: 3px 6px 1px; }
.module#module-electric-pv .charge-soc-bar { height: 10px; margin: 3px 0 2px; }
.module#module-electric-pv .pv-inv-data-item .label,
.module#module-electric-pv .charge-pile-data-item .label { font-size: 9px; }
.module#module-electric-pv .pv-inv-data-item .value,
.module#module-electric-pv .charge-pile-data-item .value { font-size: 10.5px; }
.module#module-electric-pv .pv-inv-power-val { font-size: 18px; }
.module#module-electric-pv .charge-pile-power-val { font-size: 17px; }
.module#module-electric-pv .pv-inv-mid,
.module#module-electric-pv .charge-pile-mid { margin: 3px 0; }
.module#module-electric-pv .pv-inv-icon,
.module#module-electric-pv .charge-pile-icon { font-size: 16px; }
.module#module-electric-pv .pv-inv-top,
.module#module-electric-pv .charge-pile-top { margin-bottom: 3px; }
.module#module-electric-pv .charge-pile-vehicle { margin-top: 3px; font-size: 9px; }
.module#module-electric-pv .pv-inv-data,
.module#module-electric-pv .charge-pile-data { margin-top: 3px; gap: 3px 5px; }
.module#module-electric-pv .pv-status-legend,
.module#module-electric-pv .charge-status-legend { font-size: 9px; }
.module#module-electric-pv .charge-supply-tag { font-size: 9px; padding: 1px 5px; }
.module#module-electric-pv .pv-device-header h3,
.module#module-electric-pv .charge-section-header h3 { font-size: 12.5px; }

/* ============ 光伏页面：新增部件样式 ============ */

/* 逆变器卡片：新增字段 */
.pv-inv-model {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    font-size: 9px;
    color: rgba(110, 229, 255, 0.7);
    background: rgba(110, 229, 255, 0.08);
    border: 1px solid rgba(110, 229, 255, 0.2);
    border-radius: 3px;
    font-weight: 400;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.3px;
    vertical-align: middle;
}
.pv-alarm-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 6px;
    font-size: 9px;
    color: #fff;
    background: linear-gradient(135deg, #e85a5a, #c43d3d);
    border-radius: 10px;
    margin-left: 4px;
    font-weight: 600;
    box-shadow: 0 0 6px rgba(232, 90, 90, 0.4);
}
.pv-inv-data-item .value.temp-high {
    color: #e85a5a !important;
    font-weight: 600;
    text-shadow: 0 0 6px rgba(232, 90, 90, 0.35);
}
.pv-inv-detail {
    margin-top: 6px;
    padding: 6px 8px;
    background: linear-gradient(180deg, rgba(110, 229, 255, 0.05), rgba(110, 229, 255, 0.01));
    border: 1px solid rgba(110, 229, 255, 0.1);
    border-radius: 5px;
}
.pv-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
    font-size: 10px;
    color: rgba(200, 225, 255, 0.7);
}
.pv-detail-row > span:first-child {
    font-weight: 600;
    color: rgba(110, 229, 255, 0.9);
    letter-spacing: 0.5px;
    font-family: 'Orbitron', sans-serif;
}
.pv-detail-row > span:last-child {
    font-family: 'Orbitron', sans-serif;
    font-size: 9.5px;
}
.pv-detail-row i {
    color: rgba(255, 214, 110, 0.85);
    margin-right: 3px;
    font-size: 9px;
}

/* 充电桩卡片：新增字段 */
.cd-model-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    font-size: 9px;
    color: rgba(95, 214, 160, 0.75);
    background: rgba(95, 214, 160, 0.07);
    border: 1px solid rgba(95, 214, 160, 0.18);
    border-radius: 3px;
    font-weight: 400;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.3px;
    vertical-align: middle;
}
.cd-tag {
    display: inline-block;
    padding: 1px 6px;
    font-size: 9px;
    border-radius: 3px;
    font-weight: 600;
    margin-left: 3px;
}
.cd-tag-dc {
    color: #ffd66e;
    background: rgba(255, 214, 110, 0.1);
    border: 1px solid rgba(255, 214, 110, 0.3);
}
.cd-tag-ac {
    color: #6ee5ff;
    background: rgba(110, 229, 255, 0.1);
    border: 1px solid rgba(110, 229, 255, 0.3);
}
.charge-soc-bar {
    position: relative;
    height: 14px;
    margin: 6px 0 4px;
    background: rgba(110, 229, 255, 0.06);
    border: 1px solid rgba(110, 229, 255, 0.12);
    border-radius: 7px;
    overflow: hidden;
}
.charge-soc-fill {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    background: linear-gradient(90deg, #5fd6a0, #ffd66e);
    border-radius: 7px;
    box-shadow: 0 0 8px rgba(95, 214, 160, 0.35);
    transition: width 0.5s ease;
}
.charge-soc-label {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 9px;
    color: #fff;
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}
.charge-electric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
    padding: 6px 8px 2px;
    margin-top: 4px;
    border-top: 1px dashed rgba(110, 229, 255, 0.1);
    font-size: 9.5px;
    color: rgba(200, 225, 255, 0.7);
    flex-wrap: wrap;
}
.charge-electric-row span {
    font-family: 'Orbitron', sans-serif;
    display: inline-flex;
    align-items: center;
}
.charge-electric-row i {
    color: rgba(110, 229, 255, 0.8);
    margin-right: 3px;
    font-size: 9px;
}

/* 图例小色块（用于 chart-panel-extra） */
.legend-k {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: rgba(200, 225, 255, 0.7);
    font-size: 10px;
    margin-left: 8px;
}
.legend-k > span:first-child {
    display: inline-block;
    width: 12px;
    height: 8px;
    border-radius: 2px;
}
.chart-panel-extra {
    display: flex;
    align-items: center;
}
.tp-extra {
    color: rgba(110, 229, 255, 0.8);
    font-size: 11px;
    font-family: 'Orbitron', sans-serif;
}

/* 光伏发电去向 - 顶部KPI小条 */
.pv-usage-kpi {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 6px;
}
.pu-kpi {
    padding: 6px 4px;
    text-align: center;
    background: linear-gradient(180deg, rgba(110, 229, 255, 0.08), rgba(110, 229, 255, 0.01));
    border: 1px solid rgba(110, 229, 255, 0.12);
    border-radius: 5px;
}
.pu-kpi span {
    display: block;
    color: rgba(200, 225, 255, 0.55);
    font-size: 9px;
    margin-bottom: 2px;
}
.pu-kpi b {
    display: block;
    color: #6ee5ff;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
}
.pu-kpi:nth-child(1) b { color: #5fd6a0; }
.pu-kpi:nth-child(2) b { color: #ffd66e; }
.pu-kpi:nth-child(3) b { color: #6ee5ff; }

/* 光伏系统健康度 */
.pv-health-wrap {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.pv-health-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.ph-ring {
    position: relative;
    width: 96px;
    height: 96px;
}
.ph-ring svg {
    display: block;
    filter: drop-shadow(0 0 4px rgba(110, 229, 255, 0.15));
}
.ph-val {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #e4f3ff;
}
.ph-val b {
    font-size: 22px;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    line-height: 1;
}
.ph-val span {
    font-size: 10px;
    color: rgba(200, 225, 255, 0.6);
    margin-top: 2px;
}
.ph-label {
    font-size: 10.5px;
    color: rgba(200, 225, 255, 0.75);
    font-weight: 500;
}
.pv-health-footer {
    display: flex;
    justify-content: space-between;
    padding: 8px 10px 2px;
    margin-top: 8px;
    border-top: 1px dashed rgba(110, 229, 255, 0.12);
    font-size: 10.5px;
    color: rgba(200, 225, 255, 0.65);
}
.pv-health-footer i {
    color: #ffd66e;
    margin-right: 4px;
}
.pv-health-footer b {
    color: #e4f3ff;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
}

/* 光伏设备网格：由 3 列调整（现有6台逆变器自适应） */
.pv-device-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* 充电桩卡片整体增加间距以适应更多字段 */
.charge-pile-card {
    padding: 8px 9px 7px;
}
.charge-pile-vehicle {
    margin-top: 5px;
}

/* 碳足迹模块响应式 */
@media (max-width: 1200px) {
    .carbon-kpi-row,
    .carbon-mini-row { grid-template-columns: 1fr 1fr; }
    .carbon-suggest-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .carbon-kpi-row,
    .carbon-mini-row { grid-template-columns: 1fr; }
    .carbon-kpi-card .ck-value { font-size: 28px; }
}

/* ===== 地源热泵系统页面增强 ===== */
.hvac-page .chart-panel { min-height: 0; }
.hvac-page .chart-panel-header { flex-wrap: wrap; gap: 4px 8px; }
.chart-panel-sub {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    font-size: 9.5px;
    color: rgba(168, 197, 221, 0.65);
}
.hvac-time-filter {
    display: flex;
    gap: 3px;
    padding: 2px;
    background: rgba(8, 22, 46, 0.68);
    border: 1px solid rgba(110, 229, 255, 0.18);
    border-radius: 4px;
}
.htf-btn {
    height: 22px;
    padding: 0 9px;
    border: none;
    background: transparent;
    color: rgba(200, 225, 255, 0.65);
    font-size: 11px;
    border-radius: 3px;
    cursor: pointer;
    transition: all .18s ease;
}
.htf-btn:hover { color: #e8f4ff; background: rgba(110, 229, 255, 0.08); }
.htf-btn.active {
    color: #061425;
    font-weight: 700;
    background: linear-gradient(135deg, #6ee5ff, #5fd6a0);
    box-shadow: 0 0 10px rgba(110, 229, 255, 0.35);
}

.hvac-kpi-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 112px;
    padding: 8px 10px;
}
.hvac-kpi-card .kpi-label i { color: #6ee5ff; margin-right: 4px; }
.hvac-kpi-card .kpi-value { font-size: 24px; line-height: 1.05; }
.hvac-kpi-sub {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 8px;
    margin-top: auto;
    padding-top: 5px;
    border-top: 1px solid rgba(110, 229, 255, 0.1);
}
.hvac-kpi-sub-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-width: 0;
    font-size: 9.5px;
}
.hvac-kpi-sub-item span {
    color: rgba(168, 197, 221, 0.62);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hvac-kpi-sub-item b {
    color: rgba(232, 244, 255, 0.88);
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    white-space: nowrap;
}

.hvac-device-area,
.hvac-condition-panel,
.hvac-alarm-panel {
    background: linear-gradient(135deg, rgba(12, 30, 58, 0.74), rgba(6, 18, 38, 0.56));
    border: 1px solid rgba(110, 229, 255, 0.18);
    border-radius: 6px;
    box-shadow: inset 0 0 18px rgba(110, 229, 255, 0.04);
}
.hvac-device-area,
.hvac-condition-panel,
.hvac-alarm-panel { padding: 8px 10px; }

.hvac-device-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 6px;
}
.hvac-unit-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 184px;
    padding: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(15, 35, 65, 0.86), rgba(8, 22, 44, 0.66));
    border: 1px solid rgba(110, 229, 255, 0.22);
    border-radius: 6px;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.hvac-unit-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #5fd6a0;
    box-shadow: 0 0 8px rgba(95, 214, 160, 0.65);
}
.hvac-unit-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24), 0 0 14px rgba(110, 229, 255, 0.12);
}
.hvac-unit-card.is-standby { border-color: rgba(148, 168, 188, 0.32); }
.hvac-unit-card.is-standby::before { background: #94a8bc; box-shadow: 0 0 6px rgba(148, 168, 188, 0.45); }
.hvac-unit-card.is-warning { border-color: rgba(255, 176, 92, 0.48); }
.hvac-unit-card.is-warning::before { background: #ffb05c; box-shadow: 0 0 8px rgba(255, 176, 92, 0.65); }
.hvac-unit-card.is-fault { border-color: rgba(232, 90, 90, 0.52); }
.hvac-unit-card.is-fault::before { background: #e85a5a; box-shadow: 0 0 8px rgba(232, 90, 90, 0.65); }
.hvac-unit-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 6px;
}
.hvac-unit-name {
    font-size: 12px;
    font-weight: 700;
    color: #e8f4ff;
}
.hvac-unit-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 3px;
}
.hvac-badge {
    display: inline-flex;
    align-items: center;
    height: 18px;
    padding: 0 6px;
    border-radius: 3px;
    font-size: 9px;
    border: 1px solid transparent;
    white-space: nowrap;
}
.hvac-badge.status-running { color: #5fd6a0; background: rgba(95, 214, 160, 0.12); border-color: rgba(95, 214, 160, 0.28); }
.hvac-badge.status-standby { color: #94a8bc; background: rgba(148, 168, 188, 0.12); border-color: rgba(148, 168, 188, 0.28); }
.hvac-badge.status-fault,
.hvac-badge.health-fault { color: #ec7878; background: rgba(232, 90, 90, 0.14); border-color: rgba(232, 90, 90, 0.34); }
.hvac-badge.health-normal { color: #6ee5ff; background: rgba(110, 229, 255, 0.1); border-color: rgba(110, 229, 255, 0.25); }
.hvac-badge.health-warning { color: #ffb05c; background: rgba(255, 176, 92, 0.12); border-color: rgba(255, 176, 92, 0.3); }
.hvac-badge.mode-badge { color: #b8d4f0; background: rgba(78, 168, 232, 0.1); border-color: rgba(78, 168, 232, 0.25); }

.hvac-unit-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px 8px;
    font-size: 10px;
}
.hvac-unit-metrics div,
.hvac-temp-row,
.hvac-unit-foot span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}
.hvac-unit-metrics span,
.hvac-temp-row span,
.hvac-unit-foot,
.hvac-cond-item .hci-label {
    color: rgba(168, 197, 221, 0.62);
}
.hvac-unit-metrics b,
.hvac-temp-row b,
.hvac-unit-foot b {
    color: #e8f4ff;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
}
.hvac-unit-metrics em,
.hvac-temp-row em {
    margin-left: 2px;
    font-style: normal;
    font-size: 9px;
    color: rgba(168, 197, 221, 0.5);
}
.hvac-temp-row {
    margin-top: 4px;
    padding: 3px 5px;
    border-radius: 3px;
    background: rgba(110, 229, 255, 0.045);
    font-size: 9.5px;
}
.hvac-fault-tag {
    margin-top: 5px;
    padding: 4px 6px;
    border: 1px solid rgba(255, 176, 92, 0.34);
    border-radius: 3px;
    background: rgba(255, 176, 92, 0.12);
    color: #ffc88a;
    font-size: 9.5px;
    line-height: 1.3;
}
.hvac-fault-tag i { margin-right: 4px; color: #ffb05c; }
.hvac-unit-foot {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px 8px;
    margin-top: auto;
    padding-top: 5px;
    border-top: 1px solid rgba(110, 229, 255, 0.1);
    font-size: 9px;
}

.hvac-mode-badge {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    border: 1px solid rgba(110, 229, 255, 0.25);
    color: #6ee5ff;
    background: rgba(110, 229, 255, 0.08);
}
.hvac-mode-badge.mode-cool { color: #6ee5ff; border-color: rgba(110, 229, 255, 0.3); background: rgba(110, 229, 255, 0.08); }
.hvac-mode-badge.mode-heat { color: #ffb05c; border-color: rgba(255, 176, 92, 0.3); background: rgba(255, 176, 92, 0.08); }
.hvac-mode-badge.mode-transition { color: #a8b8c8; border-color: rgba(168, 184, 200, 0.25); background: rgba(168, 184, 200, 0.08); }
.hvac-cond-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}
.hvac-cond-item {
    padding: 7px 8px;
    border-left: 2px solid #6ee5ff;
    border-radius: 4px;
    background: rgba(110, 229, 255, 0.045);
}
.hvac-cond-item .hci-value {
    margin-top: 3px;
    color: #6ee5ff;
    font-size: 18px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    line-height: 1.1;
}
.hvac-cond-item .hci-value span { font-size: 10px; color: rgba(168, 197, 221, 0.62); margin-left: 2px; }
.hvac-cond-item .hci-value.hci-balance { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.balance-dot { width: 8px; height: 8px; border-radius: 50%; background: #5fd6a0; box-shadow: 0 0 8px rgba(95, 214, 160, 0.6); }
.balance-dot.balance-normal { background: #5fd6a0; box-shadow: 0 0 8px rgba(95, 214, 160, 0.6); }
.balance-dot.balance-warn { background: #ffb05c; box-shadow: 0 0 8px rgba(255, 176, 92, 0.6); }
.balance-dot.balance-cool { background: #4ea8e8; box-shadow: 0 0 8px rgba(78, 168, 232, 0.6); }
.hvac-balance-desc {
    margin-top: 7px;
    padding-top: 6px;
    border-top: 1px dashed rgba(110, 229, 255, 0.12);
    color: rgba(200, 225, 255, 0.62);
    font-size: 10px;
    line-height: 1.5;
}

.hvac-alarm-stats b { font-family: 'Orbitron', sans-serif; }
.hvac-alarm-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 156px;
    overflow-y: auto;
}
.hvac-alarm-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 9px;
    border: 1px solid rgba(110, 229, 255, 0.12);
    border-left: 3px solid #ffb05c;
    border-radius: 4px;
    background: rgba(8, 22, 44, 0.58);
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease;
}
.hvac-alarm-item:hover { background: rgba(110, 229, 255, 0.07); border-color: rgba(110, 229, 255, 0.28); }
.hvac-alarm-item.alarm-level-critical { border-left-color: #e85a5a; }
.hvac-alarm-item.alarm-level-info { border-left-color: #6ee5ff; }
.hvac-alarm-main { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.hvac-alarm-level {
    flex: 0 0 auto;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 9px;
    color: #ffc88a;
    background: rgba(255, 176, 92, 0.12);
}
.alarm-level-critical .hvac-alarm-level { color: #ec7878; background: rgba(232, 90, 90, 0.14); }
.alarm-level-info .hvac-alarm-level { color: #6ee5ff; background: rgba(110, 229, 255, 0.1); }
.hvac-alarm-content { display: flex; flex-direction: column; min-width: 0; }
.hvac-alarm-content b { font-size: 11px; color: #e8f4ff; }
.hvac-alarm-content span { font-size: 10px; color: rgba(200, 225, 255, 0.62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hvac-alarm-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: 9.5px; color: rgba(168, 197, 221, 0.6); white-space: nowrap; }
.hvac-alarm-status { padding: 1px 6px; border-radius: 8px; border: 1px solid rgba(255, 176, 92, 0.28); color: #ffb05c; background: rgba(255, 176, 92, 0.08); }
.hvac-alarm-status.status-confirmed { color: #6ee5ff; border-color: rgba(110, 229, 255, 0.28); background: rgba(110, 229, 255, 0.08); }
.hvac-alarm-status.status-resolved { color: #5fd6a0; border-color: rgba(95, 214, 160, 0.28); background: rgba(95, 214, 160, 0.08); }

.hvac-linkage-note {
    display: flex;
    gap: 7px;
    align-items: flex-start;
    margin-top: 8px;
    padding: 8px 10px;
    border: 1px dashed rgba(110, 229, 255, 0.2);
    border-radius: 4px;
    background: rgba(110, 229, 255, 0.04);
    color: rgba(200, 225, 255, 0.68);
    font-size: 10px;
    line-height: 1.55;
}
.hvac-linkage-note i { color: #6ee5ff; margin-top: 2px; }

.hvac-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(2, 8, 20, 0.72);
    backdrop-filter: blur(6px);
}
.hvac-modal.show { display: flex; }
.hvac-modal-dialog {
    width: min(680px, 92vw);
    max-height: 86vh;
    overflow: hidden;
    border: 1px solid rgba(110, 229, 255, 0.34);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(12, 30, 58, 0.98), rgba(6, 18, 38, 0.96));
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55), 0 0 24px rgba(110, 229, 255, 0.14);
}
.hvac-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(110, 229, 255, 0.14);
}
.hvac-modal-head h3 { margin: 0; font-size: 15px; color: #6ee5ff; }
.hvac-modal-head span { display: block; margin-top: 2px; font-size: 10px; color: rgba(168, 197, 221, 0.62); }
.hvac-modal-close {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(110, 229, 255, 0.2);
    border-radius: 4px;
    background: rgba(110, 229, 255, 0.06);
    color: #b8d4f0;
    cursor: pointer;
}
.hvac-modal-close:hover { color: #ff7a7a; border-color: rgba(232, 90, 90, 0.35); }
.hvac-modal-body { padding: 14px 16px; max-height: calc(86vh - 57px); overflow-y: auto; }
.hvac-modal-badges { display: flex; gap: 6px; margin-bottom: 10px; }
.hvac-modal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.hvac-modal-grid div {
    padding: 7px 8px;
    border-radius: 4px;
    background: rgba(110, 229, 255, 0.045);
    border: 1px solid rgba(110, 229, 255, 0.1);
}
.hvac-modal-grid span { display: block; color: rgba(168, 197, 221, 0.62); font-size: 9.5px; }
.hvac-modal-grid b { display: block; margin-top: 3px; color: #e8f4ff; font-family: 'Orbitron', sans-serif; font-size: 14px; }
.hvac-modal-grid em { font-style: normal; font-size: 9px; color: rgba(168, 197, 221, 0.55); }
.hvac-modal-chart-wrap { margin-top: 12px; }
.hvac-modal-chart-wrap h4,
.hvac-modal-faults h4 { margin: 0 0 7px; font-size: 12px; color: rgba(220, 238, 255, 0.9); }
.hvac-modal-chart-wrap h4 i,
.hvac-modal-faults h4 i { color: #6ee5ff; margin-right: 5px; }
#hvac-modal-chart { height: 190px; }
.hvac-modal-faults ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.hvac-modal-faults li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 9px;
    border-radius: 4px;
    background: rgba(255, 176, 92, 0.08);
    border: 1px solid rgba(255, 176, 92, 0.18);
    color: #ffc88a;
    font-size: 11px;
}
.hvac-modal-faults li.empty { justify-content: center; color: #5fd6a0; background: rgba(95, 214, 160, 0.08); border-color: rgba(95, 214, 160, 0.18); }

@media (max-width: 1280px) {
    .hvac-device-grid,
    .hvac-cond-grid,
    .hvac-modal-grid { grid-template-columns: repeat(2, 1fr); }
    .hvac-unit-card { min-height: 168px; }
}
@media (max-width: 768px) {
    .hvac-device-grid,
    .hvac-cond-grid,
    .hvac-kpi-sub,
    .hvac-modal-grid { grid-template-columns: 1fr; }
    .hvac-alarm-item { flex-direction: column; align-items: flex-start; }
    .hvac-alarm-meta { align-items: flex-start; }
}

/* ===== 太阳能热水系统页面样式 ===== */
.solar-page { height: 100%; overflow-y: auto; }

.solar-collector-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 4px 2px;
}

.solar-collector-card {
    background: linear-gradient(135deg, rgba(15, 35, 65, 0.86), rgba(8, 22, 44, 0.66));
    border: 1px solid rgba(110, 229, 255, 0.2);
    border-radius: 6px;
    padding: 8px 10px;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.solar-collector-card.is-running { border-left: 3px solid #5fd6a0; }
.solar-collector-card.is-standby { border-left: 3px solid #6ee5ff; opacity: 0.75; }
.solar-collector-card.is-fault { border-left: 3px solid #e85a5a; }
.solar-collector-card:hover { border-color: rgba(110, 229, 255, 0.45); box-shadow: 0 0 12px rgba(110, 229, 255, 0.15); }

.scc-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 2px;
}
.scc-name { font-size: 12px; font-weight: 600; color: #e8f4ff; }
.scc-status {
    font-size: 10px; padding: 1px 7px; border-radius: 9px;
    border: 1px solid; font-weight: 500;
}
.scc-area { font-size: 10px; color: rgba(168, 197, 221, 0.55); margin-bottom: 6px; }
.scc-metrics {
    display: grid; grid-template-columns: 1fr 1fr; gap: 3px 10px;
    font-size: 11px;
}
.scc-metrics > div { display: flex; justify-content: space-between; align-items: baseline; }
.scc-metrics span { color: rgba(168, 197, 221, 0.6); font-size: 10px; }
.scc-metrics b { color: #e8f4ff; font-weight: 600; font-size: 11px; }
.scc-metrics em { font-style: normal; font-size: 9px; color: rgba(168, 197, 221, 0.5); margin-left: 2px; font-weight: 400; }

.solar-info-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px;
}
.solar-info-item {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 5px 0; border-bottom: 1px solid rgba(110, 229, 255, 0.08);
    font-size: 11px;
}
.sii-label { color: rgba(168, 197, 221, 0.65); }
.sii-value { color: #e8f4ff; font-weight: 600; }
.sii-value em { font-style: normal; font-size: 10px; color: rgba(168, 197, 221, 0.5); margin-left: 3px; font-weight: 400; }

.solar-alarm-list { display: flex; flex-direction: column; gap: 6px; max-height: 180px; overflow-y: auto; }
.solar-alarm-item {
    background: rgba(15, 30, 55, 0.6);
    border: 1px solid rgba(110, 229, 255, 0.15);
    border-left: 3px solid #6ee5ff;
    border-radius: 4px;
    padding: 7px 10px;
    cursor: pointer;
    transition: background .15s ease;
}
.solar-alarm-item:hover { background: rgba(30, 60, 100, 0.5); }
.solar-alarm-item.alarm-level-critical { border-left-color: #e85a5a; }
.solar-alarm-item.alarm-level-warning { border-left-color: #ffb05c; }

.sai-main { display: flex; gap: 8px; align-items: flex-start; }
.sai-level {
    font-size: 10px; padding: 1px 6px; border-radius: 3px;
    background: rgba(110, 229, 255, 0.15); color: #6ee5ff;
    white-space: nowrap; flex-shrink: 0; margin-top: 1px;
}
.alarm-level-critical .sai-level { background: rgba(232, 90, 90, 0.15); color: #e85a5a; }
.alarm-level-warning .sai-level { background: rgba(255, 176, 92, 0.15); color: #ffb05c; }

.sai-content { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sai-content b { font-size: 11px; color: #e8f4ff; font-weight: 600; }
.sai-content span { font-size: 10px; color: rgba(168, 197, 221, 0.7); line-height: 1.4; }
.sai-meta {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 5px; font-size: 10px; color: rgba(168, 197, 221, 0.45);
}
.sai-status {
    padding: 1px 6px; border-radius: 3px; font-size: 9px;
}
.sai-status.status-pending { background: rgba(232, 90, 90, 0.12); color: #e85a5a; }
.sai-status.status-confirmed { background: rgba(255, 176, 92, 0.12); color: #ffb05c; }
.sai-status.status-resolved { background: rgba(95, 214, 160, 0.12); color: #5fd6a0; }

@media (max-width: 1280px) {
    .solar-collector-grid { grid-template-columns: 1fr; }
}

/* ============ 费用账单页面增强样式 ============ */
.billing-kpi-group {
    grid-template-columns: repeat(6, 1fr);
}
.billing-kpi-group .kpi-label {
    display: flex;
    align-items: center;
    gap: 6px;
}
.billing-kpi-group .kpi-label i {
    color: #5cd6f0;
    font-size: 11px;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: rgba(86, 200, 235, 0.12);
    border: 1px solid rgba(86, 200, 235, 0.2);
}
.billing-kpi-group .kpi-value i {
    margin-right: 4px;
    font-size: 0.65em;
}
.billing-kpi-group .kpi-value.trend-down {
    color: #5fd6a0;
    text-shadow:
        0 0 10px rgba(95, 214, 160, 0.7),
        0 0 24px rgba(95, 214, 160, 0.45),
        0 0 44px rgba(95, 214, 160, 0.22);
}
.billing-kpi-group .kpi-value.trend-up {
    color: #e85a5a;
    text-shadow:
        0 0 10px rgba(232, 90, 90, 0.7),
        0 0 24px rgba(232, 90, 90, 0.45),
        0 0 44px rgba(232, 90, 90, 0.22);
}

.billing-middle-grid {
    align-items: stretch;
}

/* 费用异常提醒卡片 */
.billing-alert-panel {
    background: linear-gradient(180deg, rgba(24, 52, 96, 0.6) 0%, rgba(12, 28, 58, 0.5) 100%);
    border: 1px solid rgba(110, 210, 245, 0.32);
    border-radius: 6px;
    box-shadow:
        0 4px 16px rgba(0, 12, 32, 0.45),
        0 0 12px rgba(86, 200, 235, 0.08),
        inset 0 0 22px rgba(86, 200, 235, 0.05);
    backdrop-filter: blur(12px) saturate(130%);
    -webkit-backdrop-filter: blur(12px) saturate(130%);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}
.billing-alert-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 8%, rgba(110, 220, 250, 0.7) 50%, transparent 92%);
    z-index: 1;
}
.billing-alert-panel:hover {
    border-color: rgba(110, 220, 250, 0.55);
    box-shadow:
        0 6px 22px rgba(0, 12, 32, 0.55),
        0 0 20px rgba(86, 200, 235, 0.18);
}
.billing-alert-header {
    padding: 9px 14px;
    border-bottom: 1px solid rgba(110, 210, 245, 0.22);
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, rgba(86, 200, 235, 0.18) 0%, rgba(40, 100, 170, 0.08) 50%, transparent 100%);
    font-size: 13.5px;
    color: #e8f4ff;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
}
.billing-alert-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 3px;
    background: linear-gradient(180deg, #6ee5ff, #3892d8);
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 10px rgba(110, 229, 255, 0.55);
}
.billing-alert-header i {
    color: #5cd6f0;
    font-size: 13px;
}
.billing-alert-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    overflow-y: auto;
}
.billing-alert-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 4px;
    background: rgba(8, 22, 44, 0.58);
    border: 1px solid rgba(110, 229, 255, 0.12);
    border-left: 3px solid #6ee5ff;
    font-size: 11.5px;
    line-height: 1.55;
    color: rgba(220, 235, 255, 0.88);
    transition: background .18s ease, border-color .18s ease;
}
.billing-alert-item:hover {
    background: rgba(110, 229, 255, 0.07);
    border-color: rgba(110, 229, 255, 0.28);
}
.billing-alert-item i {
    margin-top: 2px;
    flex-shrink: 0;
}
.billing-alert-item.warning { border-left-color: #e85a5a; }
.billing-alert-item.warning i { color: #e85a5a; }
.billing-alert-item.info { border-left-color: #6ee5ff; }
.billing-alert-item.info i { color: #6ee5ff; }
.billing-alert-item.tip { border-left-color: #ffb05c; }
.billing-alert-item.tip i { color: #ffb05c; }

/* 账单明细表格工具栏 */
.table-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.table-filter {
    min-width: 90px;
    height: 26px;
    padding: 0 8px;
    font-size: 11px;
    color: #e8f4ff;
    background: rgba(8, 22, 46, 0.68);
    border: 1px solid rgba(110, 229, 255, 0.2);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}
.table-filter:hover,
.table-filter:focus {
    border-color: rgba(110, 229, 255, 0.45);
    background: rgba(110, 229, 255, 0.08);
}
.table-filter option {
    background: #0b1a32;
    color: #e8f4ff;
}

/* 表格状态颜色补充 */
.status-tag.processed {
    background: rgba(80, 195, 140, 0.16);
    color: #6cd6a3;
    border: 1px solid rgba(80, 195, 140, 0.35);
}

@media (max-width: 1440px) {
    .billing-kpi-group { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1280px) {
    .billing-kpi-group { grid-template-columns: repeat(2, 1fr); }
    .billing-middle-grid { grid-template-columns: 1fr; }
}
