html,
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, HuaweiSans, Helvetica Neue, Helvetica, Arial,
        PingFang SC, Hiragino Sans GB, STHeiti, Microsoft YaHei, Microsoft JhengHei,
        SimSun, sans-serif;
}

@media screen and (max-width: 376px) {
    .container {
        padding: 0 16px;
    }
}

@media screen and (min-width: 376px) and (max-width: 769px) {
    .container {
        padding: 0 24px;
    }
}

@media screen and (min-width: 769px) and (max-width: 1025px) {
    .container {
        padding: 0 3%;
    }
}

@media screen and (min-width: 1025px) and (max-width: 1776px) {
    .container {
        padding: 0 5%;
    }
}

@media screen and (min-width: 1776px) {
    .container {
        padding: 0 calc((100% - 1600px) / 2);
    }
}

.competition {
    width: 100%;
    display: none;
}

.loading {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading .loadingImg {
    height: 30px;
    width: 30px;
    background: url(./../../../editor/icons/fileassets/loading.gif) no-repeat center/cover;
}

/*定义滚动条宽高及背景，宽高分别对应横竖滚动条的尺寸*/
::-webkit-scrollbar {
    width: 8px;
    /*对垂直流动条有效*/
    height: 8px;
    /*对水平流动条有效*/
}

/*定义滚动条的轨道颜色、内阴影及圆角*/
::-webkit-scrollbar-track {
    border-radius: 13px;
}

/*定义滑块颜色、内阴影及圆角*/
::-webkit-scrollbar-thumb {
    border-radius: 13px;
    background-color: #d8d8d8;
}

/* 标题样式 */
.header {
    font-weight: 600;
    line-height: 40px;
    color: #191919;
    letter-spacing: 0;
    margin-bottom: 40px;
    padding: 64px 0px 20px 0px !important;
}

.header h1 {
    font-size: 32px;
}

.select {
    max-height: 722px;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-top: 16px;
}

.toggle-btn {
    bottom: 0;
    left: 0;
    padding: 8px 16px;
    background-color: white;
    color: black;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}


/* 主要内容容器 */
.container {
    display: flex;
    gap: 20px;
    padding: 20px 0px 20px 0px;
    max-width: 1280px;
    margin: 0 auto;
    padding-bottom: 83px;
}

/* 左侧筛选栏 */
.filter-sidebar {
    width: 240px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
    margin-right: 4px;
    height: max-content;
}

.filter-group {
    margin-bottom: 8px;
}

.filter-group h3 {
    font-weight: 600;
    line-height: 40px;
    color: #191919;
    letter-spacing: 0;
    padding: 17px 16px 8px;
    line-height: 20px;
    font-size: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.filter-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    border-radius: 4px;
    color: #191919;
}

.filter-item:hover {
    background-color: #f5f5f5;
}

/* 全选按钮样式 */
.filter-item.all-select {
    font-weight: bold;
}

/* 右侧内容栏 */
.content-main {
    flex: 1;
    background-color: #fff;
    border-radius: 8px;
}

/* 搜索框 */
.search-bar {
    display: flex;
    position: relative;
    gap: 10px;
    margin-bottom: 24px;
    width: calc((100% - 32px) / 3* 2 + 16px);
}

.search-input {
    flex: 1;
    border-radius: 4px;
    height: 40px;
    padding: 9px 30px 10px 12px;
    border: 1px solid #999;
    border-radius: 8px;
    color: #191919;
    line-height: 22px;
}

.search-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    cursor: pointer;
}

.del-icon {
    display: none;
    position: absolute;
    cursor: pointer;
    top: 14px;
    right: 13px;
    width: 12px;
    height: 12px;
    line-height: 12px;
    font-size: 16px;
    z-index: 9;
}

