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

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    max-width: 900px;
    width: 100%;
}

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

header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.description {
    font-size: 1rem;
    opacity: 0.9;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.card h2 {
    color: #667eea;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.5rem;
}

.questions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.question {
    margin-bottom: 0;
    padding: 15px;
    background: #f8f9ff;
    border-radius: 12px;
    transition: transform 0.2s ease;
}

.question:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.question label {
    display: block;
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.options {
    display: flex;
    gap: 15px;
}

.option-btn {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

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

.calculate-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.calculate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.result-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: slideIn 0.5s ease;
}

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

.result-card h2 {
    color: #667eea;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.score-display {
    margin-bottom: 25px;
}

.score-circle {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.score-circle span {
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
}

.level-display {
    margin-bottom: 25px;
}

.level-display p {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 10px;
}

.level-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #667eea;
}

.level-description {
    color: #666;
    font-style: italic;
}

.reset-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

footer {
    text-align: center;
    color: white;
    margin-top: 30px;
    font-size: 1rem;
    opacity: 0.9;
}

.hidden {
    display: none;
}

@media (max-width: 768px) {
    .container {
        max-width: 600px;
    }

    .questions {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .question {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.5rem;
    }

    .card {
        padding: 20px;
    }

    .options {
        flex-direction: column;
    }

    .score-circle {
        width: 120px;
        height: 120px;
    }

    .score-circle span {
        font-size: 2rem;
    }
}