/* 全局样式 */
* {
    margin: 0;
    padding: 0;

    font-family: "微软雅黑", "思源黑体", "阿里巴巴普惠体", sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background: #0a1a2a;
    color: #fff;
    font-family: 'Alibaba PuHuiTi', 'Source Han Sans', Arial, sans-serif;
    min-height: 100vh;
}
.dashboard-container {
  width: 100vw;
  min-height: 100vh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, #0a1a2a 80%, #1a2a3a 100%);
}
.kpi-area {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin: 40px 0 24px 0;
}
.kpi-card {
  background: rgba(20, 40, 80, 0.85);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
  padding: 32px 48px;
  min-width: 260px;
  text-align: center;
  transition: box-shadow 0.3s;
}
.kpi-card:hover {
  box-shadow: 0 8px 32px rgba(0,128,255,0.25);
}
.kpi-title {
  font-size: 1.3rem;
  color: #7ed6ff;
  margin-bottom: 18px;
  letter-spacing: 1px;
}
.kpi-value {
  font-size: 2.8rem;
  font-weight: bold;
  color: #ffe066;
  text-shadow: 0 2px 12px #222;
  letter-spacing: 2px;
}
.charts-area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 420px 420px;
  gap: 32px;
  width: 90vw;
  max-width: 1800px;
  margin-bottom: 40px;
}
.chart-box {
  background: rgba(20, 40, 80, 0.85);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
  padding: 18px;
  height: 100%;
  min-width: 0;
  min-height: 0;
}
#bar-chart, #rose-chart, #ring-chart, #line-chart {
  width: 100%;
  height: 100%;
}
.container {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 页眉样式 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(65, 120, 255, 0.2);
}

.title h1 {
    font-size: 32px;
    color: #41b0ff;
    text-shadow: 0 0 10px rgba(65, 176, 255, 0.5);
    letter-spacing: 2px;
}

.subtitle {
    font-size: 18px;
    color: #7fdbff;
    margin-top: 5px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.time-display {
    font-size: 24px;
    color: #7fdbff;
    background-color: rgba(0, 30, 60, 0.5);
    padding: 10px 20px;
    border-radius: 4px;
    border: 1px solid rgba(65, 120, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 100, 255, 0.2);
}

.refresh-button {
    background-color: rgba(65, 176, 255, 0.2);
    color: #7fdbff;
    border: 1px solid rgba(65, 120, 255, 0.5);
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 100, 255, 0.1);
}

.refresh-button:hover {
    background-color: rgba(65, 176, 255, 0.4);
    box-shadow: 0 0 15px rgba(0, 100, 255, 0.3);
}

.refresh-button:active {
    transform: scale(0.95);
}

/* KPI数据区样式 */
.kpi-section {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.kpi-card {
    flex: 1;
    background: linear-gradient(135deg, rgba(16, 42, 67, 0.8) 0%, rgba(7, 25, 43, 0.9) 100%);
    border-radius: 8px;
    padding: 20px;
    margin: 0 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(65, 120, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.kpi-card:first-child {
    margin-left: 0;
}

.kpi-card:last-child {
    margin-right: 0;
}

.kpi-card:hover {
    transform: translateY(-5px);
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(65, 176, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.kpi-card:hover::before {
    opacity: 1;
}

.kpi-title {
    font-size: 16px;
    color: #7fdbff;
    margin-bottom: 10px;
}

.kpi-value {
    font-size: 36px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.kpi-trend {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.trend-icon {
    margin-right: 5px;
}

.trend-icon.up {
    color: #4caf50;
}

.trend-icon.down {
    color: #f44336;
}

.trend-value {
    color: #aaaaaa;
}

/* 图表区域样式 */
.charts-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chart-row {
    display: flex;
    gap: 20px;
    flex: 1;
}

.chart-container {
    flex: 1;
    background: linear-gradient(135deg, rgba(16, 42, 67, 0.8) 0%, rgba(7, 25, 43, 0.9) 100%);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(65, 120, 255, 0.2);
    display: flex;
    flex-direction: column;
}

.chart-container.large {
    height: 350px;
}

.chart-title {
    font-size: 18px;
    color: #7fdbff;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(65, 120, 255, 0.2);
}

.chart {
    flex: 1;
    width: 100%;
    height: 100%;
}

/* 页脚样式 */
footer {
    margin-top: 20px;
    padding: 15px 0;
    text-align: center;
    border-top: 1px solid rgba(65, 120, 255, 0.2);
}

.footer-text {
    color: #7fdbff;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .kpi-section {
        flex-wrap: wrap;
    }
    
    .kpi-card {
        flex: 1 0 45%;
        margin-bottom: 20px;
    }
    
    .chart-row {
        flex-direction: column;
    }
    .charts-area {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 320px);
    }
    .kpi-area {
        flex-direction: column;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .kpi-card {
        flex: 1 0 100%;
    }
    
    .title h1 {
        font-size: 24px;
    }
    
    .time-display {
        font-size: 18px;
    }
}

/* 动画效果 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(65, 176, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(65, 176, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(65, 176, 255, 0);
    }
}

.kpi-value {
    animation: pulse 2s infinite;
}

/* 扫描线动画 */
.scan-line {
    position: absolute;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, rgba(65, 176, 255, 0) 0%, rgba(65, 176, 255, 0.8) 50%, rgba(65, 176, 255, 0) 100%);
    box-shadow: 0 0 10px rgba(65, 176, 255, 0.8);
    z-index: 10;
    pointer-events: none;
}

.dashboard-title {
  width: 100vw;
  text-align: center;
  font-size: 2.6rem;
  font-weight: bold;
  color: #7ed6ff;
  letter-spacing: 4px;
  margin-top: 32px;
  margin-bottom: 12px;
  text-shadow: 0 4px 24px #222, 0 1px 0 #fff2;
  line-height: 1.2;
  padding-bottom: 12px;
}