/* 语言切换按钮样式 */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.language-switcher a {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 2px;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #333;
}

.language-switcher a:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: translateY(-1px);
}

.language-switcher a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.language-switcher a.active:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .language-switcher {
        top: 10px;
        right: 10px;
        padding: 6px;
    }
    
    .language-switcher a {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* 暗色主题适配 */
@media (prefers-color-scheme: dark) {
    .language-switcher {
        background: rgba(0, 0, 0, 0.8);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .language-switcher a {
        color: #fff;
    }
    
    .language-switcher a:hover {
        background: rgba(102, 126, 234, 0.2);
        color: #8fa4ff;
    }
}

/* 动态插入语言切换器的JavaScript */
.language-switcher-script {
    display: none;
}

/* 确保语言切换器在所有页面上显示 */
body {
    position: relative;
}
