:root {
  --brand: #2E6BE6;
  --brand-dark: #1E4FBF;
  --brand-soft: #EAF1FE;
  --accent: #F0813C;
  --accent-soft: #FEF1E7;
  --ok: #16A34A;
  --ok-soft: #E7F7EE;
  --warn: #D97706;
  --warn-soft: #FEF6E7;
  --bad: #DC2626;
  --bad-soft: #FDECEC;
  --bg: #F4F6FA;
  --card: #FFFFFF;
  --text: #1F2733;
  --text-2: #55606E;
  --muted: #8A94A3;
  --line: #E6EAF0;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 18px rgba(16, 24, 40, .06);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
}

a { color: var(--brand); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ------------------------------------------------------------ 布局 */
.wrap { max-width: 760px; margin: 0 auto; padding: 0 14px 96px; }

.appbar {
  position: sticky; top: 0; z-index: 30;
  background: linear-gradient(135deg, #2E6BE6, #4C8CF5);
  color: #fff;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 16px 14px;
  box-shadow: 0 2px 12px rgba(28, 60, 130, .18);
}
.appbar .row { max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 10px; }
.appbar h1 { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: .3px; }
.appbar .sub { font-size: 12px; opacity: .85; margin-top: 1px; }
.appbar .spacer { flex: 1; }
.appbar .link { color: #fff; font-size: 13px; opacity: .92; padding: 6px 10px;
  border-radius: 8px; background: rgba(255,255,255,.16); white-space: nowrap; }

.pagehead {
  background: linear-gradient(135deg, #2E6BE6, #4C8CF5);
  color: #fff; padding: 0 16px 22px;
}
.pagehead .inner { max-width: 760px; margin: 0 auto; }
.pagehead h2 { margin: 4px 0 6px; font-size: 21px; font-weight: 680; }
.pagehead p { margin: 0; font-size: 13.5px; opacity: .9; white-space: pre-wrap; }
.pagehead .meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; font-size: 12.5px; }
.pagehead .meta span { background: rgba(255,255,255,.18); padding: 3px 10px; border-radius: 999px; }
.pagehead .meta span.quota { background: rgba(255,255,255,.34); font-weight: 640; }

/* ------------------------------------------------------------ 卡片 */
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px; margin-top: 14px;
  border: 1px solid rgba(16,24,40,.03);
}
.card.tight { padding: 12px; }
.card h3 { margin: 0 0 10px; font-size: 15.5px; font-weight: 650; display: flex;
  align-items: center; gap: 8px; }
.card h3 .tag { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--muted); }
.sect-title { display: flex; align-items: center; gap: 8px; margin: 22px 4px 2px;
  font-size: 14px; font-weight: 650; color: var(--text-2); }
.sect-title::before { content: ''; width: 3px; height: 14px; border-radius: 2px; background: var(--brand); }

