* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #f6f3ff 0%, #e8e3ff 100%);
    position: relative;
    color: #333;
}

/* 添加科技感网格背景 */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(147, 112, 219, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(147, 112, 219, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
}

/* 添加发光效果 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, 
        rgba(147, 112, 219, 0.15) 0%, 
        rgba(147, 112, 219, 0.05) 25%, 
        transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.container {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 100vh;
    padding: 20px;
}

/* 头部样式 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.85) 100%);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    margin-bottom: 20px;
}

.header .title {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    flex: 1;
    color: #6b46c1;
}

.header .time {
    color: #6b46c1;
    min-width: 250px;
}

.header .notification {
    color: #9f7aea;
    min-width: 250px;
    text-align: right;
    height: 24px;
    overflow: hidden;
    position: relative;
}

.notification-wrapper {
    position: absolute;
    right: 0;
    animation: scrollNotification 9s infinite;
    animation-timing-function: steps(3, end);
}

.notification-item {
    height: 24px;
    line-height: 24px;
    white-space: nowrap;
}

@keyframes scrollNotification {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-72px);
    }
}

.notification:hover .notification-wrapper {
    animation-play-state: paused;
}

/* 主体内容样式 */
.main-content {
    display: flex;
    gap: 10px;
    height: calc(100vh - 100px);
}

/* 左侧面板 */
.left-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 中间面板 */
.center-panel {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 右侧面板 */
.right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 面板通用样式 */
.panel-item {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%,
        rgba(247, 245, 255, 0.85) 100%);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(147, 112, 219, 0.1);
    border-radius: 4px;
    padding: 15px;
    height: 300px;
}

.panel-item h3 {
    color: #6b46c1;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: normal;
}

/* 图表容器样式 */
.chart {
    width: 100%;
    height: calc(100% - 30px);
}

/* 访客数量大数字显示 */
.visitor-count {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%,
        rgba(247, 245, 255, 0.85) 100%);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(147, 112, 219, 0.1);
    border-radius: 4px;
    padding: 15px;
    text-align: center;
    height: 100px;
}

.visitor-count .big-number {
    font-size: 48px;
    font-weight: bold;
    color: #6b46c1;
    margin-bottom: 10px;
    letter-spacing: 4px;
}

.visitor-count .stats {
    display: flex;
    justify-content: space-around;
    color: #805ad5;
    font-size: 14px;
}

/* 数据容器布局 */
.data-container {
    flex: 2;
    display: flex;
    gap: 10px;
}

.bottom-container {
    flex: 1;
    display: flex;
    gap: 10px;
}

.ticket-sales,
.hotel-occupancy {
    flex: 1;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%,
        rgba(247, 245, 255, 0.85) 100%);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(147, 112, 219, 0.1);
    border-radius: 4px;
    padding: 15px;
}

.left-charts {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.map-container {
    flex: 1;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%,
        rgba(247, 245, 255, 0.85) 100%);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(147, 112, 219, 0.1);
    border-radius: 4px;
    padding: 15px;
}

.hourly-visitors {
    flex: 1;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%,
        rgba(247, 245, 255, 0.85) 100%);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(147, 112, 219, 0.1);
    border-radius: 4px;
    padding: 15px;
}

.visitor-source {
    flex: 1;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%,
        rgba(247, 245, 255, 0.85) 100%);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(147, 112, 219, 0.1);
    border-radius: 4px;
    padding: 15px;
}

/* 停车场数据表格样式 */
.parking-table {
    height: calc(100% - 30px);
    overflow: auto;
}

.parking-table table {
    width: 100%;
    border-collapse: collapse;
    color: #4a5568;
    font-size: 12px;
}

.parking-table th,
.parking-table td {
    padding: 8px;
    text-align: center;
    border: 1px solid rgba(147, 112, 219, 0.1);
}

.parking-table th {
    background: rgba(147, 112, 219, 0.1);
    font-weight: bold;
    color: #6b46c1;
    padding: 6px;
}

.parking-table tr:hover {
    background: rgba(147, 112, 219, 0.05);
}

/* 添加一些动画效果 */
.parking-table tr {
    transition: background-color 0.3s ease;
}

.parking-table td {
    transition: all 0.3s ease;
}

.hourly-visitors {
    flex: 1;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%,
        rgba(247, 245, 255, 0.85) 100%);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(147, 112, 219, 0.1);
    border-radius: 4px;
    padding: 15px;
}

/* 环境监测数值样式 */
.environment-value {
    color: #6b46c1;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(147, 112, 219, 0.5);
}

.environment-label {
    color: #805ad5;
    font-size: 12px;
    opacity: 0.8;
}

.traffic-content {
    height: calc(100% - 30px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
}

.traffic-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.traffic-label {
    color: #805ad5;
    font-size: 16px;
}

.traffic-icons {
    position: relative;
    height: 120px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.car-icon {
    width: 100px;
    height: 100px;
    position: absolute;
    opacity: 1;
}

/* 第一组车辆（到访） */
.traffic-item:first-child .car-icon:first-child {
    left: 30%;
    top: 50%;
    transform: translateY(-50%);
}

/* 第二组车辆（返程） */
.traffic-item:last-child .car-icon:first-child {
    right: 30%;
    top: 50%;
    transform: translateY(-50%);
}

.traffic-number {
    font-size: 36px;
    font-weight: bold;
    color: #6b46c1;
}

/* 车辆动画 */
@keyframes carDown {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateY(100px);
        opacity: 0;
    }
}

@keyframes carUp {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px);
        opacity: 0;
    }
} 