/* ============================================================================
   语言选择对话框样式
   ============================================================================ */

.language-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease-out;
}

.language-dialog {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

.language-dialog-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.language-dialog-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #333;
    font-weight: 600;
}

.language-dialog-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.language-dialog-close:hover {
    background: #f0f0f0;
    color: #333;
}

.language-dialog-body {
    padding: 0.5rem;
    overflow-y: auto;
    flex: 1;
}

.language-option {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    margin: 0.25rem 0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

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

.language-option.active {
    background: #e3f2fd;
    border-left: 3px solid #2196F3;
}

.language-flag {
    font-size: 2rem;
    margin-right: 1rem;
}

.language-info {
    flex: 1;
}

.language-name {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.25rem;
}

.language-code {
    font-size: 0.875rem;
    color: #999;
}

.language-check {
    color: #2196F3;
    font-size: 1.25rem;
}

.language-dialog-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e0e0e0;
    background: #f9f9f9;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

.language-tip {
    margin: 0;
    font-size: 0.875rem;
    color: #666;
    text-align: center;
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 移动端优化 */
@media (max-width: 768px) {
    .language-dialog {
        width: 95%;
        max-height: 90vh;
    }
    
    .language-dialog-header {
        padding: 1rem;
    }
    
    .language-dialog-header h3 {
        font-size: 1.125rem;
    }
    
    .language-option {
        padding: 0.875rem 1rem;
    }
    
    .language-flag {
        font-size: 1.75rem;
    }
    
    .language-name {
        font-size: 0.9375rem;
    }
    
    .language-code {
        font-size: 0.8125rem;
    }
}

/* bg-pink 样式（如果my-page.css中没有） */
.my-menu-icon.bg-pink {
    background: linear-gradient(135deg, #FF6B9D 0%, #C44569 100%);
}

