.right-panel {
background: #ffffff;
border-radius:16px;
box-shadow: 0 20px 60px rgba(0, 30, 20, 0.08);
padding:16px;
}

/* ===== 头部 ===== */
.panel-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 26px;
}
.panel-header h2 {
font-size: 20px;
font-weight: 600;
color: #0b2b26;
letter-spacing: -0.3px;
display: flex;
align-items: center;
gap: 10px;
}
.panel-header h2 i {
color: #2a9d8f;
font-size: 22px;
}
.panel-header .header-actions {
display: flex;
gap: 12px;
}
.panel-header .header-actions button {
background: #f0f5fa;
border: none;
border-radius: 40px;
padding: 8px 18px;
font-size: 13px;
font-weight: 500;
color: #1e3d3a;
display: flex;
align-items: center;
gap: 6px;
cursor: default;
transition: 0.15s;
}
.panel-header .header-actions button i {
color: #2a9d8f;
}
.panel-header .header-actions button:hover {
background: #e6edf4;
}

/* ===== 统计卡片：一行三列，共两行 ===== */
.stats-grid {
display: grid;
grid-template-columns: repeat(6, 1fr);
gap: 16px;
margin-bottom: 28px;
}

.stat-card {
background: #f9fcff;
border-radius: 18px;
padding: 18px 18px 16px;
border: 1px solid #edf2f7;
transition: 0.2s;
}
.stat-card:hover {
border-color: #cfe3e0;
background: #f7fbfe;
}
.stat-card .stat-label {
font-size: 13px;
font-weight: 500;
color: #6b7f89;
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 8px;
}
.stat-card .stat-label i {
font-size: 16px;
width: 24px;
text-align: center;
color: #2a9d8f;
}
.stat-card .stat-number {
font-size: 28px;
font-weight: 700;
color: #0b2b26;
letter-spacing: -0.5px;
line-height: 1.2;
}
.stat-card .stat-change {
font-size: 12px;
font-weight: 500;
margin-top: 6px;
display: inline-flex;
align-items: center;
gap: 4px;
padding: 2px 12px 2px 8px;
border-radius: 30px;
background: #e8f5f2;
color: #1e7b6e;
}
.stat-card .stat-change.negative {
background: #fde8e8;
color: #b3403a;
}
.stat-card .stat-change i {
font-size: 11px;
}
.stat-card.placeholder {
background: #fafcfe;
border: 1px dashed #cbdae0;
opacity: 0.7;
}
.stat-card.placeholder .stat-label {
color: #8fa7b2;
}
.stat-card.placeholder .stat-number {
color: #8fa7b2;
font-weight: 500;
font-size: 18px;
}

/* ===== 预警横幅 ===== */
.alert-banner {
background: #fdf4ed;
border-left: 4px solid #e76f51;
border-radius: 14px;
padding: 12px 20px;
margin-bottom: 24px;
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 10px;
}
.alert-banner .alert-left {
display: flex;
align-items: center;
gap: 14px;
font-size: 14px;
font-weight: 500;
color: #7a3a2a;
}
.alert-banner .alert-left i {
font-size: 18px;
color: #e76f51;
}
.alert-banner .alert-left span strong {
color: #c73d1d;
}
.alert-banner .alert-right {
display: flex;
gap: 20px;
font-size: 13px;
color: #3d5a5e;
}
.alert-banner .alert-right .badge-num {
background: #e76f51;
color: #fff;
border-radius: 30px;
padding: 0 10px;
font-weight: 600;
font-size: 12px;
line-height: 22px;
display: inline-block;
}
.alert-banner .alert-right .badge-num.warning-bg {
background: #f4a261;
}
.alert-banner .alert-right span:first-of-type{margin-right:10px;}
/* ===== 中间三列：图表 + 概览卡片 ===== */
.charts-row {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 16px;
margin-bottom: 28px;
}

.chart-box {
background: #f9fcff;
border-radius: 20px;
padding: 18px 18px 12px;
border: 1px solid #edf2f7;
}
.chart-box .chart-title {
font-size: 14px;
font-weight: 600;
color: #1e3d3a;
margin-bottom: 12px;
display: flex;
align-items: center;
justify-content: space-between;
}
.chart-box .chart-title span {
font-weight: 400;
font-size: 12px;
color: #7b939e;
}
.chart-box .chart-wrap {
position: relative;
height: 160px;
display: flex;
align-items: center;
justify-content: center;
}
.chart-box .chart-wrap canvas {
max-width: 100%;
max-height: 100%;
}

.overview-card {
background: #f9fcff;
border-radius: 20px;
padding: 18px 20px 16px;
border: 1px solid #edf2f7;
display: flex;
flex-direction: column;
justify-content: center;
}
.overview-card .overview-title {
font-size: 14px;
font-weight: 600;
color: #1e3d3a;
margin-bottom: 12px;
}
.overview-item {
display: flex;
justify-content: space-between;
padding: 8px 0;
border-bottom: 1px solid #eef4f8;
font-size: 14px;
}
.overview-item:last-child {
border-bottom: none;
}
.overview-item .label {
color: #5d7a82;
}
.overview-item .value {
font-weight: 600;
color: #0b2b26;
}
.overview-item .value .progress-bar {
display: inline-block;
width: 60px;
height: 6px;
background: #e4edf2;
border-radius: 8px;
margin-left: 8px;
vertical-align: middle;
}
.overview-item .value .progress-bar .fill {
height: 100%;
border-radius: 8px;
background: #2a9d8f;
}

/* ===== 底部三列 ===== */
.bottom-row {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
}

