/* ==========================================
   语言切换器 - 优雅精致版本
   ========================================== */

/* 语言切换容器 */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: 30px;
    position: relative;
}

/* 添加地球图标（可选） */
.language-switcher::before {
    content: "\f0ac";
    font-family: "Font Awesome 5 Pro";
    font-weight: 300;
    font-size: 16px;
    color: #333;
    margin-right: 12px;
    opacity: 0.6;
}

/* 语言切换按钮 - 组合式设计 */
.lang-switch {
    padding: 8px 18px;
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    position: relative;
    border-right: 1px solid #e0e0e0;
}

.lang-switch:last-child {
    border-right: none;
}

/* Hover效果 */
.lang-switch:hover {
    color: #c0a062;
    background: rgba(192, 160, 98, 0.05);
}

/* 激活状态 */
.lang-switch.active {
    color: #c0a062;
    font-weight: 600;
    background: rgba(192, 160, 98, 0.08);
}

/* 激活状态下的下划线效果 */
.lang-switch.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: #c0a062;
    border-radius: 2px;
}

/* 外部容器边框 */
.language-switcher-wrapper {
    display: inline-flex;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.language-switcher-wrapper:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #c0a062;
}

/* 移动端适配 */
@media (max-width: 991px) {
    .language-switcher {
        justify-content: center;
        padding: 20px 0;
        margin: 0;
    }
    
    .language-switcher::before {
        display: none;
    }
    
    .lang-switch {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Header中的语言切换器 - 白色背景版本 */
.header-upper .language-switcher::before {
    color: #666;
}

.header-upper .lang-switch {
    color: #666;
}

.header-upper .lang-switch:hover {
    color: #c0a062;
    background: rgba(192, 160, 98, 0.05);
}

.header-upper .lang-switch.active {
    color: #c0a062;
    background: rgba(192, 160, 98, 0.08);
}

/* Sticky Header 中的样式 */
.sticky-header .language-switcher::before {
    color: #666;
}

/* 可选：更精致的圆角按钮样式 */
.lang-switch-rounded {
    border-radius: 20px;
    padding: 6px 16px;
    margin: 0 4px;
    border: 1px solid #e0e0e0 !important;
}

.lang-switch-rounded:hover {
    border-color: #c0a062 !important;
    transform: translateY(-1px);
}

.lang-switch-rounded.active {
    background: #c0a062 !important;
    color: #fff !important;
    border-color: #c0a062 !important;
    box-shadow: 0 2px 8px rgba(192, 160, 98, 0.25);
}

.lang-switch-rounded.active::after {
    display: none;
}

/* 分隔符样式 */
.lang-separator {
    width: 1px;
    height: 16px;
    background: #e0e0e0;
    margin: 0 2px;
}

/* 淡入淡出动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

