.product-search {
    background: #ffffff;
    height: 100px;
}

.product-search form {
    display: flex;
    align-items: center;
    height: 100%;
    justify-content: center;
}

.search {
    position: relative;
    display: inline-block;
    width: 50%;
}

.search input {
    border-radius: 20px;  /* 输入框整体圆角 */
    padding-right: 90px;  /* 右侧留出按钮空间 */
    width: 100%;
    height: 40px;
    border: 1px solid #ddd;
    padding-left: 20px;
    box-sizing: border-box; /* 新增盒子模型 */
}

.search button {
    border-radius: 20px;  /* 按钮整体圆角 */
    width: 80px;
    font-size: 16px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    padding: 0 20px;
    background: #0887cf;
    color: white;
    border: none;
    border-top-left-radius: 0;    /* 去除按钮左侧圆角 */
    border-bottom-left-radius: 0;
}

.search button:hover {
    background: #0271bb;
}

.search button:active {
    transform: translateY(-50%) scale(0.98);
}

.search input:focus {
    outline: none;
    border-color: #0887cf;
    box-shadow: 0 0 5px rgba(0,123,255,0.3);
}



.page-container {
    display: flex;
    flex-direction: row;
}

.page-main {
    background: #ffffff;
    display: flex;
    flex-direction: column;
    padding: 0 20px 0 20px;
    margin-left: 20px;
}


.page-main h1 {
    background: #e8e9e9;
    padding: 0;
}

.search-content {
    display: flex;
    flex-direction: column;
    padding: 30px 0 0 0;
}

.search-content .banner-title-h1 {
    color: #0b6fa2;
    font-size: 24px;
    font-weight: bold;
}

.search-content .banner-breadcrumbs {
    padding: 8px;
    margin-left: 10px;
}