.search-button {
    padding: 8px 16px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.card-box {
    min-height: 797px;
}

/* 卡片内容区 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    position: relative;
}

.cards {
    background-color: #fff;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.cards:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

.cards .bg-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 8px;
    background-repeat: no-repeat;
    height: 244px;
}

.card-content {
    padding: 32px;
}

.cards h3 {
    font-weight: 600;
    line-height: 40px;
    color: #191919;
    letter-spacing: 0;
    display: -webkit-box;
    margin-bottom: 16px;
    overflow: hidden;
    font-size: 18px;
    line-height: 22px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.cards p {
    display: -webkit-box;
    flex: 1;
    margin-bottom: 28px;
    overflow: hidden;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    font-size: 14px;
    font-weight: regular;
    line-height: 22px;
    color: #595959;
    letter-spacing: 0;
}

.card-content div {
    font-size: 14px;
    font-weight: regular;
    line-height: 22px;
    color: #595959;
    letter-spacing: 0;
    margin-right: 4px;
    color: #191919;
    position: absolute;
    bottom: 32px;
}

/* 分页功能 */
.pagination {
    padding: 32px 0 0 0;
    text-align: center;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
}

.pagination button {
    color: #595959;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    margin-right: 4px;
    background: white;
    font-size: 14px;
    width: 32px;
    height: 32px;
}

.active {
    color: #191919 !important;
    background: rgba(0, 0, 0, .05) !important;
    font-weight: 700;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .competition {
        .body {
            .header {
                padding: 40px 16px 12px 16px !important;

                .title-mb {
                    font-weight: 600;
                    line-height: 40px;
                    color: #191919;
                    font-size: 24px;
                }
            }
        }
    }

    .header {
        padding: 0;
        line-height: 40px;
        font-size: 24px;
        font-weight: 600;
        color: #191919;
        text-align: left;
    }

    .container {
        padding: 20px 16px;
        flex-direction: column;
    }

    .filter-sidebar {
        width: 100%;
    }

    .card-grid-mb {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .noData-mb {
        display: none;
        position: relative;
        height: 334px;
        margin-top: -14px;

        .noData-box {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            display: flex;
            flex-direction: column;

            .noData-icon {
                width: 90px;
                height: 88px;
            }

            .noData-title {
                margin-top: 24px;
                font-size: 14px;
                line-height: 22px;
                color: #595959;
            }
        }
    }

    .card-content {
        font-size: 14px;
    }

    #search-bar-mb {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 16px;

        .search-box-mb {
            position: relative;
            flex: 1;

            .search-input-mb {
                padding: 9px 30px 9px 12px;
                width: 100%;
                height: 40px;
                line-height: 22px;
                color: #191919;
                border: 1px solid #999;
                border-radius: 8px;
            }

            .search-input-mb:hover {
                border-color: #191919;
            }

            .search-input-mb::placeholder {
                color: #c2c2c2;
            }

            .search-icon-mb {
                position: absolute;
                top: 12px;
                right: 12px;
            }

            .del-icon-mb {
                display: none;
                position: absolute;
                top: 14px;
                right: 13px;
                width: 12px;
                height: 12px;
                line-height: 12px;
                font-size: 16px;
                z-index: 9;
            }
        }

        .filterIcon {
            width: 20px;
            height: 20px;
        }
    }

    #search_tabs_mb {
        display: flex;
        flex-wrap: wrap;
        margin: 16px 0;

        .tabs_item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 5px 8px 5px 12px;
            height: 32px;
            border-radius: 6px;
            background-color: #f5f5f5;
            margin-right: 8px;
            margin-bottom: 12px;
            font-size: 14px;
            line-height: 22px;

            .tabs_title {
                color: #191919;
            }

            .tabs_icon {
                margin-left: 12px;
                font-size: 20px;
                color: #808080;
                width: 16px;
            }
        }
    }

    #drawer_mb {
        padding: 48px 16px 0;
        width: 100vw;
        height: 85vh;
        position: fixed;
        top: -85vh;
        left: 0;
        background-color: #fff;
        transition: left 0.3s ease;
        z-index: 10;

        .title {
            margin: 40px 0 24px;
            height: 28px;
            line-height: 28px;
            font-size: 20px;
            font-weight: 600;
            color: #191919;
        }

        #search-box-productTypes {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px 8px;
            max-height: calc(85vh - 188px);
            overflow-y: auto;
            scrollbar-width: none;
            /* Firefox浏览器 */
            -ms-overflow-style: none;
            /* IE和Edge浏览器 */

            .search-item {
                display: flex;
                justify-content: center;
                align-items: center;
                padding: 5px 8px;
                font-size: 14px;
                line-height: 22px;
                color: #595959;
                background: rgba(89, 89, 89, .1);
                letter-spacing: 0;
                border-radius: 6px;
                text-align: center;
            }

            .search-item-active {
                background: #595959;
                color: #fff;
            }
        }

        #search-box-productTypes::-webkit-scrollbar {
            display: none;
            /* Chrome, Safari, Opera浏览器 */
        }

        .btnBox {
            display: flex;
            justify-content: center;
            align-content: center;
            gap: 12px;
            width: 100vw;
            padding: 8px 16px;
            position: absolute;
            bottom: 0;
            left: 0;
            background: #ffffff;

            .replaceBtn {
                padding: 5px 0;
                width: calc((100% - 12px) / 2);
                max-width: 158px;
                height: 32px;
                color: rgba(0, 0, 0, .9);
                border: 1px solid #252b3a;
                background-color: #fff;
                border-radius: 16px;
            }

            .confirmBtn {
                padding: 5px 0;
                width: calc((100% - 12px) / 2);
                max-width: 158px;
                height: 32px;
                color: #fff;
                border: 1px solid #252b3a;
                background-color: #191919;
                border-radius: 16px;
            }
        }
    }

    #content-mask {
        position: fixed;
        height: 100vh;
        width: 100vw;
        background: rgba(0, 0, 0, .4);
        top: 0;
        left: 0;
        z-index: 9;
        display: none;
    }

    .competition {
        .hot-product-mb {
            padding: 40px 16px;
            background-color: #f5f5f5;
            overflow: hidden;

            h1 {
                font-size: 24px;
                color: #191919;
                line-height: 40px;
                font-weight: 600;
                margin-bottom: 32px;
            }
        }

        .productBox {
            display: flex;
            flex-direction: column;

            .product-item {
                display: flex;
                height: 116px;

                .product-l {
                    width: 48px;

                    .item-icon {
                        width: 48px;
                        height: 48px;
                        flex-shrink: 0;
                    }
                }

                .product-r {
                    margin-left: 12px;
                    flex: 1;

                    .item-title {
                        font-size: 18px;
                        color: #191919;
                        letter-spacing: 0;
                        line-height: 28px;
                        font-weight: 600;
                        margin-bottom: 12px;
                        overflow: hidden;
                        text-overflow: ellipsis;
                        display: -webkit-box;
                        -webkit-line-clamp: 1;
                        -webkit-box-orient: vertical;
                    }

                    .item-content {
                        font-size: 14px;
                        color: #595959;
                        letter-spacing: 0;
                        line-height: 22px;
                        height: 44px;
                        overflow: hidden;
                        text-overflow: ellipsis;
                        display: -webkit-box;
                        -webkit-line-clamp: 2;
                        -webkit-box-orient: vertical;
                    }
                }
            }
        }

        .product-page {
            display: flex;
            justify-content: center;
            align-content: center;

            .page-l-mb {
                margin-right: 20px;
                width: 32px;
                height: 32px;
                display: inline-block;
            }

            .page-up-mb {
                font-size: 14px;
                line-height: 32px;
                vertical-align: top;
                color: #333;
            }

            .separate {
                margin: 0 8px;
                font-size: 14px;
                line-height: 32px;
                vertical-align: top;
                color: rgba(119, 119, 119, .5);
            }

            .page-down-mb {
                font-size: 14px;
                line-height: 32px;
                vertical-align: top;
                color: rgba(119, 119, 119, .5);
            }

            .page-r-mb {
                margin-left: 20px;
                width: 32px;
                height: 32px;
                display: inline-block;
            }
        }
    }
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.card {
    flex: 1 1 30%;
    min-width: 300px;
    height: 278px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    padding: 8px 32px;
    box-shadow: none;
}

