_search.css 7.63 KB
.search-page {
    ::-webkit-scrollbar {
        width: 0;
        height: 0;
    }

    .search-input {
        position: relative;
        padding: 14px 22px;
        background: #f8f8f8;

        form {
            width: 100%;
        }

        .search-icon {
            position: absolute;
            font-size: 24px;
            top: 26px;
            left: 36px;
            color: #b2b2b2;
        }

        input {
            height: 56px;
            width: 590px;
            border-radius: 28px;
            padding: 0 52px;
            font-size: 24px;
            background: #fff;
            border: none;
        }

        .clear-input {
            position: absolute;
            top: 20px;
            right: 145px;
            font-size: 32px;
            color: #666;
        }

        .search {
            position: absolute;
            top: 14px;
            right: 40px;
            border: none;
            background: transparent;
            color: #666;
            font-size: 15PX;
            line-height: 56px;
        }
    }

    .hot-search-new {
        white-space: nowrap;
        width: 100%;
        overflow-x: auto;
        border-bottom: 1px solid #e0e0e0;

        .new-hot {
            background: #fff;
            padding-left: 30px;
            padding-top: 25px;
            padding-bottom: 25px;
            line-height: 0;
        }

        .hot-term {
            display: inline-block;
            height: 62px;
            line-height: 62px;
            padding: 0 20px;
            font-size: 28px;
            color: #000;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            border-radius: 0.2rem;
            border: 1PX solid #e0e0e0;
            background: #fff;
            font-size: 0.7rem;
            width: auto;
            margin-right: 15px;
        }

        .hot-title {
            font-size: 34px;
            color: #000;
            border: none;
            padding: 0;
        }
    }

    .search-items {
        background: #f0f0f0;
        padding-top: 30px;

        h3 {
            font-size: 24px;
            margin-bottom: 20px;
        }

        li {
            margin-right: 15px;
            margin-bottom: 15px;
            max-width: 100%;
            overflow: hidden;
            display: inline-block;
        }

        a {
            float: left;
            height: 62px;
            line-height: 62px;
            padding: 0 20px;
            font-size: 28px;
            background: #f8f8f8;
            color: #000;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .search-index {
            border-top: 1px solid #e0e0e0;
            background: #fff;
            padding: 30px;
        }

        .clear-icon {
            float: right;
            background: #fff;
        }

        span {
            margin-right: 5px;
        }

        .search-group {
            background: #fff;

            .ico-hot {
                width: 22px;
                height: 30px;
                display: inline-block;
                background: url("/search/hot-ico.png") no-repeat;
                margin-right: 20px;
                position: relative;
                top: 2px;
            }

            h3 {
                color: #b0b0b0;
                font-size: 28px;
            }
        }

        .search-content-title {
            height: 40px;

            .ico-lately {
                width: 26px;
                height: 26px;
                display: inline-block;
                background: url("/search/time-ico.png") no-repeat;
                margin-right: 20px;
                position: relative;
                top: 2px;
            }

            .ico-del {
                width: 24px;
                height: 26px;
                display: inline-block;
                background: url("/search/del-ico.png") no-repeat;
            }

            .left {
                float: left;
            }

            .right {
                float: right;
            }
        }

        .search-content {
            clear: both;
            box-sizing: border-box;
            padding-bottom: 18px;

            a {
                border-radius: 8px;
                border: 1PX solid #e0e0e0;
                background: #fff;
                font-size: 28px;
                width: auto;
            }
        }

        .history {
            max-height: 300px;
            overflow: hidden;

            li {
                margin-right: 15px;
            }
        }

        .want-search {
            padding-top: 20px;
        }

        .want {
            max-height: 250px;
            overflow: hidden;
        }
    }

    .swiper-slide {
        width: auto;
    }
}

.search-associate {
    width: 100%;
    background: #f8f8f8;
    display: none;
    position: absolute;
    z-index: 1;

    li {
        height: 84px;
        line-height: 84px;
        width: 100%;
        padding: 0 20px;
        clear: both;
        margin-bottom: 5px;
        background: #fff;
        box-sizing: border-box;
    }

    .keyword {
        float: left;
        font-size: 30px;
    }

    .count {
        float: right;
        color: #b0b0b0;
        font-size: 18px;

        i {
            font-size: 12PX;
            margin-left: 10px;
            position: relative;
            top: 3px;
        }
    }
}

.search-brand-page {
    .search-input {
        position: relative;
        padding: 14px 22px;
        background: #f8f8f8;

        form {
            width: 100%;
        }

        .search-icon {
            position: absolute;
            font-size: 24px;
            top: 26px;
            left: 36px;
            color: #b2b2b2;
        }

        input {
            height: 56px;
            width: 378px;
            border-radius: 28px;
            padding: 0 52px;
            font-size: 24px;
            background: #fff;
            border: none;
        }

        .clear-input {
            position: absolute;
            top: 20px;
            right: 145px;
            font-size: 32px;
            color: #666;
        }

        .search {
            position: absolute;
            top: 18px;
            right: 40px;
            border: none;
            background: transparent;
            color: #666;
            font-size: 30px;
            line-height: 56px;
        }
    }

    .search-items {
        padding: 40px 20px;

        h3 {
            font-size: 24px;
            margin-bottom: 20px;
            color: #b8b8b8;
        }

        li {
            float: left;
            margin-right: 20px;
            margin-bottom: 20px;
            max-width: 100%;
            overflow: hidden;
        }

        a {
            display: block;
            height: 68px;
            line-height: 71px;
            padding: 0 20px;
            font-size: 28px;
            background: white;
            color: #b8b8b8;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            border: 1PX solid #b8b8b8;
            border-radius: 0.2rem;
        }

        .clear-history {
            font-size: 28px;
        }

        .clear-icon {
            float: right;
            color: #b8b8b8;
            border: none;
            background: white;
        }

        span {
            margin-right: 10px;
            font-size: 14px;
        }

        .history-search {
            border-bottom: 1px solid #f3f3f3;
        }

        .hot-search {
            margin-top: 20px;
        }

        .clearfix {
            margin-left: 30px;
        }

        .left-icon {
            font-size: 24px;
        }
    }
}