/* 排班表样式 */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
    font-size: 13px;
    margin-bottom: 30px;
}

/* 表头样式 - 修改为蓝色背景 */
.schedule-table thead th {
    background: #0168b7;
    color: white;
    padding: 16px 10px;
    text-align: center;
    font-weight: 600;
    border: 1px solid #015aa0;
    font-size: 14px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.schedule-table thead th:first-child {
    border-radius: 10px 0 0 0;
}

.schedule-table thead th:last-child {
    border-radius: 0 10px 0 0;
}

/* 隔行变色 */
.schedule-table tbody tr.row-odd {
    background-color: white;
}

.schedule-table tbody tr.row-even {
    background-color: #dff1fb;
}

/* 鼠标悬停效果 */
.schedule-table tbody tr:hover {
    background-color: #f0f9ff !important;
}

/* 单元格样式 */
.schedule-table tbody td {
    padding: 10px 8px;
    text-align: left;
    border: 1px solid #e8f3fa;
    vertical-align: top;
    transition: all 0.2s;
}

/* 科室列样式 */
.department-cell {
    background: linear-gradient(to bottom, #0168b7, #0284e3);
    font-weight: 600;
    color: white;
    text-align: center;
    vertical-align: middle;
    writing-mode: vertical-lr;
    text-orientation: mixed;
    width: 35px;
    padding: 15px 8px;
    font-size: 16px;
    border-right: 2px solid #015aa0;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

/* 时段列样式 */
.time-cell {
    background-color: #e8f4ff;
    font-weight: 600;
    text-align: center;
    width: 55px;
    vertical-align: middle;
    color: #0168b7;
    border-right: 1px solid #c2e0ff;
    font-size: 14px;
}

/* 医生名字样式 */
.doctor-name {
    display: inline-block;
    margin: 4px 6px 4px 0;
    padding: 6px 10px;
    font-size: 12px;
    line-height: 1.4;
    border-radius: 5px;
    background: linear-gradient(to right, #e3f2fd, #f0f7ff);
    color: #0168b7;
    border: 1px solid #c2e0ff;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.doctor-name:hover {
    background: linear-gradient(to right, #0168b7, #0284e3);
    color: white;
    border-color: #0168b7;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(1, 104, 183, 0.3);
}

/* 空单元格样式 */
.empty-cell {
    color: #95a5a6;
    font-style: italic;
    font-size: 12px;
    text-align: center;
    padding: 15px 5px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

/* 医生详情弹窗样式 */
.doctor-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s;
    position: relative;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #e74c3c;
}

.modal-body {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.doctor-photo {
    flex-shrink: 0;
    width: 150px;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    border: 3px solid #e8f4ff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.doctor-photo a {
    display: block;
    width: 100%;
    height: 100%;
}

.doctor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #f5f5f5;
    transition: transform 0.3s;
}

.doctor-photo a:hover img {
    transform: scale(1.05);
}

.doctor-info {
    flex: 1;
}

.doctor-info h3 {
    color: #0168b7;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8f4ff;
    font-size: 22px;
}

.info-item {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #0168b7;
}

.info-item strong {
    color: #0168b7;
    display: inline-block;
    min-width: 90px;
}

.info-item span {
    color: #333;
    line-height: 1.5;
}

/* 医生详情链接按钮 */
.modal-actions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e8f4ff;
}

.detail-btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(to right, #0168b7, #0284e3);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.detail-btn:hover {
    background: linear-gradient(to right, #015aa0, #0168b7);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(1, 104, 183, 0.3);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .schedule-table {
        font-size: 12px;
    }
    
    .doctor-name {
        font-size: 11px;
        padding: 5px 8px;
    }
}

@media (max-width: 768px) {
    .modal-body {
        flex-direction: column;
        align-items: center;
    }
    
    .doctor-photo {
        width: 120px;
        height: 160px;
    }
    
    .department-cell {
        font-size: 14px;
        padding: 12px 5px;
    }
    
    .time-cell {
        font-size: 12px;
    }
}