:root {
  --navy: #1f3a5f;
  --navy-2: #2c5282;
  --slate: #3b556f;
  --bg: #f4f6f9;
  --card: #ffffff;
  --line: #e2e8f0;
  --ink: #1a2433;
  --muted: #64748b;
  --ok: #2f855a;
  --warn: #c05621;
  --accent: #2b6cb0;
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.6;
}
header.top {
  background: linear-gradient(120deg, var(--navy), var(--navy-2));
  color: #fff; padding: 14px 24px; display: flex; align-items: center;
  justify-content: space-between; box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
header.top .brand { font-size: 18px; font-weight: 700; letter-spacing: .5px; text-decoration: none; color: #fff; }
header.top .brand small { display: block; font-weight: 400; opacity: .78; font-size: 12px; margin-top: 2px; }
header.top .brand-main { display: block; font-size: 19px; }
header.top nav a { color: #dbe7f5; text-decoration: none; margin-left: 18px; font-size: 14px; }
header.top nav a:hover { color: #fff; }
header.top nav a.on { color: #fff; font-weight: 700; border-bottom: 2px solid #fff; padding-bottom: 2px; }
header.top .user { font-size: 13px; opacity: .9; margin-left: 18px; }

/* ---------- 首页 Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #2c5282 55%, #2b6cb0 100%);
  color: #fff; padding: 46px 24px 42px; text-align: center;
}
.hero-inner { max-width: 900px; margin: 0 auto; }
.hero-badge { display: inline-block; font-size: 12px; letter-spacing: 2px; opacity: .8;
  border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 4px 14px; margin-bottom: 14px; }
.hero h1 { margin: 0; font-size: 38px; letter-spacing: 3px; font-weight: 700; }
.hero-sub { margin: 10px 0 18px; font-size: 16px; opacity: .92; letter-spacing: 1px; }
.hero-chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.container { max-width: 1080px; margin: 24px auto; padding: 0 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 22px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.card h2 { margin: 0 0 14px; font-size: 17px; color: var(--navy); }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.btn {
  display: inline-block; padding: 10px 18px; border-radius: 8px; border: 1px solid transparent;
  font-size: 14px; cursor: pointer; text-decoration: none; transition: .15s;
  background: var(--navy); color: #fff;
}
.btn:hover { background: var(--navy-2); }
.btn.ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--navy); }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn.ok { background: var(--ok); } .btn.warn { background: var(--warn); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
input, select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; font-family: inherit; margin-top: 6px;
}
label { font-size: 13px; color: var(--muted); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.tag { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px;
  background: #eef4fb; color: var(--accent); margin-right: 6px; }
.badge { font-size: 12px; padding: 2px 8px; border-radius: 6px; background: #edf2f7; color: var(--muted); }
.badge.pass { background: #e6fffa; color: var(--ok); }
.badge.fail { background: #fff5f5; color: var(--warn); }
.muted { color: var(--muted); font-size: 13px; }
hr { border: none; border-top: 1px solid var(--line); margin: 16px 0; }
.kpi { text-align: center; }
.kpi .num { font-size: 30px; font-weight: 700; color: var(--navy); }
.kpi .lab { font-size: 13px; color: var(--muted); }
.q { border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 14px; }
.q .meta { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.q .stem { font-weight: 600; margin-bottom: 10px; }
.opt { display: block; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px;
  margin-bottom: 8px; cursor: pointer; transition: .12s; }
.opt:hover { border-color: var(--navy); background: #f8fafc; }
.opt.sel { border-color: var(--navy); background: #eef4fb; }
.opt.correct { border-color: var(--ok); background: #e6fffa; }
.opt.wrong { border-color: var(--warn); background: #fff5f5; }
.timer { font-variant-numeric: tabular-nums; font-size: 22px; font-weight: 700; color: var(--navy); }
.timer.danger { color: var(--warn); }
.center { text-align: center; }
pre.paper { white-space: pre-wrap; background: #f8fafc; border: 1px solid var(--line);
  border-radius: 8px; padding: 16px; font-size: 13px; max-height: 460px; overflow: auto; }
.notice { background: #fffbeb; border: 1px solid #f6e05e; color: #744210;
  padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 14px; }
.video-box { width: 100%; max-width: 360px; aspect-ratio: 4/3; background: #0b1220;
  border-radius: 10px; object-fit: cover; }
.face-wrap { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.face-col { flex: 1; min-width: 240px; }
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 24px; }
table.jobs { width: 100%; border-collapse: collapse; font-size: 13px; }
table.jobs th, table.jobs td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
table.jobs th { color: var(--muted); font-weight: 600; }
/* ---------- 门户入口 ---------- */
.entry-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 20px; }
.entry-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px;
  text-decoration: none; color: inherit; transition: .18s; position: relative; overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.entry-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(31,58,95,.12); border-color: var(--navy-2); }
.entry-card::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 4px;
  background: linear-gradient(180deg, var(--navy), var(--navy-2));
}
.entry-card.accent-card::before { background: linear-gradient(180deg, #2b6cb0, #4c9be0); }
.entry-icon { font-size: 30px; margin-bottom: 8px; }
.entry-card h3 { margin: 0 0 6px; font-size: 20px; color: var(--navy); }
.entry-card p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.entry-list { margin: 0 0 16px; padding-left: 18px; color: var(--slate); font-size: 13px; }
.entry-list li { margin-bottom: 4px; }
.entry-go { font-size: 14px; font-weight: 600; color: var(--navy-2); }

.rule-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.rule-item { border: 1px dashed var(--line); border-radius: 10px; padding: 14px 16px; background: #fbfcfe; }
.rule-h { font-weight: 700; color: var(--navy); margin-bottom: 6px; font-size: 15px; }
.rule-b { font-size: 13px; color: var(--slate); }
.rule-tag { display: inline-block; margin-top: 8px; font-size: 12px; padding: 2px 10px; border-radius: 999px; }
.rule-tag.pass { background: #e6fffa; color: var(--ok); }
.rule-tag.fail { background: #fff5f5; color: var(--warn); }

/* ---------- 状态 chips ---------- */
.chip { display: inline-block; font-size: 12px; padding: 4px 12px; border-radius: 999px;
  background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.28); }
.chip.ok { background: rgba(47,133,90,.9); }
.chip.warn { background: rgba(192,86,33,.9); }

/* ---------- 拍照闸门 / 步骤 ---------- */
.gate-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.gate-head h2 { margin: 0; }
.gate-step { font-size: 12px; padding: 3px 10px; border-radius: 999px;
  background: var(--navy); color: #fff; letter-spacing: .5px; }
.cam-fallback {
  width: 100%; max-width: 360px; aspect-ratio: 4/3; background: #0b1220; color: #94a3b8;
  border-radius: 10px; align-items: center; justify-content: center; font-size: 13px;
  text-align: center; padding: 10px;
}
.photo-preview { width: 180px; border-radius: 10px; border: 1px solid var(--line); }
.rec-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.exam-bar { position: sticky; top: 0; z-index: 5; }
.notice.ok-notice { background: #f0fff4; border-color: #9ae6b4; color: #22543d; }
.foot-wrap { text-align: center; margin: 18px 0; }

/* ---------- 管理后台 ---------- */
.grid-4 { grid-template-columns: repeat(4, 1fr); }
code { background: #edf2f7; padding: 1px 5px; border-radius: 4px; font-size: 12px; }
table.jobs td { vertical-align: middle; }
select[multiple] { padding: 6px; }

@media (max-width: 720px){ .grid-2,.grid-3,.grid-4{grid-template-columns:1fr}
  .entry-grid,.rule-grid{grid-template-columns:1fr} }

.pill-skeleton { color: var(--muted); font-size: 13px; }

/* ---------- 刷题练习（即时判分） ---------- */
.opt-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.opt {
  text-align: left; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; cursor: pointer; font-size: 15px;
  transition: all .12s ease; line-height: 1.5;
}
.opt:hover { border-color: var(--navy); background: #f7faff; }
.opt.sel { border-color: var(--navy); background: #eaf1ff; font-weight: 600; }
.opt.right { border-color: var(--ok); background: #f0fff4; color: #22543d; font-weight: 600; }
.opt.wrong { border-color: var(--warn); background: #fff5f5; color: #9b2c2c; font-weight: 600; }
.opt:disabled { cursor: default; }
.q-stem { font-size: 16px; font-weight: 600; line-height: 1.6; margin-top: 4px; }
.q-analysis { margin-top: 10px; padding: 10px 12px; background: #f8fafc;
  border-left: 3px solid var(--navy); border-radius: 6px; font-size: 14px; line-height: 1.6; }
.tab-btn { margin: 0; }
#majorTimeTable tr.off td:not(:first-child) { opacity: 0.38; }
#majorTimeTable tr.off td:not(:first-child) input { pointer-events: none; }

@media (max-width: 720px){ .grid-2,.grid-3{grid-template-columns:1fr} }

/* ===== 央国企课程中心：查看课程弹层 ===== */
.gq-mask { position: fixed; inset: 0; background: rgba(15,23,42,.55); z-index: 90;
  display: flex; align-items: center; justify-content: center; padding: 20px; }
.gq-box { background: #fff; border-radius: 14px; width: 100%; max-width: 1060px;
  max-height: 88vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.gq-head { padding: 16px 20px; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.gq-head h3 { margin: 0 0 6px; font-size: 18px; color: var(--navy); }
.gq-close { background: none; border: none; font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); }
.gq-body { display: flex; min-height: 0; flex: 1; }
.gq-side { width: 260px; flex: 0 0 260px; border-right: 1px solid var(--line);
  overflow-y: auto; padding: 12px; background: #fbfcfe; }
.gq-main { flex: 1; overflow-y: auto; padding: 20px 24px; }
.gq-ch { display: block; width: 100%; text-align: left; padding: 9px 11px; margin-bottom: 6px;
  border: 1px solid transparent; border-radius: 8px; background: #fff; cursor: pointer;
  font-size: 13px; line-height: 1.5; color: var(--slate); transition: .15s; }
.gq-ch:hover { border-color: var(--navy); }
.gq-ch.on { border-color: var(--navy); background: #eef4fb; color: var(--navy); font-weight: 600; }
.gq-ch small { color: var(--muted); font-weight: 400; }
.gq-ch .ck { color: var(--ok); }
.gq-nav { display: flex; gap: 10px; justify-content: space-between; margin-top: 22px;
  padding-top: 14px; border-top: 1px solid var(--line); }
.gq-lock { text-align: center; padding: 50px 20px; color: var(--muted); }
.gq-lock .big { font-size: 34px; margin-bottom: 10px; }

/* 招聘信息：整行可点击 → 站内展开详情（外部链接不可达时仍可查看） */
.jobs tbody .job-row { cursor: pointer; }
.jobs tbody .job-row:hover { background: #f4f7fb; }
.jobs tbody .job-row:hover td { background: transparent; }

/* 课程正文排版 */
.md { font-size: 15px; line-height: 1.85; color: var(--slate); }
.md h4 { font-size: 16px; color: var(--navy); margin: 24px 0 10px; padding-left: 10px;
  border-left: 4px solid var(--navy-2); }
.md h5 { font-size: 14px; color: var(--navy); margin: 18px 0 8px; }
.md p { margin: 0 0 12px; }
.md ul, .md ol { margin: 0 0 14px; padding-left: 24px; }
.md li { margin-bottom: 6px; }
.md blockquote { margin: 0 0 14px; padding: 10px 14px; background: #f8fafc;
  border-left: 3px solid var(--navy-2); color: var(--slate); border-radius: 6px; }
.md table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 14px; }
.md th, .md td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.md th { background: #f4f7fb; color: var(--navy); font-weight: 600; }
.md code { background: #f1f5f9; padding: 1px 5px; border-radius: 4px; font-size: 13px; }
.md strong { color: var(--navy); }

@media (max-width: 860px){
  .gq-body { flex-direction: column; }
  .gq-side { width: auto; flex: none; border-right: none; border-bottom: 1px solid var(--line);
    max-height: 180px; }
}

/* 课程中心 tab 按钮（选中态） */
.btn.tab-btn { background: #fff; color: var(--navy); border-color: var(--line); }
.btn.tab-btn.on { background: var(--navy); color: #fff; border-color: var(--navy); }
