* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    min-height: 100vh;
    color: #e2e8f0;
    overflow: hidden;
}

.dashboard-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.dashboard-header {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: relative;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.5) 100%);
    border-bottom: 2px solid rgba(0, 212, 255, 0.3);
}

.header-decoration {
    position: absolute;
    width: 200px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
    top: 0;
}

.header-decoration.left {
    left: 30px;
}

.header-decoration.right {
    right: 30px;
}

.header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header-center h1 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    background: linear-gradient(90deg, #00d4ff, #0066ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-center .subtitle {
    font-size: 14px;
    color: #94a3b8;
    letter-spacing: 4px;
    margin-top: 4px;
}

.header-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.weather-widget {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    padding: 8px 16px;
}

.weather-icon {
    font-size: 28px;
}

.weather-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.weather-info .temp {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.weather-info .weather-text {
    font-size: 12px;
    color: #94a3b8;
}

.datetime {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.datetime .date {
    font-size: 14px;
    color: #94a3b8;
}

.datetime .time {
    font-size: 24px;
    font-weight: 700;
    color: #00d4ff;
    letter-spacing: 2px;
}

.dashboard-main {
    flex: 1;
    display: grid;
    grid-template-columns: 340px 1fr 340px;
    gap: 16px;
    padding: 16px;
    height: calc(100vh - 160px);
}

.panel-left,
.panel-center,
.panel-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.panel-left {
    align-items: stretch;
}

.panel-center {
    overflow-y: auto;
}

.panel-bottom {
    grid-column: 1 / -1;
    padding: 0 16px 16px;
}

.panel {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.85), rgba(15, 23, 42, 0.85));
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.15);
}

.panel-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-icon {
    font-size: 16px;
}

.panel-tabs {
    display: flex;
    gap: 6px;
}

.panel-tabs .tab {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 6px;
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    cursor: pointer;
    border: 1px solid rgba(59, 130, 246, 0.3);
    transition: all 0.2s;
}

.panel-tabs .tab.active {
    background: #3b82f6;
    color: #fff;
}

.panel-body {
    padding: 18px;
}

.chart-panel .panel-body {
    padding: 12px 14px;
}

.stats-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 16px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: rgba(0, 212, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.15);
}

.stat-card-primary {
    border: 1px solid rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(15, 23, 42, 0.9));
}

.stat-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.12);
}

.stat-icon {
    font-size: 26px;
}

.stat-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.stat-value.currency {
    color: #f59e0b;
}

.stat-label {
    font-size: 13px;
    color: #94a3b8;
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(34, 197, 94, 0.1);
}

.stat-trend.up {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.stat-trend.down {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.stat-trend.none {
    color: #64748b;
    background: rgba(100, 116, 139, 0.1);
}

.main-panel {
    flex: 1;
    margin-bottom: 16px;
}

.map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 260px;
}

.map-content {
    width: 100%;
    height: 100%;
}

.china-map {
    width: 100%;
    height: 100%;
}

.alert-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.alert-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border-left: 3px solid;
}

.alert-item.danger {
    border-left-color: #ef4444;
}

.alert-item.warning {
    border-left-color: #f59e0b;
}

.alert-item.info {
    border-left-color: #3b82f6;
}

.alert-level {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.alert-item.danger .alert-level {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.alert-item.warning .alert-level {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.alert-item.info .alert-level {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.alert-content {
    flex: 1;
    font-size: 13px;
    color: #cbd5e1;
}

.alert-time {
    font-size: 11px;
    color: #64748b;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #94a3b8;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-dot.blue {
    background: #3b82f6;
}

.legend-dot.purple {
    background: #8b5cf6;
}

.legend-dot.cyan {
    background: #22d3ee;
}

.legend-dot.orange {
    background: #f59e0b;
}

.legend-dot.gray {
    background: #64748b;
}

.panel-bottom {
    margin-top: 0;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
}

.quick-item {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 10px;
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #e2e8f0;
    transition: all 0.3s;
}

.quick-item:hover {
    border-color: rgba(0, 212, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 212, 255, 0.18);
}

.quick-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(0, 212, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.1);
}

.quick-text {
    font-size: 13px;
    font-weight: 500;
    color: #cbd5e1;
}

.badge {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 10px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.scan-line {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.8), transparent);
    opacity: 0.3;
    animation: scan 4s linear infinite;
    pointer-events: none;
    z-index: 999;
}

@keyframes scan {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(100vh);
    }
}

@media (max-width: 1400px) {
    .dashboard-main {
        grid-template-columns: 300px 1fr 300px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .quick-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .dashboard-main {
        grid-template-columns: 1fr;
        grid-auto-flow: row;
    }
    
    .panel-left,
    .panel-right {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .quick-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        gap: 10px;
        padding: 12px;
    }
    
    .header-center h1 {
        font-size: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .panel-left,
    .panel-right {
        grid-template-columns: 1fr;
    }
    
    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
