/* 多语言切换器样式 */
#translate {
    display: none; /* 隐藏默认的下拉框 */
}

/* 语言切换下拉菜单 */
.searchbox li.lang-dropdown {
    position: relative;
    padding: 0 8px;
    display: flex;
    align-items: center;
}

.searchbox .lang-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.searchbox .lang-btn:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #ff6b6b;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.2);
}

.searchbox .current-lang-icon {
    width: 26px;
    height: 26px;
    display: block;
    border-radius: 50%;
}

.searchbox .arrow-down {
    font-size: 10px;
    color: #999;
    font-style: normal;
    transition: transform 0.3s ease;
}

.searchbox .lang-btn:hover .arrow-down {
    color: #ff6b6b;
}

.searchbox .lang-btn.active .arrow-down {
    transform: rotate(180deg);
}

/* 下拉菜单 */
.searchbox .lang-menu {
    position: absolute;
    top: 45px;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    min-width: 140px;
}

.searchbox .lang-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.searchbox .lang-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f5f5f5;
}

.searchbox .lang-item:last-child {
    border-bottom: none;
}

.searchbox .lang-item:hover {
    background: #fff5f5;
}

.searchbox .lang-item.active {
    background: #ffe5e5;
}

.searchbox .lang-item img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.searchbox .lang-item span {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.searchbox .lang-item:hover span {
    color: #ff6b6b;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .searchbox .current-lang-icon {
        width: 24px;
        height: 24px;
    }
    
    .searchbox li.lang-dropdown {
        padding: 0 5px;
    }
    
    .searchbox .lang-btn {
        padding: 5px 8px;
    }
    
    .searchbox .lang-menu {
        min-width: 130px;
        top: 40px;
    }
    
    .searchbox .lang-item {
        padding: 10px 14px;
    }
    
    .searchbox .lang-item img {
        width: 22px;
        height: 22px;
    }
    
    .searchbox .lang-item span {
        font-size: 13px;
    }
}

/* 小屏幕优化 */
@media (max-width: 375px) {
    .searchbox .current-lang-icon {
        width: 22px;
        height: 22px;
    }
    
    .searchbox li.lang-dropdown {
        padding: 0 3px;
    }
    
    .searchbox .lang-btn {
        padding: 4px 6px;
    }
    
    .searchbox .arrow-down {
        font-size: 8px;
    }
    
    .searchbox li.logo {
        padding: 10px 5px !important;
    }
    
    .searchbox li.gkjl {
        padding: 10px 5px !important;
    }
}

/* ========== 个人中心升级横幅文字覆盖层 ========== */
.upgrade-banner {
    position: relative !important;
    display: block !important;
    overflow: hidden;
    border-radius: 8px;
    font-size: 16px !important; /* 覆盖 font-size: 0 */
}

.upgrade-banner img {
    display: block;
    width: 100%;
    height: auto;
}

.banner-text-overlay {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    z-index: 10;
    pointer-events: none;
}

.banner-text-line1 {
    font-size: 4.5vw !important;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 
                 0 0 10px rgba(255, 107, 107, 0.5);
    margin-bottom: 0.8vw;
    line-height: 1.2;
    letter-spacing: 1px;
}

.banner-text-line2 {
    font-size: 3.2vw !important;
    color: #ffffff;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.9),
                 0 0 10px rgba(0, 0, 0, 0.8),
                 0 0 15px rgba(255, 107, 107, 0.4);
    line-height: 1.3;
    font-weight: normal; /* 正常字重 */
    -webkit-font-smoothing: antialiased;
}

/* 平板和桌面端固定字体大小 */
@media (min-width: 768px) {
    .banner-text-line1 {
        font-size: 20px !important;
        margin-bottom: 6px;
    }
    
    .banner-text-line2 {
        font-size: 14px !important;
    }
}

/* 中等屏幕 */
@media (min-width: 480px) and (max-width: 767px) {
    .banner-text-line1 {
        font-size: 5vw !important;
        margin-bottom: 1vw;
    }
    
    .banner-text-line2 {
        font-size: 3.2vw !important;
    }
}

/* 小屏手机优化 */
@media (max-width: 375px) {
    .banner-text-line1 {
        font-size: 4vw !important;
        margin-bottom: 0.6vw;
    }
    
    .banner-text-line2 {
        font-size: 2.8vw !important;
        font-weight: 700;
    }
}
