/* ==================== 语言切换按钮 ==================== */

/* PC端语言切换 */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 20px;
}

.lang-switch a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 12px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.lang-switch a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.lang-switch a.active {
    background-color: #fff;
    color: #333;
}

/* 英文站时的样式 */
.lang-switch.en-version a.active {
    background-color: #fff;
    color: #333;
}

/* 移动端语言切换 */
.mobile-lang-switch {
    display: none;
}

@media (max-width: 991px) {
    .lang-switch {
        display: none;
    }
    
    .mobile-lang-switch {
        display: flex;
        align-items: center;
        gap: 5px;
        background-color: rgba(0, 0, 0, 0.7);
        padding: 5px 10px;
        border-radius: 20px;
    }
    
    .mobile-lang-switch a {
        color: #fff;
        text-decoration: none;
        font-size: 14px;
        padding: 5px 12px;
        border-radius: 15px;
        transition: all 0.3s ease;
    }
    
    .mobile-lang-switch a:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }
    
    .mobile-lang-switch a.active {
        background-color: #fff;
        color: #333;
    }
    
    .mobile-lang-switch.en-version a.active {
        background-color: #fff;
        color: #333;
    }
}

@media (max-width: 767px) {
    .mobile-lang-switch {
        padding: 4px 8px;
    }
    
    .mobile-lang-switch a {
        font-size: 13px;
        padding: 4px 10px;
    }
}