.list-card {
background: #f9fcff;
border-radius: 20px;
padding: 18px 18px 8px;
border: 1px solid #edf2f7;
display: flex;
flex-direction: column;
}
.list-card .list-header {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 14px;
font-weight: 600;
color: #1e3d3a;
margin-bottom: 14px;
padding-bottom: 6px;
border-bottom: 1px dashed #e2edf0;
}
.list-card .list-header i {
color: #2a9d8f;
margin-right: 6px;
}
.list-card .list-header .header-badge {
font-size: 11px;
font-weight: 600;
background: #e2edf0;
padding: 2px 12px;
border-radius: 30px;
color: #1f5f55;
}
.list-scroll {
max-height: 260px;
overflow-y: auto;
padding-right: 4px;
}
.list-scroll::-webkit-scrollbar {
width: 4px;
}
.list-scroll::-webkit-scrollbar-track {
background: #f0f5fa;
border-radius: 6px;
}
.list-scroll::-webkit-scrollbar-thumb {
background: #bcd3d0;
border-radius: 6px;
}

.list-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 0;
border-bottom: 1px solid #eef4f8;
gap: 6px;
flex-wrap: wrap;
}
.list-item:last-child {
border-bottom: none;
}
.list-item .item-left {
display: flex;
align-items: center;
gap: 10px;
flex: 1 1 40%;
min-width: 100px;
}
.list-item .item-left .id-badge {
font-weight: 600;
font-size: 13px;
color: #0b2b26;
background: #e9f0f5;
padding: 0 10px;
border-radius: 30px;
line-height: 24px;
white-space: nowrap;
margin-right:3px;
}
.list-item .item-left .type-tag {
font-size: 11px;
background: #dce9e6;
color: #1a584e;
padding: 0 8px;
border-radius: 12px;
line-height: 20px;
white-space: nowrap;
}
.list-item .item-mid {
flex: 1 1 30%;
font-size: 13px;
color: #1f3c38;
min-width: 80px;
}
.list-item .item-mid .desc-small {
font-size: 12px;
color: #6b7f89;
}
.list-item .item-right {
display: flex;
align-items: center;
gap: 12px;
flex: 0 0 auto;
}
.list-item .item-right .time {
font-size: 12px;
color: #8aa3ae;
white-space: nowrap;
}
.list-item .item-right .status-badge {
font-size: 11px;
font-weight: 600;
padding: 2px 6px;
border-radius: 10px;
background: #f0f5fa;
color: #3d5a5e;margin:0 6px;
white-space: nowrap;
}
.list-item .item-right .status-badge.warning {
background: #fef0e8;
color: #b1553a;
}
.list-item .item-right .status-badge.danger {
background: #fde6e6;
color: #b3403a;
}
.list-item .item-right .status-badge.success {
background: #e0f0ed;
color: #1a7b6e;
}
.list-item .item-right .action-link {
font-size: 12px;
color: #2a9d8f;
font-weight: 500;
text-decoration: none;
cursor: default;
border-bottom: 1px dashed #b5d4cf;
}
.list-item .item-right .action-link:hover {
color: #0f6b5f;
}

.dc-card{
width:100%;
display:flex;flex-direction:column;align-items:center;justify-content:center;
gap:18px;
font-family:"PingFang SC","Microsoft YaHei","Helvetica Neue",Arial,sans-serif;
user-select:none;box-sizing:border-box;}
.dc-title{width:100%;text-align:center;font-size:15px;font-weight:600;
color:#1f2430;letter-spacing:.5px;}
.dc-wrap{position:relative;}
.dc-ring{display:block;overflow:visible;}
.dc-ring .dc-slice{cursor:pointer;transition:transform .18s ease,opacity .18s ease,filter .18s ease;
transform-origin:50% 50%;}
.dc-ring .dc-slice:hover{transform:scale(1.045);filter:brightness(1.1);}
.dc-ring.dim .dc-slice{opacity:.4;}
.dc-ring.dim .dc-slice.dc-hovered{opacity:1;}
.dc-ring.animate .dc-slice{animation:dcIn .6s cubic-bezier(.25,.8,.35,1) backwards;}
@keyframes dcIn{from{opacity:0;transform:scale(.55);}to{opacity:1;transform:scale(1);}}
.dc-label{pointer-events:none;}
.dc-center{position:absolute;top:50%; left:50%; transform:translate(-50%,-50%);text-align:center;}
.dc-center .dc-clabel,
.dc-center .dc-cvalue{}
.dc-center .dc-cvalue{font-size:18px;font-weight:700;color:#1f2430;line-height:1.1;}
.dc-center .dc-clabel{top:calc(50% - 1.6em);font-size:12px;color:#8a90a0;display:block;}
.dc-legend{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 20px;margin-top:3px;}
.dc-legend-item{display:flex;align-items:center;gap:8px;font-size:13px;color:#1f2430;
cursor:pointer;transition:opacity .15s;margin-right:6px;}
.dc-legend-item:last-of-type{margin-right:0;}
.dc-legend-item:hover{opacity:.85;}
.dc-legend-item .dc-swatch{width:12px;height:12px;border-radius:4px;flex:none;margin-right:1px;}
.dc-legend-item .dc-pct{color:#8a90a0;font-size:12px;}
.dc-tooltip{position:fixed;padding:8px 14px;background:#2b3040;color:#fff;font-size:13px;
border-radius:8px;white-space:nowrap;pointer-events:none;opacity:0;
transform:translate(-50%,-130%);transition:opacity .12s ease;
box-shadow:0 6px 16px rgba(0,0,0,.18);z-index:9999;}
.dc-tooltip.dc-show{opacity:1;}
.dc-tooltip .dc-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px;}