/* ============================================================
   SMBU·CA 2026 招新测评 · 设计系统
   浅色、克制、信息密度高。无外部字体/图标依赖（服务器可能拉不到外网）。
   ============================================================ */
:root {
  --brand: #2b4edb;
  --brand-600: #2443c4;
  --brand-400: #4d7cfe;
  --brand-soft: #eef2ff;
  --brand-line: #c7d4ff;

  --bg: #f4f6fa;
  --card: #fff;
  --line: #e6e9f0;
  --line-soft: #f0f2f7;

  --ink: #101828;
  --ink-2: #344054;
  --muted: #667085;
  --faint: #98a2b3;

  --ok: #12b76a;
  --ok-soft: #ecfdf3;
  --warn: #f79009;
  --warn-soft: #fffaeb;
  --bad: #f04438;
  --bad-soft: #fef3f2;

  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-md: 0 1px 3px rgba(16, 24, 40, .06), 0 12px 28px -16px rgba(16, 24, 40, .18);
  --shadow-lift: 0 2px 6px rgba(16, 24, 40, .07), 0 18px 36px -18px rgba(16, 24, 40, .22);
  --focus: 0 0 0 4px rgba(43, 78, 219, .14);
}

* { box-sizing: border-box; }
/* hidden 属性必须生效：button/.btn 等设了 display，会盖掉浏览器默认的
   [hidden]{display:none}（作者样式优先于 UA 样式），所以这里显式兜一层。 */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15.5px/1.7 system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.35; margin: 0; letter-spacing: -.01em; }

