/* 语言下拉菜单样式 */
.language-dropdown {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.language-select-wrapper {
    position: relative;
    width: 180px;
}

.language-select-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 15px;
    background: rgba(250, 68, 109, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--text-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.language-select-button:hover {
    background: rgba(250, 68, 109, 0.2);
    box-shadow: 0 0 10px rgba(250, 68, 109, 0.3);
}

.language-select-button i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.language-select-button.active i {
    transform: rotate(180deg);
}

.language-options {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    background: rgba(20, 20, 20, 0.95);
    border-radius: 0 0 8px 8px;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    margin-top: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

.language-options.show {
    max-height: 300px;
    opacity: 1;
    visibility: visible;
    overflow-y: auto;
}

.language-option {
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.language-option:hover {
    background: rgba(250, 68, 109, 0.2);
}

.language-option.active {
    background: rgba(250, 68, 109, 0.3);
    color: var(--primary-color);
}

/* 滚动条样式 */
.language-options::-webkit-scrollbar {
    width: 5px;
}

.language-options::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.language-options::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

/* 添加语言选择动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.language-option {
    animation: fadeIn 0.2s ease forwards;
    opacity: 0;
}

.language-option:nth-child(1) { animation-delay: 0.05s; }
.language-option:nth-child(2) { animation-delay: 0.1s; }
.language-option:nth-child(3) { animation-delay: 0.15s; }
.language-option:nth-child(4) { animation-delay: 0.2s; }
.language-option:nth-child(5) { animation-delay: 0.25s; }
.language-option:nth-child(6) { animation-delay: 0.3s; }
.language-option:nth-child(7) { animation-delay: 0.35s; }
.language-option:nth-child(8) { animation-delay: 0.4s; }
.language-option:nth-child(9) { animation-delay: 0.45s; }
.language-option:nth-child(10) { animation-delay: 0.5s; }
.language-option:nth-child(11) { animation-delay: 0.55s; }
.language-option:nth-child(12) { animation-delay: 0.6s; }
.language-option:nth-child(13) { animation-delay: 0.65s; }
.language-option:nth-child(14) { animation-delay: 0.7s; }

/* 响应式调整 */
@media (max-width: 768px) {
    .language-dropdown {
        top: 10px;
        right: 10px;
    }
    
    .language-select-wrapper {
        width: 150px;
    }
    
    .language-select-button {
        padding: 8px 12px;
        font-size: 12px;
    }
}