﻿:root {
  --blue: #2f82ca;
  --blue-dark: #1e6faf;
  --orange: #ee7c2f;
  --paper: #eef9e4;
  --panel: #f7fcef;
  --dock: #5f6475;
  --line: #cbdcc4;
  --text: #1e2c35;
  --muted: #63717a;
  --good: #1f8d58;
  --bad: #c24646;
  font-family: "Microsoft YaHei", "SimSun", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; min-width: 980px; color: var(--text); background: #fff; }
button, input { font: inherit; }
button { cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.primary-btn, .orange-btn, .line-btn, .tool-btn { height: 34px; border: 1px solid transparent; border-radius: 4px; color: #fff; background: var(--blue); }
.primary-btn:hover { background: var(--blue-dark); }
.orange-btn { background: #eb6f22; }
.orange-btn:hover { background: #d76219; }
.line-btn, .tool-btn { color: #815529; background: #fff; border-color: #d7b692; }
.line-btn:hover, .tool-btn:hover { background: #fff4e8; }
.login-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; background: #fff; overflow: hidden; }
.activation-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, #ffffff 0%, #eef8e5 100%); }
.activation-card { width: 430px; border: 8px solid #2a8fd1; border-radius: 4px; background: #fff; padding: 28px 34px 26px; box-shadow: 0 14px 35px rgba(42, 112, 166, .18); }
.activation-brand { color: #4b829d; font-size: 18px; text-align: center; margin-bottom: 18px; }
.activation-card h1 { margin: 0; text-align: center; font-size: 30px; color: #2b74ad; font-weight: 500; }
.activation-subtitle { margin: 12px 0 22px; text-align: center; color: #697985; font-size: 14px; }
.activation-warning { margin: 0 0 14px; padding: 8px 10px; border: 1px solid #edc176; border-radius: 4px; background: #fff8ea; color: #9b5a17; font-size: 13px; }
.activation-label { display: block; margin-bottom: 8px; color: #34444e; font-size: 14px; }
.activation-input { width: 100%; height: 38px; border: 1px solid #9db1bd; border-radius: 4px; padding: 6px 10px; outline: none; text-align: center; letter-spacing: 1px; }
.activation-input:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(47, 130, 202, .12); }
.activation-submit { width: 100%; height: 38px; margin-top: 16px; }
.activation-help { margin-top: 16px; color: #8a6a45; font-size: 13px; line-height: 1.7; text-align: center; }
.license-line { margin-top: 16px; color: #7a684e; font-size: 13px; }
.license-link { border: 0; padding: 0; color: var(--blue-dark); background: transparent; text-decoration: underline; }
.login-title { margin-top: 18px; text-align: center; color: #4b829d; }
.login-title .subject { font-size: 24px; line-height: 1.5; }
.seat-number { margin-top: 24px; font-size: 42px; color: #2b74ad; }
.seat-number strong { margin-left: 26px; color: #c9682f; font-family: Georgia, "Times New Roman", serif; letter-spacing: 4px; font-weight: 500; }
.login-stage { position: relative; width: 700px; height: 340px; margin-top: 4px; display: flex; justify-content: center; align-items: center; }
.login-wing { position: absolute; top: 40px; width: 300px; height: 220px; background: linear-gradient(90deg, #2084cd, #2ea1e5); box-shadow: inset 0 0 28px rgba(0, 78, 145, .18); }
.login-wing.left { left: 0; transform: skewY(5deg); }
.login-wing.right { right: 0; transform: skewY(-5deg); }
.login-box { position: relative; z-index: 1; width: 430px; min-height: 250px; border: 8px solid #2a8fd1; border-radius: 4px; background: #fff; padding: 18px 34px 22px; box-shadow: 0 2px 12px rgba(34, 74, 105, .16); }
.login-box-title { color: #7093a8; font-size: 17px; margin: 0 0 24px; }
.login-box-title span { margin-left: 12px; color: #aaa; font-family: Georgia, "Times New Roman", serif; letter-spacing: 4px; }
.login-row { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 10px; margin-bottom: 28px; font-size: 14px; }
.login-row input { height: 32px; border: 1px solid #909090; padding: 4px 8px; outline: none; }
.login-row input:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(47, 130, 202, .12); }
.login-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; width: 280px; margin: 14px auto 0; }
.login-tip { width: 430px; margin-top: -4px; color: #a66d2b; font-size: 13px; display: flex; justify-content: space-between; }
.paper-switch { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.paper-switch button { min-width: 122px; padding: 0 14px; }
.paper-switch button:disabled { cursor: default; opacity: .95; }
.login-paper-switch { width: 430px; margin-top: 14px; }
.error-text { min-height: 20px; margin: 10px 0 0; color: #c43d3d; font-size: 13px; text-align: center; }
.confirm-stage { height: 350px; align-items: center; }
.confirm-stage .login-wing { top: 44px; height: 226px; }
.confirm-box { position: relative; z-index: 1; width: 430px; min-height: 250px; border: 8px solid #2a8fd1; border-radius: 4px; background: #fff; padding: 12px 20px 18px; box-shadow: 0 2px 12px rgba(34, 74, 105, .16); }
.confirm-warning { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: #b27122; font-size: 13px; font-weight: 700; white-space: nowrap; }
.confirm-bulb { width: 24px; height: 24px; flex: 0 0 auto; border: 3px solid #e0a34a; border-radius: 50%; position: relative; }
.confirm-bulb:before { content: ""; position: absolute; left: 6px; bottom: -8px; width: 8px; height: 8px; border-radius: 0 0 3px 3px; background: #e0a34a; }
.confirm-bulb:after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #ffe6a9; }
.confirm-body { display: grid; grid-template-columns: 104px 1fr; gap: 24px; align-items: center; }
.confirm-avatar { width: 100px; height: 132px; background: #f0f0f0; position: relative; overflow: hidden; }
.confirm-avatar:before { content: ""; position: absolute; width: 44px; height: 44px; border-radius: 50%; background: #d9d9d9; left: 28px; top: 30px; }
.confirm-avatar:after { content: ""; position: absolute; width: 88px; height: 72px; border-radius: 50% 50% 0 0; background: #d9d9d9; left: 6px; bottom: -18px; }
.confirm-info { margin: 0; color: #244e64; font-size: 15px; line-height: 1.72; font-weight: 700; }
.confirm-info div { display: grid; grid-template-columns: 86px 1fr; align-items: baseline; }
.confirm-info dt { color: #244e64; text-align: right; }
.confirm-info dd { margin: 0; color: #274f64; word-break: break-all; }
.confirm-actions { display: grid; grid-template-columns: 138px 138px; justify-content: center; gap: 24px; margin-top: -6px; }
.confirm-actions button { height: 34px; font-size: 15px; }
.confirm-business { width: 430px; margin-top: 18px; text-align: center; color: #b27122; font-size: 14px; font-weight: 700; }
.exam-shell { height: 100vh; min-height: 650px; display: grid; grid-template-rows: 76px 1fr 88px; grid-template-columns: 190px 1fr; background: var(--paper); overflow: hidden; }
.exam-header { grid-column: 1 / 3; display: grid; grid-template-columns: 190px 1fr 310px; align-items: center; background: var(--blue); color: #fff; border-top: 4px solid #d36b20; }
.candidate-card { height: 100%; display: grid; grid-template-columns: 56px 1fr; align-items: center; padding: 6px 8px; gap: 8px; }
.avatar { width: 48px; height: 54px; border-radius: 3px; background: #f3f3f3; position: relative; overflow: hidden; }
.avatar:before { content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%; background: #d8d8d8; left: 13px; top: 7px; }
.avatar:after { content: ""; position: absolute; width: 42px; height: 34px; border-radius: 50% 50% 0 0; background: #d8d8d8; left: 3px; bottom: -10px; }
.candidate-info { min-width: 0; font-size: 14px; line-height: 1.6; }
.candidate-info div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.exam-title { font-size: 17px; line-height: 1.45; font-weight: 700; }
.header-side { display: grid; grid-template-columns: 1fr 120px; align-items: center; gap: 14px; padding-right: 18px; }
.machine { font-size: 15px; line-height: 1.65; white-space: nowrap; }
.submit-top { width: 120px; height: 38px; border-radius: 5px; color: #fff; background: var(--orange); border: 1px solid #cc6420; font-size: 16px; }
.submit-top:hover { background: #dc6920; }
.sidebar { grid-row: 2 / 4; background: #f0f9e8; border-right: 1px solid #d6e3cf; overflow-y: auto; padding: 14px 8px 96px; }
.progress-line { display: grid; grid-template-columns: 62px 1fr; gap: 8px; align-items: center; margin-bottom: 14px; font-size: 13px; }
.progress-box { height: 18px; position: relative; border: 1px solid #c8d8c1; background: #eef8e6; }
.progress-fill { height: 100%; width: 0; background: #a5d796; transition: width .2s ease; }
.progress-box span { position: absolute; inset: 0; text-align: center; line-height: 17px; font-size: 12px; }
.section-title { margin: 12px 0 8px; color: #2770a8; font-size: 14px; }
.section-title:before { content: "−"; color: #777; margin-right: 7px; }
.number-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px 7px; }
.number-btn { height: 27px; border: 1px solid #9ab0b7; border-radius: 2px; background: #fff; color: #455057; font-size: 12px; position: relative; }
.number-btn.answered { background: #d8effc; border-color: #7fbedf; }
.number-btn.current { background: var(--orange); color: #fff; border-color: #d0641d; }
.number-btn.marked:after { content: ""; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #d24646; right: 2px; top: 2px; }
.main-area { grid-column: 2; grid-row: 2; display: flex; flex-direction: column; overflow: hidden; }
.question-type { height: 36px; display: flex; align-items: center; padding: 0 20px; border-bottom: 1px solid #d6e4cf; font-size: 14px; background: rgba(255,255,255,.28); }
.question-card { flex: 1; padding: 18px 44px 24px 0; overflow-y: auto; }
.question-head { display: grid; grid-template-columns: 36px 1fr; gap: 24px; align-items: start; }
.question-no { width: 36px; height: 28px; line-height: 28px; text-align: center; background: #d4ebff; color: #164f7f; font-size: 14px; }
.question-text { margin: 0; font-size: 19px; line-height: 1.65; font-weight: 700; }
.options { margin: 18px 0 0 60px; width: min(720px, calc(100% - 80px)); }
.option { min-height: 38px; display: grid; grid-template-columns: 34px 1fr; align-items: start; padding: 6px 10px; margin: 6px 0; border: 1px solid transparent; border-radius: 4px; font-size: 17px; line-height: 1.5; position: relative; }
.option:hover { background: rgba(255,255,255,.48); border-color: #c6d8c4; }
.option.selected { background: #fff8ea; border-color: #edc176; }
.option-key { font-weight: 700; }
.dock { grid-column: 2; grid-row: 3; display: grid; grid-template-rows: 38px 50px; background: #f7fbef; }
.answer-strip { height: 38px; display: grid; grid-template-columns: 108px 340px 1fr; align-items: center; color: #fff; background: var(--dock); }
.answer-label { display: flex; align-items: center; gap: 8px; padding-left: 14px; font-size: 15px; }
.answer-icon { width: 23px; height: 23px; border-radius: 2px; background: #fff; position: relative; }
.answer-icon:before { content: ""; position: absolute; width: 16px; height: 4px; border-radius: 2px; background: var(--dock); transform: rotate(35deg); left: 4px; top: 11px; }
.answer-choices { display: flex; align-items: center; gap: 20px; }
.dock-choice { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.dock-choice input { accent-color: #f1f1f1; }
.candidate-inline { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.nav-row { display: grid; grid-template-columns: 42px 120px 120px 1fr 84px 90px 52px; gap: 16px; align-items: center; padding: 8px 28px 8px 0; }
.fold-tab { justify-self: start; width: 28px; height: 42px; border: 0; background: var(--blue); color: #fff; font-size: 28px; line-height: 1; }
.nav-btn { height: 39px; border: 1px solid #aabcc2; border-radius: 3px; background: #fff; color: #61717a; font-size: 16px; }
.nav-btn.primary { background: var(--blue); border-color: var(--blue-dark); color: #fff; }
.tool-btn { height: 34px; font-size: 14px; }
.gear-btn { width: 48px; height: 40px; border: 0; border-radius: 6px; background: var(--blue); color: #fff; font-size: 21px; line-height: 40px; }
.gear-btn:before { content: "⚙"; }
.modal-backdrop { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; background: rgba(18,31,42,.45); }
.modal { width: min(520px, calc(100vw - 40px)); border-radius: 6px; background: #fff; box-shadow: 0 16px 45px rgba(0,0,0,.22); overflow: hidden; }
.modal-title { height: 44px; display: flex; align-items: center; padding: 0 18px; background: var(--blue); color: #fff; font-size: 16px; font-weight: 700; }
.modal-body { padding: 18px; font-size: 14px; line-height: 1.8; }
.modal-actions { display: flex; justify-content: flex-end; gap: 12px; padding: 0 18px 18px; }
.modal-actions button { min-width: 84px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.stat { border: 1px solid #d7e3d2; background: #f7fbf3; border-radius: 4px; padding: 10px; text-align: center; }
.stat strong { display: block; font-size: 22px; color: var(--blue-dark); }
.calc-display { width: 100%; height: 38px; border: 1px solid #aebfc8; border-radius: 4px; padding: 4px 8px; text-align: right; font-size: 18px; margin-bottom: 10px; }
.calc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.calc-grid button { height: 36px; border: 1px solid #c8d7df; border-radius: 4px; background: #f7fbfe; }
.calc-note { margin: 0 0 12px; color: #596873; line-height: 1.7; word-break: break-all; }
.download-btn { display: inline-flex; align-items: center; justify-content: center; height: 34px; min-width: 130px; margin: 0 0 12px; padding: 0 14px; border-radius: 4px; color: #fff; background: var(--blue); text-decoration: none; }
.download-btn:hover { background: var(--blue-dark); }
.settings-row { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid #eef2ea; }
.settings-row:last-child { border-bottom: 0; }
.file-input { width: 100%; }
.result-page { min-height: 100vh; background: #eef8e5; }
.result-header { height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 34px; background: var(--blue); color: #fff; }
.result-header h1 { margin: 0; font-size: 20px; }
.result-main { width: min(1080px, calc(100% - 48px)); margin: 24px auto; }
.result-panel { background: #fff; border: 1px solid #d8e6d2; border-radius: 6px; padding: 22px; }
.score-line { display: grid; grid-template-columns: 190px 1fr; align-items: center; gap: 24px; }
.score-number { height: 140px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 6px; color: #fff; background: var(--blue); }
.score-number strong { font-size: 42px; line-height: 1; }
.score-number span { margin-top: 8px; font-size: 14px; }
.result-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.result-paper-switch { display: inline-flex; }
.review-list { margin-top: 18px; display: grid; gap: 12px; }
.review-item { border: 1px solid #d9e4d5; border-radius: 5px; padding: 14px; background: #fbfef8; }
.review-title { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-weight: 700; }
.tag { display: inline-flex; align-items: center; justify-content: center; min-width: 54px; height: 24px; border-radius: 4px; font-size: 12px; color: #fff; background: var(--bad); }
.tag.good { background: var(--good); }
.answer-line { color: #4a5a63; font-size: 14px; line-height: 1.7; }
.analysis { margin-top: 8px; padding: 10px; background: #f4f8ef; border-left: 3px solid var(--blue); color: #31414a; line-height: 1.7; }
@media (max-width: 1120px) {
  html, body { min-width: 900px; }
  .exam-shell { grid-template-columns: 176px 1fr; }
  .exam-header { grid-template-columns: 176px 1fr 290px; }
  .sidebar { padding-left: 6px; padding-right: 6px; }
  .nav-row { grid-template-columns: 34px 112px 112px 1fr 78px 84px 48px; gap: 10px; }
  .question-card { padding-right: 20px; }
}
