/* 容器自适应样式 */
#container {
    width: 100%;
    height: 100%;
    background-color: #0b1120;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.8) 0%, #0b1120 100%),
        url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCI+CjxwYXRoIGQ9Ik0wIDBoNDB2NDBIMHoiIGZpbGw9Im5vbmUiLz4KPHBhdGggZD0iTTAgNDBMNDAgMCIgc3Ryb2tlPSJyZ2JhKDMyLCA1NSwgNzIsIDAuMSkiIHN0cm9rZS13aWR0aD0iMSIvPgo8L3N2Zz4=');
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #fff;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    padding: 10px;
}

/* 布局网格 */
.dashboard-grid {
    display: grid;
    width: 100%;
    height: 100%;
    grid-template-rows: 60px 1fr 1fr 1fr;
    grid-template-columns: 25% 50% 25%;
    gap: 12px;
}

/* 头部区域 */
.header-area {
    grid-column: 1 / -1;
    background: url('https://img.alicdn.com/tfs/TB1..5.yXY7gK0jszHaXXaikpXa-24-24.png') no-repeat center bottom;
    background-size: 100% 2px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: relative;
}

.header-title {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    width: 100%;
    text-shadow: 0 0 10px rgba(0, 246, 255, 0.5);
    background: linear-gradient(to bottom, #fff, #bde6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}

.header-time {
    position: absolute;
    right: 20px;
    font-family: 'Courier New', monospace;
    color: #00f6ff;
    font-size: 20px;
    font-weight: bold;
}

/* 面板容器 */
.panel {
    position: relative;
    background: rgba(18, 30, 50, 0.4);
    border: 1px solid rgba(0, 246, 255, 0.1);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.panel:hover {
    border-color: rgba(0, 246, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 246, 255, 0.1);
}

.panel::before, .panel::after {
    content: ''; 
    position: absolute; 
    width: 10px; 
    height: 10px;
    border-color: #00f6ff; 
    border-style: solid; 
    pointer-events: none;
}

.panel::before { 
    top: -1px; 
    left: -1px; 
    border-width: 2px 0 0 2px; 
}

.panel::after { 
    bottom: -1px; 
    right: -1px; 
    border-width: 0 2px 2px 0; 
}

.panel-title {
    height: 30px;
    line-height: 30px;
    font-size: 14px;
    color: #00f6ff;
    padding-left: 10px;
    background: linear-gradient(90deg, rgba(0,246,255,0.1) 0%, transparent 100%);
    font-weight: bold;
}

.panel-body {
    flex: 1;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* 特定网格区域 */
.area-chart1 { grid-column: 1; grid-row: 2 / 4; }
.area-kpis   { grid-column: 2; grid-row: 2; }
.area-chart2 { grid-column: 3; grid-row: 2; }
.area-chart3 { grid-column: 1; grid-row: 4; }
.area-gauges { grid-column: 2; grid-row: 3; }
.area-chart4 { grid-column: 3; grid-row: 3; }
.area-table  { grid-column: 2; grid-row: 4; }
.area-chart5 { grid-column: 3; grid-row: 4; }

/* KPI样式 */
.kpi-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px;
    height: 100%;
}

.kpi-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.kpi-label { 
    color: #a1b8c8; 
    font-size: 14px; 
    margin-bottom: 5px; 
}

.kpi-value { 
    font-size: 28px; 
    font-weight: bold; 
    color: #fff; 
    text-shadow: 0 0 10px rgba(0,246,255,0.4);
    font-family: 'Segoe UI', monospace;
}

.kpi-value.cyan { color: #00f6ff; }
.kpi-value.yellow { color: #fbbf24; }
.kpi-sub { 
    font-size: 12px; 
    color: #64748b; 
    margin-top: 4px;
}

/* 数值变化闪烁效果 */
@keyframes flash-cyan {
    0% { color: #fff; text-shadow: 0 0 20px #fff; }
    100% { color: #00f6ff; text-shadow: 0 0 10px rgba(0,246,255,0.4); }
}

.flash-anim { 
    animation: flash-cyan 0.5s ease-out; 
}

/* 表格样式 */
.custom-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    color: #ddd;
    text-align: center;
}

.custom-table th {
    background: rgba(0, 246, 255, 0.15);
    color: #00f6ff;
    padding: 6px;
    font-weight: normal;
    position: sticky;
    top: 0;
}

.custom-table td {
    padding: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.custom-table tr:nth-child(even) { 
    background: rgba(255,255,255,0.02); 
}