.language-switcher {
    position: relative;
    display: inline-block;
}

.text-align-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 1024px) {
    .lanyun-img-wrap .image {
        height: 520px;
    }
}

.language-dropdown {
    position: relative;
}

.language-btn {
    background: transparent;
    border: 0px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #000;

    /* 移除可能导致位置变化的transition */
    transition: background 0.3s ease, border-color 0.3s ease;
    /* 确保位置固定 */
    position: relative;
    transform: none !important;
}

.language-btn:hover {
    background: transparent;
    border-color: #999;
}

.language-menu {
    position: absolute;
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 120px;
    z-index: 1000;
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    cursor: pointer;
    /* 确保位置固定 */
    transform: none !important;
    transition: none !important;
}

.language-menu.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.language-item {
    margin: 0;
    padding: 0;
}

.language-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    color: #333 !important;
    text-decoration: none;
    transition: background 0.2s ease;
}

.language-link:hover {
    /* background: #f5f5f5; */
    background: #c42733;
    text-decoration: none;
}

.flag-icon {
    font-size: 16px;
}

.lang-text {
    font-size: 14px;
}

/* 平板端样式 */
@media (min-width: 768px) and (max-width: 1024px) {
    .language-btn span {
        display: none;
    }

    .search-form-container {
        top: 13% !important;
    }

    .lanyun-section-nav .direction-h .lanyun-nav-first {
        justify-content: flex-start;
    }

    .language-btn i.fas.fa-chevron-down {
        display: none;
    }

    .language-btn {
        justify-content: center;
        padding: 10px;
        min-width: 40px;
    }

    .language-btn i.fas.fa-globe {
        font-size: 16px;
    }


    body.page-5476 .lanyun-section-98z5eprm>.lanyun-widget-container {
        padding: 15px 0px 0px 30px !important;
    }

    .language-link .lang-text {
        display: none;
    }

    .language-menu {
        left: -14%;
        min-width: 53px;
    }

    .lanyun-section-sllcjamn .lanyun-nav-first {
        background-color: rgba(21, 26, 62, 1) !important;
    }

    .lanyun-section-sllcjamn .lanyun-nav-first {
        display: flex !important;
        z-index: 1002 !important;
        pointer-events: auto !important;
    }

    .lanyun-section-sllcjamn .lanyun-nav-first:not(.show) {
        display: none !important;
    }

    .jq-toggler {
        z-index: 1100 !important;
        pointer-events: auto !important;
        cursor: pointer;
    }

    .lanyun-section-sllcjamn .lanyun-nav-first {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: #fff;
        border: 0px solid #ddd;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        min-width: 200px;
    }

    .lanyun-section-sllcjamn .lanyun-nav-first.show {
        display: block !important;
    }
}


