/* 全局样式 */
body, html {
    margin: 0;
    padding: 0;
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
    background-color: #f0f2f5;
    color: #333;
    height: 100%;
    overflow: hidden;
}

/* 大屏整体容器 */
.dashboard-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    background-color: #fff;
}

/* 顶部标题栏 */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 20px;
    border-bottom: 1px solid #e8e8e8;
}

.header-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
}

.header-filters {
    display: flex;
    align-items: center;
    gap: 20px;
}

.filter-item {
    display: flex;
    align-items: center;
}

.filter-item span {
    margin-right: 8px;
    font-size: 14px;
}

.filter-select, .filter-date {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
    min-width: 120px;
}

.filter-button {
    padding: 5px 15px;
    background-color: #3e8ef7;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 14px;
    cursor: pointer;
}

.filter-button:hover {
    background-color: #2c7be5;
}

/* 主要内容区域 */
.dashboard-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

/* 顶部数据卡片 */
.data-cards {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.data-card {
    flex: 1;
    background-color: white;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.card-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.card-value {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.card-subtitle {
    font-size: 12px;
    color: #999;
}

.increase {
    color: #52c41a;
}

.decrease {
    color: #f5222d;
}

/* 图表容器 */
.chart-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;
    margin-bottom: 20px;
}

.chart-box {
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.large-chart {
    height: 380px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.chart-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.chart-actions {
    display: flex;
    gap: 8px;
}

.chart-action-btn {
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background-color: transparent;
    padding: 3px 8px;
    font-size: 12px;
    cursor: pointer;
    color: #666;
}

.chart-action-btn.active {
    background-color: #3e8ef7;
    border-color: #3e8ef7;
    color: white;
}

.chart-content {
    height: calc(100% - 51px);
    width: 100%;
}

/* 底部详细数据区域 */
.data-detail-section {
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.detail-select {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 150px;
}

.detail-cards {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.floor-detail-card {
    min-width: 250px;
    background-color: #f9f9f9;
    border-radius: 6px;
    padding: 15px;
    flex: 1;
}

.floor-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

.floor-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.stat-label {
    font-size: 12px;
    color: #666;
}

.floor-detail-btn {
    width: 100%;
    padding: 8px 0;
    background-color: #3e8ef7;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.floor-detail-btn:hover {
    background-color: #2c7be5;
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .chart-container {
        grid-template-columns: 1fr;
    }
    
    .large-chart {
        height: 320px;
    }
}

@media (max-width: 992px) {
    .data-cards {
        flex-wrap: wrap;
    }
    
    .data-card {
        min-width: calc(50% - 20px);
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header-filters {
        margin-top: 15px;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .data-card {
        min-width: 100%;
    }
    
    .detail-cards {
        flex-direction: column;
    }
    
    .floor-detail-card {
        width: 100%;
    }
}

/* 模态框样式 */
.modal-content {
    border-radius: 6px;
    border: none;
}

.modal-header {
    background-color: #f8f9fa;
    padding: 15px 20px;
}

.modal-title {
    font-size: 18px;
    font-weight: 500;
}

.chair-detail-table {
    max-height: 400px;
    overflow-y: auto;
}

.table {
    margin-bottom: 0;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 500;
    font-size: 14px;
}

.table td {
    vertical-align: middle;
    font-size: 14px;
}

.badge {
    font-weight: normal;
    padding: 4px 8px;
} 