.card:hover {
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.1),
        -4px -4px 8px rgba(0, 0, 0, 0.1);
    transition: transform .3s, box-shadow .3s;
    transform: translateY(-3px);
}

.card img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 4px;
}

.card-title {
    font-size: 18px;
    color: #191919;
    letter-spacing: 0;
    line-height: 28px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    margin-top: 5px;
}

.card-description {
    height: 44px;
    margin-top: 16px;
    margin-bottom: 32px;
    font-size: 14px;
    color: #595959;
    letter-spacing: 0;
    line-height: 22px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.learn-more {
    font-size: 14px;
    color: #191919;
    letter-spacing: 0;
}

.learn-more-img {
    width: 16px !important;
    height: 12px !important;
    vertical-align: -1px;
}

.learn-more-img2 {
    width: 16px !important;
    height: 14px !important;
    vertical-align: -2px;
}

.learn-more-img3 {
    width: 16px !important;
    height: 16px !important;
    vertical-align: -2px;
}

.noData-box {
    text-align: center;
    position: absolute;
    left: 43%;
    top: 299px;
}

.noData-title {
    font-size: 14px;
    font-weight: regular;
    line-height: 22px;
    color: #595959;
    letter-spacing: 0;
    margin-top: 23px;
}

.filter-item {
    position: relative;
}

.filter-item label {
    display: block;
    width: 100%;
    height: 100%;
    padding: 8px 12px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 1px;
}

.filter-item input {
    cursor: pointer;
    width: 23px;
    height: 17px;
    margin-left: 38px;
    border: 1px solid #999;
}

#select-toggle-text.cancel-all:hover {
    text-decoration: underline;
}

.select-toggle {
    font-weight: 600;
    line-height: 40px;
    color: #191919;
    letter-spacing: 0;
    padding: 8px 16px;
    height: 38px;
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    cursor: pointer;
}

.search-input:hover {
    border: 1px solid #191919;
    transition: border-color 0.5s ease, border-width 0.5s ease;
}

.pagination button:hover {
    color: #191919;
    background: rgba(25, 25, 25, .05);
    font-weight: 700;
}

.pagination button:first-child:hover {
    color: 595959;
    background: white;
}

.pagination button:last-child:hover {
    color: 595959;
    background: white;
}

.search_tabs {
    margin-top: -4px;
    margin-bottom: 8px;
}

.search-tag {
    box-sizing: border-box;
    display: inline-block;
    height: 32px;
    padding: 6px 9px;
    padding-left: 12px;
    margin-right: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 22px;
    color: #191919;
    background: #f5f5f5;
    border-radius: 6px;
}

.search-tag .tag-close {
    margin-left: 12px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.pagination button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    color: #999;
}

@media (max-width: 1289px) {
    .hot-product {
        padding-right: 3%;
        padding-left: 3%;
    }

    .all-product {
        padding-right: 3%;
        padding-left: 3%;
    }
}

.cancel-all{
    color: #595959;
}