/* 手机端样式 */
@media (max-width: 767px) {
    .language-btn {
        padding: 12px;
        min-width: 44px;
    }


    .lanyun-section-sllcjamn .lanyun-nav-first {
        background-color: rgba(21, 26, 62, 1) !important;
    }

    /* 隐藏按钮文字和箭头 */
    .language-btn span {
        display: none !important;
    }

    .language-btn i.fas.fa-chevron-down {
        display: none !important;
    }

    .lanyun-section-ihv6q632 {
        position: relative;
        top: -1px;
        left: -92px;
    }

    .language-btn i.fas.fa-globe {
        font-size: 18px;
    }

    .language-btn {
        border: 0px;
        justify-content: center !important;
        /* 防止点击时位置变化 */
        transform: none !important;
        transition: none !important;
    }

    /* 确保菜单默认隐藏 */
    .language-menu {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        position: absolute !important;
        top: 100% !important;
        left: -2px !important;
        /* 防止点击时位置变化 */
        transform: none !important;
        transition: none !important;
    }

    /* 只有添加show类时才显示 */
    .language-menu.show {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        /* 防止点击时位置变化 */
        transform: none !important;
    }

    /* 隐藏菜单栏中的文字 */
    .language-link .lang-text {
        display: none;
    }

    [data-header] {
        height: 50px;
        justify-content: center;
    }

    /* 调整菜单项布局 */
    .language-link {
        justify-content: center;
        /* padding: 15px 12px; */
    }

    /* 调整菜单项布局 - 竖状条布局 */
    .language-menu.show {
        min-width: auto;
        width: 50px;
        display: flex !important;
        flex-direction: column;
        gap: 0;
        border-radius: 6px;
        /* overflow: hidden; */
        left: -3px;
        top: -9px;
        /* 防止点击时位置变化 */
        transform: none !important;
        transition: none !important;
    }

    .language-item {
        border-bottom: 1px solid #eee;
    }

    .language-item:last-child {
        border-bottom: none;
    }

    .language-link {
        justify-content: center;
        padding: 15px 12px;
        min-height: 50px;
        white-space: nowrap;
    }

    .flag-icon {
        font-size: 18px;
    }

    .search-form-container {
        position: absolute;
        top: 0;
        right: 0;
        background: #fff;
        border: 0px solid #ddd;
        border-radius: 25px;
        box-shadow: none;
        opacity: 0;
        visibility: hidden;
        transform: translateX(20px) scale(0.9);
        transition: all 0.3s ease;
        z-index: 1000;
        min-width: 300px;
    }

    .search-icon-btn {
        border: 0px !important;
        box-shadow: none !important;
    }
}

@media (max-width: 767px) {
    .lanyun-section-va485trn {
        width: 58% !important;
    }
}

}

.search-container {
    display: inline-block;
}

/* 搜索图标按钮 */
.search-icon-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.search-icon-btn i {
    color: #000;
    font-size: 18px;
    transition: color 0.3s ease;
}

.search-icon-btn:hover i {
    color: #c42733;
}

/* 搜索表单容器 */
.search-form-container {
    position: fixed;
    top: 18%;
    right: 1%;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px) scale(0.9);
    transition: all 0.3s ease;
    z-index: 1000;
    min-width: 98%;
}

.search-form-container.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
}

/* 搜索表单 */
.search-form {
    display: flex;
    align-items: center;
    padding: 0;
    gap: 0;
}

/* 搜索输入框 */
.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 16px;
    font-size: 14px;
    color: #333;
    outline: none;
    min-width: 200px;
}

.search-input::placeholder {
    color: #666;
}

.search-input:focus {
    background: transparent;
}

/* 搜索提交按钮 */
.search-submit-btn {
    width: 40px;
    height: 40px;
    background: #c42733;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    flex-shrink: 0;
}

.search-submit-btn:hover {
    background: #a32028;
}

.search-submit-btn i {
    font-size: 14px;
}

/* 搜索遮罩 */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* 响应式设计 */
@media (max-width: 767px) {
    .search-form-container {
        top: 10% !important;
    }

    .search-input {
        font-size: 16px;
        /* 移动端防止缩放 */
    }


    .lanyun-section-hidden-mobile:not(.lanyun-section-hover-hidden) {
        overflow: auto !important;
    }

    .lanyun-section-hidden-mobile.lanyun-section-column:not(.lanyun-section-hover-hidden) {
        display: block !important;
    }

    .lanyun-section-s3slc5aq {
        width: 60% !important;
    }

}

@media (max-width: 390px) {
    .flag-icon {
        font-size: 14px;
    }

    .search-form {
        padding: 6px;
    }

    .search-input-group {
        padding: 2px;
    }

    .search-input {
        padding: 6px 10px;
    }

    .lanyun-section-s3slc5aq {
        width: 58% !important;
    }
}

@media (min-width: 820px) and (max-width: 1180px) {
    .lanyun-section-sllcjamn .lanyun-nav-first {
        min-width: 100% !important;
    }

    .mobile-nav-mobileIcon {
        display: block !important;
    }

    .lanyun-section-52ci6nvh .lanyun-nav-first-name {
        width: calc(100% - 40px);
    }

    .lanyun-section-nav .direction-h .lanyun-nav-first {
        position: absolute;
        z-index: 99;
        background: #fff;
        left: 0;
        width: 100%;
        top: 100%;
    }


    .lanyun-section-nav .direction-h,
    .lanyun-section-nav .direction-v {
        position: static;
    }

    .language-link {
        padding: 10px 11px;
    }
}

