* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "Heiti SC", sans-serif;
}

body {
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* 改为顶部对齐，避免长页面溢出 */
    min-height: 100vh;
    padding: 30px 20px;
}

/* 测试容器整体样式 */
.test-container {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 700px;
    padding: 35px;
    margin-bottom: 50px;
}

/* 测试头部样式 */
.test-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.test-header h1 {
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 12px;
}

.test-header p {
    color: #7f8c8d;
    font-size: 15px;
}

/* 进度条样式（新增） */
.progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #2196f3;
    border-radius: 4px;
    transition: width 0.3s ease; /* 平滑过渡 */
    width: 0%; /* 初始宽度0 */
}

/* 答题区域样式 */
.question-title {
    color: #2c3e50;
    font-size: 19px;
    margin-bottom: 25px;
    line-height: 1.6;
    font-weight: 500;
}

.option-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 35px;
}

.option-btn {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 18px;
    font-size: 16px;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    outline: none;
}

.option-btn:hover {
    background-color: #e3f2fd;
    border-color: #2196f3;
    color: #2196f3;
}

.option-btn:active {
    background-color: #bbdefb;
}

.option-btn:disabled { /* 防止重复点击（新增） */
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
    background-color: #f8f9fa;
    border-color: #e9ecef;
    color: #2c3e50;
}

.progress-text {
    text-align: center;
    color: #7f8c8d;
    font-size: 15px;
    margin-top: -10px;
}

/* 结果展示区域样式 */
.result-area {
    text-align: center;
    padding: 20px 0;
}

.result-area h2 {
    color: #2c3e50;
    font-size: 26px;
    margin-bottom: 25px;
    line-height: 1.5;
}

.type-text {
    color: #2196f3;
    font-weight: bold;
    font-size: 32px;
    letter-spacing: 2px;
}

.result-desc {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    color: #2c3e50;
    font-size: 17px;
    line-height: 2.0;
    text-align: left;
    margin-bottom: 30px;
    border-left: 4px solid #2196f3;
}

.result-tips {
    color: #95a5a6;
    font-size: 14px;
    margin-bottom: 35px;
    text-align: center;
}

.restart-btn {
    background-color: #2196f3;
    border: none;
    border-radius: 10px;
    padding: 16px 40px;
    font-size: 17px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.restart-btn:hover {
    background-color: #1976d2;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.restart-btn:active {
    background-color: #1565c0;
    transform: translateY(0);
}

/* 响应式适配（手机端） */
@media (max-width: 480px) {
    .test-container {
        padding: 25px 15px;
    }

    .test-header h1 {
        font-size: 24px;
    }

    .question-title {
        font-size: 17px;
    }

    .option-btn {
        padding: 16px;
        font-size: 15px;
    }

    .type-text {
        font-size: 28px;
    }

    .result-desc {
        padding: 25px 15px;
        font-size: 16px;
        line-height: 1.8;
    }

    .restart-btn {
        padding: 14px 32px;
        font-size: 16px;
    }
}