@charset "utf-8";
/*
 * 全国会计专业技术初级资格考试模拟答题系统 · v2.0
 * 视觉按财政部 /test202625/ 官方页面（style.css + 操作说明截图）1:1 还原
 */

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 1px;
  padding: 0;
  font-family: "宋体", SimSun, serif;
  background-color: #ddebf6;
  color: #000;
  font-size: 14px;
}
.hidden { display: none !important; }
button { font-family: inherit; cursor: pointer; }
input[type="text"] { font-family: "宋体", SimSun, serif; }

/* ================= 屏幕容器 ================= */
.screen { min-height: 100vh; }
.screen-exam { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }

/* ================= 第 0 屏：入口页 ================= */
.screen-entry { background: #fff; position: relative; }
.entry-box {
  width: 1024px; max-width: 100%; height: 768px; margin: 0 auto;
  background: url("official/end-bg.jpg") center center / cover no-repeat;
  display: flex; flex-direction: column; align-items: center;
}
.entry-logo { margin-top: 90px; height: 90px; display: flex; align-items: center; justify-content: center; }
.entry-logo img { max-width: 90%; height: auto; }
.entry-button {
  width: 150px; height: 50px; margin-top: 20px; line-height: 50px;
  background: #fba000; border: none; color: #fff; font-family: "微软雅黑", "黑体";
  font-size: 18px; font-weight: bold; text-align: center;
}
.entry-button:hover { background: #f3a51a; text-decoration: underline; }
.entry-spacer { flex: 1; }
.entry-setting {
  width: 1024px; max-width: 100%; margin: 0 auto; padding: 6px 10px 16px;
  font-size: 12px; color: #666; font-family: "微软雅黑", "宋体";
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  background: #fff;
}
.entry-setting label { cursor: pointer; }
.entry-disclaimer { color: #999; }

/* ================= 第 1 屏：登录页 ================= */
.screen-login {
  background: url("official/login-bg.jpg") repeat-x top, #f5f8fd;
  text-align: center; padding-bottom: 40px;
}
.login-spacer { height: 200px; }
.login-box {
  width: 526px; height: 291px; margin: 0 auto;
  background: url("official/login-box.png") no-repeat center center;
  position: relative; text-align: left;
}
.login-inner { width: 90%; height: 100%; margin: 0 auto; display: flex; }
.login-illust { width: 37%; flex: none; }
.login-fields { width: 63%; padding-top: 60px; padding-left: 4px; }
.field-row { height: 30px; display: flex; align-items: center; font-size: 14px; }
.field-row label { width: 29%; flex: none; }
.field-row input[type="text"] { width: 71%; height: 22px; border: 1px solid #9bb7d4; background: #fff; padding: 1px 4px; }
.field-buttons { height: 60px; align-items: flex-start; padding-top: 4px; }
.img-btn { width: 72px; height: 25px; border: none; padding: 0; margin-right: 4px; background-color: transparent; background-repeat: no-repeat; background-size: 72px 25px; }
.img-btn-login { background-image: url("official/btn-login.gif"); }
.img-btn-reset { background-image: url("official/btn-reset.gif"); }
.login-note { width: 526px; max-width: 100%; margin: 12px auto 0; text-align: left; font-size: 14px; line-height: 1.5; }
.login-error { width: 526px; max-width: 100%; margin: 6px auto 0; text-align: left; color: #e00; font-size: 13px; min-height: 18px; }

/* ================= 第 2 屏：等待界面 ================= */
.screen-wait { background: #fff; }
.wait-layout { width: 1024px; max-width: 100%; margin: 0 auto; position: relative; }
.wait-info { height: 130px; display: flex; align-items: center; gap: 10px; padding-left: 20px; }
.wait-info img { border: 1px solid #fff; }
.wait-info-text { color: #0064aa; font-size: 18px; font-weight: bolder; line-height: 30px; font-family: "微软雅黑", "宋体"; }
.wait-clock { text-align: right; padding-right: 90px; font-size: 16px; font-weight: bold; color: #333; margin-bottom: 8px; }
.wait-clock span { color: #e00; }
.wait-title-img { width: 598px; height: 31px; margin: 30px auto 10px; background: url("official/wait-title.png") no-repeat center center; }
.wait-panel { width: 939px; max-width: 100%; margin: 0 auto; border: 1px solid #b9d6ee; background: #f7fbff; }
.wait-content { width: 100%; height: 529px; overflow: auto; padding: 16px 24px; text-align: left; color: #000; background: #fff; }
.notice-title { text-align: center; font-size: 18pt; font-family: "华文中宋", "宋体", serif; color: #000; font-weight: bold; line-height: 1.6; margin-bottom: 14px; }
.wait-content p { font-size: 12pt; line-height: 1.8; margin: 8px 0; }
.wait-content p b { font-weight: bold; }
.guide-images img { display: block; width: 800px; max-width: 100%; margin: 0 auto 8px; }
.wait-tabs { padding: 8px 0 10px; text-align: center; background: #fff; border-top: 1px solid #b9d6ee; }
.wait-tab, .btn-next-big, .wait-skip {
  width: 141px; height: 43px; margin: 0 6px; border: none;
  background: url("official/btn-next.png") no-repeat center center / 141px 43px;
  font-family: "微软雅黑", "宋体"; font-size: 16px; line-height: 43px; font-weight: bold; color: #fff;
}
.wait-tab:disabled { opacity: .65; cursor: default; }
.wait-skip { font-size: 13px; background-color: #fca32f; border-radius: 4px; width: 150px; }

/* ================= 第 3 屏：答题界面 ================= */
.exam-header {
  height: 101px; flex: none; width: 100%; position: relative;
  display: flex; align-items: flex-start; justify-content: space-between;
  background: url("official/header-bg.png") repeat-x top, #1a6fb5;
  color: #fff; font-family: "微软雅黑", "宋体"; font-size: 16px; font-weight: bold; line-height: 25px;
  overflow: hidden;
}
.info-nav { float: none; flex: none; width: 250px; height: 100px; display: flex; align-items: center; gap: 4px; margin-left: 10px; margin-top: 2px; }
.info-nav img { border: 1px solid #fff; flex: none; }
.info-text { font-size: 14px; line-height: 24px; white-space: nowrap; }
.header-center { flex: 1; min-width: 0; text-align: center; font-size: 16px; font-weight: bolder; line-height: 26px; padding-top: 22px; }
.header-right { float: none; flex: none; width: 300px; margin-right: 20px; text-align: right; }
.header-row { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 15px; }
.time-label { font-size: 16px; font-weight: bolder; color: #ffff00; white-space: nowrap; }
.btn-submit {
  width: 81px; height: 31px; border: 1px solid #cc6600;
  background: url("official/btn-submit.gif") repeat-x center, #ffb44a;
  color: #000; font-size: 13px; line-height: 29px; text-align: center; margin-right: 8px;
}
.subject-status { margin-right: 0; font-size: 14px; font-family: "微软雅黑", "宋体"; line-height: 20px; margin-top: 2px; }
.st-doing { color: #0f5b2b; }
.st-idle { color: #ff0; }
.st-done { color: #fff; }

.exam-body { flex: 1; display: flex; min-height: 0; position: relative; }
.nav-panel {
  width: 20%; min-width: 190px; max-width: 340px; flex: none;
  background: #eaf3fc; border-right: 1px solid #9fc4e6; overflow-y: auto;
  display: flex; flex-direction: column; padding: 4px 6px 8px 6px;
}
.nav-groups { flex: 1; }
.nav-group { margin-bottom: 4px; }
.nav-group-head {
  height: 26px; line-height: 26px; text-align: center; font-weight: bold; font-size: 14px; color: #0d2f55;
  background: linear-gradient(#7ec0f0, #3d8dd2); border: 1px solid #2b77bb; position: relative; cursor: pointer;
}
.nav-group-head .fold { position: absolute; right: 6px; top: 0; font-size: 12px; font-weight: normal; color: #0d3b6b; }
.nav-nums { display: flex; flex-wrap: wrap; gap: 3px; padding: 4px 2px; }
.nav-num {
  min-width: 30px; height: 24px; padding: 0 3px; line-height: 22px; text-align: center;
  background: #eaf4ff; border: 1px solid #8fbde9; color: #0b57a4; font-size: 13px;
  text-decoration: underline; cursor: pointer; font-family: "宋体", serif;
}
.nav-num:hover { background: #d3e8ff; }
.nav-num.current { background: #fff3c4; border-color: #e0a400; font-weight: bold; }
.nav-num.answered { background: #dcefff; }
.nav-num .mark { color: #f00; font-weight: bold; text-decoration: none; margin-left: 1px; }
.nav-num.flagged { background: #ffe9c9; border-color: #e8a04b; }
.nav-notes { color: #e00; font-size: 12px; line-height: 1.7; margin: 8px 2px 10px; }
.calc-btn {
  align-self: flex-start; margin: 0 auto 4px; padding: 4px 12px 4px 8px;
  border: 1px solid #b9b9b9; border-radius: 4px; background: linear-gradient(#fff, #e6e6e6);
  font-size: 14px; font-weight: bold; color: #222; display: flex; align-items: center; gap: 5px;
}
.calc-ico { display: inline-block; width: 18px; height: 18px; line-height: 16px; text-align: center; background: #f5d35a; color: #333; font-size: 15px; border-radius: 2px; }
.nav-toggle { width: 12px; flex: none; border: none; padding: 0; background: #3d8dd2; color: #fff; font-size: 12px; }
.nav-toggle:hover { background: #2b77bb; }
.nav-show { width: 24px; flex: none; border: none; padding: 0; background: #3d8dd2; color: #fff; writing-mode: vertical-rl; font-size: 12px; }

.question-panel { flex: 1; min-width: 0; background: #ddebf6; overflow-y: auto; padding: 0 0 10px; }
.mark-bar { height: 30px; display: flex; align-items: flex-end; gap: 10px; padding: 0 10px; border-bottom: 1px solid #9fc4e6; }
.mark-tab {
  display: inline-block; padding: 4px 26px; background: linear-gradient(#7ec0f0, #3d8dd2);
  border: 1px solid #2b77bb; border-bottom: none; border-radius: 6px 6px 0 0;
  color: #0d2f55; font-weight: bold; font-size: 14px;
}
.text-mark-tools { display: flex; gap: 6px; align-items: center; padding-bottom: 3px; }
.text-mark-tools button { font-size: 12px; padding: 2px 8px; border: 1px solid #8fbde9; background: #fff; color: #0b57a4; }
.indef-nav { margin-left: auto; padding-bottom: 3px; font-size: 12px; color: #0b57a4; }
.indef-nav button { margin-left: 4px; font-size: 12px; padding: 1px 8px; border: 1px solid #8fbde9; background: #fff; color: #0b57a4; }
.indef-nav button.active { background: #3d8dd2; color: #fff; }
.q-type-desc { background: #c9e0f5; border-bottom: 1px solid #9fc4e6; padding: 6px 10px; font-family: "黑体", "宋体"; font-size: 12pt; line-height: 1.5; }
.question-area { padding: 8px 12px 20px; }
.q-no { font-weight: bold; font-size: 15px; line-height: 30px; margin: 2px 0 6px; }
.q-stem { font-family: "宋体", serif; line-height: 1.6; font-size: 14px; margin-bottom: 10px; }
.q-stem p { margin: 2px 0; }
.q-options { width: 100%; border-collapse: collapse; }
.q-options td { height: 30px; vertical-align: top; font-size: 14px; line-height: 1.5; }
.q-options td.opt-btn { width: 40px; white-space: nowrap; }
.q-options td.opt-letter { width: 26px; font-weight: bold; font-family: "宋体", serif; }
.q-options input[type="radio"], .q-options input[type="checkbox"] { margin: 2px 0 0; accent-color: #1f63ac; pointer-events: none; }
.q-option-row { cursor: pointer; }
.q-option-row:hover td { background: #d3e7fb; }
.q-option-row.selected td { background: #e3f0ff; }
.q-sub-item { margin: 0 0 18px; padding-bottom: 10px; border-bottom: 1px dashed #a8c8e4; }
.q-sub-item:last-child { border-bottom: none; }
mark.hl, .hl { background: #ffea73; color: #000; }

/* 不定项左右分屏 */
.indef-box { display: flex; position: relative; height: calc(100vh - 250px); min-height: 340px; border: 0; overflow: hidden; }
.indef-left { width: 40%; height: 100%; overflow: auto; padding: 6px 10px; background: #eaf3fc; border: 1px solid #a8c8e4; }
.indef-right { width: calc(60% - 6px); height: 100%; overflow: auto; padding: 6px 10px; background: #ddebf6; }
.split-line { width: 6px; flex: none; background: #a1b5fa; cursor: w-resize; }
.indef-material { line-height: 1.7; font-size: 14px; }
.indef-material p { margin: 4px 0; }

.exam-footer { height: 44px; flex: none; background: #eaf3fc; border-top: 1px solid #9fc4e6; }
.footer-inner { height: 100%; display: flex; align-items: center; gap: 8px; padding-left: 24px; }
.flag-label { display: flex; align-items: center; gap: 4px; font-size: 14px; margin-right: 6px; cursor: pointer; }
.btn-updown {
  min-width: 66px; height: 26px; padding: 0 10px; border: 1px solid #8fbde9;
  background: linear-gradient(#fff, #dceaf9); font-size: 13px; color: #0b3c73;
}
.btn-updown:hover { background: #cfe3fa; }
.practice-tools { display: flex; gap: 6px; margin-left: 10px; }
.footer-right { margin-left: auto; margin-right: 18px; font-size: 12px; color: #789; }

/* ================= 第 4/5 屏：交卷过渡与结束 ================= */
.screen-rest, .screen-end { background: #fff; }
.rest-bg { width: 1024px; max-width: 100%; min-height: 768px; margin: 0 auto; background: url("official/end-bg.jpg") center center / cover no-repeat; padding-top: 150px; }
.rest-msg { width: 800px; max-width: 92%; margin: 0 auto 30px; font-family: "微软雅黑", "黑体"; font-size: 24px; color: #f00; font-weight: bold; text-align: left; line-height: 1.6; }
.rest-bg .btn-next-big { display: block; margin: 0 auto 16px; }
.rest-practice, .end-actions { text-align: center; margin-top: 10px; }
.end-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ================= 练习模式：成绩页 ================= */
.screen-result { background: #f2f6fb; padding-bottom: 30px; }
.result-topbar { height: 46px; line-height: 46px; text-align: center; background: #1a6fb5; color: #fff; font-size: 18px; font-weight: bold; font-family: "微软雅黑", "宋体"; }
.result-wrap { width: 1000px; max-width: 96%; margin: 18px auto 0; }
.result-subject-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.result-subject-tabs button { padding: 6px 18px; border: 1px solid #8fbde9; background: #fff; font-size: 14px; }
.result-subject-tabs button.active { background: #1a6fb5; color: #fff; }
.result-summary { background: #fff; border: 1px solid #c8dcf0; padding: 18px; border-radius: 6px; display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.result-score { font-size: 44px; font-weight: bold; color: #c00; }
.result-score.pass { color: #0a8a3c; }
.result-meta { font-size: 14px; line-height: 1.9; color: #444; }
.result-meta b { color: #1a6fb5; }
.result-section { background: #fff; border: 1px solid #c8dcf0; border-radius: 6px; padding: 14px 18px; margin-top: 14px; }
.result-section h2 { font-size: 16px; margin: 0 0 10px; font-family: "微软雅黑", "宋体"; }
.result-note { font-size: 12px; color: #888; font-weight: normal; }
.result-by-type { display: flex; gap: 10px; flex-wrap: wrap; }
.result-type-card { border: 1px solid #d5e4f3; border-radius: 4px; padding: 8px 14px; min-width: 130px; font-size: 13px; }
.result-type-card b { display: block; font-size: 20px; color: #1a6fb5; }
.review-item { border-bottom: 1px solid #e3edf7; padding: 8px 4px; cursor: pointer; font-size: 13px; }
.review-item:hover { background: #f6faff; }
.review-item:last-child { border-bottom: none; }
.review-head { display: flex; gap: 10px; align-items: center; }
.review-tag { padding: 1px 6px; border-radius: 3px; font-size: 11px; color: #fff; }
.review-tag.ok { background: #0a8a3c; }
.review-tag.bad { background: #d33; }
.review-body { display: none; padding: 10px 0 4px 20px; line-height: 1.8; color: #444; }
.review-item.open .review-body { display: block; }
.result-actions { margin-top: 16px; display: flex; gap: 10px; }
.result-actions .btn-updown { height: 32px; }

/* ================= 弹窗 ================= */
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 900; display: flex; align-items: center; justify-content: center; }
.modal-card { background: #fff; border: 3px solid #2b77bb; border-radius: 4px; min-width: 420px; max-width: 96vw; max-height: 92vh; overflow: hidden; box-shadow: 0 6px 24px rgba(0,0,0,.25); display: flex; flex-direction: column; }
.modal-card.wide { width: 950px; height: 600px; }
.modal-head { height: 40px; flex: none; background: #d9ebff; border-bottom: 1px solid #b9d6ee; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; font-size: 24px; font-weight: bold; font-family: "微软雅黑", "宋体"; color: #123; }
.modal-card.tip .modal-head { font-size: 24px; }
.modal-close { border: none; background: none; font-size: 22px; line-height: 1; color: #456; }
.modal-body { flex: 1; overflow: auto; padding: 16px; font-size: 14px; line-height: 1.7; }
.modal-foot { flex: none; padding: 10px 14px 14px; text-align: center; border-top: 1px solid #eef4fa; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.btn-orange { min-width: 170px; height: 43px; border: 1px solid #e08a12; border-radius: 3px; background: #fca32f; color: #fff; font-size: 16px; font-weight: bold; font-family: "微软雅黑", "宋体"; }
.btn-orange:hover { background: #f5a52f; }
.btn-grey { min-width: 100px; height: 32px; border: 1px solid #b9c8d8; background: linear-gradient(#fff, #e9eef4); font-size: 14px; }
.dialog-row { display: flex; align-items: flex-start; gap: 16px; }
.dialog-icon { width: 60px; flex: none; }
.dialog-text { color: #e00; font-size: 15px; line-height: 1.8; }
.tip-body { background: #d9ebff; padding: 17px 30px; height: 100%; overflow: auto; }
.tip-inner { background: #fff; padding: 20px; line-height: 1.5; font-family: "微软雅黑", "宋体"; }
.tip-h { text-align: center; font-size: 18pt; color: #000; font-weight: bold; margin: 4px 0 10px; }
.tip-motto { text-align: center; font-size: 16pt; font-weight: bold; margin-bottom: 14px; }
.tip-law { line-height: 2; font-size: 14px; margin-bottom: 14px; }
.card-modal { min-width: 560px; }
.card-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.card-grid .nav-num { min-width: 38px; height: 30px; line-height: 28px; }
.card-legend { margin-top: 12px; font-size: 12px; color: #666; }

.toast { position: fixed; left: 50%; bottom: 60px; transform: translateX(-50%); z-index: 1000; background: rgba(20,40,60,.88); color: #fff; padding: 8px 18px; border-radius: 4px; font-size: 14px; }

/* ================= 计算器浮窗（练习模式） ================= */
.calculator { position: fixed; right: 24px; top: 120px; width: 288px; z-index: 950; background: #f4f7fb; border: 1px solid #7f9fc0; box-shadow: 0 4px 18px rgba(0,0,0,.25); }
.calc-head { height: 28px; background: linear-gradient(#7ec0f0, #3d8dd2); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 8px; cursor: move; font-weight: bold; }
.calc-head-buttons { display: flex; gap: 4px; }
.calc-mini-btn { height: 20px; padding: 0 6px; border: 1px solid #cfe0f2; background: #fff; font-size: 11px; color: #1a4d80; }
.calc-screen { background: #fff; border: 1px solid #c8d8e8; margin: 8px; padding: 6px 8px; text-align: right; }
.calc-history { font-size: 11px; color: #889; min-height: 14px; }
.calc-display { font-size: 26px; font-family: Consolas, monospace; overflow: hidden; }
.calc-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 0 8px 8px; }
.calc-keys button { height: 30px; border: 1px solid #b8cde2; background: linear-gradient(#fff, #eaf1fa); font-size: 13px; }
.calc-keys button:hover { background: #d8e8fa; }
.calc-keys button.op { background: linear-gradient(#eaf3ff, #cfe1f6); color: #0b4c8c; font-weight: bold; }
.calc-foot { font-size: 11px; color: #789; text-align: center; padding-bottom: 6px; }

/* ================= 响应式（小窗口仍能操作） ================= */
@media (max-width: 1100px) {
  .header-center { font-size: 14px; }
  .info-nav { width: 210px; }
  .header-right { width: 250px; margin-right: 10px; }
  .info-text { font-size: 12px; }
  .entry-box, .rest-bg { height: auto; min-height: 620px; }
}
@media (max-width: 760px) {
  .exam-header { height: auto; min-height: 101px; flex-wrap: wrap; }
  .info-nav, .header-right { width: auto; flex: none; }
  .info-nav { height: 70px; }
  .info-nav img { width: 50px; height: 64px; }
  .info-text { font-size: 11px; line-height: 18px; }
  .header-center { padding-top: 8px; flex-basis: 100%; order: 3; }
  .header-right { margin: 0 10px; }
  .header-row { justify-content: center; margin-top: 6px; }
  .subject-status { margin: 4px 0 8px; text-align: center; }
  .nav-panel { min-width: 150px; width: 34%; }
  .login-box { width: 100%; background-size: 100% 100%; }
  .login-note, .login-error { width: 96%; }
  .wait-title-img { width: 100%; }
  .indef-box { height: auto; min-height: 0; flex-direction: column; }
  .indef-left, .indef-right { width: 100%; height: 240px; }
  .split-line { display: none; }
  .modal-card.wide { width: 96vw; height: 90vh; }
  .card-modal { min-width: 0; }
}

@media print {
  #screen-exam, #screen-entry, #screen-login, #screen-wait, #screen-rest, #screen-end, .exam-footer, .result-actions, .toast { display: none !important; }
  .screen-result { display: block !important; }
  body { background: #fff; }
}
