:root {
    color-scheme: light;
    --navy: #12304a;
    --blue: #1769aa;
    --light-blue: #edf6fc;
    --line: #d9e3ea;
    --text: #20313f;
    --muted: #6c7c88;
    --warning: #fff5df;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    background: #f3f7f9;
    color: var(--text);
    font-family: "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
}

.page-shell { width: min(100% - 32px, 620px); margin: 0 auto; padding: 28px 0 72px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 24px rgba(26, 57, 76, .06); }
.hero-card { padding: 28px 24px 24px; border-top: 5px solid var(--blue); }
.form-card, .training-card { margin-top: 16px; padding: 24px; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 10px; background: var(--navy); color: #fff; font-size: 15px; font-weight: 700; letter-spacing: 1px; }
.eyebrow { margin: 16px 0 8px; color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; }
h1 { margin: 0; color: var(--navy); font-size: clamp(25px, 7vw, 34px); line-height: 1.35; }
h2 { margin: 0; color: var(--navy); font-size: 20px; }
.subtitle, .hint { color: var(--muted); }
.subtitle { margin: 6px 0 0; font-size: 14px; }
.hint { margin: 8px 0 20px; font-size: 13px; line-height: 1.6; }
label { display: block; margin: 16px 0 7px; color: var(--navy); font-size: 14px; font-weight: 700; }
input, select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #cbd8e0; border-radius: 8px; background: #fff; color: var(--text); font: inherit; font-size: 16px; }
input:focus, select:focus { outline: 3px solid rgba(23, 105, 170, .15); border-color: var(--blue); }
.primary-button, .secondary-button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; margin-top: 24px; border-radius: 8px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.primary-button { border: 0; background: var(--blue); color: #fff; }
.primary-button:hover { background: #125889; }
.primary-button.is-disabled { background: #aebbc3; cursor: not-allowed; pointer-events: none; }
.complete-message { color: #27734a; font-weight: 700; }
.secondary-button { border: 1px solid #b9cbd6; color: var(--navy); background: #fff; }
.alert { padding: 11px 12px; border-radius: 8px; background: #fff0f0; color: #a33a3a; font-size: 14px; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 22px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--line); }
.profile-grid div { display: flex; flex-direction: column; gap: 4px; padding: 12px; background: #fff; }
.profile-grid span { color: var(--muted); font-size: 12px; }
.profile-grid strong { overflow-wrap: anywhere; font-size: 14px; }
.course-content { margin-top: 22px; }
.training-video { display: block; width: 100%; margin-top: 12px; border-radius: 9px; background: #102331; }
.notice { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding: 18px 14px; border: 1px solid #f0d9a4; border-radius: 9px; background: var(--warning); color: #6d501d; }
.notice p { margin: 0; line-height: 1.6; font-size: 14px; }
.notice-icon { display: grid; flex: 0 0 28px; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #d99e2b; color: #fff; font-weight: 700; }
.question-block { margin: 20px 0 0; padding: 16px 14px 12px; border: 1px solid var(--line); border-radius: 9px; }
.question-block legend { max-width: 100%; padding: 0 4px; color: var(--navy); font-size: 15px; font-weight: 700; line-height: 1.6; }
.option-label { display: flex; align-items: flex-start; gap: 9px; margin: 12px 0 4px; color: var(--text); font-size: 14px; font-weight: 400; line-height: 1.5; }
.option-label input { width: 18px; min-height: 18px; flex: 0 0 18px; margin: 1px 0 0; accent-color: var(--blue); }
.result-panel { margin-top: 22px; padding: 18px 14px; border-radius: 9px; line-height: 1.6; }
.result-panel h2, .result-panel h3 { margin: 0 0 8px; }
.result-panel h3 { font-size: 15px; }
.result-panel p { margin: 6px 0; font-size: 14px; }
.result-success { border: 1px solid #b8ddc7; background: #effaf3; color: #236b41; }
.result-failure { border: 1px solid #f0c1c1; background: #fff4f4; color: #8f3030; }
.commitment-box { margin-top: 22px; padding: 16px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--light-blue); }
.commitment-box h2 { margin-bottom: 8px; font-size: 17px; }
.commitment-box p { margin: 0; color: var(--text); font-size: 14px; line-height: 1.8; }
.commitment-check { display: flex; align-items: flex-start; gap: 9px; margin: 20px 0 0; color: var(--navy); font-size: 14px; font-weight: 700; line-height: 1.5; }
.commitment-check input { width: 18px; min-height: 18px; flex: 0 0 18px; margin: 1px 0 0; accent-color: var(--blue); }
.signature-heading { margin-top: 24px; }
.signature-canvas { display: block; width: 100%; height: 240px; margin-top: 12px; border: 2px solid #b9cbd6; border-radius: 9px; background: #fff; touch-action: none; }
.signature-message { min-height: 22px; margin-top: 10px; color: #a33a3a; font-size: 13px; line-height: 1.5; }
.signature-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.signature-actions .primary-button, .signature-actions .secondary-button { margin-top: 8px; }
.passed-banner { margin-top: 22px; padding: 16px; border: 1px solid #a9d4b9; border-radius: 9px; background: #eaf8ef; color: #237343; font-size: 24px; font-weight: 700; text-align: center; }
.result-grid { margin-top: 16px; }
footer { position: fixed; right: 0; bottom: 0; left: 0; padding: 13px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .94); color: var(--muted); font-size: 12px; text-align: center; }

@media (max-width: 420px) {
    .page-shell { width: min(100% - 20px, 620px); padding-top: 16px; }
    .hero-card, .form-card, .training-card { padding: 20px 16px; }
}
