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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    margin-top: 30px;
    margin-bottom: 30px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.8em;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

header p {
    font-size: 1.2em;
    opacity: 0.9;
}

main {
    margin-bottom: 40px;
}



#result-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
    font-size: 2em;
    font-weight: 600;
}

.result-style-name {
    font-size: 2.5em;
    font-weight: 800;
    color: #667eea;
    text-align: center;
    margin: 20px 0 30px;
    text-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
    animation: slideIn 0.5s ease-out;
}

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

.question {
    margin-bottom: 25px;
    padding: 25px;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.question:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.question.unanswered {
    border: 2px solid #e74c3c;
    background-color: #fff5f5;
    animation: pulseRed 1s ease-in-out infinite;
}

@keyframes pulseRed {
    0% { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }
    50% { box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3); }
    100% { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }
}

.question h3 {
    color: #34495e;
    margin-bottom: 15px;
    font-size: 1.2em;
    font-weight: 600;
}

.question label {
    display: block;
    margin-bottom: 12px;
    padding: 12px 15px;
    padding-left: 45px;
    position: relative;
    cursor: pointer;
    background-color: white;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.question label:hover {
    background-color: #f0f4f8;
    border-color: #667eea;
}

.question input[type="radio"] {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    accent-color: #667eea;
}

.submit-btn {
    display: block;
    width: 220px;
    margin: 40px auto;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* 分页样式 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0;
    gap: 20px;
}

.nav-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.nav-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.5);
}

.nav-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    box-shadow: none;
}

.page-indicators {
    display: flex;
    gap: 10px;
}

.page-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f4f8;
    color: #7f8c8d;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-indicator.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.4);
}

.page-indicator:hover:not(.active) {
    background-color: #e0e7ff;
    color: #667eea;
}

/* 页面切换动画 */
.page {
    animation: fadeIn 0.5s ease-in-out;
}

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

.hidden {
    display: none;
}

#result-content {
    padding: 40px;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.result-item {
    margin-bottom: 30px;
    text-align: left;
}

.result-item.module {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #667eea;
}

.result-item h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3em;
    font-weight: 700;
    border-bottom: 2px solid #667eea;
    padding-bottom: 8px;
}

.result-item p {
    color: #34495e;
    line-height: 1.6;
    font-size: 1.05em;
}

.result-item ul {
    list-style-type: none;
    padding-left: 20px;
}

.result-item li {
    margin-bottom: 8px;
    color: #34495e;
    position: relative;
}

.result-item li:before {
    content: "•";
    color: #667eea;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.style-images-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 20px 0;
}

.style-image-wrapper {
    flex: 1 1 300px;
    max-width: 300px;
    text-align: center;
}

.style-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 5px solid white;
    transition: transform 0.3s ease;
}

.style-image:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.style-image-wrapper p {
    margin-top: 10px;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 0;
}

.result-item p {
    white-space: pre-line;
    line-height: 1.8;
}

.result-item h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 700;
}

.result-item ul {
    margin-top: 10px;
}

.result-item li {
    margin-bottom: 10px;
    line-height: 1.6;
}

footer {
    text-align: center;
    padding: 25px 0;
    border-top: 1px solid #eee;
    color: #7f8c8d;
    font-size: 0.9em;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
        margin-top: 15px;
        margin-bottom: 15px;
    }
    
    header h1 {
        font-size: 2.2em;
    }
    
    .question {
        padding: 20px;
    }
    
    #result-content {
        padding: 25px;
    }
    
    .submit-btn {
        width: 200px;
        padding: 12px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

#test-section,
#result-section {
    animation: fadeIn 0.5s ease-in-out;
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 40px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}