body { font-family: Arial, "Microsoft YaHei", sans-serif; margin: 0; background: #f5f6f8; color: #222; }
.wrap { max-width: 920px; margin: 0 auto; padding: 20px 16px 48px; }
h1 { font-size: 1.5rem; margin: 0 0 12px; }
h2 { font-size: 1.15rem; margin: 28px 0 12px; border-bottom: 1px solid #ddd; padding-bottom: 6px; }
.muted { color: #555; line-height: 1.6; }
.rules { line-height: 1.8; }
.btn { padding: 8px 16px; cursor: pointer; border: 1px solid #ccc; background: #fafafa; border-radius: 8px; font-size: 14px; }
.btn.primary { background: #0b66c3; color: #fff; border-color: #0b66c3; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.timer-bar { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid #e0e0e0; padding: 10px 16px; margin: 0 -16px 16px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.timer-bar strong { font-size: 1.1rem; }
.timer-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.inline-form { display: inline; margin: 0; }
.btn.btn-danger { background: #fff; color: #c62828; border-color: #c62828; }
.btn.btn-danger:hover { background: #ffebee; }
.notice-abandon { background: #fff3e0; border: 1px solid #ffcc80; padding: 10px 12px; border-radius: 8px; color: #e65100; }
.practice-bar { background: #e8f5e9; border-bottom-color: #c8e6c9; }
.tag-practice { background: #c8e6c9; color: #1b5e20; }
.practice-actions { margin-top: 12px; }
.practice-feedback { margin-top: 12px; padding: 12px 14px; border-radius: 8px; font-size: 14px; line-height: 1.6; }
.practice-feedback p { margin: 4px 0; }
.practice-loading { background: #f5f5f5; border: 1px solid #e0e0e0; }
.practice-correct { background: #e8f5e9; border: 1px solid #a5d6a7; color: #1b5e20; }
.practice-wrong { background: #ffebee; border: 1px solid #ef9a9a; color: #b71c1c; }
.practice-next-hint { font-size: 13px; color: #2e7d32; }
.case-block { background: #fff; border: 1px solid #e0e0e0; border-radius: 10px; padding: 14px 16px; margin-bottom: 20px; }
.case-title { font-weight: bold; margin-bottom: 8px; color: #0b66c3; }
.case-bg { background: #fafafa; padding: 10px 12px; border-radius: 8px; font-size: 14px; line-height: 1.6; margin-bottom: 14px; white-space: normal; word-break: break-word; }
.q-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; }
.q-meta { font-size: 12px; color: #888; margin-bottom: 8px; }
.q-stem { margin-bottom: 12px; line-height: 1.65; }
.q-stem .q-inline-img, .case-bg .q-inline-img { max-width: 100%; height: auto; display: block; margin: 10px 0; border-radius: 6px; border: 1px solid #e0e0e0; }
.case-bg .q-inline-img { display: inline-block; max-width: 100%; vertical-align: middle; }
.img-placeholder-invalid { color: #c62828; font-size: 13px; }
.opts label { display: block; margin: 6px 0; cursor: pointer; padding: 4px 0; }
.opts input { margin-right: 8px; }
.score-big { font-size: 2rem; font-weight: bold; color: #0b66c3; }
.score-table { width: 100%; border-collapse: collapse; margin-top: 12px; background: #fff; }
.score-table th, .score-table td { border: 1px solid #eee; padding: 8px 10px; text-align: left; }
.review-wrong { border-left: 4px solid #c62828; padding-left: 12px; margin-bottom: 20px; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; background: #eee; margin-right: 6px; }
.err { color: #c62828; font-weight: bold; }
a { color: #0b66c3; }
