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;
}

@media (min-width: 980px) and (max-width: 1600px) {

    /* 主容器自适应宽度 */
    .ww {
        width: 95% !important;
        max-width: 1360px !important;
    }

    /* 导航栏自适应 */
    .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;
    }
}

/* 仅对“Product Advantages”区域内的表格标题和单元格应用左内边距（表格单元格不总是响应 margin） */
.why-adv .why-tbox table th,
.why-adv .why-tbox table td {
    padding-left: 5%;
    text-indent: 0;
}

p {
    line-height: 200%;
}

/* 自定义banner浮动文字样式 */
.banner-overlay {
    position: absolute;
    top: 10%;
    left: 7%;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    animation: floatIn 1.5s ease-out 0.5s forwards;
}

.banner-content {
    text-align: center;
    color: white;
    padding: 40px 60px;
    border-radius: 10px;
    backdrop-filter: blur(2px);
}

/* 浮动出现动画 */
@keyframes floatIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner-content h1 {
    font-size: 40px;
    color: #003986;
    font-weight: bold;
    margin: 0 0 20px 0;
    letter-spacing: 2px;
    border-bottom: 5px solid #22ACDD;
}

.banner-content p {
    text-align: left;
    font-size: 27px;
    color: #2D5391;
    margin: 0;
    line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .banner-content {
        padding: 30px 40px;
    }

    .banner-content h1 {
        font-size: 32px;
    }

    .banner-content p {
        font-size: 16px;
    }
}

/* 浮动动画样式 */
.float-in {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.float-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 为不同元素添加延迟 */
.float-in:nth-child(1) {
    transition-delay: 0.1s;
}

.float-in:nth-child(2) {
    transition-delay: 0.3s;
}

.float-in:nth-child(3) {
    transition-delay: 0.5s;
}

.float-in:nth-child(4) {
    transition-delay: 0.7s;
}

.float-in:nth-child(5) {
    transition-delay: 0.9s;
}

/* 浮动上升动画 */
.float-up {
    opacity: 0;
    transform: translateY(80px);
    transition: all 1s ease-out;
}

.float-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 从左侧滑入 */
.slide-in-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.8s ease-out;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* 从右侧滑入 */
.slide-in-right {
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s ease-out;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* 缩放淡入 */
.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s ease-out;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* 淡入效果 */
.fade-in {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
}

.why-top {
    height: 100%;
}

.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;
}

table {
    margin: auto;
    width: auto !important;
}

.video-wrapper:hover .play-overlay {
    background: rgba(0, 0, 0, 0.9) !important;
    transform: translate(-50%, -50%) scale(1.1) !important;
}

.video-wrapper .play-overlay {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}