/* 全国计算机等级考试模拟系统 —— 考生端样式（仿官方上机考试系统）v2 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "SimSun", sans-serif;
  font-size: 14px; color: #2b3648; background: #e8eef7; overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
.hide { display: none !important; }
.stage { position: fixed; inset: 0; }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #b9c8dd; border-radius: 6px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #94aac9; background-clip: content-box; border: 2px solid transparent; }
::-webkit-scrollbar-track { background: transparent; }

/* 动效 */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }

/* ---------------- 通用 Windows 风格窗口 ---------------- */
.desk {
  height: 100%; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse at 18% 12%, rgba(255,255,255,.7), transparent 52%),
    radial-gradient(ellipse at 85% 88%, rgba(46,107,184,.16), transparent 55%),
    linear-gradient(135deg, #c8dcf3 0%, #eaf2fb 48%, #cfe0f5 100%);
}
.win {
  background: #f4f7fb; border: 1px solid #7d9dc4; border-radius: 8px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(23,54,105,.32), 0 3px 10px rgba(23,54,105,.22);
  animation: riseIn .35s ease both;
}
.win-titlebar {
  height: 36px; display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(180deg, #2e6bb8 0%, #1e4f91 100%); color: #fff; padding: 0 10px;
  user-select: none;
}
.win-tt { display: flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: 1px; }
.win-logo {
  width: 20px; height: 20px; border-radius: 4px; background: #fff; color: #1e4f91;
  display: inline-flex; align-items: center; justify-content: center; font-weight: bold; font-size: 13px;
  box-shadow: inset 0 0 0 1px rgba(30,79,145,.15);
}
.win-btns { display: flex; gap: 4px; }
.wbtn {
  width: 26px; height: 22px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 3px; font-size: 11px; cursor: pointer; color: #eaf2fc; transition: background .15s;
}
.wbtn:hover { background: rgba(255,255,255,.22); }

.btn {
  min-width: 96px; height: 34px; border: 1px solid #9db4cf; border-radius: 4px;
  background: linear-gradient(180deg, #fdfdfd, #e6ecf4); color: #24457a; font-size: 14px;
  cursor: pointer; letter-spacing: 1px; padding: 0 18px; transition: all .15s;
}
.btn:hover { background: linear-gradient(180deg, #ffffff, #dde7f3); border-color: #5f86b7; }
.btn:active { background: #d3e0ef; transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: linear-gradient(180deg, #3f7fd1, #245ba6); border-color: #1c4c8c; color: #fff; box-shadow: 0 2px 6px rgba(36,91,166,.35); }
.btn.primary:hover { background: linear-gradient(180deg, #4a8adb, #2a66b4); }
.btn.big { height: 42px; font-size: 16px; padding: 0 30px; }
.btn.danger { background: linear-gradient(180deg, #e2574c, #c03a30); border-color: #96271f; color: #fff; }

/* ---------------- 启动画面 ---------------- */
#stage-boot { background: linear-gradient(160deg, #1d4e89, #2d6cb5); display: flex; align-items: center; justify-content: center; }
.boot-box { text-align: center; color: #fff; animation: fadeIn .5s ease both; }
.boot-badge {
  width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.85); display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: bold; letter-spacing: 1px; background: rgba(255,255,255,.12);
}
.boot-title { font-size: 26px; letter-spacing: 6px; }
.boot-sub { margin-top: 8px; font-size: 14px; opacity: .85; letter-spacing: 3px; }
.boot-loading { margin-top: 34px; }
.boot-loading span {
  display: inline-block; width: 10px; height: 10px; margin: 0 4px; border-radius: 50%;
  background: rgba(255,255,255,.9); animation: bl 1s infinite;
}
.boot-loading span:nth-child(2) { animation-delay: .18s; }
.boot-loading span:nth-child(3) { animation-delay: .36s; }
@keyframes bl { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-5px); } }
.boot-tip { margin-top: 14px; font-size: 12px; opacity: .75; }

/* ---------------- 登录 ---------------- */
.login-win { width: 580px; }
.login-body { padding: 22px 36px 18px; }
.login-banner {
  display: flex; align-items: center; gap: 14px; padding: 15px 18px; margin-bottom: 20px;
  background: linear-gradient(135deg, #eaf2fc, #dbe9fa); border: 1px solid #bcd2ec; border-radius: 6px;
}
.banner-badge {
  width: 48px; height: 48px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #3a7bc4, #17406f); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 15px; flex: none;
  box-shadow: 0 3px 8px rgba(23,64,111,.35);
}
.banner-t1 { font-size: 17px; font-weight: bold; color: #17406f; letter-spacing: 1px; }
.banner-t2 { font-size: 13px; color: #4a6c9b; margin-top: 3px; }
.form-row { display: flex; align-items: center; gap: 12px; margin: 16px 0 6px; }
.form-row label { width: 74px; text-align: right; color: #345; font-size: 14px; flex: none; }
.form-row input {
  flex: 1; height: 40px; border: 1px solid #9db4cf; border-radius: 4px; padding: 0 12px;
  font-size: 17px; letter-spacing: 2px; outline: none; background: #fff; transition: box-shadow .15s, border-color .15s;
}
.form-row input:focus { border-color: #2e6bb8; box-shadow: 0 0 0 3px rgba(46,107,184,.18); }
.login-msg { min-height: 20px; margin: 6px 0 2px 86px; font-size: 12.5px; color: #c03a30; }
.login-btns { display: flex; gap: 14px; justify-content: center; margin: 14px 0 6px; }
.login-help { margin-top: 14px; padding: 10px 14px; background: #fff8e6; border: 1px solid #f0dfae; border-radius: 4px; color: #8a6d1f; font-size: 12px; line-height: 1.9; }
.win-statusbar { padding: 7px 12px; background: #e7edf5; border-top: 1px solid #d4deea; font-size: 11.5px; color: #7a8ba3; }

/* ---------------- 信息确认 ---------------- */
.mask { position: absolute; inset: 0; background: rgba(15, 35, 65, .45); animation: fadeIn .2s ease both; }
#stage-confirm { display: flex; align-items: center; justify-content: center; }
.confirm-win { position: relative; width: 640px; background: #f4f7fb; animation: popIn .22s ease both; }
.confirm-body { display: flex; gap: 22px; padding: 24px 30px 8px; }
.photo-frame {
  width: 104px; height: 136px; background: linear-gradient(180deg, #ffffff, #f2f6fb); border: 1px solid #9db4cf; border-radius: 4px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.photo-fallback { color: #b7c6da; font-size: 15px; letter-spacing: 4px; }
.photo-tip { text-align: center; margin-top: 8px; font-size: 12px; color: #789; }
.confirm-table { flex: 1; border-collapse: collapse; }
.confirm-table th, .confirm-table td { border: 1px solid #c3d2e4; padding: 9px 12px; font-size: 14px; }
.confirm-table th { width: 92px; background: #e9f0f9; color: #2c507f; font-weight: normal; text-align: justify; text-align-last: justify; }
.confirm-table td { background: #fff; letter-spacing: .5px; }
.confirm-warn {
  margin: 14px 30px; padding: 10px 14px; background: #fff4e8; border: 1px solid #f2c9a0;
  border-radius: 4px; color: #a4531b; font-size: 13px;
}
.confirm-btns { display: flex; justify-content: center; gap: 16px; padding: 4px 0 22px; }

/* ---------------- 考生须知 ---------------- */
.notice-win { width: 800px; max-height: 92vh; display: flex; flex-direction: column; }
.notice-body { padding: 18px 30px 6px; overflow: auto; }
.notice-head { border-bottom: 2px solid #1e4f91; padding-bottom: 10px; margin-bottom: 12px; }
.notice-name { font-size: 18px; font-weight: bold; color: #17406f; }
.notice-meta { margin-top: 4px; color: #6a83a5; font-size: 13px; }
.notice-scroll { max-height: 208px; overflow: auto; padding: 12px 16px; background: #fff; border: 1px solid #cfdaea; border-radius: 4px; line-height: 2.05; font-size: 13.5px; color: #444; }
.score-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 13px; overflow: hidden; border-radius: 4px; }
.score-table th, .score-table td { border: 1px solid #c3d2e4; padding: 7px 10px; text-align: center; }
.score-table th { background: #1e4f91; color: #fff; font-weight: normal; }
.score-table td { background: #fff; color: #555; }
.score-table td:first-child { text-align: left; }
.score-table td:last-child { text-align: left; font-size: 12px; color: #789; }
.notice-btns {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 30px 18px; border-top: 1px solid #d9e3ef; margin-top: 14px; background: #eef3fa;
}
.notice-count-tip { font-size: 12.5px; color: #a4531b; }

/* ---------------- 考试主界面 ---------------- */
#stage-exam { display: flex; flex-direction: column; }
.exam-topbar {
  height: 58px; flex: none; display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(180deg, #2660ac, #17406f); color: #fff; padding: 0 18px;
  box-shadow: 0 2px 8px rgba(10,30,60,.35); z-index: 20; position: relative;
}
.et-left { display: flex; align-items: center; gap: 12px; }
.et-badge {
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255,255,255,.8);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: bold;
  background: rgba(255,255,255,.12); flex: none;
}
.et-t1 { font-size: 17px; font-weight: bold; letter-spacing: 2px; }
.et-t2 { font-size: 12px; opacity: .85; margin-top: 2px; }
.et-right { display: flex; align-items: center; gap: 18px; }
.et-info { text-align: right; line-height: 1.5; }
.et-name { font-size: 14.5px; }
.et-ticket { font-size: 12px; opacity: .8; letter-spacing: 1px; }
.et-timer {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); border-radius: 16px;
  padding: 6px 16px; font-size: 15px; letter-spacing: 1px; transition: background .3s;
}
.et-timer span { font-family: Consolas, monospace; font-weight: bold; }
.et-timer.warn { background: rgba(240,169,18,.28); border-color: #f0c869; }
.et-timer.danger { background: #b3271d; border-color: #ff8b80; animation: pulse 1s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(255, 90, 70, .25); } }
.et-submit {
  height: 36px; padding: 0 24px; border: 1px solid #96271f; border-radius: 4px;
  background: linear-gradient(180deg, #e2574c, #c03a30); color: #fff; font-size: 15px;
  letter-spacing: 4px; cursor: pointer; transition: background .15s, transform .1s;
}
.et-submit:hover { background: linear-gradient(180deg, #ec6a60, #cc4339); }
.et-submit:active { transform: translateY(1px); }

/* 顶部时间进度条 */
.exam-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.12); }
.exam-progress i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #7fd18b, #4caf50); transition: width 1s linear, background .5s; }
.exam-progress i.warn { background: linear-gradient(90deg, #f5c95c, #f0a912); }
.exam-progress i.danger { background: linear-gradient(90deg, #ff7a6e, #e23a2e); }

/* 全局公告横幅 */
.broadcast-bar {
  flex: none; background: #fff8e1; border-bottom: 1px solid #f0dfae; color: #8a6d1f;
  padding: 7px 18px; font-size: 13px; display: flex; align-items: center; gap: 8px;
  animation: fadeIn .3s ease both;
}
.broadcast-bar .bb-close { margin-left: auto; cursor: pointer; color: #b09a55; padding: 0 6px; }
.broadcast-bar .bb-close:hover { color: #8a6d1f; }

.exam-main { flex: 1; display: flex; min-height: 0; }
.exam-side {
  width: 236px; flex: none; background: #f0f4fa; border-right: 1px solid #cfdaea;
  overflow: auto; padding: 14px 10px; display: flex; flex-direction: column; gap: 10px;
}
.side-item {
  border: 1px solid #c9d7ea; border-radius: 8px; background: #fff; cursor: pointer;
  padding: 11px 13px; transition: all .15s; animation: fadeIn .3s ease both;
}
.side-item:hover { border-color: #2e6bb8; transform: translateY(-1px); box-shadow: 0 3px 8px rgba(30,60,110,.1); }
.side-item.active { border-color: #2e6bb8; background: #eaf2fc; box-shadow: inset 3px 0 0 #245ba6; }
.si-row { display: flex; align-items: center; gap: 8px; }
.si-ico { font-size: 15px; flex: none; }
.side-item .si-title { flex: 1; font-size: 14px; color: #17406f; font-weight: bold; display: flex; justify-content: space-between; align-items: center; }
.side-item .si-sub { margin-top: 6px; font-size: 12px; color: #7a8ba3; display: flex; justify-content: space-between; }
.si-bar { height: 4px; border-radius: 2px; background: #dbe5f1; margin-top: 7px; overflow: hidden; }
.si-bar i { display: block; height: 100%; background: linear-gradient(90deg, #4a8adb, #245ba6); border-radius: 2px; transition: width .4s ease; }
.si-dot { width: 8px; height: 8px; border-radius: 50%; background: #c5d2e2; display: inline-block; }
.si-dot.ok { background: #3fa45b; }
.side-note { margin-top: auto; padding: 10px; font-size: 11.5px; color: #97a7bd; line-height: 1.8; }

.exam-content { flex: 1; overflow: auto; padding: 20px 26px; }
.q-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px;
  border-bottom: 2px solid #245ba6; padding-bottom: 10px;
}
.q-head .qh-t { font-size: 16.5px; font-weight: bold; color: #17406f; }
.q-head .qh-tag { font-size: 12.5px; color: #5a7396; background: #e4edf8; border-radius: 12px; padding: 3px 12px; }

/* 选择题 */
.q-card {
  background: #fff; border: 1px solid #cfdaea; border-radius: 10px; padding: 22px 28px;
  box-shadow: 0 2px 8px rgba(30,60,110,.08); animation: riseIn .25s ease both;
}
.q-no { color: #245ba6; font-weight: bold; font-size: 14px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.q-cat { font-weight: normal; color: #7a8ba3; font-size: 12px; background: #eef3fa; padding: 2px 10px; border-radius: 10px; }
.q-text { font-size: 15.5px; line-height: 1.9; color: #222; }
.q-options { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.q-opt {
  display: flex; gap: 12px; align-items: flex-start; border: 1px solid #d3deec; border-radius: 8px;
  padding: 12px 16px; cursor: pointer; background: #fbfdff; transition: all .13s; font-size: 14.5px; line-height: 1.7;
}
.q-opt:hover { border-color: #2e6bb8; background: #f3f8fe; transform: translateX(3px); }
.q-opt.sel { border-color: #245ba6; background: #e8f1fc; box-shadow: inset 0 0 0 1px #245ba6; }
.q-opt .opt-mark {
  width: 24px; height: 24px; border-radius: 50%; border: 2px solid #b4c5da; color: #8fa3bd;
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; flex: none; font-weight: bold;
  transition: all .13s;
}
.q-opt.sel .opt-mark { background: #245ba6; border-color: #245ba6; color: #fff; }
.q-nav { display: flex; justify-content: space-between; margin-top: 18px; align-items: center; }
.q-nav .kbd-hints { font-size: 12px; color: #97a7bd; }
.q-nav .kbd-hints kbd {
  display: inline-block; min-width: 18px; text-align: center; padding: 1px 5px; margin: 0 2px;
  background: #f2f6fb; border: 1px solid #cdd9e8; border-bottom-width: 2px; border-radius: 4px;
  font-family: Consolas, monospace; font-size: 11px; color: #5a7396;
}
.q-mark-btn { font-size: 13px; color: #a4731c; background: #fdf6e4; border: 1px solid #ecd9a8; border-radius: 4px; padding: 7px 14px; cursor: pointer; transition: all .15s; }
.q-mark-btn:hover { background: #fbeecb; }
.q-mark-btn.on { background: #f7c848; border-color: #dfa71c; color: #6b4d00; }

/* 答题卡 */
.card-panel { margin-top: 16px; background: #fff; border: 1px solid #cfdaea; border-radius: 8px; padding: 14px 18px; animation: riseIn .3s ease both; }
.card-title { font-size: 13px; color: #5a7396; margin-bottom: 10px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.card-legend { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; }
.card-legend i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.card-stats { margin-left: auto; display: flex; gap: 8px; }
.card-stats .chip { font-size: 12px; border-radius: 10px; padding: 2px 10px; }
.chip.g { background: #e2f4e8; color: #2c7a3f; }
.chip.b { background: #e3eefc; color: #245ba6; }
.chip.y { background: #fdf3d7; color: #946c00; }
.card-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.card-cell {
  width: 34px; height: 34px; border-radius: 4px; border: 1px solid #c9d7ea; background: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; color: #7a8ba3;
  cursor: pointer; transition: all .13s;
}
.card-cell:hover { border-color: #2e6bb8; color: #245ba6; }
.card-cell.answered { background: #245ba6; border-color: #245ba6; color: #fff; }
.card-cell.marked { box-shadow: inset 0 0 0 2px #f0a912; }
.card-cell.current { outline: 3px solid #7db2ef; }

/* 操作题 */
.op-paper {
  background: #fff; border: 1px solid #cfdaea; border-radius: 10px; padding: 24px 30px;
  box-shadow: 0 2px 8px rgba(30,60,110,.08); animation: riseIn .25s ease both;
}
.op-banner {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px;
  background: linear-gradient(135deg, #eaf2fc, #f6faff); border: 1px solid #bcd2ec; border-radius: 8px; padding: 13px 18px;
}
.op-banner .ob-t { font-size: 15px; font-weight: bold; color: #17406f; }
.op-banner .ob-s { font-size: 12.5px; color: #7a8ba3; margin-top: 3px; }
.op-launch {
  height: 42px; padding: 0 24px; border: 1px solid #2f7d3b; border-radius: 4px; font-size: 15px;
  background: linear-gradient(180deg, #46b158, #2f9040); color: #fff; cursor: pointer; letter-spacing: 1px;
  box-shadow: 0 2px 6px rgba(47,144,64,.35); transition: all .15s;
}
.op-launch:hover { background: linear-gradient(180deg, #52bd64, #38a04a); }
.op-launch:active { transform: translateY(1px); }
.op-state { font-size: 13px; color: #3fa45b; }
.op-state.idle { color: #97a7bd; }
.op-content {
  font-size: 14.5px; line-height: 2.05; color: #333; white-space: pre-wrap;
  background: #fffdf5; border: 1px solid #eee3c3; border-radius: 8px; padding: 18px 22px;
}
.op-tips { margin-top: 12px; font-size: 12.5px; color: #97a7bd; line-height: 1.9; }

.exam-statusbar {
  height: 30px; flex: none; display: flex; align-items: center; justify-content: space-between;
  background: #e7edf5; border-top: 1px solid #d4deea; padding: 0 18px; font-size: 12.5px; color: #5a7396;
}

/* ---------------- 交卷成功 ---------------- */
.done-win { width: 580px; }
.done-body { text-align: center; padding: 34px 40px 30px; }
.done-icon {
  width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%; color: #fff; font-size: 40px;
  background: radial-gradient(circle at 32% 28%, #55c273, #2f9040); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(63,164,91,.4); animation: popIn .4s ease both;
}
.done-t1 { font-size: 22px; font-weight: bold; color: #17406f; letter-spacing: 3px; }
.done-info { margin-top: 12px; color: #5a7396; font-size: 14px; line-height: 1.9; }
.done-score { margin: 16px auto; padding: 14px 20px; background: #eaf2fc; border: 1px solid #bcd2ec; border-radius: 8px; font-size: 15px; color: #17406f; }
.done-score b { font-size: 22px; color: #c03a30; }
.done-tip { color: #97a7bd; font-size: 12.5px; line-height: 2; margin-bottom: 18px; }

/* ---------------- 模拟 WPS 覆盖层 ---------------- */
#wpsLayer { position: fixed; inset: 0; background: rgba(20, 32, 52, .62); z-index: 100; display: flex; align-items: center; justify-content: center; animation: fadeIn .18s ease both; }
.wps-win {
  width: 94%; height: 94%; background: #f3f4f6; border-radius: 8px; overflow: hidden;
  box-shadow: 0 18px 60px rgba(0,0,0,.5); display: flex; flex-direction: column; border: 1px solid #49536b;
  animation: popIn .2s ease both;
}
.wps-titlebar {
  height: 34px; background: #2b579a; color: #fff; display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px; font-size: 12.5px; flex: none;
}
.wps-titlebar .wt-left { display: flex; align-items: center; gap: 10px; }
.wps-logo {
  width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #d5352b; font-weight: bold;
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px;
}
.wps-tabbar { background: #f3f4f6; border-bottom: 1px solid #dcdfe4; display: flex; padding: 0 8px; flex: none; }
.wps-tab { padding: 7px 16px; font-size: 13px; color: #444; cursor: pointer; border-radius: 4px 4px 0 0; margin-top: 4px; }
.wps-tab.on { color: #c0392b; font-weight: bold; box-shadow: inset 0 -2px 0 #c0392b; }
.wps-ribbon { background: #fff; border-bottom: 1px solid #dcdfe4; padding: 8px 10px 4px; display: flex; align-items: stretch; gap: 2px; flex-wrap: wrap; flex: none; min-height: 58px; }
.wps-group { display: flex; flex-direction: column; align-items: stretch; padding: 0 8px; border-right: 1px solid #e8ebef; }
.wg-btns { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.wg-label { text-align: center; font-size: 11px; color: #9aa6b6; margin-top: 3px; user-select: none; }
.wps-sep { width: 1px; height: 24px; background: #e3e6ea; margin: 0 4px; align-self: center; }
.wps-btn {
  min-width: 30px; height: 30px; border: 1px solid transparent; border-radius: 4px; background: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; cursor: pointer;
  font-size: 13px; color: #333; padding: 0 8px; font-family: inherit; transition: all .12s;
}
.wps-btn:hover { background: #eef3fa; border-color: #c9d9ef; }
.wps-btn.active { background: #e2ecf9; border-color: #9fc0e8; }
.wps-btn b { font-weight: bold; }
.wps-btn i { font-style: italic; font-family: Georgia, serif; }
.wps-btn u { text-decoration: underline; }
.wps-select {
  height: 28px; border: 1px solid #cfd6de; border-radius: 4px; background: #fff; font-size: 12.5px;
  padding: 0 6px; outline: none; color: #333; cursor: pointer;
}
.wps-color { width: 30px; height: 28px; padding: 2px; border: 1px solid #cfd6de; border-radius: 4px; background: #fff; cursor: pointer; }
.wps-main { flex: 1; overflow: auto; display: flex; min-height: 0; }
.wps-status {
  height: 26px; background: #f3f4f6; border-top: 1px solid #dcdfe4; display: flex; align-items: center;
  justify-content: space-between; padding: 0 14px; font-size: 12px; color: #667; flex: none;
}

/* WPS 文字页面 */
.doc-scroll { flex: 1; overflow: auto; background: #e8eaed; padding: 26px 0; display: flex; justify-content: center; }
.doc-page {
  width: 760px; min-height: 1000px; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.18);
  padding: 74px 80px; outline: none; font-family: "SimSun", serif; font-size: 14px; line-height: 1.9; color: #000;
}
.doc-page table { border-collapse: collapse; margin: 8px 0; }
.doc-page table td { border: 1px solid #000; width: 120px; height: 28px; padding: 2px 8px; }

/* WPS 表格 */
.sheet-wrap { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.fxbar { display: flex; border-bottom: 1px solid #dcdfe4; background: #fff; flex: none; }
.name-box { width: 90px; border-right: 1px solid #dcdfe4; padding: 5px 10px; font-size: 13px; font-family: Consolas, monospace; color: #333; }
.fx-input { flex: 1; border: none; outline: none; padding: 5px 10px; font-size: 13.5px; font-family: Consolas, monospace; }
.sheet-scroll { flex: 1; overflow: auto; background: #fff; }
.sheet-table { border-collapse: collapse; table-layout: fixed; }
.sheet-table th, .sheet-table td { border: 1px solid #d4d7dc; font-size: 13px; height: 24px; padding: 0 5px; }
.sheet-table th { background: #f5f6f8; color: #55606d; font-weight: normal; text-align: center; position: sticky; z-index: 5; }
.sheet-table thead th { top: 0; }
.sheet-table td.rowh { background: #f5f6f8; color: #55606d; text-align: center; width: 42px; position: sticky; left: 0; }
.sheet-table td.cell { cursor: cell; white-space: nowrap; overflow: hidden; background: #fff; font-family: Consolas, "Microsoft YaHei", monospace; position: relative; }
.sheet-table td.cell.sel { outline: 2px solid #2b579a; outline-offset: -2px; background: #f0f6ff; }
.sheet-table td.cell.range { background: #e8f1fc; }
.sheet-table td.cell input {
  position: absolute; left: 0; top: 0; width: 100%; height: 24px; border: 2px solid #2b579a; outline: none;
  font-size: 13px; font-family: Consolas, monospace; padding: 0 4px; box-sizing: border-box; z-index: 10;
}

/* WPS 演示 */
.ppt-wrap { flex: 1; display: flex; min-width: 0; }
.ppt-side { width: 168px; flex: none; background: #eceef1; border-right: 1px solid #dcdfe4; overflow: auto; padding: 12px; }
.ppt-thumb {
  aspect-ratio: 16/9; background: #fff; border: 2px solid #c9d0da; border-radius: 4px; margin-bottom: 10px;
  cursor: pointer; position: relative; overflow: hidden; font-size: 10px; transition: all .13s;
}
.ppt-thumb:hover { border-color: #8fa8c8; }
.ppt-thumb .pt-no { position: absolute; left: 4px; top: 3px; color: #99a; z-index: 2; }
.ppt-thumb .pt-body { padding: 16% 8% 6% 14%; height: 100%; overflow: hidden; }
.ppt-thumb.sel { border-color: #2b579a; box-shadow: 0 0 0 2px rgba(43,87,154,.25); }
.ppt-canvas-wrap { flex: 1; overflow: auto; background: #e8eaed; display: flex; align-items: center; justify-content: center; padding: 30px; }
.ppt-canvas {
  width: 800px; aspect-ratio: 16/9; background: #fff; box-shadow: 0 3px 14px rgba(0,0,0,.2);
  display: flex; flex-direction: column; padding: 5% 7%; outline: none; transition: background .2s;
}
.ppt-title { width: 100%; font-size: 40px; font-weight: bold; color: #2b3a55; text-align: center; outline: none; min-height: 56px; }
.ppt-body { flex: 1; margin-top: 5%; font-size: 22px; color: #333; line-height: 1.9; outline: none; }
.ppt-subtitle { flex: 1; margin-top: 10px; font-size: 22px; color: #445; outline: none; }
.ppt-toolbar-side { margin-bottom: 10px; display: flex; gap: 6px; }
.ppt-toolbar-side .wps-btn { flex: 1; border: 1px solid #d4dae2; background: #fff; }

/* 查找替换弹窗行 */
.fr-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.fr-row label { width: 64px; flex: none; font-size: 13px; color: #5a6d8c; }
.fr-row input {
  flex: 1; height: 30px; border: 1px solid #cfd6de; border-radius: 4px; padding: 0 8px;
  font-size: 13px; outline: none; font-family: inherit;
}
.fr-row input:focus { border-color: #2b579a; }

/* ---------------- 对话框 ---------------- */
#modalLayer { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; }
#modalLayer .mask { animation: fadeIn .18s ease both; }
.modal-win {
  position: relative; width: 480px; background: #f4f7fb; border: 1px solid #7d9dc4; border-radius: 8px;
  overflow: hidden; box-shadow: 0 14px 44px rgba(10,30,60,.45); animation: popIn .2s ease both;
}
.modal-body { padding: 22px 26px 6px; font-size: 14px; line-height: 2; color: #333; }
.modal-body .warn-line { color: #c03a30; }
.modal-btns { display: flex; justify-content: center; gap: 14px; padding: 14px 0 20px; }

@media (max-width: 900px) {
  .exam-side { width: 170px; }
  .doc-page { width: 92%; padding: 40px 34px; }
  .ppt-canvas { width: 94%; }
  .et-info { display: none; }
}
