/* 简单的语言切换器样式 */
.language-switcher {
    position: relative;
    margin-left: 20px;
}

.lang-dropdown {
    position: relative;
}

.current-lang {
    display: flex;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #495057;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    align-items: center
}

.current-lang:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #212529;
}

.current-lang::after {
    content: ' ▼';
    font-size: 10px;
    margin-left: 4px;
    transition: transform 0.2s ease;
}

.language-switcher .lang-dropdown:hover .current-lang::after {
    transform: rotate(180deg);
}

.language-switcher .lang-options {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-width: 120px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.language-switcher .lang-dropdown:hover .lang-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-options a {
    display: block;
    padding: 8px 12px;
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.lang-options a:hover {
    background: #f8f9fa;
    color: #212529;
}

.lang-options a.active {
    background: #007bff;
    color: white;
}

.lang-options a.active:hover {
    background: #0056b3;
}

/* 简单的语言标识 */
.lang-flag {
    display: inline-block;
    width: 16px;
    height: 12px;
    margin-right: 6px;
    border-radius: 2px;
    background-size: cover;
    background-position: center;
}

.lang-flag.zh {
    background: #de2910;
    position: relative;
}

.lang-flag.zh::after {
    content: '中';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffde00;
    font-size: 8px;
    font-weight: bold;
}

.lang-flag.en {
    background: #012169;
    position: relative;
}

.lang-flag.en::after {
    content: 'EN';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 8px;
    font-weight: bold;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .language-switcher {
        margin-left: 10px;
    }

    .current-lang {
        padding: 6px 10px;
        font-size: 13px;
    }

    .lang-options {
        min-width: 100px;
    }

    .lang-options a {
        padding: 6px 10px;
        font-size: 13px;
    }
}