:root {
  --guide-bg:#f6f8fb; --guide-surface:#fff; --guide-sidebar:#f1f4f8;
  --guide-ink:#1f2937; --guide-muted:#64748b; --guide-line:#e2e8f0;
  --guide-brand:#3451b2; --guide-brand-soft:#e8edff;
}
html { scrollbar-gutter:stable; }
body { padding:24px; background:var(--guide-bg); color:var(--guide-ink); font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif; }
.page { min-height:0; }
.container,.home-container,.quiz-container { max-width:1240px; padding:0; margin:0 auto; background:#fff; border:1px solid var(--guide-line); border-radius:14px; box-shadow:0 20px 60px rgb(15 23 42 / 8%); overflow:hidden; }
.home-header { padding:52px 56px 46px; background:#111827; color:#f8fafc; text-align:left; }
.home-header .manual-label { margin:0 0 14px; color:#a5b4d8; font-size:.9rem; font-weight:500; letter-spacing:.04em; }
.home-header h1 { margin:0 0 18px; color:#f8fafc; font-size:clamp(2rem,4vw,3rem); font-weight:700; letter-spacing:-.025em; line-height:1.2; }
.home-header .subtitle,.home-header .description { margin:0; color:#cbd5e1; font-size:.95rem; line-height:1.8; }
.edition { margin-top:12px; color:#94a3b8; font-size:.82rem; }
.stages-grid,.stage-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:0; padding:36px 48px 48px; }
.stage-card { min-width:0; min-height:150px; padding:22px; border:1px solid var(--guide-line); border-radius:9px; background:#fff; text-align:left; }
.stage-card:hover { background:#f8fbff; border-color:#93c5fd; box-shadow:0 8px 24px rgb(15 23 42 / 6%); }
.stage-number,.stage-card-number { display:inline-block; padding:3px 8px; margin-bottom:10px; background:var(--guide-brand-soft); color:var(--guide-brand); border-radius:5px; font-size:.75rem; font-weight:700; letter-spacing:0; }
.stage-title,.stage-card-title { color:#172554; font-size:1.1rem; }
.stage-desc,.stage-card-chapters { color:var(--guide-muted); line-height:1.7; }
.stage-meta,.stage-card-count { color:var(--guide-brand); }
.home-footer,.quiz-footer { margin:0; padding:24px 32px; border-top:1px solid var(--guide-line); text-align:center; color:var(--guide-muted); font-size:.9rem; }
.home-footer p { font-size:inherit; color:inherit; }
.quiz-container,#quiz-page > .container { max-width:1040px; padding:32px 40px 0; }
.quiz-top-bar,.quiz-header { gap:16px; flex-wrap:wrap; padding:0; margin-bottom:24px; border-bottom:0; }
.quiz-stats,.quiz-info { flex-wrap:wrap; color:var(--guide-muted); }
.question-card { background:#fff; border:1px solid var(--guide-line); border-radius:9px; padding:28px; }
.question-text { padding:12px 16px; border-left:4px solid var(--guide-brand); border-radius:5px; background:linear-gradient(90deg,var(--guide-brand-soft),transparent); color:#172554; line-height:1.85; overflow-wrap:anywhere; }
.tag { color:var(--guide-muted); background:var(--guide-sidebar); }
button { font-family:inherit; }
.btn-back { border-color:var(--guide-line); background:#f8fafc; color:var(--guide-brand); border-radius:7px; }
.btn-back:hover { border-color:var(--guide-brand); color:var(--guide-brand); background:var(--guide-brand-soft); }
.btn-submit,.btn-next,.btn-confirm,.btn-home { background:var(--guide-brand); border-radius:7px; color:#fff; }
.progress-bar { background:var(--guide-brand); }
.option-item,.option-btn { border-color:var(--guide-line); border-radius:8px; }
.option-item:hover:not(.disabled),.option-btn:hover:not(.disabled) { border-color:#93c5fd; background:#f8fbff; }
.option-item.selected:not(.correct):not(.wrong),.option-btn.selected:not(.correct):not(.wrong) { border-color:var(--guide-brand); background:var(--guide-brand-soft); }
.option-item.selected:not(.correct):not(.wrong) .option-marker,.option-btn.selected:not(.correct):not(.wrong) .option-label,.option-btn.selected:not(.correct):not(.wrong) .option-checkbox { border-color:var(--guide-brand); background:var(--guide-brand); color:#fff; }
.stage-card:focus-visible,button:focus-visible { outline:3px solid #93c5fd; outline-offset:3px; }
@media(max-width:700px) {
 body { padding:10px; }
 .home-header { padding:36px 24px; }
 .stages-grid,.stage-grid { grid-template-columns:1fr; padding:24px 16px 32px; }
 .quiz-container,#quiz-page > .container { padding:24px 16px 0; }
 .question-card { padding:18px; }
 .quiz-stats { gap:8px; font-size:.8rem; }
}
