/* 语言选择器样式 */
.language-selector {
    position: relative;
    display: inline-block;
    margin-left: 20px;
    z-index: 1000;
}

.language-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
    outline: none;
}

.language-button:hover {
    background: #f8f9fa;
    border-color: #007bff;
}

.language-button img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    color: #333;
}

.language-option:hover {
    background: #f8f9fa;
}

.language-option.active {
    background: #e9ecef;
    color: #007bff;
}

.language-option img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

/* RTL支持 */
[dir="rtl"] .language-button .arrow {
    margin-left: 0;
    margin-right: 8px;
}

[dir="rtl"] .language-dropdown {
    right: auto;
    left: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .language-selector {
        margin: 10px 0;
    }
    
    .language-dropdown {
        right: auto;
        left: 0;
    }
}

/* 打印样式 */
@media print {
    .language-selector {
        display: none;
    }
} 