.language-switcher {
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
    cursor: pointer;
    float: right;
}

.languages {
    display: inline-block;
    padding: 5px 10px;
    font-size: 14px;
}

.language-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 4px;
    z-index: 1000;
    min-width: 100px;
}

.language-switcher:hover .language-dropdown {
    display: block;
}

.lang-item {
    display: block;
    padding: 8px 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s;
}

.lang-item:hover {
    background-color: #f5f5f5;
}

.lang-item.active {
    background-color: #e9f5ff;
    color: #007bff;
}
.hamburger-menu {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger-menu span:nth-child(1) {
    top: 0px;
}

.hamburger-menu span:nth-child(2) {
    top: 10px;
}

.hamburger-menu span:nth-child(3) {
    top: 20px;
}

.hamburger-menu.open span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}

.hamburger-menu.open span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.hamburger-menu.open span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: #404040;
    z-index: 1000;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: -2px 0 5px rgba(0,0,0,0.2);
}

.mobile-menu.open {
    right: 0;
}

body.menu-open {
    overflow: hidden;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.mobile-menu-overlay.open {
    display: block;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    /*margin: 50px 0 0 0;*/
}

.mobile-menu-ul {
    margin-top: 50px;
}

.mobile-menu li {
    border-bottom: 1px solid #555;
}

.mobile-menu a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.mobile-menu a:hover {
    color: #FFC000;
}

.mobile-menu .has-submenu {
    position: relative;
}

.mobile-menu .has-submenu > a::after {
    content: '≡';
    position: absolute;
    right: 20px;
    top: 8px;
    font-size: 20px;
}

.mobile-menu .has-submenu.open > a::after {
    content: '×';
}

.mobile-menu .submenu {
    display: none;
    background: #333;
}

.mobile-menu .submenu a {
    padding-left: 40px;
    font-weight: normal;
}

@media screen and (max-width: 1024px) {
    html, body {
        width: 100%;
        overflow-x: hidden;
    }
    .pc-menu {
        display: none!important;
    }
    /* 显示汉堡菜单按钮 */
    .hamburger-menu {
        display: block;
    }
    
    /* 显示移动端菜单 */
    .mobile-menu {
        display: block;
    }
    
    /* 隐藏languages元素 */
    .languages {
        display: none !important;
    }
    
    /* 隐藏contactus_a元素 */
    .contactus_a {
        display: none !important;
    }
    
    /* 确保logo在移动设备上居中显示 */
    .wapper {
        width: 100% !important;
        padding: 0 15px;
        box-sizing: border-box;
    }
    
    /* 隐藏原菜单 */
    .menu {
        display: none !important;
    }
    
    /* 确保logo居中 */
    .top-logo {
        margin: 0 auto;
        display: block;
    }
    
    /* 调整菜单容器 */
    .top_div div[style*="width: 800px"] {
        width: 100% !important;
        margin: 0 auto;
        position: relative;
    }
    
    /* 调整菜单布局 */
    .top_div div[style*="display: flex;justify-content: space-between"] {
        flex-direction: column;
        height: auto !important;
        padding: 10px 0;
    }
    
    /* 确保子菜单正确显示 */
    .sub_menu {
        position: static !important;
        width: 100% !important;
        display: none !important;
    }
    
    /* 调整子菜单内容 */
    .menu_img {
        flex-wrap: wrap;
    }

    .footer-container {
        width: 100%!important;
    }

    .footer-section {
        padding: 0 30px 20px;
        border: none;
    }

    .footer-content {
        padding: 20px 30px 0;
        flex-direction: column;
    }

    .footer-column {
        margin-bottom: 20px;
    }

    .footer-links {
        flex-direction: column;
    }

    .footer-logo-wrapper {
        padding: 20px 0 0 0;
        text-align: center;
    }

    .btm_group {
        font-size: 18px;
    }

    .btm_a a {
        font-size: 16px;
    }

    .footer-logo {
        height: 50px;
    }

    .re-standard,
    .re-services {
        width: auto;
    }

    .big_text {
        padding: 0 10px;
        font-size: 20px;
    }

    .service-item {
        text-align: center;
    }

    .bottom_img img {
        width: 90%;
        height: auto;
    }

    .section-gray {
        padding-bottom: 0px;
    }

    .contact-header {
        padding: 20px 0;
    }

    .contact-inputs {
        flex-direction: column;
    }

    .contact_form {
        margin-top: 0px;
    }

    .contact_form input {
        width: 100%;
        margin-top: 20px;
        box-sizing: border-box;
    }

    .submit-button {
        padding: 10px 0;
    }

    .contact_s {
        flex-direction: column;
        padding: 20px 0;
    }

    .contact_s_i {
        display: flex;
        margin-bottom: 10px;
        align-items: center;
        font-size: 18px;
    }
    .contact_s_i_img {
        width: 50px;
    }

    .company-info {
        flex-direction: column;
        padding-bottom: 30px;
    }
    .company-address {
        padding: 10px 0;
        font-size: 16px;
    }

    .wapper.about-content {
        padding: 30px 0;
    }

    .about-image {
        display: none;
    }

    .about-text {
        font-size: 18px;
        line-height: 32px;
    }

    .about-gallery {
        flex-wrap: wrap;
        text-align: center;
    }

    .about_img .down {
        padding-top: 10px;
    }
    .about_img_item {
        padding: 10px 0;
        flex: 1 1 calc(50% - 10px);
        box-sizing: border-box;
    }

    .info_text_tag_t {
        flex-direction: column;
    }

    .product-img img {
        width: auto !important;
        max-width: 85% !important;
        height: auto !important;
    }

    .info_text_tag_wapper2 {
        padding: 30px 0;
        width: auto !important;
    }

    .info_text_text {
        padding: 10px 20px;
        font-size: 16px;
    }

    .product-info {
        width: auto !important;
        flex-direction: column;
    }
    .product-test {
        width: auto !important;
    }

    .product-p1 {
        flex-direction: column;
    }

    .product-p1 img {
        max-width: 100%;
    }

    .img3_div {
        padding: 0 20px;
        flex-direction: column;
    }

    .img3_1_div {
        flex-direction: column;
    }

    .product-p2-t {
        display: block;
    }

    .product-p3 {
        width: auto !important;
        height: auto !important;
        background: rgb(171, 171, 171);
    }

    .tools_div {
        flex-direction: column;
        text-align: center;
    }

    .product-p3-t {
        padding: 20px 0;
        width: auto !important;
    }

    .product-p3-s {
        margin-bottom: 10px;
    }

    .img_view_6 {
        width: auto !important;
        flex-direction: column;
    }

    .img_002, .img_003, .img_004, .img_005, .img_006 {
        width: 80% !important;
        height: auto !important;
    }

    .sub-text {
        padding: 50px 10px;
        font-size: 14px;
    }

    .sub-text2 {
        padding: 30px 10px;
        font-size: 14px;
    }

    .product-p4 {
        width: auto !important;
    }

    .product-p4-t {
        flex-direction: column;
    }

    .product-p4-s {
        padding: 0 10px;
    }

    .product-p5 {
        width: auto !important;
    }

    /*.product-p5 img {
        width: 80%;
        height: auto !important;
    }

    .product-p6 {
        text-align: center;
    }*/

    .tool_div_wrapper {
        flex-wrap: wrap;
    }
    
    .tool_div_item {
        margin-bottom: 20px;
        width: 50%;
        box-sizing: border-box;
    }
    
    .tool_div_item .img_wapper_tool {
        width: 100%;
        border-right: none;
        margin: 0 auto;
    }
    /* 表格容器样式 */
    .p_table {
        width: 100%;
        margin: 0;
        padding: 0 10px;
        box-sizing: border-box;
    }

    /* 在移动设备上将表格转换为卡片式布局 */
    .p_table, .p_table thead, .p_table tbody, .p_table tr, .p_table td {
        display: block;
    }

    /* 隐藏表头 */
    .p_table thead {
        display: none;
    }

    /* 设置每行为卡片样式 */
    .p_table tbody tr {
        margin-bottom: 20px;
        border: 1px solid #ddd;
        border-radius: 5px;
        background-color: #fff;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }

    /* 设置单元格样式 */
    .p_table tbody td {
        position: relative;
        padding: 10px 10px 10px 50%;
        text-align: left;
        border-bottom: 1px solid #eee;
        min-height: 30px;
    }

    /* 最后一个单元格无底部边框 */
    .p_table tbody tr td:last-child {
        border-bottom: none;
    }

    /* 为每个单元格添加标签 */
    .p_table tbody td:before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
        text-align: left;
    }

    /* 隐藏空单元格 */
    .p_table tbody td:empty {
        display: none;
    }

    /* 下载链接样式调整 */
    .p_table td[style*="width: 220px"] {
        width: auto !important;
    }

    /* 宽度调整 */
    .p_table td[style*="width:"] {
        width: auto !important;
    }

    .about_img img {
        height: auto !important;
    }

    .banner-image img, .img-scale {
        transform: scale(1.2);
    }

    .w700p {
        width: auto !important;
    }

    .tool_div_item img {
        height: 70px;
    }

    .case-container {
        width: 100% !important;
    }

    .case-grid {
        gap: 10px;
        justify-content: center;
    }

    .case_item {
        width: 45%;
    }

    .detail-wrapper {
        padding: 10px 20px;
    }

    .detail-top {
        width: auto !important;
        justify-content: space-between;
        align-items: flex-start;
        flex-direction: column;
    }

    .detail-top-nav {
        align-items: flex-start;
    }

    .detail-title {
        margin-bottom: 10px;
        width: auto !important;
        font-size: 18px;
    }

    .detail-content {
        padding-top: 10px;
        width: auto !important;
    }
    .detail-content-text {
        padding: 0 20px;
        flex-direction: column;
    }

    .detail-content-img {
        width: auto !important;
        text-align: center;
    }

    .detail-content-img img {
        width: 100% !important;
        height: auto !important;
    }

    .detail-content-intro {
        padding-left: 0;
    }

    .info_title {
        font-size: 18px;
    }

    .info_content {
        font-size: 16px;
    }

    .content-article {
        margin-top: 20px;
        flex-direction: column;
    }

    .content-article-design {
        padding: 0 20px;
        width: auto !important;
        font-size: 18px;
    }

    .content-article-design img {
        max-width: 100%;
    }

    .content-article-related {
        padding: 0 20px;
    }

    .content-article-related-tit {
        font-size: 18px;
    }

    .content-article-related-item {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .content-article-related-item .case_item img {
        width: 100% !important;
        height: auto !important;
    }
}

@media (max-width: 768px) {
    .language-switcher {
        margin-bottom: 5px;
    }

    .languages {
        font-size: 12px;
        padding: 3px 8px;
    }

    .language-dropdown {
        left: 0;
        right: auto;
        min-width: 100px;
    }

    .lang-item {
        padding: 6px 12px;
        font-size: 12px;
    }

    .language-dropdown.show {
        display: block;
    }
}