* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { margin: 0; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: #f4f6f9; color: #1f2430; font-size: 15px; line-height: 1.6; }
.topbar { background: linear-gradient(135deg,#0d47a1,#1565c0); color: #fff; padding: 22px 16px 26px; text-align: center; }
.topbar .brand { font-size: 12px; opacity: .85; letter-spacing: 1px; }
.topbar h1 { font-size: 21px; margin: 8px 0 6px; font-weight: 600; }
.topbar .sub { font-size: 12px; opacity: .9; margin: 0; }
.wrap { max-width: 720px; margin: 0 auto; padding: 16px; }
.loading { text-align: center; color: #888; padding: 60px 0; }

/* 分步导航 */
.stepper-head { position: sticky; top: 0; z-index: 20; background: #f4f6f9; padding: 12px 16px 10px; box-shadow: 0 2px 8px rgba(20,40,80,.05); }
.stepper-meta { display: flex; justify-content: space-between; font-size: 12px; color: #777; margin-bottom: 6px; }
.stepper-meta b { color: #1565c0; }
.bar { height: 6px; background: #dfe5ee; border-radius: 6px; overflow: hidden; }
.bar-fill { height: 100%; width: 0; background: linear-gradient(90deg,#1565c0,#42a5f5); border-radius: 6px; transition: width .3s ease; }
.dots { display: flex; gap: 4px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.dot { flex: 0 0 auto; width: 28px; height: 26px; border: none; border-radius: 5px; background: #e3e8ef; color: #9099a5; font-size: 12px; cursor: default; padding: 0; transition: background .2s; }
.dot.done { background: #cfe0f5; color: #0d47a1; cursor: pointer; }
.dot.cur { background: #1565c0; color: #fff; font-weight: 700; }
.step { display: none; }
.step.active { display: block; animation: fadein .25s ease; }
@keyframes fadein { from { opacity: .3; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.step-title { display: flex; align-items: center; gap: 10px; background: #fff; border-left: 4px solid #1565c0; border-radius: 8px; padding: 12px 14px; margin-bottom: 14px; box-shadow: 0 2px 10px rgba(20,40,80,.05); }
.step-title .step-num { flex: 0 0 28px; height: 28px; border-radius: 50%; background: #1565c0; color: #fff; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.step-title h2 { font-size: 16px; margin: 0; color: #0d47a1; }
.step-title p { font-size: 12px; color: #888; margin: 2px 0 0; }
.quiz-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff8e1; border: 1px solid #ffe082; border-radius: 8px; padding: 9px 12px; margin-bottom: 12px; }
.quiz-tip { font-size: 12px; color: #8a6d1f; line-height: 1.5; }
.quiz-timer { flex: 0 0 auto; font-family: monospace; font-size: 15px; font-weight: 700; color: #1565c0; background: #fff; border: 1px solid #d5dbe3; border-radius: 5px; padding: 2px 8px; }
.quiz-timer.over { color: #c62828; border-color: #ef9a9a; background: #ffebee; }

.card { background: #fff; border-radius: 10px; box-shadow: 0 2px 10px rgba(20,40,80,.06); margin-bottom: 16px; overflow: hidden; }
.card h2 { font-size: 16px; margin: 0; padding: 14px 16px; background: #eef4fb; color: #0d47a1; border-left: 4px solid #1565c0; }
.card .card-desc { font-size: 12px; color: #5b6875; line-height: 1.6; background: #f7fafd; padding: 10px 16px; border-bottom: 1px solid #e5ecf4; }
.card .body { padding: 14px 16px; }
.field { margin-bottom: 12px; }
.field > label { display: block; font-size: 13px; color: #444; margin-bottom: 5px; font-weight: 500; }
.field .req { color: #e53935; }
.field .opt, .q-title .opt { font-size: 11px; color: #a0a8b3; font-weight: 400; }
.field .f-hint { font-size: 12px; color: #8b95a3; line-height: 1.5; margin-top: 4px; }

/* 三份工作经历卡片 */
.work-repeat { margin-bottom: 4px; }
.work-block { border: 1px solid #dfe6ef; border-radius: 8px; margin-bottom: 14px; overflow: hidden; }
.work-head { font-size: 13px; font-weight: 600; color: #0d47a1; background: #eef4fb; padding: 8px 12px; border-bottom: 1px solid #dfe6ef; }
.work-body { padding: 12px; }
.cbline { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #333; cursor: pointer; }
.cbline input { width: 16px; height: 16px; accent-color: #1565c0; }
.field input[type=text], .field input[type=number], .field input[type=date], .field input[type=month], .field textarea {
  width: 100%; border: 1px solid #d5dbe3; border-radius: 6px; padding: 9px 10px; font-size: 14px; font-family: inherit; background: #fff; min-height: 40px;
}
.field input[type=date], .field input[type=month] { color: #333; }

.field textarea { min-height: 76px; resize: vertical; }
.field textarea.guided { min-height: 138px; line-height: 1.7; }
.field textarea::placeholder { color: #a8b0bb; }
.field input:focus, .field textarea:focus { outline: none; border-color: #1565c0; box-shadow: 0 0 0 2px rgba(21,101,192,.12); }
.radios { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.radios label { font-size: 14px; color: #333; display: inline-flex; align-items: center; gap: 4px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.q-item { padding: 14px 0; border-bottom: 1px dashed #e5e9ef; }
.q-item:last-child { border-bottom: none; }
.q-item textarea { width: 100%; box-sizing: border-box; min-height: 96px; border: 1px solid #d5dbe3; border-radius: 6px; padding: 9px 10px; font-size: 14px; font-family: inherit; line-height: 1.6; background: #fff; resize: vertical; }
.q-item textarea::placeholder { color: #a8b0bb; }
.q-item textarea:focus { outline: none; border-color: #1565c0; box-shadow: 0 0 0 2px rgba(21,101,192,.12); }
.q-title { font-size: 14px; font-weight: 500; color: #1f2430; margin-bottom: 8px; }
.q-title .qno { display: inline-block; background: #1565c0; color: #fff; border-radius: 4px; font-size: 11px; padding: 1px 6px; margin-right: 6px; vertical-align: 1px; }
.q-title .tag { font-size: 10px; color: #00897b; background: #e8f5f2; border-radius: 3px; padding: 1px 5px; margin-left: 6px; }
.q-sub { background: #f8fafc; border-radius: 6px; padding: 10px 12px; margin-top: 8px; }
.q-hint { font-size: 12px; color: #999; margin-top: 4px; }
.mod-desc { font-size: 12px; color: #888; padding: 0 16px 10px; margin-top: -4px; }
.nav-bar { display: flex; gap: 10px; position: sticky; bottom: 0; background: #fff; padding: 12px 16px; border-top: 1px solid #e5e9ef; box-shadow: 0 -2px 10px rgba(0,0,0,.06); }
.nav-bar .btn { flex: 1; width: auto; }
.btn-prev { flex: 0 0 34%; border: 1px solid #c9d6e5; border-radius: 8px; padding: 13px 4px; font-size: 15px; font-weight: 600; cursor: pointer; background: #fff; color: #1565c0; }
.btn { display: block; width: 100%; border: none; border-radius: 8px; padding: 13px; font-size: 16px; font-weight: 600; cursor: pointer; background: #1565c0; color: #fff; }
.btn:disabled { background: #9db8d8; cursor: not-allowed; }
.progress { font-size: 12px; color: #888; margin-bottom: 8px; text-align: center; }
.progress b { color: #1565c0; }
.err { color: #e53935; font-size: 13px; text-align: center; margin-bottom: 8px; }
.done { text-align: center; padding: 50px 20px; }
.done .ok { font-size: 48px; color: #2e7d32; }
.done h2 { font-size: 20px; margin: 14px 0 8px; }
.done .id { font-family: monospace; background: #eef4fb; color: #0d47a1; padding: 6px 12px; border-radius: 6px; display: inline-block; font-size: 15px; }
.done p { color: #666; font-size: 14px; }
.foot { text-align: center; color: #aaa; font-size: 11px; padding: 20px; }
