/* 考试系统 - PC 端样式 */
.exam-page { max-width: 1180px; margin: 0 auto; padding: 20px 16px 60px; color: #333; font-size: 14px; line-height: 1.7; }
.exam-page * { box-sizing: border-box; }
.exam-page a { color: #333; text-decoration: none; }
.exam-page a:hover { color: #3398cc; }
.exam-crumb { color: #999; font-size: 13px; margin-bottom: 14px; }
.exam-crumb a { color: #999; }
.exam-h1 { font-size: 22px; font-weight: 600; margin: 0 0 6px; }
.exam-sub { color: #999; font-size: 13px; margin-bottom: 18px; }

/* 卡片 */
.exam-card { background: #fff; border: 1px solid #eaeef2; border-radius: 6px; padding: 18px 20px; margin-bottom: 16px; }
.exam-card h3 { font-size: 16px; font-weight: 600; margin: 0 0 12px; }

/* 试卷列表 */
.exam-filter { margin-bottom: 16px; }
.exam-filter a { display: inline-block; padding: 5px 14px; margin: 0 8px 8px 0; border: 1px solid #e2e8ee; border-radius: 16px; color: #666; font-size: 13px; }
.exam-filter a.on { background: #3398cc; border-color: #3398cc; color: #fff; }
.exam-list { display: flex; flex-wrap: wrap; gap: 16px; }
.exam-item { width: calc((100% - 32px) / 3); background: #fff; border: 1px solid #eaeef2; border-radius: 6px; padding: 16px; transition: box-shadow .2s; }
.exam-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.exam-item .t { font-size: 15px; font-weight: 600; line-height: 1.5; height: 45px; overflow: hidden; display: block; }
.exam-item .meta { color: #999; font-size: 12px; margin: 8px 0 10px; }
.exam-item .meta span { margin-right: 10px; }
.exam-item .foot { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid #f2f5f8; }
.exam-price { color: #ff5722; font-weight: 600; }
.exam-price.free { color: #43a047; }
.exam-tag { display: inline-block; padding: 1px 8px; border-radius: 3px; font-size: 12px; background: #eef6fb; color: #3398cc; margin-right: 6px; }
.exam-tag.vip { background: #fff5e6; color: #e6a23c; }
.exam-empty { text-align: center; color: #999; padding: 60px 0; }

/* 按钮 */
.exam-btn { display: inline-block; padding: 8px 22px; border-radius: 4px; background: #3398cc; color: #fff !important; border: none; cursor: pointer; font-size: 14px; }
.exam-btn:hover { background: #2b86b5; color: #fff !important; }
.exam-btn.ghost { background: #fff; color: #3398cc !important; border: 1px solid #3398cc; }
.exam-btn.gray { background: #f4f6f8; color: #666 !important; border: 1px solid #e2e8ee; }
.exam-btn.lg { padding: 12px 40px; font-size: 16px; }
.exam-btn[disabled] { opacity: .5; cursor: not-allowed; }

/* 试卷详情 */
.exam-detail-top { display: flex; gap: 24px; }
.exam-detail-main { flex: 1; }
.exam-detail-side { width: 280px; background: #fafbfc; border: 1px solid #eaeef2; border-radius: 6px; padding: 20px; text-align: center; }
.exam-detail-side .price { font-size: 28px; color: #ff5722; font-weight: 600; margin-bottom: 4px; }
.exam-detail-side .price.free { color: #43a047; }
.exam-detail-side .vip-tip { color: #e6a23c; font-size: 13px; margin-bottom: 14px; }
.exam-detail-side .balance { color: #999; font-size: 12px; margin-top: 12px; }
.exam-info-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; }
.exam-info-list li { width: 50%; color: #666; padding: 6px 0; }
.exam-info-list li b { color: #333; font-weight: 600; }

/* 答题 */
.exam-bar { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid #eaeef2; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.exam-timer { font-size: 18px; font-weight: 600; color: #3398cc; }
.exam-timer.warn { color: #e53935; }
.exam-progress { color: #999; font-size: 13px; }
.exam-q { background: #fff; border: 1px solid #eaeef2; border-radius: 6px; padding: 18px 20px; margin-bottom: 14px; }
.exam-q .no { color: #3398cc; font-weight: 600; margin-right: 6px; }
.exam-q .qtype { display: inline-block; padding: 1px 7px; border-radius: 3px; background: #eef6fb; color: #3398cc; font-size: 12px; margin-left: 6px; }
.exam-q .stem { margin: 10px 0 12px; line-height: 1.9; }
.exam-q .stem img { max-width: 100%; height: auto; margin: 6px 0; display: block; }
.exam-group { background: #f7fafc; border-left: 3px solid #3398cc; padding: 12px 16px; margin-bottom: 12px; color: #555; font-size: 13px; line-height: 1.9; }
.exam-group img { max-width: 100%; height: auto; margin: 6px 0; display: block; }
.exam-opt { display: block; padding: 10px 14px; border: 1px solid #e6ebf0; border-radius: 4px; margin-bottom: 8px; cursor: pointer; transition: all .15s; }
.exam-opt:hover { border-color: #3398cc; background: #fafdff; }
.exam-opt input { margin-right: 8px; }
.exam-opt.checked { border-color: #3398cc; background: #f0f8fd; }
.exam-opt .k { font-weight: 600; margin-right: 8px; }
.exam-opt .optimg { max-width: 100%; height: auto; margin-top: 6px; display: block; }

/* 结果 */
.exam-score-box { text-align: center; padding: 30px 20px; }
.exam-score-box .num { font-size: 52px; font-weight: 700; color: #3398cc; line-height: 1; }
.exam-score-box .num.fail { color: #e53935; }
.exam-score-box .lbl { color: #999; margin-top: 8px; }
.exam-score-box .stat { display: inline-block; margin: 18px 16px 0; color: #666; }
.exam-score-box .stat b { display: block; font-size: 20px; color: #333; }
.exam-ana { margin-top: 12px; padding: 12px 14px; border-radius: 4px; font-size: 13px; line-height: 1.9; }
.exam-ana.right { background: #f1f9f2; border: 1px solid #d6efd9; }
.exam-ana.wrong { background: #fdf2f2; border: 1px solid #f7dada; }
.exam-ana.half { background: #fffaf0; border: 1px solid #f7e8cd; }
.exam-ana .row { margin-bottom: 4px; }
.exam-ana .row .k { color: #888; }
.exam-ana .ans { color: #43a047; font-weight: 600; }
.exam-ana .myans { color: #e53935; font-weight: 600; }
.exam-result-actions { text-align: center; padding: 20px 0 40px; }

@media (max-width: 900px) {
    .exam-item { width: calc((100% - 16px) / 2); }
    .exam-detail-top { flex-direction: column; }
    .exam-detail-side { width: 100%; }
    .exam-info-list li { width: 100%; }
}
