/* 语言切换按钮样式 */
.language-switcher {
    position: fixed;
    top: calc(env(safe-area-inset-top) + 16px);
    right: calc(env(safe-area-inset-right) + 16px);
    z-index: 9999;
    background: linear-gradient(135deg, #d4af37, #b99016);
    color: #0a1128;
    padding: 12px 18px;
    border-radius: 50px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s ease;
    user-select: none;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(10, 17, 40, 0.18);
}

.language-switcher:hover {
    transform: translateY(2px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
    border-color: rgba(10, 17, 40, 0.28);
    background: linear-gradient(135deg, #e0c15c, #c99e1c);
}

.language-switcher:active {
    transform: translateY(1px);
}

.language-switcher .current-lang {
    color: #0a1128;
    font-weight: 700;
    font-size: 16px;
}

.language-switcher .next-lang {
    color: rgba(10, 17, 40, 0.75);
    font-size: 14px;
}

.language-switcher i {
    color: #0a1128;
    font-size: 15px;
    transition: transform 0.3s ease;
}

.language-switcher:hover i {
    transform: rotate(180deg);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .language-switcher {
        top: calc(env(safe-area-inset-top) + 12px);
        right: calc(env(safe-area-inset-right) + 12px);
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .language-switcher .current-lang {
        font-size: 14px;
    }
    
    .language-switcher .next-lang {
        font-size: 12px;
    }
    
    .language-switcher i {
        font-size: 13px;
    }
}

/* 动画效果 */
@keyframes langSwitch {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.language-switcher.switching {
    animation: langSwitch 0.3s ease;
}

@media (min-width: 992px) {
    .navbar .navbar-collapse {
        padding-right: 120px;
    }
}
