:root {
    --primary: #2E7D32;
    --primary-light: #4CAF50;
    --primary-dark: #1B5E20;
    --secondary: #FFC107;
    --text: #333333;
    --text-light: #666666;
    --light: #F5F5F5;
    --white: #FFFFFF;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9, #a5d6a7, #81c784);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.card {
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    padding: 30px;
    transition: var(--transition);
}

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

.header .icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.header h1 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 2rem;
}

.header p {
    color: var(--text-light);
    font-size: 1rem;
}

.progress-container {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 8px;
    margin: 20px 0;
    height: 20px;
    position: relative;
}

.progress-bar {
    height: 100%;
    border-radius: 8px;
    background-color: var(--primary);
    width: 5%;
    transition: width 0.3s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: bold;
}

.question-container {
    margin-bottom: 30px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.question-group {
    background-color: var(--light);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    transition: var(--transition);
}

.question-group:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.question-text {
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--primary-dark);
}

.options-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.option-label {
    display: flex;
    align-items: center;
    background-color: var(--white);
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid #e0e0e0;
    flex: 1 1 0;
    min-width: 120px;
    max-width: 200px;
}

.option-label:hover {
    background-color: #e8f5e9;
    border-color: var(--primary-light);
}

.option-label input {
    margin-right: 10px;
}

.navigation-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn i {
    margin-right: 8px;
}

.prev-btn {
    background-color: #616161;
}

.prev-btn:hover {
    background-color: #424242;
}

.submit-btn {
    background-color: #d32f2f;
}

.submit-btn:hover {
    background-color: #b71c1c;
}

.result-container {
    text-align: center;
    padding: 20px;
    background-color: var(--light);
    border-radius: 12px;
    margin-bottom: 30px;
}

.result-score {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-dark);
    margin: 20px 0;
}

.result-interpretation {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.disclaimer-box {
    background-color: #FFF8E1;
    border-left: 4px solid var(--secondary);
    border-radius: 8px;
    padding: 15px;
    margin-top: 30px;
}

.disclaimer-box p {
    margin: 8px 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.hidden {
    display: none;
}

.retake-btn {
    background-color: #616161;
}

.retake-btn:hover {
    background-color: #424242;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .card {
        padding: 20px;
    }
    
    .options-container {
        flex-direction: column;
    }
    
    .option-label {
        width: 100%;
        max-width: none;
    }
    
    .header h1 {
        font-size: 1.6rem;
    }
    
    .navigation-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}