* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 1600px;
    margin: 0 auto;
}

/* 顶部栏样式 */
.header {
    background-color: #2c5aa0;
    color: white;
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

/* 在现有.logo样式下添加 */
.logo-img {
    height: 36px; /* 适配顶部栏高度 */
    width: auto; /* 保持图片原始宽高比 */
    border-radius: 4px; /* 可选：添加轻微圆角 */
    margin-right: 8px; /* 与标题的间距 */
}

/* 调整原有的.logo样式，确保与图片配合 */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo i {
    font-size: 24px;
    color: #a3d4ff;
}

.logo h1 {
    font-size: 22px;
    font-weight: 600;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.time-display {
    font-size: 14px;
    color: #d0e3ff;
}

.settings-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    color: #2c5aa0;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.settings-btn:hover {
    background-color: #f0f7ff;
    transform: rotate(30deg);
}

/* 主体三栏布局 */
.dashboard {
    display: flex;
    flex: 1;
    padding: 20px;
    gap: 20px;
    overflow: hidden;
}

.left-column, .right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.middle-column {
    flex: 4;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

/* 模块通用样式 */
.module {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.module:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.module-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #2c5aa0;
}

.module-title i {
    font-size: 20px;
}

/* 模块内容滚动容器 */
.module-content-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px; /* 为滚动条留出空间 */
}

/* 自定义竖向滚动条样式 */
.module-content-scroll::-webkit-scrollbar {
    width: 8px;
}

.module-content-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.module-content-scroll::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.module-content-scroll::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* 环境监控模块 */
.environment-monitor {
    flex: 1;
}

.environment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.environment-item {
    display: flex;
    flex-direction: column;
    padding: 12px;
    background-color: #f9fbff;
    border-radius: 8px;
    border-left: 4px solid #2c5aa0;
}

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

.environment-value {
    font-size: 24px;
    font-weight: 600;
    color: #2c5aa0;
}

.environment-unit {
    font-size: 14px;
    color: #888;
    margin-left: 3px;
}

/* 设备控制模块 */
.equipment-control {
    flex: 1;
}

.control-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.control-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    background-color: #f9fbff;
    border-radius: 8px;
    border: 1px solid #e6eefc;
    cursor: pointer;
    transition: all 0.2s ease;
}

.control-btn:hover {
    background-color: #e8f1ff;
    transform: translateY(-3px);
}

.control-btn.active {
    background-color: #e1ecff;
    border-color: #2c5aa0;
}

.control-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #2c5aa0;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 22px;
}

.control-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.control-status {
    font-size: 12px;
    color: #4caf50;
    margin-top: 5px;
}

/* 中间列模块 */
.overall-monitor {
    flex: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    background-color: #f9fbff;
}

.park-status {
    flex: 3;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.status-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2px 1px;
    background-color: #f9fbff;
    border-radius: 8px;
    text-align: center;
}

.status-number {
    font-size: 26px;
    font-weight: 700;
    color: #2c5aa0;
    margin-bottom: 5px;
}

.status-label {
    font-size: 12px;
    color: #666;
}

/* 右侧列模块 */
.project-intro {
    flex: 1;
}

.project-content {
    line-height: 1.6;
    color: #555;
    font-size: 14px;
}

.project-highlight {
    color: #2c5aa0;
    font-weight: 500;
}

.growth-analysis {
    flex: 1;
}

.growth-chart {
    height: 200px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    margin-top: 10px;
}

.growth-bar {
    width: 40px;
    background: linear-gradient(to top, #4caf50, #8bc34a);
    border-radius: 4px 4px 0 0;
    position: relative;
}

.growth-bar-label {
    position: absolute;
    bottom: -25px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 12px;
    color: #666;
}

.growth-value {
    position: absolute;
    top: -25px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #2c5aa0;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .dashboard {
        flex-direction: column;
    }
    
    .left-column, .middle-column, .right-column {
        flex: none;
        width: 100%;
    }
    
    .control-grid, .status-grid, .environment-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .control-grid, .status-grid, .environment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .header {
        padding: 0 15px;
    }
    
    .logo h1 {
        font-size: 18px;
    }
    
    .module {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .logo-img {
        height: 30px; /* 移动端稍小一点 */
    }
    
    .logo h1 {
        font-size: 18px;
    }
}


/* 模拟数据更新动画 */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.updating {
    animation: pulse 1.5s infinite;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}