@media (max-width: 1024px) {
    .page-main {
        padding-left: 0px
    }

    .banner-inner .banner-img {
        max-height: 240px
    }

    .banner-inner .banner-img img {
        width: 100%;
        height: 100%;
        object-fit: cover
    }

    .abouttitle {
        font-size: 26px
    }

    .team-list li {
        width: 48%;
        margin-bottom: 20px
    }

    .historytitle {
        font-size: 28px
    }

    .history-item .title {
        font-size: 24px
    }

    .product-catelist {
        justify-content: space-between
    }

    .product-catelist .product-cateitem {
        width: 49%;
        margin: 0px;
        margin-bottom: 20px
    }

    .sidebar {
        display: none
    }

    .preview-container {
        width: 100%;
        margin-right: 0px
    }

    .preview-container .banner-page {
        display: block;
        position: absolute;
        right: 9px;
        bottom: 10px;
        background: var(--color);
        color: #FFF;
        border-radius: 30px;
        padding: 4px 10px;
        z-index: 9
    }

    .preview-container .preview-box .prodetails-pagination {
        margin-top: 10px;
        display: none
    }

    .preview-container .preview-box .prodetails-button-next, .preview-container .preview-box .prodetails-button-prev {
        display: none !important
    }

    .prodetails-info {
        width: 100%;
        padding-top: 15px
    }

    .main-prodetails .banner-inner {
        display: none
    }

    .newscontent-title {
        font-size: 25px
    }

    .mediaplay {
        width: 50px;
        height: 50px;
        line-height: 50px
    }

    .mediaplay em {
        font-size: 30px
    }

    .contact-box::before {
        width: calc(100% + 30px)
    }



    .search {
        width: 80%;
    }

    .product-search {
        height: auto;
        padding: 20px;
    }

    .product-search form {
        width: 100%;
    }

    .search input {
        border-radius: 20px;  /* 输入框整体圆角 */
        padding-right: 90px;  /* 右侧留出按钮空间 */
        width: 80%;
        height: 40px;
        border: 1px solid #ddd;
        padding-left: 20px;
    }

    .l-wrap {
        padding: 0;
    }


    .page-container {
        display: flex;
        flex-direction: column;
    }

    .sidebar {
        display: flex;
        flex-direction: column;
        flex: 1;
    }


    .page-main {
        padding: 0 10px;
        margin-left: 0;
    }


    .related {
        border-radius: 4px;
        border-bottom: 1px solid #e0e0e0;
        background: #ffffff;
        order: 1;
        position: relative; /* 新增定位上下文 */
    }

    .sidebar-title {
        background: #ffffff;

    }

    .sidebar-item {
        margin-bottom: 10px;
    }

    .sidebar-item.related {
        display: none;
    }

    .sidebar-item.related .related-list {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 20px;
        padding: 15px;
        -webkit-overflow-scrolling: touch; /* 平滑滚动 */
        position: relative;
        padding-bottom: 40px; /* 为指示器预留空间 */
        margin: 0 10px;
    }

    .related-list {
        position: relative;
        overflow: hidden; /* 防止滚动穿透 */
        scroll-snap-type: x mandatory;
    }

    .related-list::-webkit-scrollbar {
        display: none; /* 隐藏滚动条 Chrome/Safari */
    }

    .scroll-indicator-dots {
        display: flex!important;
        justify-content: center;
        gap: 5px;
        left: 0;
        right: 0;
        opacity: 1 !important;
        z-index: 10;
        bottom: 15px; /* 调整间距 */
        position: static; /* 改为相对定位 */
        margin-top: -30px; /* 向上偏移 */
        padding: 15px 0 25px;
        background: linear-gradient(0deg, rgba(255,255,255,1) 50%, rgba(255,255,255,0) 100%);

    }

    .scroll-indicator-dot.active {
        background-color: #0887cf !important;
        transform: scale(1.3);
        box-shadow: 0 2px 6px rgba(8,135,207,0.3);
    }

    .scroll-indicator-dot {
        width: 8px;
        height: 8px;
        margin: 0 5px;
        border-radius: 50%;
        background-color: #ddd;
        transition: background-color 0.3s ease;
    }

    .scroll-indicator-dot.active {
        background-color: #0887cf;
        transform: scale(1.2);
    }


    .related-item {
        flex: 0 0 200px; /* 固定宽度禁止收缩 */
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        overflow: hidden;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 12px;
        scroll-snap-align: start;
    }

    .related-item .related-img {
        width: 100%;
        height: 180px;
        border-radius: 4px;
        overflow: hidden;
    }

    .related-item .related-info {
        padding: 10px!important;
    }

    .related-item .related-title {
        font-size: 16px;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .sidebar-item.related .related-list .related-item:last-child {
        margin-bottom: 1em;
    }


    .category {
        order: 2;
    }

    .category p {
        display: none;
    }

    .m-level2 {
        display: none !important;
    }

    .sidebar-cate .menu-item .iconfont {
        display: none;
    }

    .sidebar-cate {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* 平滑滚动 */
        white-space: nowrap;
        padding: 10px 0;
        scrollbar-width: none; /* 隐藏滚动条 Firefox */
    }

    .sidebar-cate::-webkit-scrollbar {
        display: none; /* 隐藏滚动条 Chrome/Safari */
    }

    .sidebar-cate li {
        border-bottom: unset !important;
    }

}

@media (max-width: 768px) {
    .banner-inner .banner-img img {
        height: 100%;
    }

    .pro-d-main .banner-inner {
        display: none
    }

    .banner-inner .banner-img {
        max-height: 200px
    }

    .banner-inner .banner-content .banner-title-h1 {
        display: none
    }

    .common-main {
        padding: 15px 0px 30px
    }

    .abouttitle {
        font-size: 22px
    }

    .aboutfloat {
        margin-left: 0px;
        float: none
    }

    .certificates-list li {
        width: 100%;
        margin-bottom: 20px
    }

    .team-list li {
        width: 100%
    }

    .team-list li .info .share a {
        width: 40px;
        height: 40px
    }

    .history-wrap {
        flex-wrap: wrap
    }

    .history-wrap .history-img {
        width: 100%
    }

    .history-wrap .history-info {
        width: 100%;
        padding: 0px;
        margin-top: 30px
    }

    .history-item {
        flex-direction: column-reverse
    }

    .history-item .bottom {
        margin-bottom: 15px
    }

    .history-item .year {
        font-size: 24px
    }

    #history .history-button {
        bottom: auto;
        top: 0px
    }

    #history .history-button .history-button-next, #history .history-button .history-button-prev {
        width: 36px;
        height: 36px
    }

    .product-catelist .product-cateitem {
        width: 100%
    }

    .product-catelist .product-cateitem .cate-info .cate-text {
        display: none
    }

    .product-catelist .product-cateitem:hover .cate-info {
        background: #FFFFFF9c;
        color: #000;
        padding-bottom: 10px
    }

    .product-catelist .product-cateitem:hover .cate-info .cate-more {
        display: none
    }

    .pro-cate-title {
        font-size: 20px;
        margin-bottom: 15px
    }

    .common-page > * {
        min-width: 40px;
        height: 40px
    }

    .pro-list.list0 li .pro-img {
        width: 40%
    }

    .pro-list li:hover .icon {
        bottom: 5px
    }

    .pro-list li .icon {
        opacity: 1;
        visibility: inherit;
        bottom: 5px;
        right: 5px;
        width: 35px;
        height: 35px
    }

    .pro-list li .icon.pro-checked {
        bottom: 5px
    }

    .prodetails-img {
        height: 300px
    }

    .prodetails-img img {
        width: 100%;
        height: 100%;
        object-fit: cover
    }

    .prodetails-img .content .span1 {
        font-size: 30px
    }

    .prodetails-flex {
        flex-wrap: wrap
    }

    .prodetails-flex .left {
        width: 100%
    }

    .prodetails-flex .left img {
        width: 100%
    }

    .prodetails-flex .right {
        padding-left: 0px;
        padding-top: 30px
    }

    .prodetails6 .item {
        width: 45%
    }

    .newslist.list0 li .news-img {
        width: 40%
    }

    .pagecase-list .item {
        width: 100%;
        padding: 10px 0px
    }

    .pagecase-list .item .content {
        width: 60%
    }

    .pagecase-list .item .content .title {
        font-size: 16px
    }

    .newslist li {
        margin-bottom: 2em
    }

    .newslist li .news-info .title {
        font-size: 18px;
        display: block
    }

    .newslist li .news-info .btn {
        margin-top: 0px
    }

    .newslist li .news-img .date {
        height: 60px
    }

    .newslist li .news-img .date span:nth-child(3) {
        display: none
    }

    .newslist li:hover .news-info .btn {
        background: 0 0;
        color: #091d3f
    }

    .newslist li:hover .news-info .btn em {
        background: var(--color);
        color: #FFF
    }

    .newscontent-title {
        font-size: 22px
    }

    .newslist.list1 {
        justify-content: space-between
    }

    .newslist.list1 li {
        width: 49%;
        margin-right: 0px
    }

    .newslist.list0 li .news-info .text {
        display: none
    }

    .preview-container #media {
        height: 100%
    }

    .singglepic {
        width: 100%;
        height: calc(100vw - 30px);
        margin-right: 0px
    }

    .download-list li {
        width: 100%
    }

    .download-list li .download-info {
        padding: 0px 10px
    }

    .download-list li .download-btn {
        width: 100px
    }

}

