html {
    width: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    width: 100%;
    max-width: 100vw;
    position: relative;
    overflow-x: hidden;
}

/* 确保所有容器不超出视口 */
* {
    max-width: 100%;
    box-sizing: border-box;
}

/* 980-1600px 宽度范围的响应式设计 */
@media (min-width: 980px) and (max-width: 1600px) {

    /* 主容器自适应宽度 */
    .ww {
        width: 95% !important;
        max-width: 1360px !important;
        padding-left: 20px;
        padding-right: 20px;
    }

    /* 导航栏自适应 */
    .header .hbox {
        width: 95% !important;
        max-width: 1360px !important;
    }



    .header .hlogo .hlbox img {
        max-height: 30px !important;
    }

    #searchword {
        max-width: 190px !important;
    }

    .hsearch .layui-form {
        margin-left: 20px !important;
    }


    .commenu ul li ul,
    .hsearch ul li ul {
        max-width: 900px;
    }
}

.swiper-button-next::after,
.swiper-button-prev::after {
    display: none !important;
}

.fancybox-bg,
.fancybox-overlay,
.fancybox-overlay::before,
.fancybox__backdrop,
.fancybox__container,
.fancybox-slide,
.fancybox-inner {
    background: rgba(0, 0, 0, 0.5) !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
}

/* Set semi-transparent backdrop color with 50% opacity */
.fancybox-bg[style],
.fancybox-overlay[style],
.fancybox__backdrop[style] {
    background-color: rgba(0, 0, 0, 0.5) !important;
}

/* YouTube 视频弹窗样式 */
.video-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-modal-content {
    position: relative;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    width: 95%;
    height: 95%;
    max-width: 1200px;
    max-height: 800px;
}

.close-video {
    position: absolute;
    top: -10px;
    right: -10px;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    background-color: #ff0000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.close-video:hover {
    background-color: #cc0000;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border: none;
    border-radius: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .video-modal-content {
        width: 98%;
        height: 90%;
        padding: 0;
        margin: 0;
    }

    .video-container iframe {
        min-height: 300px;
        border-radius: 4px;
    }
}

@media (max-width: 480px) {
    .video-modal-content {
        width: 100%;
        height: 85%;
    }

    .video-container iframe {
        min-height: 250px;
    }
}

.whatsapp-hover {
    position: relative;
    display: inline-block;
}

.whatsapp-hover .hover-image {
    position: absolute !important;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 5px;
    display: block;
}

.whatsapp-hover:hover .hover-image {
    opacity: 1 !important;
    visibility: visible !important;
}

.whatsapp-hover .hover-image::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid white;
}

.wechat-hover {
    text-decoration: none;
    transition: text-decoration 0.3s ease;
}

.wechat-hover:hover {
    text-decoration: underline;
}

html {
    width: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    width: 100%;
    max-width: 100vw;
    position: relative;
    overflow-x: hidden;
}

/* 确保所有容器不超出视口 */
* {
    max-width: 100%;
    box-sizing: border-box;
}

/* 980-1600px 宽度范围的响应式设计 */
@media (min-width: 980px) and (max-width: 1600px) {

    /* 主容器自适应宽度 */
    .ww {
        width: 95% !important;
        max-width: 1360px !important;
        padding-left: 20px;
        padding-right: 20px;
    }

    /* 导航栏自适应 */
    .header .hbox {
        width: 95% !important;
        max-width: 1360px !important;
    }

    .header .hlogo .hlbox img {
        max-height: 30px !important;
    }

    #searchword {
        max-width: 190px !important;
    }

    .hsearch .layui-form {
        margin-left: 20px !important;
    }


    .commenu ul li ul,
    .hsearch ul li ul {
        max-width: 900px;
    }
}



/* YouTube 视频弹窗样式 */
.video-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-modal-content {
    position: relative;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    width: 95%;
    height: 95%;
    max-width: 1200px;
    max-height: 800px;
}

.close-video {
    position: absolute;
    top: -10px;
    right: -10px;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    background-color: #ff0000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.close-video:hover {
    background-color: #cc0000;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border: none;
    border-radius: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .video-modal-content {
        width: 98%;
        height: 90%;
        padding: 0;
        margin: 0;
    }

    .video-container iframe {
        min-height: 300px;
        border-radius: 4px;
    }
}

@media (max-width: 480px) {
    .video-modal-content {
        width: 100%;
        height: 85%;
    }

    .video-container iframe {
        min-height: 250px;
    }
}

/* Quality intro section */
.quality-intro {
    margin-bottom: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quality-intro .txt h2 {
    color: #1767b2;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

.quality-intro .txt p {
    color: #666;
    line-height: 1.6;
    font-size: 16px;
}

.quality-intro .video-box {
    width: 50%;
}
@media (max-width: 768px) {
    .quality-intro .video-box{
        width: 100% !important;
    }
}

/* Video styles */
.cban-video {
    position: relative;
    cursor: pointer;
}

.video-cover {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: #f0f0f0;
}

#ivideo-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.play-overlay div {
    width: 0;
    height: 0;
    border-left: 24px solid white;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    margin-left: 6px;
}

/* Timeline section */
.quality-timeline {
    width: 100%;
    padding: 80px 0;
    text-align: center;
    background-color: #efeff0;
}

.quality-timeline h2 {
    color: #1767b2;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 50px;
}

.timeline-img img {
    max-width: 100%;
}

/* Process section */
.quality-process h2 {
    text-align: center;
    color: #1767b2;
    font-size: 28px;
    font-weight: bold;
    margin: 30px 0 30px 0;
}

.process-section {
    margin-bottom: 60px;
}

.process-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.process-content.appearance-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    justify-content: unset;
}

.p-card {
    padding: 30px 0;
    border-bottom: 2px solid #eee;
    border-top: 2px solid #eee;
}

.p-card .img-box {
    overflow: hidden;
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.p-card img {
    width: 100%;
    transition: transform 0.3s;
}

.p-card:hover .img-box img {
    transform: scale(1.1);
}

.p-card p {
    color: #666;
}

.process-section h3 {
    padding-bottom: 15px;
    font-size: 21px !important;
    color: #717071;
}

.error-table-section {
    margin-top: 100px;
    margin-bottom: 60px;
}

.error-table-title {
    color: #1767b2;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

.error-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e0e0e0;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #666;
    margin-bottom: 40px;
}

.error-table th,
.error-table td {
    border: 1px solid #e0e0e0;
    padding: 15px;
    text-align: center;
    vertical-align: middle;
    line-height: 1.5;
}

.error-table th {
    background-color: #f5f5f5;
    font-weight: bold;
    color: #333;
}

.error-table td {
    background-color: #fff;
}

.error-table img {
    max-width: 100px;
    height: auto;
    display: block;
    margin: 0 auto;
}
.factoryitem h4{
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0;
    color: #333;
}

.p-card:hover .factoryitem h4,
.p-card:hover .factoryitem p {
    cursor: pointer;
    color: #1767b2 !important;
}