/* 空教室样式 - 数据展示版 */

/* 页面头部 */
.page-header {
    background: white;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.header-sub {
    font-size: 13px;
    color: #9ca3af;
}

.sync-btn {
    padding: 8px 16px;
    background: #374151;
    color: white;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sync-btn:active {
    background: #1f2937;
}

/* 通用页面头部（考试/成绩/学业） */
.page-header-simple {
    background: white;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.page-header-simple .header-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.page-header-simple .header-sub {
    font-size: 13px;
    color: #9ca3af;
    margin-top: 2px;
}

.page-header-simple .header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.page-header-simple .header-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 4px;
}

.page-header-simple .stat-value {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.page-header-simple .stat-label {
    font-size: 12px;
    color: #9ca3af;
    margin-left: 4px;
}

.page-header-simple .stat-divider {
    width: 1px;
    height: 24px;
    background: #e5e7eb;
}

/* 数据内容区 */
.data-content {
    padding: 16px;
    padding-bottom: 80px;
}

/* 教室内容区 */
.classroom-content {
    padding: 16px;
    padding-bottom: 100px;
}

/* 教学楼分组 */
.building-section {
    margin-bottom: 20px;
}

.building-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.building-title i {
    color: #6b7280;
}

.building-count {
    font-size: 13px;
    color: #9ca3af;
    margin-left: 8px;
}

/* 教室卡片网格 */
.room-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.room-card {
    background: white;
    border-radius: 12px;
    padding: 14px;
    border: 1px solid #e5e7eb;
}

.room-card.has-free {
    border-color: #d1fae5;
}

.room-card.all-busy {
    opacity: 0.6;
}

.room-name {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.room-capacity {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 10px;
}

/* 节次状态点阵 */
.room-status {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.section-dot {
    height: 8px;
    border-radius: 2px;
}

.section-dot.free {
    background: #10b981;
}

.section-dot.busy {
    background: #fee2e2;
}

.room-free-count {
    font-size: 12px;
    color: #6b7280;
}

.room-card.has-free .room-free-count {
    color: #059669;
}

/* 节次对照条 */
.section-legend {
    position: fixed;
    bottom: 56px;
    left: 0;
    right: 0;
    background: white;
    padding: 8px 16px;
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #e5e7eb;
    z-index: 10;
}

.legend-item {
    text-align: center;
}

.legend-num {
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
}

/* 考试卡片 */
.exam-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid #e5e7eb;
}

.exam-name {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
}

.exam-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-label {
    font-size: 13px;
    color: #9ca3af;
}

.detail-value {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
}

.type-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #f3f4f6;
    color: #374151;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #d1d5db;
}

.empty-state p {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 8px;
}

.empty-hint {
    font-size: 13px;
    color: #9ca3af;
}

/* 响应式 */
@media (max-width: 375px) {
    .room-grid {
        grid-template-columns: 1fr;
    }
    
    .exam-detail-grid {
        grid-template-columns: 1fr;
    }
}