/* ── 顶部 ───────────────────────────────────────────────── */
.hero {
  background:
    radial-gradient(1100px 220px at 12% -40%, rgba(255, 255, 255, .22), transparent 70%),
    linear-gradient(135deg, #22399f 0%, var(--brand) 46%, var(--brand-400) 100%);
  color: #fff;
}
.hero-inner {
  max-width: 1020px; margin: 0 auto; padding: 20px 22px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.hero-brand { display: flex; align-items: center; gap: 13px; min-width: 0; }
/* 品牌字：纯文字，不加方框（方框在浅色渐变上显得笨重） */
.logo {
  flex: 0 0 auto; font-weight: 800; font-size: 19px;
  letter-spacing: .04em; line-height: 1.15;
}
@media (max-width: 700px) { .logo { font-size: 16px; } }
.hero-brand h1 { font-size: 17px; font-weight: 650; }
.hero-brand p { margin: 1px 0 0; font-size: 12.5px; opacity: .82; }
.hero-right { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.countdown {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .26);
  padding: 7px 13px; border-radius: 999px; font-size: 13px;
}
.countdown.muted-state { background: rgba(255, 255, 255, .09); }
.countdown .dot {
  width: 7px; height: 7px; border-radius: 50%; background: #7ee2a8;
  box-shadow: 0 0 0 3px rgba(126, 226, 168, .25);
}
.countdown.closed .dot { background: #ffb4ad; box-shadow: 0 0 0 3px rgba(255, 180, 173, .22); }
.who { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.who .name { opacity: .95; }

/* ── 布局 ───────────────────────────────────────────────── */
main { max-width: 1020px; margin: 0 auto; padding: 22px 22px 96px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px; margin-bottom: 18px; box-shadow: var(--shadow-sm);
}
.card.tight { padding: 18px 20px; }
.card-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.card-h h2 { font-size: 17.5px; font-weight: 650; }
.card-h .spacer { flex: 1; }
.sec-no {
  width: 25px; height: 25px; border-radius: 8px; flex: 0 0 auto;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
}
.sub { color: var(--muted); font-size: 13.5px; margin: 0 0 4px; }
.sub strong { color: var(--ink-2); }
.hr { height: 1px; background: var(--line-soft); margin: 20px 0; border: 0; }

/* ── 按钮 ───────────────────────────────────────────────── */
button, .btn {
  font: inherit; cursor: pointer; border-radius: var(--r-sm); padding: 9px 16px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  transition: .16s ease; display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap; text-decoration: none;
}
button:hover, .btn:hover { border-color: #d3d9e6; background: #fbfcfe; text-decoration: none; }
button:active { transform: translateY(1px); }
button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
button.primary, .btn.primary {
  background: linear-gradient(180deg, var(--brand-400), var(--brand));
  border-color: var(--brand-600); color: #fff;
  box-shadow: 0 1px 2px rgba(43, 78, 219, .28), 0 8px 18px -10px rgba(43, 78, 219, .5);
}
button.primary:hover, .btn.primary:hover {
  filter: brightness(1.05); border-color: var(--brand-600); background: linear-gradient(180deg, #5a86ff, var(--brand-600));
}
button.ghost { background: #fff; }
button.small { padding: 6px 12px; font-size: 13px; }
.btn-light {
  background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3);
  color: #fff; padding: 7px 14px; border-radius: 999px; font-size: 13px;
}
.btn-light:hover { background: rgba(255, 255, 255, .24); border-color: rgba(255, 255, 255, .45); }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.end { justify-content: flex-end; margin-top: 18px; }
.spacer { flex: 1; }

/* ── 表单 ───────────────────────────────────────────────── */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; }
.grid2 .wide, .wide { grid-column: 1 / -1; }
label { display: block; font-size: 13px; color: var(--ink-2); font-weight: 500; }
label > span.hint { color: var(--faint); font-weight: 400; }
input, select, textarea {
  width: 100%; margin-top: 6px; padding: 10px 12px; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid #dfe4ee; border-radius: var(--r-sm);
  transition: .16s ease;
}
input::placeholder, textarea::placeholder { color: #b3bbc9; }
input:hover, select:hover, textarea:hover { border-color: #cdd5e4; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand-400); box-shadow: var(--focus);
}
input[readonly], textarea[readonly] { background: #f9fafc; color: var(--ink-2); }
textarea { resize: vertical; line-height: 1.65; }
select { appearance: none; background-image:
  url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4.5L6 8.5L10 4.5' fill='none' stroke='%23667085' stroke-width='1.6' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: right 11px center; padding-right: 32px; }
input[type=file] { padding: 7px 10px; background: #fbfcfe; }
input[type=radio], input[type=checkbox] { width: auto; }
.tip { min-height: 20px; font-size: 13px; color: var(--brand); margin: 8px 0 0; }
.tip.err { color: var(--bad); }
.tip.ok { color: var(--ok); }

/* ── 步骤条 ─────────────────────────────────────────────── */
.stepper {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 16px 18px; margin-bottom: 18px; box-shadow: var(--shadow-sm);
}
.step { display: flex; align-items: center; gap: 11px; min-width: 0; }
.step .n {
  width: 28px; height: 28px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
  background: #f4f6fa; color: var(--faint); border: 1px solid var(--line);
}
.step .t { min-width: 0; }
.step .t b { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.step .t i { font-style: normal; font-size: 12px; color: var(--faint); }
.step.doing .n { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-line); }
.step.doing .t i { color: var(--brand); }
.step.done .n { background: var(--ok); color: #fff; border-color: var(--ok); }
.step.done .t i { color: var(--ok); }
@media (max-width: 700px) {
  .stepper { grid-template-columns: 1fr; gap: 14px; }
  .grid2 { grid-template-columns: 1fr; }
}

/* ── 药丸 / 徽章 ─────────────────────────────────────────── */
.badge {
  font-size: 12px; padding: 3px 10px; border-radius: 999px; font-weight: 500;
  background: var(--brand-soft); color: var(--brand); border: 1px solid var(--brand-line);
}
.badge.gray { background: #f4f6fa; color: var(--muted); border-color: var(--line); }
.badge.ok { background: var(--ok-soft); color: #067647; border-color: #abefc6; }
.badge.warn { background: var(--warn-soft); color: #b54708; border-color: #fedf89; }
.badge.bad { background: var(--bad-soft); color: #b42318; border-color: #fecdca; }

/* ── 表格 ───────────────────────────────────────────────── */
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
table.orgs, table.data {
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
}
th, td { padding: 9px 11px; text-align: left; border-bottom: 1px solid var(--line-soft); }
th {
  background: #f9fafc; font-weight: 600; color: var(--ink-2);
  font-size: 12.5px; letter-spacing: .02em; border-bottom: 1px solid var(--line);
  position: sticky; top: 0;
}
tbody tr:last-child td, table tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: #fcfdff; }
table input, table select { margin-top: 0; padding: 7px 9px; font-size: 13px; }
.scroll-x { overflow-x: auto; }

/* ── 勾选组（其他学生组织）────────────────────────────── */
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 700px) { .checks { grid-template-columns: 1fr; } }
.check {
  display: flex; align-items: center; gap: 10px; padding: 10px 13px;
  border: 1px solid var(--line); border-radius: var(--r-md); cursor: pointer;
  font-size: 14px; transition: .15s ease; background: #fff; margin: 0;
}
.check:hover { border-color: var(--brand-line); background: var(--brand-soft); }
.check input { display: none; }
.check .box {
  width: 19px; height: 19px; border-radius: 5px; flex: 0 0 auto;
  border: 1.5px solid #cdd5e4; background: #fff; position: relative;
}
.check.on { border-color: var(--brand); background: linear-gradient(180deg, #f5f8ff, var(--brand-soft)); }
.check.on .box { background: var(--brand); border-color: var(--brand); }
.check.on .box::after {
  content: ""; position: absolute; left: 5.5px; top: 1.5px;
  width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ── 分到的素材 ─────────────────────────────────────────── */
.task {
  border: 1px solid var(--brand-line); border-radius: var(--r-md);
  background: linear-gradient(180deg, #f7faff, #fff);
  padding: 14px 16px; margin: 12px 0 4px;
}
.task-h {
  display: flex; align-items: center; gap: 8px; font-size: 13px;
  font-weight: 600; color: var(--brand);
}
.task-t { font-weight: 650; margin: 8px 0 4px; font-size: 15px; }
.task-m {
  white-space: pre-wrap; font-size: 14px; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-sm);
  padding: 12px 14px; margin-top: 6px; line-height: 1.75;
}

/* ── 格式检查结果 ───────────────────────────────────────── */
ul.chk { list-style: none; padding: 0; margin: 10px 0 0; }
ul.chk li {
  border-left: 3px solid var(--bad); background: #fffafa;
  padding: 8px 12px; margin-bottom: 6px; border-radius: 0 7px 7px 0; font-size: 13.5px;
}
details ul.chk li { border-left-color: var(--faint); background: #fbfcfe; }
ul.chk b { color: var(--bad); font-weight: 650; }
details ul.chk b { color: var(--muted); }
.tip.ok { color: var(--ok); }

/* ── 附件列表 ───────────────────────────────────────────── */
.files { list-style: none; padding: 0; margin: 10px 0 0; }
.files li {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  margin-bottom: 7px; font-size: 13.5px; background: #fcfdff;
}
.files li .name { font-weight: 500; word-break: break-all; }

/* ── 题目 ───────────────────────────────────────────────── */
.q {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px 22px; margin-bottom: 14px; box-shadow: var(--shadow-sm);
  transition: box-shadow .18s ease;
}
.q:hover { box-shadow: var(--shadow-md); }
.q .qno {
  font-size: 12px; color: var(--faint); letter-spacing: .06em; font-weight: 600;
  text-transform: uppercase;
}
.q .qt { margin: 8px 0 14px; font-size: 15.5px; white-space: pre-wrap; color: var(--ink); }
.opt {
  display: flex; gap: 12px; align-items: flex-start; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  margin-bottom: 8px; cursor: pointer; transition: .15s ease; background: #fff;
}
.opt:hover { border-color: var(--brand-line); background: var(--brand-soft); }
.opt input { display: none; }
.opt .k {
  width: 24px; height: 24px; border-radius: 50%; flex: 0 0 auto; margin-top: 1px;
  display: grid; place-items: center; font-size: 12.5px; font-weight: 700;
  border: 1px solid #dfe4ee; color: var(--muted); background: #fbfcfe;
}
.opt.picked { border-color: var(--brand); background: linear-gradient(180deg, #f5f8ff, var(--brand-soft)); }
.opt.picked .k { background: var(--brand); border-color: var(--brand); color: #fff; }
.opt.right { border-color: #7bd8a4; background: var(--ok-soft); }
.opt.right .k { background: var(--ok); border-color: var(--ok); color: #fff; }
.opt.wrong { border-color: #f5b5ae; background: var(--bad-soft); }
.opt.wrong .k { background: var(--bad); border-color: var(--bad); color: #fff; }
.opt .txt { flex: 1; }
.opt .mine { font-size: 12px; color: var(--muted); }

.sec-title {
  display: flex; align-items: center; gap: 10px; margin: 22px 0 10px;
  font-size: 14px; font-weight: 700; color: var(--ink-2);
}
.sec-title::before {
  content: ""; width: 4px; height: 15px; border-radius: 2px;
  background: linear-gradient(180deg, var(--brand-400), var(--brand));
}
.sec-title .cnt { font-weight: 400; color: var(--faint); font-size: 12.5px; }

.sticky-head {
  position: sticky; top: 0; z-index: 12; backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, .9);
}

/* ── 提示条 ─────────────────────────────────────────────── */
.note {
  display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r-md);
  background: var(--warn-soft); border: 1px solid #fedf89; color: #93370d;
  font-size: 13.5px; line-height: 1.6;
}
.note.info { background: var(--brand-soft); border-color: var(--brand-line); color: #1d39a5; }
.note .ic { flex: 0 0 auto; font-weight: 700; }

/* ── 部门卡片 ───────────────────────────────────────────── */
.dept-card {
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px;
  margin-bottom: 14px; background: #fff; box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.dept-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--brand-400), var(--brand));
}
.dept-card.center-TRDC::before { background: linear-gradient(180deg, #4d7cfe, #2b4edb); }
.dept-card.center-OMC::before  { background: linear-gradient(180deg, #f79009, #dc6803); }
.dept-card.center-ECC::before  { background: linear-gradient(180deg, #12b76a, #079455); }
.dept-card h3 { font-size: 16px; font-weight: 650; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.prompt {
  white-space: pre-wrap; background: #f9fafc; border: 1px solid var(--line-soft);
  border-radius: var(--r-md); padding: 13px 15px; font-size: 14px; color: var(--ink-2);
  margin: 10px 0 4px;
}

/* ── 统计卡（后台）────────────────────────────────────── */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 14px 0 4px; }
.kpi {
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px;
  background: linear-gradient(180deg, #fcfdff, #fff);
}
.kpi b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.kpi span { font-size: 12.5px; color: var(--muted); }
.kpi.accent b { color: var(--brand); }
.kpi.ok b { color: var(--ok); }
.kpi.warn b { color: var(--warn); }

.bar { height: 6px; border-radius: 999px; background: #eef1f6; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-400), var(--brand)); }

/* ── Toast ──────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 12px);
  background: #1b2130; color: #fff; padding: 11px 20px; border-radius: 11px;
  font-size: 14px; z-index: 99; max-width: 88vw; box-shadow: var(--shadow-lift);
  opacity: 0; pointer-events: none; transition: .22s cubic-bezier(.2, .8, .3, 1);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── 空状态 / 骨架 ─────────────────────────────────────── */
.empty { text-align: center; color: var(--faint); font-size: 13.5px; padding: 22px 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; }

@media print { .hero, button { display: none; } }
