/* 语言切换器样式 */
.lang-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    padding: 8px 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.lang-selector:hover,
.lang-selector.active {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.lang-selector-text {
    margin-right: 5px;
    font-weight: 500;
    color: #0071e3;
}

.lang-selector::after {
    content: '▼';
    font-size: 10px;
    opacity: 0.7;
    margin-left: 5px;
    transition: transform 0.3s;
}

.lang-selector:hover::after,
.lang-selector.active::after {
    transform: rotate(180deg);
}

.lang-options {
    position: absolute;
    top: calc(100% + 3px);
    right: -20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: all 0.3s ease;
    transition-delay: 0.05s;
    padding: 0;
    margin-top: 0;
    max-height: 200px;
    overflow-y: auto;
}

.lang-selector:hover .lang-options,
.lang-selector.active .lang-options,
.lang-options:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    padding: 10px 15px;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
    white-space: nowrap;
    display: block;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid #f5f5f7;
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: #f5f5f7;
}

.lang-option.active {
    background: rgba(0, 113, 227, 0.1);
    color: #0071e3;
    font-weight: 500;
}

/* 手机端适配 */
@media (max-width: 600px) {
    .lang-selector {
        top: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .lang-options {
        width: 140px;
        right: -10px;
        top: calc(100% + 3px);
    }
    
    .lang-option {
        padding: 8px;
    }
} 