* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: 
        radial-gradient(circle at 20% 50%, rgba(31, 81, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(64, 224, 208, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(0, 255, 136, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #0a0e1a 0%, #1a1f2e 30%, #0f1419 70%, #0a0e1a 100%);
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
}

.dashboard {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 头部样式 */
.dashboard-header {
    background: 
        linear-gradient(90deg, rgba(31, 81, 255, 0.15) 0%, rgba(64, 224, 208, 0.15) 50%, rgba(31, 81, 255, 0.15) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    border-bottom: 2px solid rgba(64, 224, 208, 0.3);
    padding: 20px 30px;
    backdrop-filter: blur(20px);
    position: relative;
}

.dashboard-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #40e0d0, transparent);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1920px;
    margin: 0 auto;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-left i {
    font-size: 2.5rem;
    color: #40e0d0;
    text-shadow: 0 0 30px rgba(64, 224, 208, 0.8);
}

.header-left h1 {
    font-size: 2.2rem;
    font-weight: bold;
    background: linear-gradient(45deg, #40e0d0, #1f51ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(64, 224, 208, 0.3));
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.time-display {
    font-size: 1.5rem;
    color: #40e0d0;
    font-weight: bold;
    text-shadow: 0 0 15px rgba(64, 224, 208, 0.6);
    background: rgba(64, 224, 208, 0.1);
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(64, 224, 208, 0.3);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.dot.online {
    background: #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.8);
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* 主要内容区域 */
.dashboard-main {
    flex: 1;
    padding: 25px;
    max-width: 1920px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* 顶部指标区域 */
.top-metrics {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 10px;
}

.metric-card {
    background: 
        linear-gradient(135deg, rgba(31, 81, 255, 0.1) 0%, rgba(64, 224, 208, 0.1) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    border: 1px solid rgba(64, 224, 208, 0.3);
    border-radius: 16px;
    padding: 20px;
    min-width: 280px;
    flex: 1;
    max-width: 350px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #40e0d0, transparent);
    animation: shimmer 4s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.metric-card:hover {
    transform: translateY(-8px);
    border-color: rgba(64, 224, 208, 0.6);
    box-shadow: 
        0 15px 40px rgba(31, 81, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.sales-card {
    background: 
        linear-gradient(135deg, rgba(64, 224, 208, 0.15) 0%, rgba(31, 81, 255, 0.15) 50%, rgba(0, 255, 136, 0.1) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 100%);
}

/* 主要内容布局 */
.main-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 25px;
    height: calc(100vh - 350px);
    min-height: 600px;
}

.left-charts, .right-charts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.center-map {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 650px;
}

/* 地图卡片样式 */
.map-card {
    background: 
        linear-gradient(135deg, rgba(15, 20, 25, 0.95) 0%, rgba(26, 31, 46, 0.95) 100%);
    border: 1px solid rgba(64, 224, 208, 0.3);
    border-radius: 16px;
    padding: 20px;
    height: 100%;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.map-card:hover {
    transform: translateY(-2px);
    border-color: rgba(64, 224, 208, 0.5);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.map-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(64, 224, 208, 0.2);
}

.map-card .card-header h3 {
    font-size: 1.4rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 0 10px rgba(64, 224, 208, 0.5);
}

.map-stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(64, 224, 208, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(64, 224, 208, 0.3);
    font-size: 0.9rem;
}

.stat-item i {
    color: #40e0d0;
}

/* 图表卡片样式 */
.chart-card {
    background: 
        linear-gradient(135deg, rgba(15, 20, 25, 0.9) 0%, rgba(26, 31, 46, 0.9) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    border: 1px solid rgba(31, 81, 255, 0.3);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    flex: 1;
    min-height: 0;
}

.chart-card:hover {
    transform: translateY(-3px);
    border-color: rgba(64, 224, 208, 0.5);
    box-shadow: 
        0 12px 40px rgba(31, 81, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-header h3 {
    font-size: 1.1rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 0 8px rgba(64, 224, 208, 0.3);
}

.card-header i {
    color: #40e0d0;
    text-shadow: 0 0 10px rgba(64, 224, 208, 0.6);
}

.trend-up {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #00ff88;
    font-size: 0.9rem;
    font-weight: bold;
}

.trend-up i {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* 数字展示 */
.number-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin: 20px 0;
}

.currency {
    font-size: 1.8rem;
    color: #40e0d0;
    margin-right: 8px;
    text-shadow: 0 0 15px rgba(64, 224, 208, 0.5);
}

.number {
    font-size: 3rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
    font-family: 'Courier New', monospace;
}

.metric-card .number {
    font-size: 2.2rem;
}

.subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

/* 图表容器 */
.chart {
    width: 100%;
    height: 100%;
    min-height: 200px;
}

.map-chart {
    height: 100%;
    min-height: 550px;
    max-height: 650px;
    position: relative;
}

/* 左侧图表特殊样式 */
.left-charts .chart-card:first-child .chart {
    height: 100%;
    min-height: 280px;
}

.left-charts .chart-card:last-child .chart {
    height: 100%;
    min-height: 320px;
}

/* 右侧图表特殊样式 */
.right-charts .chart-card:first-child .chart {
    height: 100%;
    min-height: 280px;
}

/* 实时指标网格 */
.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    height: 100%;
}

.metric-item {
    background: rgba(64, 224, 208, 0.05);
    border: 1px solid rgba(64, 224, 208, 0.2);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.metric-item:hover {
    background: rgba(64, 224, 208, 0.1);
    border-color: rgba(64, 224, 208, 0.4);
    transform: scale(1.05);
}

.metric-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #40e0d0;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(64, 224, 208, 0.5);
}

.metric-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

/* 响应式布局 */
@media (max-width: 1600px) {
    .main-content {
        grid-template-columns: 1fr 1.8fr 1fr;
        gap: 20px;
    }
}

@media (max-width: 1400px) {
    .header-left h1 {
        font-size: 1.8rem;
    }
    
    .dashboard-main {
        padding: 20px;
    }
    
    .main-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 1fr;
    }
    
    .center-map {
        order: 3;
    }
    
    .left-charts {
        order: 1;
        flex-direction: row;
    }
    
    .right-charts {
        order: 2;
        flex-direction: row;
    }
}

@media (max-width: 1024px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .header-left h1 {
        font-size: 1.5rem;
    }
    
    .top-metrics {
        flex-direction: column;
        gap: 15px;
    }
    
    .metric-card {
        min-width: 100%;
        max-width: none;
    }
    
    .main-content {
        grid-template-columns: 1fr;
        gap: 15px;
        height: auto;
    }
    
    .left-charts, .right-charts {
        flex-direction: column;
    }
    
    .number {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .dashboard-header {
        padding: 15px 20px;
    }
    
    .header-left h1 {
        font-size: 1.2rem;
    }
    
    .header-left i {
        font-size: 2rem;
    }
    
    .time-display {
        font-size: 1.2rem;
    }
    
    .dashboard-main {
        padding: 15px;
    }
    
    .metric-card, .chart-card, .map-card {
        padding: 15px;
    }
    
    .number {
        font-size: 2rem;
    }
    
    .map-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .chart {
        min-height: 180px;
    }
    
    .map-chart {
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .header-left h1 {
        font-size: 1rem;
    }
    
    .number {
        font-size: 1.8rem;
    }
    
    .currency {
        font-size: 1.3rem;
    }
    
    .chart {
        min-height: 150px;
    }
    
    .map-chart {
        min-height: 250px;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.metric-card, .chart-card, .map-card {
    animation: fadeInUp 0.8s ease-out;
}

.metric-card:nth-child(1) { animation-delay: 0.1s; }
.metric-card:nth-child(2) { animation-delay: 0.2s; }
.metric-card:nth-child(3) { animation-delay: 0.3s; }
.chart-card:nth-child(1) { animation-delay: 0.4s; }
.map-card { animation-delay: 0.5s; }
.chart-card:nth-child(2) { animation-delay: 0.6s; }

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 20, 25, 0.5);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #1f51ff, #40e0d0);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #40e0d0, #1f51ff);
}

.map-card .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

#geoMapChart {
    width: 100% !important;
    height: 100% !important;
    flex: 1;
    min-height: 480px;
} 