/*选择按钮*/
.selected {
    background-color: rgb(134, 215, 246);
}

.not-selected {
    background-color: rgb(196, 235, 255);
}


/* 具有相同效果的 CSS 样式 */
.el-card {
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 10px;
    background-color: #fff;
}

/* 调整 ul 和 li 的样式以匹配 el-card 的效果 */
.ul-department {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.department-type-card {
    /*flex: 0 0 calc(25% - 20px);*/
    margin: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
    /*background-color: #fff; !* 背景色与 el-card 一致 *!*/
    border-radius: 8px; /* 边框圆角 */
    text-align: center;
    padding: 20px;
    transition: box-shadow 0.3s ease-in-out; /* 添加过渡效果 */
}

/* 鼠标悬停时改变阴影效果 */
.department-type-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


/*下面是所有科室的浏览*/
/*span {*/
/*    font-weight: 400;*/
/*    font-size: 16px;*/
/*    color: #222222;*/
/*}*/

.index-list {
    width: 100%;
    min-width: 1200px;
    height: 75px;
}

.index-name {
    display: flex;
    justify-content: flex-start;
    width: 48px;
    margin: 0 24px 0 0;
}

.box {
    width: 1200px;
    height: 100%;
}

.item {
    user-select: none;

    /*&::before {*/
    /*    content: '';*/
    /*    display: inline-block;*/
    /*    width: 2px;*/
    /*    height: 14px;*/
    /*    background: #B5B5B5;*/
    /*}*/

    &::after {
        content: '';
        display: inline-block;
        /*width: 2px;*/
        /*height: 550px;*/
        background: #ffffff;
    }

    &:first-child::before,
    &:nth-child(2)::before {
        visibility: hidden;
    }

    /*&:last-child::after {*/
    /*    content: '';*/
    /*    display: inline-block;*/
    /*    width: 2px;*/
    /*    height: 14px;*/
    /*    background: #B5B5B5;*/
    /*}*/
}

.active {
    background: #B27041;
    border-radius: 4px;
    color: #fff;
    height: 30px;
    border: 1px solid #fff;

    & + span::before {
        background: #fff;
    }

    &::after,
    &::before,
    &:last-child::after {
        background: #B27041;
        height: 25px;
    }
}

.page-content {
    width: 100%;
    min-width: 1200px;
    height: auto;
    background-color: #F3F5F9;
    padding: 40px 0 16px;
}

.search-tab {
    width: 1200px;
    margin: 0 0 24px;

    .tab {
        flex: 1;
        margin-right: 88px;

        .tab-item {
            width: 160px;
            height: 48px;
            background: #FFFFFF;
            border-radius: 4px;
            font-size: 14px;
            color: #222222;
            cursor: pointer;
        }

        .tab-item-active {
            background: #327CE4;
            color: #fff;
        }
    }

    .btn {
        width: 68px;
        height: 40px;
        background: #327CE4;
        border-radius: 0 4px 4px 0;
        font-size: 14px;
        color: #FFFFFF;
    }

    .input {
        width: 332px;
        height: 40px;
        background: #FFFFFF;
        border-radius: 4px 0 0 4px;

        :is(input) {
            outline: none;
            width: 100%;
            height: 100%;
            padding: 0 12px;
            border-radius: 4px 0 0 4px;
        }

        :is(input::placeholder) {
            font-size: 14px;
            color: #999BA7;
        }
    }
}

/*下面是所有盒子摆放的css*/
.department-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.department-item {
    flex: 0 0 calc(25% - 20px); /* 控制每个部门项的宽度，减去间距 */
    margin: 10px; /* 设置项之间的间距 */
    box-sizing: border-box; /* 使用盒子模型，包括边距在内 */
}

/*@media screen and (max-width: 480px) {*/
/*    .department-item {*/
/*        flex: 0 0 calc(25% - 20px); !* 在手机屏幕上显示4列，减去间距 *!*/
/*    }*/
/*}*/



/*下面是每个科室的卡片盒子模型*/
.dept-container {
    width: 270px;
    height: 150px;
    /*border: 1px solid #000;*/
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #fff;

}

.dept-container:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


.box1 {
    width: 270px;
    height: 50px;
    /*border: 1px solid #000;*/
}

.box2-and-3 {
    display: flex;
    width: 270px;
    height: 100px;
    /*border: 1px solid #000;*/
}

.box2 {
    width: 180px;
    height: 100px;
    /*border: 1px solid #000;*/
}

.box3 {
    width: 90px;
    height: 100px;
    /*border: 1px solid #000;*/
}

.text-container {
    white-space: nowrap;      /* 禁止文本换行 */
    overflow: hidden;         /* 隐藏溢出文本 */
    text-overflow: ellipsis;  /* 显示省略号 */
    width: 180px;             /* 适当的容器宽度 */
}
