/* 学员端 H5：移动优先，无构建依赖 */
:root {
  --p: #1f5eff;
  --p-d: #1747c9;
  --p-soft: #eaf1ff;
  --ink: #16202f;
  --ink-2: #4a5a72;
  --ink-3: #8b98ad;
  --line: #e8edf5;
  --bg: #f4f6fa;
  --ok: #0f9f6e;
  --ok-soft: #e6f7f0;
  --warn: #d9820b;
  --warn-soft: #fff5e5;
  --err: #d94040;
  --err-soft: #fdecec;
  --radius: 14px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
html { scrollbar-gutter: stable; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}
#app { max-width: 520px; margin: 0 auto; min-height: 100vh; background: var(--bg); }
a { color: var(--p); text-decoration: none; }
button { font: inherit; }
input, select, textarea { font: inherit; color: inherit; }

/* ---------- 启动/加载 ---------- */
.boot { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 90px 0; color: var(--ink-3); font-size: 14px; }
.spin { width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--p); border-radius: 50%; animation: rot .7s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.loading { min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--ink-3); font-size: 13px; }
.loading .spin { width: 24px; height: 24px; border-width: 2.5px; }

/* ---------- 登录前页面 ---------- */
.auth { min-height: 100vh; padding: 0 20px calc(28px + var(--safe-b)); background: linear-gradient(180deg, #eaf1ff 0, var(--bg) 260px); }
.auth-brand { padding: 44px 4px 22px; }
.auth-brand .logo { width: 46px; height: 46px; border-radius: 13px; background: var(--p); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; box-shadow: 0 8px 20px rgba(31, 94, 255, .28); }
.auth-brand h1 { margin: 14px 0 4px; font-size: 21px; letter-spacing: .5px; }
.auth-brand p { margin: 0; color: var(--ink-2); font-size: 13.5px; }
.pwd-intro { text-align: center; }
.pwd-intro-ico { width: 56px; height: 56px; margin: 0 auto 12px; display: grid; place-items: center; border: 1px solid #dbe7fb; border-radius: 17px; background: linear-gradient(145deg, #f2f7ff, #e4efff); color: var(--p-d); box-shadow: 0 10px 24px rgba(31, 94, 255, .12); }
.pwd-intro-ico svg { width: 25px; height: 25px; }
.pwd-intro h1 { margin-top: 0; }
html[data-page="pwd"] .auth.with-top { min-height: calc(100vh - 68px); min-height: calc(100dvh - 68px); }
.auth-card { background: #fff; border-radius: var(--radius); padding: 18px 16px 20px; box-shadow: 0 6px 22px rgba(20, 40, 80, .06); }
.auth-card h2 { margin: 2px 0 14px; font-size: 17px; }
.seg { display: flex; background: #f1f4f9; border-radius: 10px; padding: 3px; margin-bottom: 16px; }
.seg button { flex: 1; border: 0; background: none; padding: 8px 0; border-radius: 8px; color: var(--ink-2); font-size: 14px; }
.seg button.on { background: #fff; color: var(--p); font-weight: 600; box-shadow: 0 1px 4px rgba(20, 40, 80, .1); }
.auth-links { display: flex; justify-content: space-between; margin-top: 14px; font-size: 13.5px; }
.auth-foot { margin-top: 22px; text-align: center; color: var(--ink-3); font-size: 12px; line-height: 1.9; }
.notice { display: flex; align-items: flex-start; gap: 8px; background: var(--warn-soft); color: #8a5a08; border: 1px solid #ffe4b5; border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.6; margin-bottom: 14px; }
.notice-ico { width: 18px; height: 18px; margin-top: 1px; flex: none; display: grid; place-items: center; }
.notice-ico svg { display: block; width: 18px; height: 18px; }
.notice-text { flex: 1; min-width: 0; }
.notice.err { background: var(--err-soft); color: #a03030; border-color: #f7d3d3; }
.notice.info { background: var(--p-soft); color: var(--p-d); border-color: #d5e3ff; }
/* 发码前的号码预检提示：挂在手机号下面，按钮禁用时必须跟着说清楚为什么 */
.guard { margin-top: 7px; font-size: 12.5px; line-height: 1.5; color: #8a5a08; background: var(--warn-soft); border: 1px solid #ffe4b5; border-radius: 9px; padding: 7px 10px; }
.guard a { color: var(--p); font-weight: 600; margin-left: 6px; text-decoration: none; white-space: nowrap; }

/* ---------- 表单 ---------- */
.fld { margin-bottom: 16px; }
.fld > label { display: block; margin-bottom: 7px; color: #53647c; font-size: 13px; font-weight: 550; }
.fld > .fld-label { display: flex; align-items: center; gap: 7px; }
.label-ico { width: 18px; height: 18px; flex: none; display: grid; place-items: center; color: #7890b3; }
.label-ico svg { display: block; width: 17px; height: 17px; }
.fld > label.req::after { content: "＊"; color: var(--err); margin-left: 2px; }
.fld input, .fld select, .fld textarea { width: 100%; min-height: 46px; border: 1px solid #dfe7f1; background: #f8fafd; border-radius: 11px; padding: 11px 13px; outline: 0; font-size: 16px; transition: border-color .15s, background .15s, box-shadow .15s; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--p); background: #fff; box-shadow: 0 0 0 3px rgba(31,94,255,.08); }
.fld input[readonly] { color: var(--ink-3); background: #f2f5f9; }
.f-tip { display: flex; align-items: flex-start; gap: 6px; font-size: 12px; color: var(--ink-3); margin-top: 5px; line-height: 1.65; }
.f-tip.bad { color: var(--err); }
.cap-row { display: flex; gap: 10px; align-items: flex-end; }
.cap-row .fld { flex: 1; margin-bottom: 0; }
.cap-img { height: 42px; width: 147px; border-radius: 9px; border: 1px solid var(--line); background: #fff; object-fit: contain; }
.btn { display: block; width: 100%; min-height: 47px; border: 0; border-radius: 12px; padding: 12px 15px; background: var(--p); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; transition: transform .12s, background .15s, box-shadow .15s; }
.btn:active { background: var(--p-d); transform: translateY(1px); }
.btn[disabled] { background: #c3d0e6; cursor: not-allowed; transform: none; }
.btn.ghost { background: #fff; color: var(--ink-2); border: 1px solid var(--line); font-weight: 400; }
.btn.warn { background: var(--warn); }
.btn.sm { width: auto; padding: 7px 14px; font-size: 13.5px; border-radius: 9px; font-weight: 500; }
.btn-row { display: flex; gap: 10px; }
.btn-content { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.btn-ico { display: inline-flex; align-items: center; justify-content: center; flex: none; }
.btn-ico svg { display: block; width: 17px; height: 17px; }
.btn.sm .btn-ico svg { width: 15px; height: 15px; }
.code-btn { position: absolute; right: 6px; top: 6px; border: 0; background: var(--p-soft); color: var(--p-d); border-radius: 8px; padding: 6px 10px; font-size: 13px; }
.code-btn[disabled] { background: #eef1f6; color: var(--ink-3); }
.inp-wrap { position: relative; }

/* 登录、注册与找回密码：共用深色科技品牌区和高可读性表单卡 */
html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) body { background: #070d18; }
html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login {
  position: relative; min-height: 100vh; min-height: 100dvh; overflow: hidden;
  padding: 0 16px calc(24px + var(--safe-b)); background: #070d18;
}
html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .auth-brand {
  position: relative; isolation: isolate; overflow: hidden; margin: 0 -16px;
  padding: calc(27px + env(safe-area-inset-top, 0px)) 22px 94px;
  background: #0a1424;
}
html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .auth-brand::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(480px 340px at 0 0, rgba(28, 112, 231, .34), transparent 67%),
    radial-gradient(360px 300px at 100% 100%, rgba(0, 190, 211, .12), transparent 68%),
    linear-gradient(145deg, #0d1b31, #091321 62%, #0b1a2d);
}
html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .auth-brand::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .28;
  background-image: linear-gradient(rgba(122, 169, 229, .1) 1px, transparent 1px), linear-gradient(90deg, rgba(122, 169, 229, .1) 1px, transparent 1px);
  background-size: 38px 38px; mask-image: linear-gradient(135deg, #000, transparent 78%);
}
html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .auth-ico { display: inline-block; vertical-align: -.18em; flex: none; }
.login-brandline { position: relative; z-index: 1; display: flex; align-items: center; gap: 11px; }
.login-brandline .logo { position: relative; width: 46px; height: 46px; flex: none; border: 1px solid rgba(126, 187, 255, .35); border-radius: 13px; background: linear-gradient(145deg, #2f8bff, #0d5ebd); box-shadow: 0 0 0 4px rgba(47, 139, 255, .07), 0 10px 26px rgba(0, 74, 175, .3); font-size: 21px; }
.login-brandline .logo::after { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(255,255,255,.13); border-radius: 9px; }
.login-brandname { color: #fff; line-height: 1.35; }
.login-brandname b { display: block; font-size: 16px; font-weight: 650; letter-spacing: .3px; }
.login-brandname span { display: block; margin-top: 4px; color: #6f8cb4; font-size: 8px; letter-spacing: 1.8px; }
.login-secure { display: grid; place-items: center; width: 32px; height: 32px; flex: none; margin-left: auto; padding: 0; border: 1px solid rgba(147, 190, 248, .17); border-radius: 10px; background: rgba(255,255,255,.04); color: #79aff7; font-size: 16px; cursor: pointer; }
.login-hero { position: relative; z-index: 1; margin-top: 36px; animation: login-rise .5s ease-out both; }
.login-hero > span { color: #5f9ffa; font-size: 8px; font-weight: 650; letter-spacing: 2.4px; }
.login-hero h1 { margin: 9px 0 8px; color: #f5f8ff; font-size: 28px; line-height: 1.35; font-weight: 650; letter-spacing: .5px; }
.login-hero p { margin: 0; color: #8299b9; font-size: 11.5px; letter-spacing: .2px; }
.login-capabilities { position: relative; z-index: 1; display: flex; gap: 7px; margin-top: 19px; }
.login-capabilities span { display: flex; align-items: center; gap: 5px; padding: 6px 9px; border: 1px solid rgba(137, 178, 232, .13); border-radius: 8px; background: rgba(255,255,255,.035); color: #9db2cf; font-size: 9.5px; }
.login-capabilities .auth-ico { color: #66a8ff; }
.login-credential { display: none; }
html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .auth-card {
  position: relative; z-index: 2; margin-top: -64px; padding: 27px 22px 23px;
  border: 1px solid rgba(255,255,255,.7); border-radius: 22px; background: #f9fbff;
  box-shadow: 0 24px 60px rgba(0, 5, 15, .42), 0 2px 8px rgba(0, 5, 15, .2);
  animation: login-rise .55s .05s ease-out both;
}
.login-card-accent { position: absolute; left: 28px; right: 28px; top: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, #2585ed 35%, #4ad4df 70%, transparent); }
.login-card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 21px; }
.login-card-head h2 { margin: 0 0 4px; color: #132137; font-size: 23px; line-height: 1.3; letter-spacing: .3px; font-weight: 650; }
.login-card-head p { margin: 0; color: #8a99ad; font-size: 12px; }
.login-card-head > .auth-ico { box-sizing: content-box; padding: 10px; border: 1px solid #dbe8fb; border-radius: 13px; background: linear-gradient(145deg, #edf5ff, #e3eeff); color: #1267d5; }
html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .seg { margin-bottom: 22px; padding: 4px; border: 1px solid #e9eef6; border-radius: 11px; background: #edf2f8; }
html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .seg button { padding: 9px 0; border-radius: 8px; color: #718198; font-size: 13px; font-weight: 500; transition: .16s; }
html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .seg button.on { background: linear-gradient(100deg, #1264d2, #2588ed); color: #fff; font-weight: 600; box-shadow: 0 5px 14px rgba(18, 100, 210, .22); }
html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .fld { margin-bottom: 17px; }
html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .fld > label { margin-bottom: 7px; color: #536176; font-size: 12px; font-weight: 600; }
html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .fld input { height: 48px; padding: 0 13px; border-color: #dfe7f1; border-radius: 10px; background: #f5f8fc; font-size: 16px; transition: border-color .15s, box-shadow .15s, background .15s; }
html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .fld-control { position: relative; }
html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .fld-control > .fld-ico { position: absolute; left: 14px; top: 50%; display: grid; place-items: center; width: 18px; height: 18px; transform: translateY(-50%); color: #93a4ba; pointer-events: none; transition: color .15s; }
html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .fld-control > .fld-ico svg { display: block; width: 18px; height: 18px; }
html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .fld-control input { padding-left: 42px; }
html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .fld-control:focus-within > .fld-ico { color: #2585ed; }
html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .inp-wrap .fld-control input { padding-right: 112px; }
html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .fld input:focus { border-color: #2585ed; background: #fff; box-shadow: 0 0 0 3px rgba(37, 133, 237, .1); }
html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .fld input::placeholder { color: #a3b0c1; }
html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .cap-img { width: 140px; height: 48px; flex: none; border-radius: 10px; object-fit: contain; }
/* 登录页的 .fld 下边距比 .cap-row .fld 的清零更具体，flex-end 会按外边距盒对齐，验证码图片就掉到输入框下面 */
html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .cap-row .fld { margin-bottom: 0; }
html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .code-btn { top: 7px; right: 7px; padding: 7px 11px; background: #e8f1ff; color: #1264d2; font-size: 12px; font-weight: 600; }
html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .btn {
  height: 50px; margin-top: 24px; border: 1px solid rgba(110, 177, 255, .3); border-radius: 11px;
  background: linear-gradient(100deg, #1264d2, #2588ed); font-size: 14.5px; font-weight: 600; letter-spacing: 2px;
  box-shadow: 0 11px 25px rgba(18, 100, 210, .24), inset 0 1px 0 rgba(255,255,255,.15); transition: transform .15s, filter .15s;
}
html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .btn .auth-ico { margin-left: 5px; }
html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .btn:active { transform: translateY(1px); filter: brightness(.96); }
html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .auth-links { margin-top: 20px; padding-top: 17px; border-top: 1px dashed #e1e8f1; font-size: 12.5px; }
html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .auth-links a { color: #1264d2; font-weight: 600; }
html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .auth-links a:last-child { color: #718198; font-weight: 400; }
html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .auth-foot { margin-top: 20px; color: #607a9c; font-size: 10.5px; line-height: 1.8; }
html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .auth-foot span { display: flex; align-items: center; justify-content: center; gap: 5px; color: #829bb9; font-size: 11px; }
html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .auth-foot .auth-ico { color: #6394c9; }
html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .auth-foot small { display: block; margin-top: 3px; color: #4e6889; font-size: 9.5px; }
html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .notice { margin: -4px 0 18px; }
@keyframes login-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 880px) {
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) #app { max-width: none; background: transparent; box-shadow: none; }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login {
    display: grid; grid-template-columns: minmax(0, 1fr) 450px; grid-template-areas: "brand card" "foot foot";
    max-width: 1120px; min-height: calc(100vh - 64px); min-height: calc(100dvh - 64px);
    margin: 32px auto; padding: 0; overflow: hidden; border: 1px solid rgba(125, 165, 219, .12); border-radius: 28px; background: #f9fbff;
    box-shadow: 0 34px 90px rgba(0, 4, 12, .48), 0 0 0 1px rgba(0, 4, 12, .2);
  }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .auth-brand {
    grid-area: brand; display: block; min-height: 680px; margin: 0;
    padding: 50px 46px 64px; border-radius: 0; background: #0a1424;
  }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .auth-brand::after { right: -120px; bottom: -160px; width: 390px; height: 390px; }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .login-brandline .logo { width: 52px; height: 52px; font-size: 24px; }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .login-brandname b { font-size: 18px; }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .login-brandname span { font-size: 8.5px; }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .login-hero { margin-top: 68px; }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .login-hero > span { font-size: 9px; }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .login-hero h1 { margin: 13px 0 11px; font-size: 36px; }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .login-hero p { font-size: 12.5px; }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .login-capabilities { margin-top: 22px; }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .login-capabilities span { padding: 7px 10px; font-size: 10px; }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .login-credential {
    position: absolute; right: 38px; bottom: 54px; display: block; width: 330px; padding: 19px 20px 17px;
    border: 1px solid rgba(133, 184, 255, .24); border-radius: 16px;
    background: linear-gradient(135deg, rgba(25, 52, 86, .94), rgba(12, 29, 50, .96));
    box-shadow: 0 28px 60px rgba(0, 5, 15, .42), inset 0 1px 0 rgba(255,255,255,.06);
    transform: rotate(-5deg); backdrop-filter: blur(16px); animation: credential-float 6s ease-in-out infinite;
  }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .login-credential::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(220px 120px at 100% 0, rgba(41, 139, 255, .22), transparent 70%); pointer-events: none; }
  .credential-top { position: relative; display: flex; align-items: center; justify-content: space-between; color: #6e9ed8; font-size: 7px; letter-spacing: 1.6px; }
  .credential-top .auth-ico { color: #65a8ff; }
  .credential-body { position: relative; padding: 22px 0 19px; }
  .credential-body small { color: #588bd3; font-size: 7px; letter-spacing: 1.8px; }
  .credential-body strong { display: block; margin-top: 6px; color: #edf5ff; font-size: 21px; font-weight: 600; letter-spacing: 1px; }
  .credential-body p { margin: 7px 0 0; color: #718caf; font-size: 9px; }
  .credential-foot { position: relative; display: flex; justify-content: space-between; padding-top: 11px; border-top: 1px solid rgba(255,255,255,.07); color: #53779f; font-size: 7px; letter-spacing: 1px; }
  .credential-foot span:first-child { display: flex; align-items: center; gap: 5px; color: #57cfa5; }
  .credential-foot i { width: 5px; height: 5px; border-radius: 50%; background: #4bd4a6; box-shadow: 0 0 8px rgba(75, 212, 166, .7); }
  @keyframes credential-float { 0%,100% { transform: rotate(-5deg) translateY(0); } 50% { transform: rotate(-4deg) translateY(-7px); } }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .auth-card {
    grid-area: card; align-self: center; min-height: 680px; margin: 0; padding: 56px 44px;
    display: flex; flex-direction: column; justify-content: center;
    border: 0; border-left: 1px solid #e6edf6; border-radius: 0; background: #f9fbff; box-shadow: none;
  }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .login-card-accent { left: 44px; right: 44px; }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .login-card-head h2 { font-size: 26px; }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .cap-img { width: 168px; }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .auth-foot {
    grid-area: foot; display: flex; align-items: center; justify-content: center; gap: 22px;
    margin: 0; padding: 16px 24px; border-top: 1px solid rgba(132, 170, 220, .1); background: #0a1424;
  }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .auth-foot small { margin: 0; }
}
@media (min-width: 880px) and (max-width: 1020px) {
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login { grid-template-columns: minmax(0, 1fr) 410px; }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .auth-brand { padding: 44px 34px 54px; }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .login-hero h1 { font-size: 31px; }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .login-credential { right: 26px; width: 290px; }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .auth-card { padding-inline: 34px; }
}
@media (min-width: 720px) and (max-width: 1023px) {
  #app { max-width: 760px; }
  .top { padding-inline: 24px; }
  .main { max-width: none; padding: 24px 24px 118px; }
  html[data-page="courses"] .main,
  html[data-page="certs"] .main,
  html[data-page="exam"] .main { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
  html[data-page="courses"] .main > .library-summary,
  html[data-page="courses"] .main > .list-heading,
  html[data-page="courses"] .main > .notice,
  html[data-page="courses"] .main > .page-note,
  html[data-page="certs"] .main > .notice,
  html[data-page="certs"] .main > .page-note,
  html[data-page="exam"] .main > .hint,
  html[data-page="exam"] .main > .notice { grid-column: 1 / -1; }
  html[data-page="courses"] .main > .course-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; grid-column: 1 / -1; }
  html[data-page="certs"] .main > .course-list { display: contents; }
  html[data-page="flow"] .main { display: block; max-width: 920px; margin-inline: auto; }
  html[data-page="me"] .main { max-width: 680px; margin-inline: auto; }
  .tabbar { bottom: 18px; max-width: 620px; padding: 7px 10px; border: 1px solid #e5ebf3; border-radius: 18px; box-shadow: 0 16px 38px rgba(20,40,80,.16); }
  .tabbar a { min-height: 48px; flex-direction: row; gap: 8px; padding: 10px 8px; border-radius: 12px; font-size: 13px; }
  .tabbar a.on { background: var(--p-soft); color: var(--p-d); font-weight: 650; }
  .tabbar a.on > svg { transform: none; }
  .sheet { bottom: 18px; max-width: 640px; }
  .ex-foot { max-width: 760px; }

  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) #app { max-width: none; min-height: 100vh; min-height: 100dvh; padding: 24px 0; background: transparent; box-shadow: none; }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login {
    display: grid; grid-template-columns: minmax(0, 1fr) 370px; grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: "brand card" "foot foot"; align-items: stretch;
    max-width: 960px; height: calc(100vh - 48px); height: calc(100dvh - 48px); min-height: 0;
    margin: 0 auto; padding: 0; overflow: hidden; border: 1px solid rgba(125,165,219,.12); border-radius: 24px; background: #f9fbff;
    box-shadow: 0 28px 70px rgba(0,4,12,.42);
  }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .auth-brand {
    grid-area: brand; min-height: 600px; margin: 0; padding: 40px 32px 48px; border-radius: 0;
  }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .login-brandline .logo { width: 48px; height: 48px; font-size: 22px; }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .login-brandname b { font-size: 16px; }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .login-hero { margin-top: 54px; }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .login-hero h1 { font-size: 31px; }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .login-hero p { max-width: 270px; font-size: 11.5px; line-height: 1.8; }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .login-capabilities { flex-wrap: wrap; margin-top: 20px; }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .login-credential { display: none; }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .auth-card {
    grid-area: card; align-self: stretch; display: flex; flex-direction: column; justify-content: safe center; min-height: 600px; margin: 0; padding: 42px 32px; overflow-y: auto; overscroll-behavior: contain;
    border: 0; border-left: 1px solid #e6edf6; border-radius: 0; box-shadow: none;
  }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .login-card-accent { left: 32px; right: 32px; }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .login-card-head h2 { font-size: 24px; }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .auth-foot {
    grid-area: foot; display: flex; align-items: center; justify-content: center; gap: 18px;
    margin: 0; padding: 15px 20px; border-top: 1px solid rgba(132,170,220,.1); background: #0a1424;
  }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .auth-foot small { margin: 0; }
}

@media (min-width: 1024px) {
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login {
    grid-template-columns: minmax(0, 1.35fr) minmax(460px, .9fr); grid-template-rows: minmax(0, 1fr) auto; align-items: stretch;
    max-width: 1600px; height: 100vh; height: 100dvh; min-height: 0; margin: 0 auto;
    border: 0; border-radius: 0; box-shadow: none;
  }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .auth-brand {
    min-height: 0; padding: clamp(48px, 6vw, 92px) clamp(44px, 7vw, 112px) 64px;
  }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .login-brandline .logo { width: 56px; height: 56px; font-size: 25px; }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .login-brandname b { font-size: 19px; }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .login-brandname span { font-size: 9px; }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .login-hero { margin-top: clamp(64px, 11vh, 128px); }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .login-hero > span { font-size: 10px; }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .login-hero h1 { margin: 16px 0 13px; font-size: clamp(40px, 4vw, 56px); letter-spacing: 1px; }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .login-hero p { font-size: 14px; line-height: 1.8; }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .login-capabilities { margin-top: 26px; }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .login-capabilities span { padding: 8px 12px; font-size: 11px; }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .login-credential {
    right: clamp(44px, 7vw, 112px); bottom: 58px; width: 360px;
  }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .credential-body strong { font-size: 23px; }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .auth-card {
    align-self: stretch; width: 100%; max-width: 520px; min-height: 0; justify-self: center; justify-content: safe center; overflow-y: auto; overscroll-behavior: contain;
    padding: 48px 56px; border: 0; background: transparent; box-shadow: none;
  }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .login-card-accent { display: none; }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .login-card-head { margin-bottom: 26px; }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .login-card-head h2 { font-size: 30px; }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .login-card-head p { font-size: 13px; }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .fld { margin-bottom: 20px; }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .fld input { height: 52px; }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .cap-img { height: 52px; }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .btn { height: 52px; margin-top: 28px; }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .auth-foot { padding-block: 18px; }
}

@media (min-width: 1024px) and (max-height: 820px) {
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .auth-brand { padding-top: 38px; padding-bottom: 38px; }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .login-hero { margin-top: 46px; }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .login-hero h1 { font-size: 40px; }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .login-credential { bottom: 34px; transform: rotate(-4deg); }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .auth-card { padding-top: 34px; padding-bottom: 34px; }
}

@media (min-width: 1024px) and (max-height: 700px) {
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .login-credential { display: none; }
}
@media (max-width: 370px) {
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login { padding-inline: 12px; }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .auth-brand { margin-inline: -12px; padding-inline: 20px; }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .login-brandname b { font-size: 14.5px; }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .login-hero h1 { font-size: 25px; }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .login-capabilities { gap: 5px; }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .login-capabilities span { padding-inline: 7px; font-size: 8.5px; }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .auth-card { padding-inline: 18px; }
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .cap-img { width: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .login-hero,
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .auth-login .auth-card,
  html:is([data-page="login"], [data-page="register"], [data-page="forgot"]) .login-credential { animation: none; }
}

/* ---------- 主页面骨架 ---------- */
html { background: #e9edf5; }
body { overscroll-behavior-y: none; }
#app { position: relative; max-width: 560px; background: linear-gradient(180deg, #f8faff 0, var(--bg) 420px); }
.top { position: sticky; top: 0; z-index: 20; min-height: 68px; background: rgba(250, 252, 255, .9); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid rgba(220, 228, 240, .72); padding: calc(10px + env(safe-area-inset-top, 0px)) 18px 10px; display: flex; align-items: center; gap: 11px; }
.top-title { flex: 1; min-width: 0; }
.top-title > span { display: block; margin-bottom: 1px; color: #7890b3; font-size: 8px; font-weight: 700; line-height: 1.4; letter-spacing: 1.6px; }
.top h1 { margin: 0; font-size: 19px; line-height: 1.35; letter-spacing: -.2px; }
.top-mark { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(145deg, #2d7cf0, #1558cb); color: #fff; font-size: 16px; font-weight: 700; box-shadow: 0 6px 14px rgba(31, 94, 255, .2); }
.top-status { display: flex; align-items: center; gap: 5px; color: #6d829f; font-size: 11px; white-space: nowrap; }
.top-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.top .back { width: 36px; height: 36px; flex: none; display: grid; place-items: center; margin-left: -7px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); cursor: pointer; }
.top .back:active { background: var(--p-soft); }
.top .back svg { display: block; width: 20px; height: 20px; }
.top-spacer { width: 36px; flex: none; }
.main { padding: 18px 16px calc(98px + var(--safe-b)); animation: page-in .24s ease-out; }
.main::after { content: "© 2026 技术开发 · 汇聚堂"; display: block; margin-top: 18px; text-align: center; font-size: 11px; color: #93a7bf; letter-spacing: .3px; }
@keyframes page-in { from { opacity: .35; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; max-width: 560px; margin: 0 auto; display: flex; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); border-top: 1px solid rgba(220, 228, 240, .85); padding: 7px 8px calc(7px + var(--safe-b)); z-index: 30; box-shadow: 0 -6px 24px rgba(31, 55, 90, .04); }
.tabbar a { position: relative; flex: 1; min-height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 12px; color: #7b8ba3; font-size: 10.5px; font-weight: 500; transition: color .18s, background .18s; }
.tabbar a > svg { width: 21px; height: 21px; transition: transform .18s; }
.tabbar a.on { color: var(--p); font-weight: 650; }
.tabbar a.on > svg { transform: translateY(-1px); }
.tabbar a:active { background: #f2f6fc; }
.tabbar a .dot { position: absolute; top: 5px; left: calc(50% + 6px); width: 6px; height: 6px; border: 1.5px solid #fff; border-radius: 50%; background: var(--err); }

/* ---------- 卡片与通用层级 ---------- */
.card { background: #fff; border: 1px solid #eaf0f7; border-radius: 18px; padding: 18px; margin-bottom: 14px; box-shadow: 0 2px 4px rgba(20, 40, 80, .02), 0 10px 26px rgba(20, 40, 80, .045); }
.card > h3 { margin: 0 0 4px; font-size: 16.5px; line-height: 1.45; display: flex; align-items: center; gap: 7px; }
.card > h3 .tag { margin-left: auto; }
.card-title > span:nth-child(2) { min-width: 0; }
.title-ico { width: 30px; height: 30px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; background: var(--p-soft); color: var(--p-d); }
.title-ico svg { display: block; width: 17px; height: 17px; }
.card > .sub { margin: 0 0 14px; font-size: 13px; line-height: 1.65; color: var(--ink-3); }
.card.pad0 { padding: 0; overflow: hidden; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head h3 { margin: 0; font-size: 17px; line-height: 1.4; letter-spacing: -.2px; display: flex; align-items: center; gap: 8px; }
.section-head h3 .title-ico { width: 25px; height: 25px; border-radius: 8px; }
.section-head h3 .title-ico svg { width: 15px; height: 15px; }
.section-head p { margin: 3px 0 0; color: var(--ink-3); font-size: 12.5px; line-height: 1.55; }
.card-heading { padding: 18px 18px 0; }
.text-link { flex: none; color: var(--p); font-size: 12.5px; font-weight: 600; }
.list-heading { margin: 24px 2px 13px; }
.group-heading { margin: 24px 3px 10px; }
.group-heading h3 { color: #63748e; font-size: 13px; font-weight: 600; letter-spacing: .3px; }
.page-note { margin: 18px 6px 0; color: #8b99ad; font-size: 12px; line-height: 1.8; text-align: center; }
.action-row { margin-top: 14px; }
.empty-state { padding: 22px 10px 26px; text-align: center; }
.empty-state h3 { margin: 12px 0 5px; font-size: 16px; }
.empty-state p { margin: 0 auto; max-width: 280px; color: var(--ink-3); font-size: 13px; line-height: 1.7; }
.state-card { padding: 42px 22px; text-align: center; }
.state-card h3 { margin: 13px 0 6px; font-size: 17px; }
.state-card p { margin: 0 0 18px; color: var(--ink-3); font-size: 13.5px; }
.state-card .btn { margin: 0 auto; }
.state-ico { width: 54px; height: 54px; margin: 0 auto; display: grid; place-items: center; border-radius: 17px; background: var(--p-soft); color: var(--p); }
.state-ico svg { width: 25px; height: 25px; }
.state-ico.err { background: var(--err-soft); color: var(--err); }

/* ---------- 学习流程 ---------- */
.flow-hero { position: relative; isolation: isolate; overflow: hidden; margin-bottom: 15px; padding: 23px 21px 18px; border-radius: 22px; background: linear-gradient(135deg, #123b83 0, #1d5ed6 56%, #2d7ff2 100%); color: #fff; box-shadow: 0 16px 34px rgba(23, 78, 177, .22); }
.flow-hero-glow { position: absolute; z-index: -1; inset: 0; background: radial-gradient(320px 220px at 100% 0, rgba(91, 196, 255, .34), transparent 68%), radial-gradient(240px 180px at 0 100%, rgba(0, 224, 210, .14), transparent 70%); }
.flow-hero-glow::after { content: ""; position: absolute; inset: 0; opacity: .14; background-image: linear-gradient(rgba(255,255,255,.3) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.3) 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(135deg, #000, transparent 72%); }
.flow-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.hero-kicker { color: #9fc7ff; font-size: 8px; font-weight: 700; letter-spacing: 1.8px; }
.flow-hero h2 { margin: 8px 0 4px; font-size: 25px; line-height: 1.3; letter-spacing: -.4px; }
.flow-hero-top p { margin: 0; color: #bfd7fb; font-size: 12.5px; }
.hero-ring { --value: 0; width: 76px; height: 76px; flex: none; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(#72e2cf calc(var(--value) * 1%), rgba(255,255,255,.16) 0); }
.hero-ring > div { width: 64px; height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; background: #1c5bc7; }
.hero-ring b { font-size: 20px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.hero-ring small { font-size: 10px; font-weight: 500; }
.hero-ring span { margin-top: 2px; color: #a9cbfa; font-size: 9px; }
.hero-action { display: flex; align-items: center; gap: 9px; margin-top: 20px; padding: 11px 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; background: rgba(255,255,255,.1); color: #fff; font-size: 12.5px; backdrop-filter: blur(8px); }
.hero-action-ico { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.13); }
.hero-action-ico svg { width: 15px; height: 15px; }
.hero-action > span:nth-child(2) { flex: 1; }
.hero-action b { display: flex; align-items: center; gap: 3px; color: #a8e9ff; font-size: 12px; white-space: nowrap; }
.progress-card { padding-bottom: 20px; }
.steps { display: flex; padding: 3px 0 0; }
.step { flex: 1; min-width: 0; text-align: center; position: relative; }
.step .ico { width: 31px; height: 31px; margin: 0 auto 7px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 650; background: #f0f3f8; color: #9aa7ba; position: relative; z-index: 2; box-shadow: 0 0 0 4px #fff; }
.step::after { content: ""; position: absolute; top: 15px; left: 50%; width: 100%; height: 2px; background: #edf1f6; z-index: 1; }
.step:last-child::after { display: none; }
.step .nm { overflow: hidden; color: #8b98ad; font-size: 10.5px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.step.done .ico { background: var(--ok-soft); color: var(--ok); }
.step.done::after { background: #7dd3b5; }
.step.done .nm { color: #398b70; }
.step.current .ico { background: var(--p); color: #fff; box-shadow: 0 0 0 4px var(--p-soft); }
.step.current .nm { color: var(--p); font-weight: 650; }
.node-list { padding: 0 18px 7px; }
.node { display: flex; align-items: center; gap: 12px; padding: 15px 0; border-bottom: 1px solid #edf1f6; }
.node:last-child { border-bottom: 0; }
.node .mark { width: 30px; height: 30px; border-radius: 10px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 13px; background: #f1f4f8; color: #9aa7ba; }
.node.done .mark { background: var(--ok-soft); color: var(--ok); }
.node.current .mark { background: var(--p); color: #fff; box-shadow: 0 5px 12px rgba(31,94,255,.2); }
.node .txt { flex: 1; min-width: 0; }
.node .txt b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.5; }
.node .txt p { margin: 2px 0 0; font-size: 12px; line-height: 1.55; color: var(--ink-3); }
.node .state { flex: none; color: #98a5b8; font-size: 11px; }
.node.current .state { color: var(--p); font-weight: 600; }
.node.done .state { color: var(--ok); }
.node-link { flex: none; padding: 5px 8px; border-radius: 7px; background: var(--p-soft); color: var(--p); font-size: 11px; font-weight: 600; }

/* ---------- 通用列表 / 标签 ---------- */
.rows > div, .rows .row { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid #edf1f6; font-size: 13.5px; line-height: 1.55; }
.rows > div:last-child, .rows .row:last-child { border-bottom: 0; }
.rows .k, .rows .row > span { color: var(--ink-2); flex: none; }
.rows .v, .rows .row > b { text-align: right; font-weight: 550; word-break: break-all; }
.tag { display: inline-flex; align-items: center; justify-content: center; min-height: 22px; padding: 2px 8px; border-radius: 7px; background: #f0f3f8; color: #66768e; font-size: 11px; font-weight: 550; line-height: 1.4; white-space: nowrap; }
.tag.ok { background: var(--ok-soft); color: #0c8660; }
.tag.warn { background: var(--warn-soft); color: #96610d; }
.tag.err { background: var(--err-soft); color: #b13c3c; }
.tag.info { background: var(--p-soft); color: var(--p-d); }
.empty { padding: 24px 8px; text-align: center; color: var(--ink-3); font-size: 13px; }
.muted { color: var(--ink-3); font-size: 12.5px; line-height: 1.65; }
.nw { white-space: nowrap; }
.hint { display: flex; align-items: flex-start; gap: 7px; margin: 12px 3px 0; color: #8b99ad; font-size: 12px; line-height: 1.75; }
.hint-ico { width: 16px; height: 16px; margin-top: 2px; flex: none; display: grid; place-items: center; color: #93a4ba; }
.hint-ico svg { display: block; width: 16px; height: 16px; }
.cell em.sub, .sub { display: block; margin-top: 3px; color: var(--ink-3); font-size: 11.5px; font-style: normal; font-weight: 400; line-height: 1.55; }

/* ---------- 证件照上传 ---------- */
.photo-up { display: flex; gap: 14px; align-items: center; }
.photo-box { width: 92px; height: 124px; border-radius: 8px; border: 1px dashed #c9d5e8; background: #fbfcfe; display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none; color: var(--ink-3); font-size: 11.5px; text-align: center; line-height: 1.5; }
.photo-box img { width: 100%; height: 100%; object-fit: cover; }
.photo-box.has { border-style: solid; border-color: var(--ok); }
.photo-side { flex: 1; font-size: 12.5px; color: var(--ink-3); line-height: 1.7; }
.photo-side .btn { margin-top: 8px; }

/* ---------- 我的 ---------- */
.me-head { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding: 23px 20px; border-radius: 22px; background: linear-gradient(135deg, #123b83, #1d5ed6 64%, #347ff0); color: #fff; box-shadow: 0 15px 32px rgba(23, 78, 177, .2); }
.me-head-bg { position: absolute; z-index: -1; inset: 0; background: radial-gradient(260px 180px at 100% 0, rgba(99, 210, 255, .28), transparent 70%), radial-gradient(200px 160px at 0 100%, rgba(0, 224, 210, .12), transparent 72%); }
.me-head .av { width: 58px; height: 58px; flex: none; overflow: hidden; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.32); border-radius: 18px; background: rgba(255,255,255,.16); font-size: 24px; font-weight: 600; }
.me-head .av img { width: 100%; height: 100%; object-fit: cover; }
.me-identity { flex: 1; min-width: 0; }
.me-identity > span { color: #9fc7ff; font-size: 7.5px; font-weight: 700; letter-spacing: 1.5px; }
.me-identity b { display: block; margin-top: 3px; overflow: hidden; font-size: 22px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.me-identity p { margin: 3px 0 0; color: #bfd7fb; font-size: 12px; letter-spacing: .4px; }
.me-status { position: absolute; top: 13px; right: 14px; display: flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 6px; background: rgba(255,255,255,.1); color: #c7e5d9; font-size: 9px; }
.me-status i { width: 4px; height: 4px; border-radius: 50%; background: #6ee7b7; }
.me-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: -2px 0 4px; padding: 16px 4px; border: 1px solid #eaf0f7; border-radius: 17px; background: #fff; box-shadow: 0 8px 22px rgba(20,40,80,.04); }
.me-stats a { display: flex; flex-direction: column; align-items: center; border-right: 1px solid #edf1f6; }
.me-stats a:last-child { border-right: 0; }
.me-stats b { color: #203b66; font-size: 21px; line-height: 1.25; font-variant-numeric: tabular-nums; }
.me-stats span { margin-top: 3px; color: #8493a8; font-size: 11px; }
.menu-card { border-radius: 17px; }
.cell { min-height: 58px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #edf1f6; font-size: 14px; line-height: 1.45; color: var(--ink); background: #fff; }
.cell:last-child { border-bottom: 0; }
.cell .ci { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #f0f5fd; color: var(--p); flex: none; }
.cell .ci svg { width: 17px; height: 17px; }
.cell .cv { margin-left: auto; color: var(--ink-3); font-size: 11.5px; text-align: right; }
.cell .go { display: inline-block; margin-left: 4px; color: #b2bfd1; font-size: 18px; line-height: 1; vertical-align: -1px; }
.cell.tap { cursor: pointer; transition: background .15s; }
.cell.tap:active { background: #f5f8fd; }
.cell.compact { min-height: 47px; padding-block: 10px; color: #66768e; font-size: 13px; }
.cell.compact .ci { width: 30px; height: 30px; background: #f6f8fb; color: #71849f; }
.cell .ud { display: inline-block; width: 6px; height: 6px; margin-left: 5px; border-radius: 50%; background: var(--err); vertical-align: 2px; }
.nt-body { white-space: pre-wrap; line-height: 1.9; color: var(--ink-2); margin: 14px 0 0; font-size: 14px; }
.doc-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.doc-item { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcff; color: var(--ink); transition: background .15s, border-color .15s; }
.doc-item:active { background: var(--p-soft); border-color: #c9d9ff; }
.doc-ico { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: #fff; }
.doc-meta { flex: 1; min-width: 0; }
.doc-name { display: block; overflow: hidden; font-size: 13.5px; font-weight: 600; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.doc-sub { display: block; margin-top: 2px; font-size: 11px; color: var(--ink-3); }
.doc-dl { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--p-soft); color: var(--p); }
.doc-item:active .doc-dl { background: #dfe9ff; }
.logout-btn { margin-top: 24px; color: #b14b4b; border-color: #f0dada; }

/* ---------- Toast ---------- */
#toast-box { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 999; width: min(92vw, 420px); display: flex; flex-direction: column; gap: 8px; }
.toast { background: rgba(22, 32, 47, .93); color: #fff; padding: 10px 14px; border-radius: 10px; font-size: 13.5px; text-align: center; animation: tin .18s ease-out; }
.toast.ok { background: rgba(15, 134, 96, .95); }
.toast.err { background: rgba(190, 58, 58, .95); }
.toast.out { opacity: 0; transition: opacity .25s; }
@keyframes tin { from { transform: translateY(-10px); opacity: .3; } }

/* ---------- 底部弹层 ---------- */
.mask { position: fixed; inset: 0; background: rgba(10, 22, 40, .48); z-index: 900; opacity: 0; transition: opacity .18s ease; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.mask.in { opacity: 1; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; max-width: 560px; max-height: min(86vh, 780px); overflow-y: auto; margin: 0 auto; padding: 12px 20px calc(22px + var(--safe-b)); border: 1px solid rgba(255,255,255,.8); border-bottom: 0; border-radius: 24px 24px 0 0; background: #fff; box-shadow: 0 -16px 50px rgba(12, 22, 40, .18); z-index: 901; opacity: 0; transform: translateY(28px); transition: transform .2s cubic-bezier(.2,.8,.2,1), opacity .18s ease; }
.sheet.in { opacity: 1; transform: translateY(0); }
.sheet-grab { width: 38px; height: 4px; margin: 0 auto 17px; border-radius: 4px; background: #dce4ef; }
.sheet h4 { margin: 0 0 10px; font-size: 19px; line-height: 1.4; }
.sheet p { margin: 0 0 18px; color: var(--ink-2); font-size: 14px; line-height: 1.75; }
.sheet .btn { min-height: 46px; margin-bottom: 9px; }
.sheet .btn:last-child { margin-bottom: 0; }
.sheet-summary { margin: -2px 0 16px !important; color: var(--ink-3) !important; font-size: 13px !important; }
.sheet-actions { display: flex; gap: 10px; margin-top: 18px; }
.sheet-actions .btn { flex: 1; margin: 0; }

/* ---------- 课程与章节 ---------- */
.course { display: flex; align-items: center; gap: 12px; padding: 16px; color: inherit; text-decoration: none; border-bottom: 1px solid #edf1f6; transition: background .15s; }
.course:active { background: #f5f8fd; }
.card.pad0 > .course:last-child, .course-item .course { border-bottom: 0; }
.cs-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--p-soft); color: var(--p-d); display: grid; place-items: center; flex: none; }
.cs-ico svg { width: 20px; height: 20px; }
/* 有封面时图片盖在默认图标之上，图片加载失败由 onerror 摘掉，退回原来的图标 */
.cs-ico.img { position: relative; }
.cs-ico.img img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.cs-txt { flex: 1; min-width: 0; }
.cs-txt b { display: block; font-size: 14.5px; line-height: 1.5; }
.cs-txt p { margin: 3px 0 0; color: var(--ink-3); font-size: 11.5px; line-height: 1.55; }
.cs-txt p.mini { margin-top: 2px; }
.cs-st { flex: none; color: var(--ink-2); font-size: 11px; }
.library-summary { display: grid; grid-template-columns: .85fr .85fr 1.3fr; gap: 8px; margin-bottom: 6px; padding: 18px 12px; border: 1px solid #e3ecfa; border-radius: 18px; background: linear-gradient(135deg, #f3f8ff, #fff); }
.library-summary > div { padding: 0 9px; border-right: 1px solid #e3eaf4; }
.library-summary > div:last-child { border-right: 0; }
.library-summary span { display: block; color: #8393aa; font-size: 10.5px; }
.library-summary b { display: block; margin-top: 4px; color: #234574; font-size: 19px; line-height: 1.35; }
.library-summary small { font-size: 10px; font-weight: 500; }
.course-list { display: grid; gap: 13px; }
.course-item { overflow: hidden; border-radius: 18px; }
.course-cover { position: relative; width: 62px; height: 68px; flex: none; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border-radius: 14px; background: linear-gradient(145deg, #eaf2ff, #dbe9ff); color: #2b6fd0; }
.course-cover::after { content: ""; position: absolute; right: -15px; bottom: -20px; width: 50px; height: 50px; border: 9px solid rgba(255,255,255,.55); border-radius: 50%; }
.course-cover svg { width: 25px; height: 25px; }
.course-cover span { position: relative; z-index: 1; max-width: 54px; overflow: hidden; font-size: 6.5px; font-weight: 700; letter-spacing: .4px; text-overflow: ellipsis; white-space: nowrap; }
.course-cover.img img { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; }
.course-meta { display: flex; align-items: center; gap: 6px; margin-top: 7px; color: #7788a0; font-size: 10.5px; }
.course-meta i { width: 3px; height: 3px; border-radius: 50%; background: #bdc8d7; }
.course-arrow { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #f4f7fb; color: #8da0ba; }
.course-arrow svg { width: 13px; height: 13px; }
.course-item-foot { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-top: 1px solid #edf1f6; background: #fbfcfe; color: #8291a6; font-size: 11px; }
.course-detail-hero { position: relative; overflow: hidden; margin-bottom: 15px; padding: 22px 20px 19px; border-radius: 22px; background: linear-gradient(135deg, #153d83, #2165d8); color: #fff; box-shadow: 0 14px 30px rgba(23,78,177,.18); }
.course-detail-hero::after { content: ""; position: absolute; right: -60px; top: -80px; width: 220px; height: 220px; border: 34px solid rgba(255,255,255,.045); border-radius: 50%; }
.course-detail-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.course-detail-top .tag { background: rgba(255,255,255,.13); color: #d7e9ff; }
.course-detail-hero h2 { position: relative; z-index: 1; margin: 15px 0 6px; font-size: 23px; line-height: 1.4; letter-spacing: -.3px; }
.course-detail-hero > p { position: relative; z-index: 1; margin: 0; color: #bcd5f8; font-size: 12px; }
.course-progress-row { position: relative; z-index: 1; margin-top: 22px; }
.course-progress-copy { display: flex; align-items: baseline; justify-content: space-between; color: #bcd5f8; font-size: 11px; }
.course-progress-copy b { color: #fff; font-size: 22px; }
.course-progress-copy small { font-size: 11px; }
.linear-progress { height: 6px; margin-top: 7px; overflow: hidden; border-radius: 6px; background: rgba(255,255,255,.16); }
.linear-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #65d9c7, #a0f3e4); }
.course-progress-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; color: #a9c8f4; font-size: 10px; }
.course-intro p { margin: 0; color: var(--ink-2); font-size: 13px; line-height: 1.85; }
.course-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 16px; padding: 15px 4px; border: 1px solid #eaf0f7; border-radius: 16px; background: #fff; }
.course-facts > div { padding: 0 10px; border-right: 1px solid #edf1f6; text-align: center; }
.course-facts > div:last-child { border-right: 0; }
.course-facts span { display: block; color: #8998ac; font-size: 10px; }
.course-facts b { display: block; margin-top: 4px; color: #314b70; font-size: 12px; }
.intro { margin: 0 0 10px; font-size: 13px; color: var(--ink-2); line-height: 1.75; }
.ch-head { padding: 16px 16px 12px; border-bottom: 1px solid #edf1f6; }
.ch-head b { font-size: 15px; }
.ch-head p { margin: 4px 0 0; color: var(--ink-3); font-size: 11.5px; }
.sub-ch { padding: 4px 16px 6px; }
.sub-ch h4 { margin: 14px 0 3px; color: #536780; font-size: 13px; font-weight: 600; }
.les { display: flex; align-items: center; gap: 11px; padding: 14px 16px; border-bottom: 1px solid #edf1f6; }
.les:last-child { border-bottom: 0; }
.li-ico { width: 32px; height: 32px; border-radius: 10px; background: #f0f5fd; color: var(--p-d); display: grid; place-items: center; flex: none; }
.li-ico svg { width: 16px; height: 16px; }
.li-txt { flex: 1; min-width: 0; }
.li-txt b { display: block; font-size: 13.5px; font-weight: 550; line-height: 1.5; }
.li-txt p { margin: 3px 0 0; color: var(--ink-3); font-size: 11px; }
.li-st { flex: none; }

/* ---------- 课时学习与心跳上报（M3） ---------- */
a.les { text-decoration: none; color: inherit; }
.les.tap:active { background: #f7f9fd; }
.mini-bar { height: 3px; border-radius: 3px; background: #eaeef6; margin-top: 6px; overflow: hidden; }
.mini-bar i { display: block; height: 100%; background: var(--p); }
.pl-stage { position: relative; background: #0d1524; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.pl-stage video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.pl-sim { color: #93a9c9; text-align: center; font-size: 12px; line-height: 1.9; padding: 0 18px; }
.pl-sim b { display: block; color: #e6edfa; font-size: 15px; }
.pl-big { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: var(--p-d); font-size: 19px; display: flex; align-items: center; justify-content: center; }
.pl-wmk { position: absolute; right: 10px; bottom: 8px; display: flex; gap: 8px; color: rgba(255, 255, 255, .42); font-size: 11px; letter-spacing: .5px; }
.pl-bar { position: relative; height: 8px; border-radius: 6px; background: #e7ecf5; margin: 4px 2px 8px; cursor: pointer; }
.pl-done { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: rgba(46, 111, 240, .3); }
.pl-at { position: absolute; top: -3px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--p); box-shadow: 0 1px 4px rgba(20, 40, 80, .3); }
.pl-lock { position: absolute; top: -3px; width: 2px; height: 14px; margin-left: -1px; background: #f2a93b; }
.pl-meta { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--ink-3); margin: 0 2px 10px; }
.pl-sp b { margin-left: 7px; padding: 3px 8px; border-radius: 10px; background: #eef2f8; color: var(--ink-2); font-weight: 500; font-size: 12px; }
.pl-sp b.on { background: var(--p); color: #fff; }
.pl-ctrl { display: flex; gap: 8px; margin-bottom: 12px; }
.pl-ctrl .btn { flex: 1; margin: 0; }
.pl-ring { display: flex; align-items: center; gap: 15px; }
.ring { width: 76px; height: 76px; border-radius: 50%; background: conic-gradient(var(--p) calc(var(--a, 0) * 1%), #eaeef6 0); display: flex; align-items: center; justify-content: center; position: relative; flex: none; }
.ring::after { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: #fff; }
.ring b { position: relative; z-index: 1; font-size: 15px; color: var(--p-d); }

/* ---------- 在线考试（M5） ---------- */
.cw { border-bottom: 1px solid var(--line); }
.cw:last-child { border-bottom: 0; }
.cw .course { border-bottom: 0; }
.cw-act { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 15px 12px; font-size: 12px; color: var(--ink-3); }
.ex-card-act { margin-top: 12px; display: flex; justify-content: flex-end; }
.ex-top { align-items: flex-start; }
.ex-top h1 { font-size: 15.5px; }
.ex-clock { text-align: right; line-height: 1.25; flex: none; }
.ex-clock b { display: block; font-size: 17px; font-variant-numeric: tabular-nums; color: var(--p-d); }
.ex-clock span { display: block; font-size: 11px; color: var(--ink-3); }
.ex-clock.warn b { color: var(--warn); }
.ex-clock.danger b { color: var(--err); animation: expulse 1s ease-in-out infinite; }
@keyframes expulse { 50% { opacity: .45; } }
.ex-main { padding-bottom: calc(86px + var(--safe-b)); }
.ex-progress { position: relative; height: 26px; border-radius: 8px; background: #eaeef6; overflow: hidden; margin-bottom: 12px; }
.ex-progress i { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(46, 111, 240, .22); }
.ex-progress span { position: relative; display: block; text-align: center; font-size: 12px; line-height: 26px; color: var(--ink-2); }
.ex-q { user-select: none; -webkit-user-select: none; }
.ex-q-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.ex-q-head .tag.warn { margin-left: auto; }
.ex-score { font-size: 12.5px; color: var(--ink-3); }
.ex-stem { margin: 0 0 14px; font-size: 15.5px; line-height: 1.75; }
.ex-opts { display: flex; flex-direction: column; gap: 9px; }
.ex-opt { display: flex; gap: 10px; align-items: flex-start; text-align: left; border: 1px solid var(--line); background: #fbfcfe; border-radius: 11px; padding: 11px 12px; font-size: 14.5px; line-height: 1.6; color: var(--ink); }
.ex-opt i { width: 22px; height: 22px; flex: none; border-radius: 50%; background: #eef2f8; color: var(--ink-2); font-style: normal; font-size: 12.5px; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.ex-opt.on { border-color: var(--p); background: var(--p-soft); color: var(--p-d); font-weight: 500; }
.ex-opt.on i { background: var(--p); color: #fff; }
.ex-notice { margin: 0 0 10px; font-size: 13.5px; line-height: 1.8; color: var(--ink-2); white-space: pre-wrap; }
.ex-rules { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--ink-3); line-height: 1.9; }
.ex-foot { position: fixed; left: 0; right: 0; bottom: 0; max-width: 520px; margin: 0 auto; display: flex; gap: 8px; padding: 10px 14px calc(10px + var(--safe-b)); background: #fff; border-top: 1px solid var(--line); z-index: 30; }
.ex-foot .btn { flex: 1; text-align: center; margin: 0; }
.ex-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; margin: 4px 0 14px; }
.ex-cell { position: relative; border: 1px solid var(--line); background: #fbfcfe; border-radius: 9px; padding: 9px 0; font-size: 13.5px; color: var(--ink-2); }
.ex-cell.on { border-color: var(--p); background: var(--p-soft); color: var(--p-d); }
.ex-cell.cur { box-shadow: 0 0 0 2px rgba(31, 94, 255, .18); }
.ex-cell em { position: absolute; right: 4px; top: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); }
.ex-legend { display: flex; gap: 14px; font-size: 12px; color: var(--ink-3); margin-bottom: 14px; }
.ex-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; border: 1px solid var(--line); background: #fbfcfe; margin-right: 5px; vertical-align: -1px; }
.ex-legend .dot.on { border-color: var(--p); background: var(--p-soft); }
.ex-legend .dot.mk { background: var(--warn); border-color: var(--warn); border-radius: 50%; }
.ex-done { text-align: center; padding: 26px 18px 22px; }
.ex-ok { width: 62px; height: 62px; margin: 0 auto 12px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); font-size: 30px; display: flex; align-items: center; justify-content: center; }
.ex-done h2 { margin: 0 0 6px; font-size: 18px; }
.ex-done p { margin: 0; font-size: 13px; color: var(--ink-3); line-height: 1.8; }

/* ---------- 现场签到（M7）---------- */
#ck-stage { position: relative; background: #0e1420; min-height: 220px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
#ck-video { width: 100%; max-height: 330px; display: block; object-fit: cover; }
.ck-frame { position: absolute; left: 50%; top: 50%; width: 186px; height: 186px; transform: translate(-50%, -50%); border: 2px solid rgba(255, 255, 255, .85); border-radius: 14px; pointer-events: none; }
.ck-frame::before { content: ""; position: absolute; left: 8px; right: 8px; top: 50%; height: 2px; background: rgba(255, 213, 79, .95); animation: ckscan 1.9s ease-in-out infinite; }
@keyframes ckscan { 0%, 100% { transform: translateY(-84px); } 50% { transform: translateY(84px); } }
#ck-tip { padding: 12px 15px; color: var(--ink-2); font-size: 13px; line-height: 1.7; margin: 0; }

/* ============================================================
   PC / 大屏自适应：保留应用窗口与悬浮导航，列表页才使用双列。
   ============================================================ */
@media (min-width: 1024px) {
  body { background: #e7ecf4; }
  #app { max-width: 1080px; min-height: 100vh; background: linear-gradient(180deg, #f8faff 0, var(--bg) 520px); box-shadow: 0 0 0 1px rgba(20,40,80,.04), 0 22px 60px rgba(20,40,80,.1); }
  .top { min-height: 74px; padding: 14px 26px; }
  .top h1 { font-size: 20px; }
  html[data-page="pwd"] .auth.with-top { min-height: calc(100vh - 74px); min-height: calc(100dvh - 74px); }
  .top-title > span { font-size: 8.5px; }
  .main { max-width: 820px; margin: 0 auto; padding: 24px 26px 122px; }
  .main > * { min-width: 0; }
  html[data-page="courses"] .main, html[data-page="certs"] .main, html[data-page="exam"] .main { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; max-width: none; margin: 0; }
  html[data-page="courses"] .main > .library-summary,
  html[data-page="courses"] .main > .list-heading,
  html[data-page="courses"] .main > .notice,
  html[data-page="courses"] .main > .page-note,
  html[data-page="certs"] .main > .notice,
  html[data-page="certs"] .main > .page-note,
  html[data-page="exam"] .main > .hint,
  html[data-page="exam"] .main > .notice { grid-column: 1 / -1; }
  html[data-page="courses"] .main > .course-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; grid-column: 1 / -1; }
  html[data-page="certs"] .main > .course-list { display: contents; }
  html[data-page="courses"] .main > .card.solo,
  html[data-page="certs"] .main > .card.solo,
  html[data-page="exam"] .main > .card.solo { grid-column: 1 / -1; }
  html[data-page="flow"] .main { display: block; max-width: 1120px; }
  html[data-page="me"] .main { display: block; max-width: 720px; }
  .me-head { padding: 26px 25px; }
  .me-stats { padding-block: 18px; }
  .tabbar { bottom: 20px; max-width: 660px; padding: 7px 10px; border: 1px solid #e5ebf3; border-radius: 18px; box-shadow: 0 16px 38px rgba(20,40,80,.16); }
  .tabbar a { min-height: 48px; flex-direction: row; gap: 8px; padding: 10px 8px; border-radius: 12px; font-size: 13px; }
  .tabbar a.on { background: var(--p-soft); color: var(--p-d); font-weight: 650; }
  .tabbar a.on > svg { transform: none; }
  .tabbar a .dot { top: 7px; left: calc(50% + 9px); }
  .sheet { bottom: 20px; max-width: 580px; border: 1px solid #e7edf5; border-radius: 22px; box-shadow: 0 -16px 50px rgba(12,22,40,.2); }
  .ex-foot { max-width: 1080px; }
  .ex-main { padding-bottom: calc(104px + var(--safe-b)); }
  .pl-stage { max-width: 760px; }
  .auth { display: grid; grid-template-columns: 1fr 400px; column-gap: 56px; align-items: center; align-content: center; max-width: 940px; margin: 0 auto; padding: 40px 28px calc(40px + var(--safe-b)); background: radial-gradient(900px 420px at 8% -8%, #e6efff 0%, rgba(255,255,255,0) 62%); }
  .auth-brand { padding: 0; }
  .auth > .top { grid-column: 1 / -1; }
  .auth:has(> .top) { align-content: start; align-items: start; }
  .auth:has(> .top) .auth-brand { margin-top: 26px; }
  .auth-brand .logo { width: 54px; height: 54px; font-size: 25px; }
  .auth-brand h1 { font-size: 27px; }
  .auth-brand p { font-size: 14.5px; }
  .auth-card { padding: 24px 26px 26px; box-shadow: 0 14px 40px rgba(20,40,80,.1); }
  .auth-foot { grid-column: 1 / -1; }
}
@media (max-width: 370px) {
  .main { padding-inline: 12px; }
  .top { padding-inline: 13px; }
  .top-status { display: none; }
  .flow-hero { padding-inline: 17px; }
  .flow-hero h2 { font-size: 22px; }
  .hero-ring { width: 68px; height: 68px; }
  .hero-ring > div { width: 57px; height: 57px; }
  .step .nm { font-size: 9.5px; }
  .node-link { display: none; }
  .course { padding: 14px 12px; gap: 10px; }
  .course-cover { width: 53px; height: 62px; }
  .course-arrow { display: none; }
  .library-summary b { font-size: 17px; }
  .me-head { padding-inline: 16px; }
  .me-head .av { width: 51px; height: 51px; }
  .me-identity b { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .main, .toast, .sheet, .mask { animation: none; transition: none; }
}

/* ---------- 课程维度学习流程 ---------- */
.flow-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.flow-stats > div { position: relative; min-width: 0; padding: 14px 12px 13px; border: 1px solid #e8eef7; border-radius: 15px; background: #fff; box-shadow: 0 7px 20px rgba(20,40,80,.04); }
.flow-stats b { display: block; margin-top: 9px; color: #17345f; font-size: 23px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.flow-stats small { display: block; margin-top: 4px; overflow: hidden; color: #7b8ba3; font-size: 11px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.flow-stat-ico { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; }
.flow-stat-ico svg { width: 16px; height: 16px; }
.flow-stat-ico.blue { color: #2468d8; background: #eaf2ff; }
.flow-stat-ico.green { color: #0c8b66; background: #e6f7f0; }
.flow-stat-ico.violet { color: #7653c8; background: #f1ecff; }
.flow-stat-ico.amber { color: #a66b12; background: #fff4df; }
.flow-multi-tip { margin-bottom: 18px; }
.flow-course-section { margin-top: 4px; }
.flow-course-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.flow-course-card { margin: 0; padding: 19px; border-radius: 20px; }
.flow-course-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 11px; }
.flow-course-head .cs-ico { width: 42px; height: 42px; border-radius: 13px; }
.flow-course-head .cs-txt { padding-top: 1px; }
.flow-course-head .cs-txt b { display: block; color: #18345f; font-size: 16px; font-weight: 650; line-height: 1.45; }
.flow-course-head .cs-txt p { margin: 4px 0 0; color: #7b8ba3; font-size: 11.5px; line-height: 1.55; }
.flow-course-head > .tag { margin-top: 2px; }
.flow-course-progress { margin-top: 17px; }
.flow-course-progress > div:first-child { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; color: #66778f; font-size: 12px; }
.flow-course-progress b { color: #1e5ed6; font-size: 13px; font-variant-numeric: tabular-nums; }
.flow-course-progress .linear-progress { height: 7px; }
.flow-course-progress p { margin: 6px 0 0; color: #93a0b2; font-size: 11px; }
.course-stage-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(62px, 1fr)); gap: 7px; margin: 17px 0 14px; }
.course-stage { min-width: 0; padding: 9px 5px 8px; border: 1px solid #edf1f6; border-radius: 11px; background: #fafbfd; text-align: center; }
.course-stage > span { width: 20px; height: 20px; margin: 0 auto 5px; display: grid; place-items: center; border-radius: 50%; background: #edf1f6; color: #98a5b8; font-size: 10px; }
.course-stage b { display: block; color: #66768e; font-size: 11.5px; font-weight: 600; }
.course-stage small { display: block; margin-top: 2px; overflow: hidden; color: #98a5b8; font-size: 10px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.course-stage.done { border-color: #d9f0e6; background: #f5fcf8; }
.course-stage.done > span { background: #dff5eb; color: #0c8b66; }
.course-stage.done b, .course-stage.done small { color: #398b70; }
.course-stage.current { border-color: #d9e7ff; background: #f5f8ff; }
.course-stage.current > span { background: #2e6ff0; color: #fff; box-shadow: 0 0 0 3px #e5eeff; }
.course-stage.current b, .course-stage.current small { color: #245fc5; }
.course-exam-state { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px; border: 1px solid #e8edf5; border-radius: 13px; background: #f8fafc; }
.course-exam-ico { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #edf1f7; color: #7c8da6; }
.course-exam-ico svg { width: 17px; height: 17px; }
.course-exam-state b { display: block; color: #40526e; font-size: 13px; font-weight: 600; line-height: 1.45; }
.course-exam-state p { margin: 3px 0 0; color: #8b99ad; font-size: 11px; line-height: 1.45; }
.course-exam-state.info { border-color: #dbe7ff; background: #f3f7ff; }
.course-exam-state.info .course-exam-ico { background: #e3edff; color: #2468d8; }
.course-exam-state.info b { color: #245fc5; }
.course-exam-state.ok { border-color: #d5efe3; background: #f3fbf7; }
.course-exam-state.ok .course-exam-ico { background: #dff5eb; color: #0c8b66; }
.course-exam-state.ok b { color: #187356; }
.course-exam-state.warn { border-color: #f3e4c8; background: #fffbf3; }
.course-exam-state.warn .course-exam-ico { background: #fff0d6; color: #a66b12; }
.course-exam-state.warn b { color: #8f5e13; }
.course-exam-action { flex: none; }
.flow-course-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.flow-course-actions .btn { flex: 1; margin: 0; white-space: nowrap; }
.flow-empty { grid-column: 1 / -1; }

/* ---------- 响应式考试工作台 ---------- */
html[data-page="exam-room"] #app { max-width: 1320px; min-height: 100vh; background: #eef2f8; }
.ex-shell { min-height: 100vh; padding-bottom: calc(92px + var(--safe-b)); }
html[data-page="exam-room"] .ex-top { position: sticky; top: 0; z-index: 25; width: 100%; max-width: 1320px; min-height: 82px; margin: 0 auto; padding: calc(11px + env(safe-area-inset-top, 0px)) 16px 11px; align-items: center; border-bottom-color: #dfe6f0; background: rgba(255,255,255,.94); }
.ex-heading { flex: 1; min-width: 0; }
.ex-heading > span { display: block; margin-bottom: 2px; color: #2e6ff0; font-size: 9px; font-weight: 700; letter-spacing: 1.4px; }
.ex-heading h1 { overflow: hidden; margin: 0; color: #17345f; font-size: 15px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.ex-heading p { margin: 3px 0 0; color: #7b8ba3; font-size: 11px; line-height: 1.4; }
.ex-header-status { display: flex; align-items: center; gap: 13px; flex: none; }
html[data-page="exam-room"] .ex-clock { min-width: 76px; padding-left: 13px; border-left: 1px solid #e5eaf2; text-align: right; }
.ex-clock small { display: block; color: #8b99ad; font-size: 9px; line-height: 1.3; }
.ex-clock b { margin-top: 1px; font-size: 20px; line-height: 1.2; }
.ex-clock span { margin-top: 2px; font-size: 9.5px; }
.ex-answered { min-width: 42px; text-align: center; }
.ex-answered b { display: block; color: #17345f; font-size: 19px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.ex-answered span { display: block; margin-top: 2px; color: #8b99ad; font-size: 9px; white-space: nowrap; }
.ex-workspace { width: 100%; max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 17px 14px 24px; }
html[data-page="exam-room"] .ex-main { max-width: none; margin: 0; padding: 0; }
html[data-page="exam-room"] .ex-progress { height: 30px; margin-bottom: 12px; border: 1px solid #e0e7f1; background: #e7edf6; }
html[data-page="exam-room"] .ex-progress span { line-height: 28px; }
html[data-page="exam-room"] .ex-q { margin: 0; padding: 19px 17px 20px; border-radius: 19px; box-shadow: 0 12px 34px rgba(20,40,80,.06); }
html[data-page="exam-room"] .ex-q-head { margin-bottom: 13px; }
html[data-page="exam-room"] .ex-stem { margin-bottom: 17px; font-size: 16px; line-height: 1.8; }
html[data-page="exam-room"] .ex-opts { gap: 10px; }
html[data-page="exam-room"] .ex-opt { min-height: 52px; align-items: center; padding: 12px 13px; border-radius: 12px; font-size: 15px; line-height: 1.65; transition: border-color .16s, background .16s, transform .16s; }
html[data-page="exam-room"] .ex-opt:active { transform: scale(.995); }
html[data-page="exam-room"] .ex-opt i { width: 25px; height: 25px; margin: 0; font-size: 13px; }
.ex-sidebar { display: none; }
html[data-page="exam-room"] .ex-foot { z-index: 30; max-width: 1240px; padding: 10px 12px calc(10px + var(--safe-b)); border-top-color: #dfe6f0; background: rgba(255,255,255,.96); box-shadow: 0 -8px 28px rgba(20,40,80,.07); }
html[data-page="exam-room"] .ex-foot .btn { min-width: 0; min-height: 44px; margin: 0; padding-inline: 8px; font-size: 12.5px; white-space: nowrap; }
html[data-page="exam-room"] .ex-foot .btn:first-child { flex: .82; }
html[data-page="exam-room"] .ex-foot .btn:nth-child(2) { flex: .9; }
html[data-page="exam-room"] .ex-foot .ex-mobile-card { flex: .95; }
html[data-page="exam-room"] .ex-foot .ex-next { flex: 1.25; display: inline-flex; align-items: center; justify-content: center; gap: 4px; color: #fff; }
.ex-next svg { width: 14px; height: 14px; }
.ex-side-card { position: sticky; top: 104px; margin: 0; padding: 18px; border-radius: 18px; }
.ex-side-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 15px; }
.ex-side-head h2 { margin: 0; color: #17345f; font-size: 16px; }
.ex-side-head p { margin: 4px 0 0; color: #8b99ad; font-size: 11px; }
html[data-page="exam-room"] .ex-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
html[data-page="exam-room"] .ex-cell { min-height: 39px; padding: 7px 0; border-radius: 9px; }
.ex-side-submit { width: 100%; margin: 16px 0 0; color: #fff; }
.ex-side-note { margin: 9px 0 0; color: #93a0b2; font-size: 10.5px; line-height: 1.6; text-align: center; }

@media (max-width: 520px) {
  .flow-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-course-card { padding: 16px; }
  .flow-course-head { grid-template-columns: auto minmax(0, 1fr); }
  .flow-course-head > .tag { grid-column: 2; justify-self: start; }
  .course-exam-state { grid-template-columns: auto minmax(0, 1fr); }
  .course-exam-action { grid-column: 2; justify-self: start; }
  .flow-course-actions .btn { flex-basis: 100%; }
  html[data-page="exam-room"] .ex-top { padding-inline: 12px; }
  .ex-header-status { gap: 8px; }
  html[data-page="exam-room"] .ex-clock { min-width: 69px; padding-left: 8px; }
  .ex-clock b { font-size: 18px; }
  .ex-answered { min-width: 36px; }
  .ex-answered b { font-size: 17px; }
  .ex-workspace { padding: 13px 11px 20px; }
}
@media (max-width: 370px) {
  .ex-heading h1 { font-size: 13.5px; }
  .ex-heading p { font-size: 10px; }
  .ex-answered { display: none; }
  html[data-page="exam-room"] .ex-foot { gap: 5px; padding-inline: 8px; }
  html[data-page="exam-room"] .ex-foot .btn { padding-inline: 4px; font-size: 11.5px; }
  html[data-page="exam-room"] .ex-q { padding-inline: 14px; }
  html[data-page="exam-room"] .ex-stem { font-size: 15px; }
  html[data-page="exam-room"] .ex-opt { padding-inline: 11px; font-size: 14.5px; }
}
@media (min-width: 720px) {
  html[data-page="flow"] #app { max-width: 960px; }
  html[data-page="flow"] .flow-hero { padding: 27px 26px 21px; }
  .flow-course-grid { gap: 16px; }
}
@media (min-width: 900px) {
  html[data-page="exam-room"] .ex-top { min-height: 88px; padding-inline: 26px; }
  .ex-heading h1 { font-size: 17px; }
  .ex-heading p { font-size: 11.5px; }
  .ex-header-status { gap: 20px; }
  html[data-page="exam-room"] .ex-clock { min-width: 104px; padding-left: 20px; }
  .ex-clock b { font-size: 23px; }
  .ex-answered b { font-size: 22px; }
  .ex-workspace { grid-template-columns: minmax(0, 1fr) 292px; align-items: start; gap: 22px; padding: 24px 24px 30px; }
  .ex-sidebar { display: block; }
  html[data-page="exam-room"] .ex-mobile-card { display: none; }
  html[data-page="exam-room"] .ex-q { min-height: 390px; padding: 27px 30px 29px; }
  html[data-page="exam-room"] .ex-stem { font-size: 18px; line-height: 1.85; }
  html[data-page="exam-room"] .ex-opt { min-height: 57px; padding: 13px 16px; font-size: 16px; }
  html[data-page="exam-room"] .ex-opt i { width: 28px; height: 28px; font-size: 14px; }
  html[data-page="exam-room"] .ex-foot { padding-inline: 24px; }
  html[data-page="exam-room"] .ex-foot .btn { flex: none; min-width: 112px; font-size: 13px; }
  html[data-page="exam-room"] .ex-foot .ex-next { min-width: 150px; margin-left: auto; }
  .ex-side-card { top: 112px; }
}
@media (min-width: 1024px) {
  html[data-page="flow"] #app { max-width: 1180px; }
  .flow-course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-stats { gap: 13px; }
  .flow-stats > div { padding: 16px 15px; }
  .flow-course-card { padding: 21px; }
}
@media (min-width: 1280px) {
  .ex-workspace { grid-template-columns: minmax(0, 1fr) 310px; gap: 26px; }
  html[data-page="exam-room"] .ex-q { padding-inline: 36px; }
  html[data-page="exam-room"] .ex-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* ---------- 学习流程 / 我的 / 消息 / 我的课程：统一应用容器 ---------- */
.me-layout { display: grid; grid-template-columns: minmax(0, 1fr); }
.me-group { min-width: 0; }
.course-list .course-item { display: flex; flex-direction: column; }
.course-list .course-item .course { flex: 1; }
.notice-list { display: grid; grid-template-columns: minmax(0, 1fr); }
.notice-item { min-width: 0; }
.notice-item > span:nth-child(2) { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.notice-item.is-unread { background: #f7faff; box-shadow: inset 3px 0 0 var(--p); }
.notice-actions { margin-top: 2px; }

.profile-layout, .course-layout, .player-layout, .certificate-layout,
.checkin-layout, .checkin-go-layout, .appeal-layout, .exam-rule-layout,
.exam-done-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.profile-layout > *, .course-layout > *, .player-layout > *, .certificate-layout > *,
.checkin-layout > *, .checkin-go-layout > *, .appeal-layout > *, .exam-rule-layout > *,
.exam-done-layout > * { min-width: 0; }
.profile-layout .card, .course-layout .card, .player-layout .card,
.certificate-layout .card, .checkin-layout .card, .checkin-go-layout .card,
.appeal-layout .card, .exam-rule-layout .card, .exam-done-layout .card { margin-bottom: 0; }
.profile-fields, .appeal-fields, .appeal-evidence { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.profile-form-card form > .btn, .appeal-form-card > .btn { margin-top: 2px; }
.course-layout { grid-template-areas: "aside" "catalog"; }
.course-aside { grid-area: aside; display: grid; gap: 14px; align-content: start; }
.course-catalog { grid-area: catalog; display: grid; gap: 14px; align-content: start; }
.course-aside .course-facts, .course-aside .notice { margin: 0; }
.course-catalog .list-heading { margin: 10px 2px 0; }
.player-main, .player-side, .certificate-docs, .certificate-info,
.checkin-task-section, .checkin-service, .checkin-scan, .checkin-go-side { display: grid; gap: 14px; min-width: 0; align-content: start; }
.certificate-layout { grid-template-areas: "docs" "info"; }
.certificate-docs { grid-area: docs; }
.certificate-info { grid-area: info; }
.checkin-service .hint, .checkin-go-side .hint { margin: 0 3px; }
.checkin-go-layout .notice, .checkin-scan .btn-row { margin: 0; }
.exam-rule-actions { max-width: 560px; margin: 18px auto 0; }
.cell > span:nth-child(2) { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.rows .row > b { min-width: 0; overflow-wrap: anywhere; }

@media (min-width: 720px) {
  html:is([data-page="flow"], [data-page="me"], [data-page="notices"], [data-page="notice"], [data-page="courses"], [data-page="course"], [data-page="player"], [data-page="profile"], [data-page="certs"], [data-page="cert"], [data-page="checkin"], [data-page="checkin-go"], [data-page="checkin-log"], [data-page="checkin-appeal"], [data-page="checkin-appeals"], [data-page="exam"], [data-page="exam-rule"], [data-page="exam-done"], [data-page="pwd"]) #app { max-width: 960px; }
  html:is([data-page="flow"], [data-page="me"], [data-page="notices"], [data-page="notice"], [data-page="courses"], [data-page="course"], [data-page="player"], [data-page="profile"], [data-page="certs"], [data-page="cert"], [data-page="checkin"], [data-page="checkin-go"], [data-page="checkin-log"], [data-page="checkin-appeal"], [data-page="checkin-appeals"], [data-page="exam"], [data-page="exam-rule"], [data-page="exam-done"]) .main { max-width: 820px; padding: 24px 26px 122px; }
  /* 列表只有一张卡片时铺满整行：卡片同级总有 hint/page-note，CSS 无法自己判定，由 app.js 打 solo 标记 */
  .main > .card.solo, .course-list > .card.solo { grid-column: 1 / -1; }
  .library-summary { padding: 21px 18px; }
  .library-summary > div { padding-inline: 16px; }
  .library-summary span { font-size: 11.5px; }
  .library-summary b { font-size: 23px; }
  .course-list .course-item .course { padding: 19px; }
  .course-list .course-cover { width: 70px; height: 76px; }
  .course-list .cs-txt b { font-size: 16px; }
  .course-list .cs-txt p, .course-list .course-meta { font-size: 12px; }
  .course-item-foot { padding: 12px 19px; font-size: 12px; }
  .notice-actions .btn { width: auto; min-width: 184px; }
  .notice-item { min-height: 76px; padding: 17px 19px; }
  .notice-item .ci { width: 38px; height: 38px; }
  .notice-item .sub { font-size: 12px; }
  html[data-page="notice"] .nt-body { font-size: 15px; line-height: 2; }
  .profile-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
  .profile-fields .fld-wide { grid-column: 1 / -1; }
  .profile-form-card form > .btn { width: auto; min-width: 210px; margin-left: auto; }
  .course-detail-hero { padding: 27px 26px 23px; }
  .course-detail-hero h2 { font-size: 27px; }
  .notice-detail-card { padding: 24px; }
}
@media (min-width: 900px) {
  .course-layout { grid-template-columns: 280px minmax(0, 1fr); grid-template-areas: "aside catalog"; gap: 20px; }
  .course-aside .course-facts { grid-template-columns: minmax(0, 1fr); padding: 4px 17px; }
  .course-aside .course-facts > div { padding: 13px 0; border-right: 0; border-bottom: 1px solid #edf1f6; text-align: left; }
  .course-aside .course-facts > div:last-child { border-bottom: 0; }
  .player-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
  .player-side { position: sticky; top: 98px; }
  .certificate-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "info docs"; gap: 20px; align-items: start; }
  .checkin-layout, .checkin-go-layout { grid-template-columns: minmax(0, 1.55fr) minmax(270px, .85fr); gap: 20px; align-items: start; }
  .appeal-layout { grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
  .exam-rule-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px; align-items: start; }
  html:is([data-page="checkin-log"], [data-page="checkin-appeals"]) .main > .card.pad0 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html:is([data-page="checkin-log"], [data-page="checkin-appeals"]) .main > .card.pad0 > .cell { border-right: 1px solid #edf1f6; border-bottom: 1px solid #edf1f6; }
  html:is([data-page="checkin-log"], [data-page="checkin-appeals"]) .main > .card.pad0 > .cell:nth-child(even) { border-right: 0; }
  html:is([data-page="checkin-log"], [data-page="checkin-appeals"]) .main > .card.pad0 > .cell:nth-last-child(-n+2) { border-bottom: 0; }
  html:is([data-page="checkin-log"], [data-page="checkin-appeals"]) .main > .card.pad0 > .cell:last-child { border-bottom: 0; }
}
@media (min-width: 1024px) {
  html:is([data-page="flow"], [data-page="me"], [data-page="notices"], [data-page="notice"], [data-page="courses"], [data-page="course"], [data-page="player"], [data-page="profile"], [data-page="certs"], [data-page="cert"], [data-page="checkin"], [data-page="checkin-go"], [data-page="checkin-log"], [data-page="checkin-appeal"], [data-page="checkin-appeals"], [data-page="exam"], [data-page="exam-rule"], [data-page="exam-done"], [data-page="pwd"]) #app { max-width: 1180px; }
  html:is([data-page="flow"], [data-page="me"], [data-page="notices"], [data-page="notice"], [data-page="courses"], [data-page="course"], [data-page="player"], [data-page="profile"], [data-page="certs"], [data-page="cert"], [data-page="checkin"], [data-page="checkin-go"], [data-page="checkin-log"], [data-page="checkin-appeal"], [data-page="checkin-appeals"], [data-page="exam"], [data-page="exam-rule"], [data-page="exam-done"]) .main { max-width: 1120px; margin-inline: auto; }
  .profile-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
  .profile-form-card { padding: 24px; }
  .profile-photo-card { padding: 22px; }
  .course-layout { grid-template-columns: 320px minmax(0, 1fr); gap: 22px; }
  .course-detail-hero { padding: 30px; }
  .course-detail-hero h2 { font-size: 29px; }
  .player-layout { grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; }
  .certificate-layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 22px; }
  .certificate-info .card { padding: 22px; }
  .checkin-layout, .checkin-go-layout { grid-template-columns: minmax(0, 1.6fr) minmax(310px, .8fr); gap: 22px; }
  .appeal-layout { grid-template-columns: 320px minmax(0, 1fr); gap: 22px; }
  .appeal-fields, .appeal-evidence { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
  .exam-rule-layout { gap: 22px; }
  .notice-detail-card { padding: 28px 30px; }
  .notice-detail-card .nt-body { max-width: 80ch; }
  html[data-page="me"] .me-head { padding: 30px; }
  html[data-page="me"] .me-head .av { width: 72px; height: 72px; border-radius: 22px; font-size: 29px; }
  html[data-page="me"] .me-identity > span { font-size: 9px; }
  html[data-page="me"] .me-identity b { font-size: 27px; }
  html[data-page="me"] .me-identity p { font-size: 13px; }
  html[data-page="me"] .me-status { top: 18px; right: 20px; padding: 5px 9px; font-size: 10px; }
  html[data-page="me"] .me-stats { padding-block: 21px; }
  html[data-page="me"] .me-stats b { font-size: 27px; }
  html[data-page="me"] .me-stats span { font-size: 12px; }
  .me-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
  .me-layout .group-heading { margin-top: 24px; }
  .me-layout .menu-card .cell { min-height: 65px; padding: 16px 19px; }
  .me-layout .menu-card .cell.compact { min-height: 53px; }
  .notice-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .notice-list .notice-item { border-right: 1px solid #edf1f6; }
  .notice-list .notice-item:nth-child(even) { border-right: 0; }
  .notice-list .notice-item:nth-last-child(-n+2) { border-bottom: 0; }
  html[data-page="notices"] .seg { margin-bottom: 18px; padding: 4px; }
  html[data-page="notices"] .seg button { min-height: 44px; font-size: 14px; }
}
@media (hover: hover) and (min-width: 1024px) {
  html[data-page="courses"] .course-item { transition: border-color .18s, box-shadow .18s, transform .18s; }
  html[data-page="courses"] .course-item:hover { border-color: #cfdff7; box-shadow: 0 14px 34px rgba(20,40,80,.09); transform: translateY(-2px); }
  html[data-page="courses"] .course-item .course:hover { background: #fbfdff; }
  html[data-page="me"] .cell.tap:hover, html[data-page="notices"] .notice-item:hover { background: #f5f8fd; }
  html:is([data-page="course"], [data-page="cert"], [data-page="checkin"], [data-page="checkin-go"], [data-page="checkin-log"], [data-page="checkin-appeals"]) .cell.tap:hover,
  html:is([data-page="course"], [data-page="cert"]) .les.tap:hover { background: #f5f8fd; }
}