/* ------------------------------------------------------------ 任务卡 */
.taskcard {
  display: block; background: var(--card); border-radius: var(--radius); padding: 15px 16px;
  box-shadow: var(--shadow); margin-top: 12px; border-left: 4px solid var(--brand);
  transition: transform .12s ease;
}
.taskcard:active { transform: scale(.99); }
.taskcard.closed { border-left-color: #C8CFDA; opacity: .92; }
.taskcard .tc-top { display: flex; align-items: flex-start; gap: 10px; }
.taskcard .tc-title { font-size: 16px; font-weight: 640; flex: 1; }
.taskcard .tc-desc { color: var(--text-2); font-size: 13.5px; margin-top: 5px;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.taskcard .tc-foot { display: flex; align-items: center; gap: 10px; margin-top: 11px;
  font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.taskcard .tc-foot .go { margin-left: auto; color: var(--brand); font-weight: 600; }

/* ------------------------------------------------------------ 徽标 */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px;
  padding: 2px 9px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.badge.blue { background: var(--brand-soft); color: var(--brand-dark); }
.badge.green { background: var(--ok-soft); color: #12813F; }
.badge.orange { background: var(--accent-soft); color: #C2650F; }
.badge.red { background: var(--bad-soft); color: #B3261E; }
.badge.gray { background: #EEF1F5; color: var(--muted); }

/* ------------------------------------------------------------ 进度条 */
.bar { height: 8px; border-radius: 999px; background: #EBEFF5; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #4C8CF5, #2E6BE6); transition: width .35s ease; }
.bar.ok > i { background: linear-gradient(90deg, #34C77B, #16A34A); }
.bar.warn > i { background: linear-gradient(90deg, #F5B04A, #E8901A); }

/* ------------------------------------------------------------ 学生选择 */
.searchbar { display: flex; gap: 8px; align-items: center; }
.searchbar input {
  flex: 1; border: 1.5px solid var(--line); border-radius: 11px; padding: 11px 13px;
  background: #FAFBFD; outline: none; font-size: 15px;
}
.searchbar input:focus { border-color: var(--brand); background: #fff; }

.grp-title { margin: 14px 2px 7px; font-size: 12.5px; font-weight: 650; color: var(--muted);
  letter-spacing: .4px; }
.stugrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.stu {
  border: 1.5px solid var(--line); background: #fff; border-radius: 11px;
  padding: 12px 6px; text-align: center; font-size: 14.5px; font-weight: 550;
  cursor: pointer; transition: all .12s ease; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap;
}
.stu:active { transform: scale(.97); }
.stu.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark);
  box-shadow: 0 0 0 3px rgba(46,107,230,.1); }
.stu.done { border-style: dashed; border-color: #B9C6DA; background: #F7F9FC; }
.stu .n { font-size: 11px; color: var(--muted); display: block; margin-top: 2px; font-weight: 400; }

.chosen { display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: var(--brand-soft); border-radius: 12px; font-weight: 620; color: var(--brand-dark); }
.chosen .x { margin-left: auto; font-size: 12.5px; font-weight: 500; color: var(--brand); }

/* ------------------------------------------------------------ 选项 */
.opts { display: flex; flex-direction: column; gap: 9px; }
.opt {
  display: flex; align-items: center; gap: 11px; border: 1.5px solid var(--line);
  background: #fff; border-radius: 12px; padding: 14px 15px; cursor: pointer;
  font-size: 15.5px; font-weight: 550; transition: all .12s ease; text-align: left;
}
.opt:active { transform: scale(.99); }
.opt .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #C8D2E0;
  flex: none; position: relative; }
.opt.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
.opt.on .dot { border-color: var(--brand); background: var(--brand); }
.opt.on .dot::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
.opt.on.good { border-color: var(--ok); background: var(--ok-soft); color: #12813F; }
.opt.on.good .dot { border-color: var(--ok); background: var(--ok); }
.opt.on.bad { border-color: var(--bad); background: var(--bad-soft); color: #B3261E; }
.opt.on.bad .dot { border-color: var(--bad); background: var(--bad); }
.opt.on.mid { border-color: var(--warn); background: var(--warn-soft); color: #A85D06; }
.opt.on.mid .dot { border-color: var(--warn); background: var(--warn); }
.opt.lock { opacity: .45; background: #F2F4F7; color: var(--muted); pointer-events: none; }
.opt.lock .dot { border-color: #C8D2E0; }

.stepper { display: flex; align-items: center; gap: 0; border: 1.5px solid var(--line);
  border-radius: 12px; overflow: hidden; width: fit-content; background: #fff; }
.stepper button { width: 50px; height: 46px; border: 0; background: #F7F9FC; font-size: 21px;
  font-weight: 600; color: var(--brand); cursor: pointer; }
.stepper button:active { background: var(--brand-soft); }
.stepper .v { min-width: 62px; text-align: center; font-size: 18px; font-weight: 650; }

/* 省市区县级联 */
.region { display: flex; gap: 8px; }
.region select.in { min-width: 0; flex: 1; padding-left: 9px; padding-right: 6px; }
.region select option { font-size: 15px; }

/* ------------------------------------------------------------ 表单 */
label.fl { display: block; font-size: 13px; font-weight: 600; color: var(--text-2);
  margin: 16px 0 7px; }
label.fl .req { color: var(--bad); margin-left: 3px; }
input.in, textarea.in, select.in {
  width: 100%; border: 1.5px solid var(--line); border-radius: 11px; padding: 11px 13px;
  background: #FAFBFD; outline: none; font-size: 15px;
}
input.in:focus, textarea.in:focus, select.in:focus { border-color: var(--brand); background: #fff; }
textarea.in { min-height: 76px; resize: vertical; }
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ------------------------------------------------------------ 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 0; border-radius: 12px; padding: 13px 18px; font-size: 15.5px; font-weight: 620;
  cursor: pointer; background: var(--brand); color: #fff; transition: all .12s ease;
}
.btn:active { transform: scale(.985); filter: brightness(.96); }
.btn.block { width: 100%; }
.btn.ghost { background: #fff; color: var(--brand); border: 1.5px solid var(--brand); }
.btn.gray { background: #EEF1F5; color: var(--text-2); }
.btn.sm { padding: 8px 13px; font-size: 13.5px; border-radius: 10px; }
.btn.danger { background: #FBE9E7; color: #B3261E; }
.btn.ok { background: var(--ok); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ------------------------------------------------------------ 底部操作条 */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 11px 14px calc(env(safe-area-inset-bottom, 0px) + 11px);
}
.actionbar .inner { max-width: 760px; margin: 0 auto; display: flex; gap: 10px; align-items: center; }
.actionbar .inner .btn { flex: 1; }
.actionbar .info { font-size: 12.5px; color: var(--muted); }

/* ------------------------------------------------------------ 成功态 */
.done-box { text-align: center; padding: 26px 16px 8px; }
.done-box .tick {
  width: 66px; height: 66px; border-radius: 50%; margin: 0 auto 14px;
  background: var(--ok-soft); color: var(--ok); display: flex; align-items: center;
  justify-content: center; font-size: 34px;
}
.done-box h3 { margin: 0 0 6px; font-size: 18px; }
.done-box .mysel { display: inline-block; margin-top: 8px; background: var(--brand-soft);
  color: var(--brand-dark); padding: 7px 14px; border-radius: 999px; font-weight: 620; font-size: 14px; }

/* ------------------------------------------------------------ 榜单 */
.board-row { display: flex; align-items: center; gap: 9px; padding: 9px 2px;
  border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.board-row:last-child { border-bottom: 0; }
.board-row .gname { font-weight: 620; min-width: 54px; }
.board-row .who { color: var(--text-2); flex: 1; word-break: break-all; }
.board-row .cnt { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* ------------------------------------------------------------ 表格 */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th, .tbl td { padding: 9px 8px; text-align: left; border-bottom: 1px solid var(--line); }
.tbl th { font-size: 12px; color: var(--muted); font-weight: 620; background: #FAFBFD; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .miss { color: var(--bad); }

/* ------------------------------------------------------------ 提示 */
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(10px);
  background: rgba(24,32,44,.92); color: #fff; padding: 11px 18px; border-radius: 11px;
  font-size: 14px; z-index: 90; opacity: 0; pointer-events: none; transition: all .22s ease;
  max-width: 84vw; text-align: center;
}
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: rgba(180,38,30,.95); }

.notice { background: var(--accent-soft); border-radius: 12px; padding: 13px 15px;
  margin-top: 12px; border-left: 4px solid var(--accent); }
.notice h4 { margin: 0 0 4px; font-size: 14.5px; color: #A85D06; }
.notice p { margin: 0; font-size: 13.5px; color: #7A5314; white-space: pre-wrap; }
.notice .at { font-size: 11.5px; color: #B08A5A; margin-top: 6px; }

.empty { text-align: center; color: var(--muted); font-size: 14px; padding: 34px 10px; }
.empty .ico { font-size: 34px; display: block; margin-bottom: 8px; opacity: .5; }

.tabs { display: flex; gap: 7px; overflow-x: auto; padding: 12px 0 2px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; border: 1.5px solid var(--line); background: #fff; color: var(--text-2);
  border-radius: 999px; padding: 7px 15px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.tabs button.on { background: var(--brand); border-color: var(--brand); color: #fff; }

.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mono { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.b { font-weight: 650; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }

/* 截图 */
.shotbox { border: 1.5px dashed #C8D2E0; border-radius: 12px; padding: 14px; text-align: center;
  background: #FAFBFD; cursor: pointer; }
.shotbox:active { background: var(--brand-soft); }
.shotbox .ico { font-size: 26px; opacity: .6; }
.shotbox img { max-width: 100%; border-radius: 10px; display: block; margin: 0 auto; }

@media (max-width: 420px) {
  .stugrid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
  .cols2 { grid-template-columns: 1fr; }
}

/* 备案页脚（2026-11-05 域名上线） */
.page-foot{padding:20px 0 28px;text-align:center;font-size:12px;color:#9aa3ab}
.page-foot a{color:#9aa3ab;text-decoration:none}
