.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-btn {
    background: white;
    border: 2px solid #2e2511;
    color: #2e2511;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    font-size: 14px;
}

.lang-btn:hover {
    background: #2e2511;
    color: white;
}

.lang-btn i {
    font-size: 12px;
    transition: transform 0.3s;
}

.lang-btn.active i {
    transform: rotate(180deg);
}

.lang-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 150px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 5px;
    margin-top: 5px;
    z-index: 1;
    overflow: hidden;
}

.lang-dropdown-content.show {
    display: block;
    animation: fadeInDown 0.3s ease;
    text-align: left;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lang-option {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: #333;
    background: white;
    transition: all 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.lang-option:hover {
    background: #f8f9fa;
    color: #3498db;
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-flag {
    margin-right: 8px;
    font-size: 16px;
}

.header-content {
    position: relative;
    padding-top: 50px; /* 为语言选择器留出空间 */
}

.current-lang {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .language-selector {
        position: static;
        margin-bottom: 15px;
        display: flex;
        justify-content: center;
    }
    
    .lang-dropdown {
        width: 100%;
    }
    
    .lang-btn {
        width: 100%;
        justify-content: center;
    }
    
    .header-content {
        padding-top: 20px;
    }
}

.language-selector {
    text-align: right;
    z-index: 100;
}