/**
 * 语言切换器样式
 * 用于中英文切换
 */

.language-switcher {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.language-switcher button {
    padding: 6px 14px;
    border: none;
    background: transparent;
    color: #2c3e50;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 15px;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

.language-switcher button:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.language-switcher button.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.language-switcher button:focus {
    outline: none;
}

/* 国旗图标样式（可选） */
.language-switcher .flag-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .language-switcher {
        gap: 3px;
        padding: 4px;
    }

    .language-switcher button {
        padding: 5px 10px;
        font-size: 13px;
    }
}

/* 响应式 - 极小屏幕只显示缩写 */
@media (max-width: 480px) {
    .language-switcher button .lang-full {
        display: none;
    }

    .language-switcher button .lang-short {
        display: inline;
    }
}

@media (min-width: 481px) {
    .language-switcher button .lang-short {
        display: none;
    }

    .language-switcher button .lang-full {
        display: inline;
    }
}

/* Header 中的语言切换器定位 */
.header .language-switcher {
    margin-left: auto;
}

/* 如果导航和语言切换器在同一行 */
.header-content-wrapper .language-switcher {
    margin-left: 20px;
}
