@import url("nav-box.css");
@import url("search-content.css");

.intellect {
    width: 100%;
    background-color: #F9FAFF;
    padding: 80px 0;

    & .inte-container {
        width: 1200px;
        margin: 0 auto;
        padding: 50px 0;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        flex-direction: row;

        & .content {
            width: 100%;
            margin: 0 0 0 30px;
        }

        & .hq-list {
            width: 100%;
            display: flex;
            justify-content: flex-start;
            align-items: flex-start;
            flex-flow: row wrap;
            margin: 40px 0 0;
            --padd: calc(100% - 293px * 3);
            --m: calc(var(--padd) / 6);
            overflow-x: hidden;

            & .list-item {
                width: 293px;
                padding: 15px;
                border: 1px solid transparent;
                border-radius: 8px;
                display: flex;
                justify-content: space-between;
                align-items: flex-start;
                flex-direction: row;
                flex: 0 0 auto;
                transition: box-shadow 0.5s cubic-bezier(.34, .69, .74, 1.4);
                position: relative;
                margin: 40px var(--m);

                &:after {
                    content: "";
                    box-sizing: border-box;
                    width: calc(100% - var(--m) / 2);
                    height: 100%;
                    padding: 0;
                    border-bottom: 1px dashed #EAEAEA;
                    position: absolute;
                    left: 50%;
                    bottom: -40px;
                    transform: translateX(-50%);
                }

                &:hover {
                    background-color: #fff;
                    border-color: rgba(0, 0, 0, 0.15);
                    box-shadow: 0px 6px 10px 0px rgba(0, 0, 0, 0.15);

                    & .hq-info .hq-name, & .hq-info .hq-name a {
                        color: #2884DA;
                    }

                    & .hq-info .hq-name::after {
                        width: 0;
                        background-color: #2884DA;
                    }
                }

                & .hq-img {
                    width: 130px;
                    height: 170px;
                    overflow: hidden;

                    & img {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                    }
                }

                & .hq-info {
                    width: 128px;
                    height: 170px;
                    display: flex;
                    justify-content: space-between;
                    align-items: flex-start;
                    flex-direction: column;
                    margin-left: 10px;
                }

                & .hq-info .hq-name {
                    width: 100%;
                    font-size: 18px;
                    color: #333;
                    position: relative;

                    & a {
                        color: #333;
                        display: -webkit-box;
                        -webkit-box-orient: vertical;
                        -webkit-line-clamp: 2;
                        overflow: hidden;
                        text-overflow: ellipsis;
                    }

                    &::after {
                        content: '';
                        width: 90%;
                        height: 3px;
                        background-color: #F0F0F0;
                        position: absolute;
                        bottom: -6px;
                        left: 0;
                        /* transition: all 0.5s cubic-bezier(.23, -0.41, .76, .23); */
                        transition: all 0.5s cubic-bezier(.34, .69, .74, 1.4);
                    }
                }

                & .hq-info .hq-value {
                    width: 100%;
                    font-size: 12px;
                    display: flex;
                    justify-content: flex-start;
                    align-items: flex-start;
                    flex-direction: row;

                    & span.lab {
                        color: #686869;
                        flex: 0 0 auto;
                    }

                    & span.txt {
                        color: #333;
                        white-space: nowrap;
                        overflow: hidden;
                        text-overflow: ellipsis;
                    }
                }
            }
        }

        & .search-conetnt {
            width: 100%;
            background-color: #fff;
            padding: 20px 10px;
            margin: 40px 0 0;
            border-radius: 6px;
            --padd: calc(100% - 293px * 3);
            --m: calc(var(--padd) / 6);

            & .hq-list {
                margin: 22px 0 0;

                & .list-item {
                    margin: 10px var(--m);
                }

                & .list-item::after {
                    display: none;
                }
            }

            & .search-nav {
                display: flex;
                justify-content: flex-start;
                align-items: center;
                flex-direction: row;
                border-bottom: 1px solid #ccc;
                padding: 2px 0 6px;

                & span {
                    font-size: 16px;
                    color: #6C757D;
                }

                & span.cur {
                    color: #000;
                }

                & i {
                    width: 20px;
                    height: 20px;
                    margin-right: 6px;
                    display: flex;
                }

                & i svg {
                    width: 20px;
                    height: 20px;
                    margin: auto;
                }

                & i.arrow svg {
                    width: 13px;
                    height: 13px;
                }

                & i.h-icon {
                    width: 15px;
                    height: 15px;
                    background: url("../images/icon-5.png") center top / cover no-repeat;
                }

                & span {
                    margin-right: 6px;
                }
            }
        }
    }
}

@media only screen and (min-width: 750px) and (max-width: 1190px) {
    .intellect .inte-container {
        width: 100%;

        & .hq-list {
            --padd: calc(100% - 293px * 2);
            --m: calc(var(--padd) / 4);

            & .list-item {
                margin: 40px var(--m);

                &::after {
                    width: calc(100% - var(--padd) / 2 - var(--m) /2);
                }
            }
        }
    }
}

@media only screen and (max-width: 700px) {
    .intellect {
        padding: 2rem 0;
    }

    .intellect .inte-container {
        width: 100%;
        padding: 0 0 1.4rem;


        & .content {
            margin: 0;
            padding: 0 1rem;

            & .search {
                width: 100%;
            }

            & .hq-list {
                width: 100%;
                margin: 0.6rem 0 0;
                align-items: center;
                flex-direction: column;
                overflow: visible;

                & .list-item {
                    width: 100%;
                    padding: 0.2rem;
                    margin: 0.2rem auto;

                    &::after {
                        display: none;
                    }
                }

                & .list-item .hq-img {
                    width: 6.5rem;
                    height: 8.5rem;
                }

                & .list-item .hq-info {
                    width: calc(100% - 7rem);
                    height: 8.5rem;
                }
            }
        }
    }
}