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;
        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;
    }
}

.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;
}



/* FAQ Page Styles */
.faq-header-section {
    background-color: #cae1ff;
    padding: 150px 0;
    width: 100%;
}

.faq-header-section .ww {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-header-content {
    flex: 1;
}

.faq-header-content h1 {
    color: #1767b2;
    font-family: "Times New Roman", Times, serif;
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

.faq-header-content p {
    color: #333;
    font-size: 18px;
    line-height: 1.6;
    max-width: 700px;
}

.faq-search {
    margin-left: 20px;
}

.faq-search input {
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 300px;
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 991px) {
    .faq-header-section .ww {
        flex-direction: column;
        align-items: flex-start;
    }

    .faq-search {
        margin-left: 0;
        margin-top: 20px;
        width: 100%;
    }

    .faq-search input {
        width: 100%;
    }
}

.faq-header-content a {
    color: #0056b3;
    text-decoration: underline;
}

.faq-body-section {
    background-color: #fff;
    padding: 60px 0;
}

.cfaq-list .itembox {
    margin-bottom: 40px;
}

.cfaq-list .cat-title {
    font-size: 24px;
    font-weight: bold;
    color: #1767b2;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f4f7f6;
}

.ud-tab h3 {
    background: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    color: #333;
    font-weight: normal;
    transition: color 0.3s;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.ud-tab h3 span {
    flex: 1;
    min-width: 0;
    padding-right: 20px;
}

.ud-tab h3:hover {
    color: #1767b2;
}

.ud-tab h3 .toggle-icon {
    font-size: 24px;
    font-weight: 300;
    color: #333;
    transition: transform 0.3s;
    font-style: normal;
}

.ud-tab h3.on .toggle-icon {
    transform: rotate(45deg);
}

.ud-tab ul {
    padding: 20px 0;
    color: #666;
    line-height: 1.6;
    display: none;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.faq-tab{
    max-width: 100% !important;
}

.ud-tab ul * {
    max-width:80vw !important;
    box-sizing: border-box !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

.ud-tab ul img {
    height: auto !important;
}

.ud-tab ul table {
    width: 100% !important;
    table-layout: fixed;
}