@media (max-width: 500px) {
    .banner-inner .banner-img {
        max-height: 160px
    }

    .pro-list li .icon-hottitle {
        width: 40px;
        height: 22px;
        left: -10px
    }

    .pro-list li .icon-hottitle::before {
        bottom: -8px;
        border: 8px solid transparent;
        border-bottom: 8px solid var(--color);
        opacity: 0.8
    }

    .pro-list li .pro-info .title {
        font-size: 16px
    }

    .pro-list li .pro-info .btn {
        width: 120px;
        height: 44px;
        display: none
    }

    .pro-list.list0 li .pro-info {
        padding-left: 10px;
        margin-top: 0px
    }

    .pro-list.list0 li .pro-info .btn {
        margin-top: 10px
    }

    .preview-container .preview-box .list {
        height: calc(100vw - 30px);
        pointer-events: inherit;
        border: none
    }

    .prodetails-info .pagelink .pagelink-item .link-intro {
        width: 34px;
        height: 34px;
        padding: 0px 8px;
        margin-right: 10px
    }

    .prodetails-info .pagelink .pagelink-item .link-intro em {
        margin-right: 6px
    }

    .prodetails-content {
        margin-top: 30px
    }

    .prodetails-content .prodetails-des span {
        width: 150px;
        height: 45px;
        font-size: 16px
    }

    .prodetails-template-title {
        height: 35px
    }

    .prodetails-template-title h5 {
        height: 45px;
        line-height: 45px
    }

    .packaging-log .title {
        font-size: 22px
    }

    .prodetails-list3 li {
        width: 100%
    }

    .packagingul li {
        width: 100%;
        margin-bottom: 20px
    }

    .prodetails6 .item {
        width: 100%
    }

    .contact-list .contact-item {
        width: 100%;
        margin-bottom: 20px
    }

    .contact-list .contact-item:last-child {
        margin-bottom: 0px
    }

    .prodetails-flex .right .title .lable {
        font-size: 22px
    }

    .contact-box {
        padding: 40px 0px 20px;
        margin: 40px 0px -30px
    }

    .newslist.list1 li {
        width: 100%
    }

    .inquiry-prolist .inquiry-pro-item .pro-item-name a {
        font-size: 16px;
        font-weight: 400
    }

    .inquiry-prolist .inquiry-pro-item .pro-item-img {
        width: 25%
    }

    .inquiry-prolist .inquiry-pro-item .pro-item-del {
        margin-right: 0px
    }

    .contact-list .contact-item img {
        height: 54px
    }

    .news-pagelink .pagelink-item .link-intro {
        min-width: 30px;
        height: 30px
    }

    .news-pagelink .pagelink-item .link-text {
        padding: 0px 10px
    }

    .sidebar-item.related {
        border: none
    }

    .contact-box .inquiry-pc .des {
        margin-bottom: 10px
    }

    table td, table th {
        white-space: nowrap
    }
}