/* 全局样式 */
body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.container {
    height: 100%;
    overflow-y: auto;
}

.page {
    padding-bottom: 50px;
}

/* 首页样式 */
.page__hd {
    padding: 40px 20px 20px;
    text-align: center;
}

.page__title {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 10px;
}

.page__desc {
    color: #888;
    font-size: 14px;
}

/* 问题样式 */
.question-container {
    padding: 15px;
    background-color: #fff;
    margin-bottom: 15px;
    border-radius: 5px;
}

.question-id {
    color: #888;
    font-size: 14px;
    margin-bottom: 10px;
}

.question-text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.question-image-container {
    text-align: center;
    margin: 15px 0;
}

.question-image-container img {
    max-width: 100%;
    max-height: 300px;
    border: 1px solid #eee;
}

/* 按钮区域样式 */
.weui-btn-area {
    display: flex;
    justify-content: space-between;
    margin: 15px;
}

.weui-btn-area .weui-btn {
    flex: 1;
    margin: 0 7.5px;
    max-width: none;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-sizing: border-box;
}

.weui-btn-area .weui-btn:first-child {
    margin-left: 0;
    margin-top: 14px;
}

.weui-btn-area .weui-btn:last-child {
    margin-right: 0;
}

/* 结果页面样式 */
.result-container {
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
}

/* 错题回顾样式 */
.correct-option {
    color: #09BB07;
    font-weight: bold;
}

.incorrect-option {
    color: #E64340;
    font-weight: bold;
}

/* 响应式调整 */
@media (min-width: 768px) {
    .container {
        max-width: 650px;
        margin: 0 auto;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        background-color: #fff;
    }
}

/* 选项样式 */
.option-label {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    background-color: #f8f8f8;
    margin-right: 10px;
}

/* 加载动画 */
.weui-loading {
    margin: 0 5px;
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    animation: weuiLoading 1s steps(12, end) infinite;
    background: transparent url("data:image/svg+xml;charset=utf8, %3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 100 100'%3E%3Cpath fill='none' d='M0 0h100v100H0z'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23E9E9E9' rx='5' ry='5' transform='translate(0 -30)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23989697' rx='5' ry='5' transform='rotate(30 105.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%239B999A' rx='5' ry='5' transform='rotate(60 75.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23A3A1A2' rx='5' ry='5' transform='rotate(90 65 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23ABA9AA' rx='5' ry='5' transform='rotate(120 58.66 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23B2B2B2' rx='5' ry='5' transform='rotate(150 54.02 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23BAB8B9' rx='5' ry='5' transform='rotate(180 50 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23C2C0C1' rx='5' ry='5' transform='rotate(-150 45.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23CBCBCB' rx='5' ry='5' transform='rotate(-120 41.34 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23D2D2D2' rx='5' ry='5' transform='rotate(-90 35 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23DADADA' rx='5' ry='5' transform='rotate(-60 24.02 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23E2E2E2' rx='5' ry='5' transform='rotate(-30 -5.98 65)'/%3E%3C/svg%3E") no-repeat;
    background-size: 100%;
}

@keyframes weuiLoading {
    0% {
        transform: rotate3d(0, 0, 1, 0deg);
    }
    100% {
        transform: rotate3d(0, 0, 1, 360deg);
    }
}

/* 答案反馈样式 */
.answer-feedback {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 15px 30px;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 1;
    transition: opacity 0.5s ease;
}

.answer-feedback.correct {
    background-color: #09BB07;
}

.answer-feedback.incorrect {
    background-color: #E64340;
}

.answer-feedback.fade-out {
    opacity: 0;
}

/* 禁用按钮样式 */
.weui-btn_disabled.weui-btn_primary {
    background-color: #9ED99D !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

/* 已回答题目样式 */
.weui-cell_active.answered {
    background-color: #f8f8f8;
}

/* 考试ID样式 */
.exam-id {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

/* 进度指示器 */
.progress-indicator {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 10px 0;
}

.progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    margin: 3px;
    cursor: pointer;
}

.progress-dot.current {
    background-color: #1AAD19;
    transform: scale(1.2);
}

.progress-dot.answered {
    background-color: #10a5f5;
}

.progress-dot.correct {
    background-color: #09BB07;
}

.progress-dot.incorrect {
    background-color: #E64340;
}

.exam-description {
    font-size: 13px;
    color: #555;
    margin-top: 5px;
    margin-bottom: 3px;
}

.exam-requirement {
    font-size: 12px;
    color: #E64340;
    margin-top: 2px;
}

/* 计时器样式 */
.exam-timer {
    position: absolute;
    top: 10px;
    right: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.timer-warning {
    color: #ff3b30;
    animation: blink 1s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* 更新footer样式 */
.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin-top: 30px;
    width: 100%;
    box-sizing: border-box;
}

.footer p {
    margin: 15px 0 0 0;
    padding: 0;
    text-align: center;
    width: 100%;
}

.footer .weui-btn {
    margin: 0 0 10px 0;
    display: block;
    width: 90%;
    max-width: 300px;
}