@media (min-width: 1024px) and (max-width: 1366px) {
    .lanyun-nav-first-name {
        width: auto;
    }

    .lanyun-section-52ci6nvh .lanyun-nav-first-name {
        width: auto;
    }

    .mobile-nav-mobileIcon {
        display: none !important;
    }

    .lanyun-section-nav .direction-h .lanyun-nav-first {
        justify-content: center !important;
        align-items: center;
        display: flex !important;
        position: static;
    }

    .lanyun-section-sllcjamn .lanyun-nav-first {
        position: static;
        background: transparent !important;
    }

    .language-switcher {
        right: -15px;
        top: -1px;
        width: auto;
        left: auto;
    }
}

/* 轮播图标题样式 */
.carousel-title {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.carousel-title h2 {
    font-size: 32px;
    font-weight: bold;
    color: #000;
    margin-bottom: 5px;
    margin-top: 10px;
}

.carousel-title p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* 或者容器内标题样式 */
.carousel-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px 0;
}

.carousel-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.carousel-header p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {

    .carousel-title h2,
    .carousel-header h2 {
        font-size: 24px;
    }

    .carousel-title p,
    .carousel-header p {
        font-size: 14px;
    }
}

/* 平板端菜单优化 */
@media (min-width: 768px) and (max-width: 1024px) {
    /* 确保平板端菜单动画稳定 */

    .lanyun-nav-first.show {
        transform: none;
    }

    /* 防止菜单闪烁 */
    .jq-toggler {
        transition: none;
    }

    .jq-toggler:active {
        transform: none;
    }

    /* 确保图标状态稳定 */
    .lanyun-mobile-open,
    .lanyun-mobile-close {
        transition: opacity 0.2s ease;
    }

    .lanyun-mobile-open.hidden,
    .lanyun-mobile-close.hidden {
        opacity: 0;
        pointer-events: none;
    }
}

/* 强制图标显示规则 */
.lanyun-mobile-open[style*="display: block"] {
    display: block !important;
}

.lanyun-mobile-open[style*="display: none"] {
    display: none !important;
}

.lanyun-mobile-close[style*="display: block"] {
    display: block !important;
}

.lanyun-mobile-close[style*="display: none"] {
    display: none !important;
}

/* 强制覆盖所有其他样式 */
.jq-toggler .lanyun-mobile-open[style*="display: block"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.jq-toggler .lanyun-mobile-open[style*="display: none"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.jq-toggler .lanyun-mobile-close[style*="display: block"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.jq-toggler .lanyun-mobile-close[style*="display: none"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* 确保图标在正确的状态下显示 */
.lanyun-section-sllcjamn .lanyun-nav-first:not(.show) .jq-toggler .lanyun-mobile-open {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.lanyun-section-sllcjamn .lanyun-nav-first:not(.show) .jq-toggler .lanyun-mobile-close {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.lanyun-section-sllcjamn .lanyun-nav-first.show .jq-toggler .lanyun-mobile-open {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.lanyun-section-sllcjamn .lanyun-nav-first.show .jq-toggler .lanyun-mobile-close {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
@media(max-width:820px){
.index-text{
display:none !important;
}
}

@media(min-width:1024px) {
    .index-text {
        position: absolute;
        z-index: 1;
        top: 18vh;
        right: 1vw;
    }

    .text-content {
        width: 540px !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        background: rgba(103, 173, 238, 0.4);
    }
    .text-content .lanyun-section-count .lanyun-count-num{
        color: rgb(255 28 28);
    }
    .text-content .text-direction>p {
        color: #fff !important;
        font-size: 18px;
    }
    .text-content>.lanyun-section-edab2w62 .text-direction {
        color: #fff !important;
    }
}