@media screen and (max-width: 1400px) {

    /* 頭部大圖 -start */
    #headerContainer {
        height: 180px;
        background-size: 100% 180px;
    }

    #headerContainer .page-title {
        font-size: 32px;
        text-align: center;
    }

    /* 頭部大圖 -end */

    /* 產品列表 -start */
    #productList {
        padding: 16px;
    }

    .sort-wrapper p {
        font-size: 14px;
    }

    .sort-wrapper {
        padding: 11px 40px 11px 15px;
    }

    .more-list {}

    #productList .title-box {
        width: 100%;
        padding: 16px;
        overflow-x: auto;
        overflow-y: hidden;
    }

    #productList .title-box .title-item {
        width: fit-content;
        min-width: 120px;
        padding: 8px 4px;
    }

    .title-item a {
        font-size: 16px;
    }

    .gift-list {
        padding-top: 16px;
        padding-bottom: 0;
        gap: 16px;
    }

    .gift-list a {
        width: 100%;
    }

    .gift-item .content {
        padding: 16px;
    }

    .con-title h3 {
        font-size: 18px;
    }

    .con-title span {
        font-size: 14px;
        line-height: 14px;
        padding: 4px 8px;
    }

    #demo-laypage-theme-1 {
        padding: 0 0 16px 0;
    }

    #mProductSelectSection {
        padding-top: 16px;
        display: block;
    }

    .layui-tab {
        margin-top: 0;
    }

    .fliter-container {
        display: flex;
        margin: 0 10px;
        align-items: center;
        justify-content: space-between;
    }

    #mProductSelectSection .right-wrapper {
        display: flex;
        align-items: center;
    }

    #mProductSelectSection .right-wrapper .filter-txt {

        font-weight: 400;
        font-size: 16px;
        color: var(--font-color);
        line-height: 16px;
    }

    #mProductSelectSection .right-wrapper .filter-icon {
        width: 18px;
    }


    #filtersOverlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }

    #filtersSection {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        /* 初始位置在屏幕外 */
        width: 80%;
        height: 100%;
        background-color: white;
        padding: 20px 16px;
        z-index: 1001;
        transition: right 0.3s ease-in-out;
        /* 添加过渡效果 */
    }

    /* 当 #filtersSection 显示时的样式 */
    #filtersSection.show {
        right: 0;
    }

    #filtersSection .filters-container {
        position: relative;
        overflow-x: hidden;
        overflow-y: auto;
        height: 100%;
    }

    #filtersSection .title-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;

        font-weight: 400;
        font-size: 16px;
        color: var(--font-color);
        line-height: 19px;
        padding-bottom: 18px;
        background-color: #ffffff;
    }

    #filtersSection .title-wrapper .close-icon {
        width: 21px;
        position: absolute;
        top: 0px;
        right: 0px;
    }

    #filtersSection .filter-item {
        padding-bottom: 23px;
    }

    #filtersSection .filter-item .i-title {

        font-weight: 400;
        font-size: 14px;
        color: var(--font-color);
        line-height: 16px;
        padding-bottom: 16px;
    }

    #filtersSection .filter-item .i-items {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 16px;
    }

    #filtersSection .filter-item .i-items .i-item {
        width: calc(50% - 8px);
        background: #F8F8F8;
        border-radius: 8px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-weight: 400;
        font-size: 12px;
        color: var(--font-color);
        padding: 16px 8px;
        margin-bottom: 10px;
        text-align: center;
    }

    #filtersSection .filter-item .i-items .i-item:nth-child(3n) {
        margin-right: 0;
    }

    #filtersSection .filter-item .i-items .i-item.selected {
        color: #ffffff;
        background-color: var(--main-color);
    }

    #filtersSection .btns {
        display: flex;
        align-items: center;
        padding: 24px 0;
        margin-bottom: 24px;
    }

    #filtersSection .btns .reset-btn {
        width: 30%;
        border-radius: 40px;
        border: 1px solid #CCCCCC;
        font-weight: 400;
        font-size: 16px;
        color: var(--font-color);
        line-height: 19px;
        padding: 8px 0;
        text-align: center;
    }

    #filtersSection .btns .confirm-btn {
        flex: 1;
        background: var(--main-color);
        border-radius: 43px;
        font-weight: 400;
        font-size: 16px;
        color: #FFFFFF;
        line-height: 19px;
        padding: 8px 0;
        margin-left: 13px;
        text-align: center;
        border: 1px solid var(--main-color)
    }

    .empty-tip {
        font-size: 20px;
    }

    .layui-laypage a,
    .layui-laypage span {
        height: 30px;
        line-height: 30px;
        font-size: 13px;
        font-weight: bold;
        margin: 0 1px;
        padding: 0 12px;
    }

    .title-box {
        display: none;
    }

    .search-box label {
        padding: 4px 16px;
    }

    .sort-wrapper {
        padding: 7px 32px 7px 16px;
    }

    .tab-search {
        margin-bottom: 0;
    }

    .search-box {
        width: 100%;
    }

    .sort-div {
        width: 40%;
    }

    .gift-list {
        padding-top: 0;
    }

    /* 產品列表 -end */

    /* 手机端筛选弹框 -start */
    .filter-item {
        background: #fff;
        border: none;
    }

    #filtersSection .filter-item {
        padding: 0;
    }

    .filter-item:hover {
        background: #ffffff;
        transform: translateX(0);
    } 
    /* 手机端筛选弹框 -end */


    /* 移動端排序下拉框樣式 */
    @media screen and (max-width: 768px) {
        .search-box input {
            width: 100%;
            font-size: 14px;
        }

        .sort-wrapper {
            width: 100%;
            min-width: auto;
        }

        .sort-wrapper::after {
            right: 15px;
            border-left: 5px solid transparent;
            border-right: 5px solid transparent;
            border-top: 6px solid #666666;
        }

        .sort-item {
            padding: 10px 15px;
            font-size: 14px;
        }
    }

    @media screen and (max-width: 480px) {
        .sort-wrapper::after {
            right: 12px;
            border-left: 4px solid transparent;
            border-right: 4px solid transparent;
            border-top: 5px solid #666666;
        }

        .sort-item {
            padding: 8px 12px;
            font-size: 13px;
        }
    }

}