/**
 * 情绪测评弹窗样式
 * 可在多个页面中复用的样式文件
 */

.emotion-test-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    overflow-y: auto;
}

.emotion-test-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.test-modal-content {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.test-modal-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 30px;
    border-radius: 20px 20px 0 0;
    text-align: center;
    position: relative;
}

.test-modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.test-modal-close:hover {
    opacity: 1;
}

.test-modal-header h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

.test-modal-header p {
    margin: 10px 0 0 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

.test-progress {
    background: #f8f9fa;
    padding: 20px 30px;
    border-bottom: 1px solid #e9ecef;
}

.progress-bar {
    background: #e9ecef;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill {
    background: linear-gradient(90deg, #667eea, #764ba2);
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.test-content {
    padding: 30px;
}

.question-card {
    display: none;
    animation: fadeIn 0.5s ease;
}

.question-card.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.question-header {
    text-align: center;
    margin-bottom: 30px;
}

.question-emoji {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.question-text {
    font-size: 1.3rem;
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
}

.question-number {
    color: #666;
    font-size: 0.9rem;
}

.options-grid {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
}

.option-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.option-card:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.option-card.selected {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

.option-text {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.option-score {
    font-size: 0.8rem;
    opacity: 0.7;
}

.test-navigation {
    display: flex;
    justify-content: space-between;
    padding: 0 30px 30px;
}

.nav-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn.prev {
    background: #f8f9fa;
    color: #666;
}

.nav-btn.next {
    background: #667eea;
    color: white;
}

.nav-btn:hover {
    transform: translateY(-2px);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.test-result {
    display: none;
    text-align: center;
    padding: 30px;
}

.test-result.active {
    display: block;
}

.result-score {
    font-size: 4rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 20px;
}

.result-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.result-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.result-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.result-btn.primary {
    background: #667eea;
    color: white;
}

.result-btn.secondary {
    background: #f8f9fa;
    color: #667eea;
    border: 2px solid #667eea;
}

.result-btn:hover {
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .test-modal-content {
        margin: 10px;
        max-height: 95vh;
    }
    
    .test-modal-header {
        padding: 20px;
    }
    
    .test-modal-header h2 {
        font-size: 1.5rem;
    }
    
    .test-content {
        padding: 20px;
    }
    
    .test-navigation {
        padding: 0 20px 20px;
    }
    
    .question-emoji {
        font-size: 2.5rem;
    }
    
    .question-text {
        font-size: 1.1rem;
    }
} 