.twt-header-box {
    position: fixed;
    top: 0;
    z-index: 999;
    width: 100%;
    /* 动画 */
    transition: 0.6s ease-in-out;

    /* 毛玻璃 */
    background-color: transparent; /* 半透明背景 */
    backdrop-filter: blur(24px);               /* 毛玻璃模糊 */
    -webkit-backdrop-filter: blur(12px);       /* 兼容 Safari */

    /* 可选优化 */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* 微妙边框 */
}
.twt-header-center{
    padding: 0 48px;
    max-width: 1440px;
    margin: 0 auto;
    width: calc(100% - 96px);
}

.twt-header-box.scrolled {
    background-color: rgba(255, 255, 255, 0.8);
}

.twt-header-box-flex {
    width: 100%;
    display: flex;
    height: 72px;
    justify-content: space-between;
    align-items: center;
}

.twt-header-box-flex-left {
    display: flex;
    justify-content: flex-start;
    align-content: center;
    align-items: center;
}

.twt-header-box-flex-left-logo {
    position: relative;
    z-index: 1001;
    font-size: 12px;
}

.twt-header-box-flex-left-logo-img {
    width: 92px;
    height: 26px;
}

.twt-header-box-flex-left-menu {
    display: flex;
    justify-content: flex-start;
    align-content: center;
    gap: 48px;
    margin-left: 48px;
    margin-right: 48px;
}

.twt-header-box-flex-left-menu-title {
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.twt-header-box-flex-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.twt-header-box-flex-right-button {
    background-color: #105eff;
    color: white;
    border: none;
    height: 48px;
    padding: 0 24px;
    line-height: 48px;
    border-radius: 58px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
    margin-left: 20px;
}

.twt-header-box-flex-right-relative {
    position: relative;
}

.twt-header-box-flex-right-language {
    display: flex;
    align-items: center;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
    font-size: 14px;
    color: #222222;
}

.twt-header-box-flex-right-language-icon {
    width: 20px;
    height: 20px;
    margin-right: 4px;
}

.twt-header-box-flex-right-language-text {
    font-size: 16px;
}

.twt-header-box-flex-right-language-toggle {
    width: 12px;
    height: 12px;
    margin-left: 4px;
    transform: rotate(-90deg);
    transition: transform 0.3s ease-in-out;
}

.twt-header-box-flex-right-select {
    position: absolute;
    top: 35px;
    left: 5px;
    right: 0;
    width: calc(108px - 16px);
    height: auto;
    background: #FFFFFF;
    box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 8px;
}

.twt-header-box-flex-right-select-ul {
    font-weight: 500;
}

.twt-header-box-flex-right-select-li {
    width: calc(100% - 32px);
    height: 44px;
    line-height: 44px;
    text-align: left;
    padding: 0 16px;
    border-radius: 12px;
    cursor: pointer;
    margin: 4px 0;
}

.twt-header-box-flex-right-select-li:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.twt-header-box-flex-right-select-li-a {
    color: #222222;
    font-size: 14px;
}

.twt-pc-select-li-active {
    background-color: #F1F6FF !important;
}
.twt-pc-select-li-active .twt-header-box-flex-right-select-li-a{
    color: #105EFF !important;
}


/* 支持动画过渡的语言选择列表样式 */
.twt-header-box-flex-right-select {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-10px);
    transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.twt-header-box-flex-right-select.twt-active-show {
    max-height: 500px; /* 设置为足够容纳内容的高度 */
    opacity: 1;
    transform: translateY(0);
}

/* 旋转动画 */
.twt-header-box-flex-right-language-toggle {
    transition: transform 0.3s ease-in-out;
}

/* 旋转 90 度 */
.twt-header-box-flex-right-language-toggle.twt-active-rotate {
    transform: rotate(90deg);
}

.twt-header-box-flex-right-toggle {
    width: 20px;
    height: 16px;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.twt-header-box-flex-right-toggle-div {
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: 0.3s ease;
}

/* 动画后的 X 状态 */
.twt-header-box-flex-right-toggle.active div:nth-child(1) {
    transform: rotate(45deg) translate(5px, 4px);
}

.twt-header-box-flex-right-toggle.active div:nth-child(2) {
    opacity: 0;
}

.twt-header-box-flex-right-toggle.active div:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -4px);
}





/*响应式*/
@media (1440px <= width) {
    /* 样式 for 大屏 */
    .twt-header-box-flex-right-toggle{
        display: none;
    }
    .twt-header-mobile-box{
        display: none !important;
    }
    .twt-header-box-active{
        height: 72px !important;
    }
}
@media (1208px <= width <= 1439px) {
    /* 样式 for 大屏 */
    .twt-header-box-flex-right-toggle{
        display: none;
    }
    .twt-header-mobile-box{
        display: none !important;
    }
    .twt-header-box-active{
        height: 72px !important;
    }
}

@media (990px <= width <= 1207px) {
    /* 样式 for 中等屏 */
    .twt-main-box-flex-left-counter-right{
        text-align: center;
    }
    .twt-header-box-flex-right-toggle{
        display: none;
    }
    .twt-header-mobile-box{
        display: none !important;
    }
    .twt-header-box-active{
        height: 72px !important;
    }
}

@media (750px <= width <= 989px) {
    /* 样式 for 平板 */
    .twt-main-box-flex-left-counter-right{
        text-align: center;
    }
    .twt-header-box-flex-right-toggle{
        display: flex;
    }
    .twt-header-box-flex-left-menu{
        display: none;
    }
    .twt-header-box-flex-right-relative{
        display: none;
    }
    .twt-header-box-flex-right-button{
        display: none;
    }
    .twt-header-box{
        width: 100%;
    }
    .twt-header-center{
        padding: 0 32px;
        width: calc(100% - 64px);
    }
}

@media (520px <= width <= 749px) {
    /* 样式 for 小屏 */
    .twt-main-box-flex-left-counter-right{
        text-align: center;
    }
    .twt-header-box-flex-right-toggle{
        display: flex;
    }
    .twt-header-box-flex-left-menu{
        display: none;
    }
    .twt-header-box-flex-right-relative{
        display: none;
    }
    .twt-header-box-flex-right-button{
        display: none;
    }
    .twt-header-box{
        width: 100%;
    }
    .twt-header-center{
        padding: 0 32px;
        width: calc(100% - 64px);
    }
}

@media ( width <= 519px) {
    /* 样式 for 超小屏（手机） */
    .twt-main-box-flex-left-counter-right{
        text-align: center;
    }
    .twt-header-box-flex-right-toggle{
        display: flex;
    }
    .twt-header-box-flex-left-menu{
        display: none;
    }
    .twt-header-box-flex-right-relative{
        display: none;
    }
    .twt-header-box-flex-right-button{
        display: none;
    }
    .twt-header-box{
        width: 100%;
    }
    .twt-header-center{
        padding: 0 16px;
        width: calc(100% - 32px);
    }
}