/* 预约挂号页面样式 */
.department-selection {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* 限制宽度不超过手机宽度 */
    width: 100%;
}
.page-content{
    background-color: #ffffff;
}
.page-content h2{
    margin-left: 10px;
}
.page-content h2:after {
    display: none;
}
.department-menu {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.department-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 0;
    margin: 0;
    justify-content: flex-start;
}

.department-item {
    margin: 0;
}

.department-link {
    display: inline-block;
    padding: 10px 25px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 16px;
    background-color: #ffffff;
    border: 1px solid #eee;
}

.department-link:hover {
    color: var(--primary-color);
    /* background-color: rgba(146, 58, 48, 0.05); */
    /* border-color: var(--primary-color); */
}

.department-link.active {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 医生列表样式 */
.doctor-list {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.doctor-card-appointment {
    width: 254px;
    height: 380px;
    box-shadow: 0px 0px 27px 0px rgba(0,0,0,0.17);
    border-radius: 20px;
    border: 1px solid #923A30;
    padding: 20px;
    text-align: center;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    margin-top: 10px;
}
.doctor-card h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.doctor-card p {
    color: #666;
    margin-bottom: 10px;
}
.doctor-card-appointment {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: all 0.3s ease;
}

.doctor-card-appointment:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* 响应式适配 */
@media (max-width: 1024px) {
    .doctor-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {

    
    .department-list {
        gap: 10px;
    }

    .department-link {
        padding: 8px 20px;
        font-size: 14px;
    }

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

@media (max-width: 480px) {
    .department-list {
        gap: 8px;
    }

    .department-link {
        padding: 6px 15px;
        font-size: 13px;
    }

    .doctor-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .doctor-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .doctor-grid,
    .news-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
} 



.doctor-card {
    width: 254px;
    height: 412px;
    background: #FFFFFF;
    box-shadow: 0px 0px 27px 0px rgba(0,0,0,0.17);
    border-radius: 20px;
    border: 1px solid #923A30;
    padding: 20px;
    text-align: center;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.doctor-photo-appointment {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    overflow: hidden;
    border-radius: 50%;
    background: #f0f0f0;
}

.doctor-photo-appointment img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.doctor-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.doctor-dept {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.doctor-desc {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 90px;
}

.doctor-buttons {
    display: flex;
    gap: 10px;
    margin-top: auto;
    justify-content: center;
}

.doctor-btn {
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-schedule {
    background: transparent;
    border: 0px solid #923A30;
    color: #260808;
}

.btn-detail {
    background: transparent;
    border: 0px solid #923A30;
    color: #260808;
}

.doctor-btn img {
    width: 16px;
    height: 16px;
}

.doctor-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 20px;
}

@media (max-width: 1200px) {
    .doctor-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


@media (max-width: 768px) {
    .page-content{
        padding: 65px 0 0 0 ;
    }
    .page-content h2 {
        font-size: 20px;
        color: #000000;
        margin-left: 60px;
        margin-top: 10px;
        text-align: left;
        position: relative;
        /* padding-bottom: 15px; */
    }
    
    .page-content h2:after {
       display: none;
    }
    
    .page-content p {
        font-size: 16px;
        color: var(--text-color);
        margin-bottom: 15px;
        text-align: center;
    }
    .department-menu {
        margin: 0 0 0 20px;
        padding: 10px 0 10px 0 ;
        border-bottom: 1px solid var(--border-color);
    }
    .department-menu{
        margin: 0 0 0 0px;
    }
    .department-list {
        display: grid;
        padding: 0 0 0 0px;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .doctor-grid-container {
        /* 限制宽度不超过手机宽度 */
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-bottom: 10px;
        margin-top: 10px;
    }
    .doctor-card-appointment{
        width: 100%;
        height: auto;
        background: #FFFFFF;
        box-shadow: 0px 0px 27px 0px rgba(0,0,0,0.17);
        border-radius: 20px;
        border: 1px solid #923A30;
        padding: 20px;
        text-align: center;
        margin: 0 auto;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .doctor-photo-appointment {
        width: 100px;
        height: 100px;
        margin: 0 auto 15px;
        overflow: hidden;
        border-radius: 50%;
        background: #f0f0f0;
    }
    
    .doctor-photo-appointment img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    .doctor-name {
        font-size: 13px;
        font-weight: bold;
        color: #333;
        /* margin-bottom: 5px; */
    }
    .doctor-desc {
        font-size: 10px;
        color: #666;
        text-align: center;
        margin-bottom: 15px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        height: 45px;
    }

    .doctor-buttons {
        display: flex;
        gap: 10px;
        margin-top: auto;
    }

    .doctor-btn {
        padding: 8px 15px;
        border-radius: 5px;
        font-size: 7px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
    }

    .doctor-btn img {
        width: 24px;
        height: 24px;
    }



}

@media (max-width: 600px) {
    .doctor-btn {
        padding: 8px 15px;
        border-radius: 5px;
        font-size: 6px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
    }
    .doctor-grid {
        grid-template-columns: 1fr;
    }
}