/* 宿迁建安培训 · 学员端样式（延续 Blueprint Archive 视觉） */
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--c-bg, #F2F0EA);
  color: var(--c-ink, #17202B);
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 14px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image: linear-gradient(rgba(11,99,197,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,99,197,.045) 1px, transparent 1px);
  background-size: 44px 44px;
}
a { color: var(--c-blue, #0B63C5); text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0; }
.muted { color: var(--c-ink-3, #6B7684); }
.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.wrap { width: min(1180px, 100% - 40px); margin: 0 auto; position: relative; z-index: 1; }
.hide { display: none !important; }

/* ---------- 顶栏 ---------- */
.topbar {
  background: linear-gradient(100deg, #072B52, #0B4E9B 60%, #0B63C5);
  color: #fff; position: sticky; top: 0; z-index: 40;
  border-bottom: 3px solid #EA6412;
}
.topbar .wrap { display: flex; align-items: center; gap: 26px; height: 66px; }
/* 顶栏深底：品牌区为 <a>，需覆盖全局 a 的蓝色，文字统一白色 */
.topbar .brand { color: #fff; }
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand img { height: 30px; width: auto; }
.brand b { font-size: 16px; letter-spacing: .02em; white-space: nowrap; }
.brand span {
  font-family: 'IBM Plex Mono', monospace; font-size: 9px; letter-spacing: .18em;
  opacity: .62; display: block; margin-top: 1px;
}
.nav { display: flex; gap: 2px; margin-left: 8px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: rgba(255,255,255,.78); padding: 8px 13px; border-radius: 6px;
  font-size: 13.5px; white-space: nowrap; display: flex; align-items: center; gap: 7px;
  transition: .18s;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.09); }
.nav a.on { color: #fff; background: rgba(255,255,255,.14); box-shadow: inset 0 -2px 0 #EA6412; }
.nav a svg { opacity: .85; }
.userbox { display: flex; align-items: center; gap: 12px; font-size: 12.5px; white-space: nowrap; }
.userbox .who { text-align: right; line-height: 1.35; }
.userbox .who b { display: block; font-size: 13px; }
.userbox .who span { opacity: .62; font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; }
.userbox button {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  color: #fff; border-radius: 6px; padding: 6px 11px; cursor: pointer; font-size: 12px;
}
.userbox button:hover { background: rgba(255,255,255,.2); }

/* ---------- 页脚 ---------- */
.foot { margin-top: 56px; background: #0C1724; color: rgba(255,255,255,.66); padding: 30px 0 24px; position: relative; z-index: 1; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 26px 46px; align-items: flex-start; }
.foot .f-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.foot .f-brand img { height: 24px; }
.foot .f-brand b { color: #fff; font-size: 14px; }
.foot .f-col { font-size: 12.5px; line-height: 1.9; min-width: 200px; }
.foot .f-col b { color: #fff; display: block; font-size: 12px; letter-spacing: .08em; margin-bottom: 4px; }
.foot .f-col .mono { color: #E9EEF5; font-size: 13px; }
.foot .f-bottom { width: 100%; border-top: 1px solid rgba(255,255,255,.1); margin-top: 18px; padding-top: 14px; font-size: 11.5px; color: rgba(255,255,255,.55); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- 通用块 ---------- */
.card { background: #fff; border: 1px solid var(--c-line, #DCE3EC); border-radius: 10px; box-shadow: 0 1px 2px rgba(16,32,54,.04); position: relative; }
.card.pad { padding: 22px 24px; }
.card-hd { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 1px solid var(--c-line, #E5EAF1); }
.card-hd h3 { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.card-bd { padding: 18px 20px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 30px 0 14px; }
.sec-no { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: .2em; color: #EA6412; margin-bottom: 5px; }
.sec-head h2 { font-size: 20px; }
.sec-extra { font-size: 12.5px; color: var(--c-ink-3, #6B7684); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid var(--c-line-2, #C9D4E2); background: #fff; color: var(--c-ink, #17202B);
  border-radius: 7px; padding: 9px 16px; font-size: 13.5px; cursor: pointer;
  font-family: inherit; transition: .16s; min-height: 38px; font-weight: 500;
}
.btn:hover { border-color: #0B63C5; color: #0B63C5; }
.btn.primary { background: #0B63C5; border-color: #0B63C5; color: #fff; font-weight: 600; }
.btn.primary:hover { background: #0950a2; }
.btn.accent { background: #EA6412; border-color: #EA6412; color: #fff; font-weight: 600; }
.btn.accent:hover { background: #cf570c; }
.btn.ghost { background: transparent; }
/* 课程已学完：按钮转为“已完成”状态（仍可点开章节查看） */
.btn.done { background: #EAF6F1; border-color: #BFE3D4; color: #0B7D57; font-weight: 600; }
.btn.done:hover { background: #DFF1EA; border-color: #0B7D57; color: #0B7D57; }
/* 危险操作（删除已取消的开票申请等） */
.btn.danger { background: #FDF5F4; border-color: #F0C8C2; color: #BA3A2C; font-weight: 600; }
.btn.danger:hover { background: #FBEAE7; border-color: #BA3A2C; color: #BA3A2C; }
.btn.sm { min-height: 30px; padding: 4px 10px; font-size: 12.5px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #0B63C5; outline-offset: 2px;
}

.badge {
  display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; padding: 1px 8px;
  border-radius: 20px; background: #EDF1F6; color: #4B5866; border: 1px solid transparent; white-space: nowrap;
}
.badge.ok { background: #E6F4EE; color: #0B7D57; border-color: #BFE3D4; }
.badge.warn { background: #FCF0DE; color: #A96A06; border-color: #F0DCB8; }
.badge.risk { background: #FBEAE7; color: #BA3A2C; border-color: #F0C8C2; }
.badge.info { background: #E8F0FB; color: #0B63C5; border-color: #C9DCF5; }

.prog { height: 6px; background: #E7ECF3; border-radius: 6px; overflow: hidden; }
.prog i { display: block; height: 100%; background: #0B63C5; border-radius: 6px; transition: width .35s; }
.prog.ok i { background: #0B7D57; }
.prog.accent i { background: #EA6412; }

.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.kpi { background: #fff; border: 1px solid var(--c-line, #DCE3EC); border-radius: 10px; padding: 16px 18px; position: relative; overflow: hidden; }
.kpi .k-label { font-size: 12px; color: #6B7684; margin-bottom: 6px; }
.kpi .k-val { font-family: 'Barlow Condensed', 'Noto Sans SC', sans-serif; font-size: 30px; font-weight: 700; line-height: 1; letter-spacing: .01em; }
.kpi .k-sub { font-size: 11.5px; color: #8A94A3; margin-top: 6px; }
.kpi .k-ico { position: absolute; right: 14px; bottom: 10px; color: #0B63C5; opacity: .16; }
.kpi.accent .k-ico { color: #EA6412; }

.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-weight: 600; font-size: 11.5px; letter-spacing: .04em; color: #6B7684; padding: 10px 12px; border-bottom: 1px solid #E5EAF1; background: #FAFBFD; white-space: nowrap; }
.tbl td { padding: 11px 12px; border-bottom: 1px solid #EEF2F7; vertical-align: middle; }
.tbl tr:hover td { background: #F8FAFD; }
.tbl .num { font-family: 'IBM Plex Mono', monospace; font-variant-numeric: tabular-nums; }

.empty { text-align: center; padding: 40px 20px; color: #8A94A3; }
.empty svg { margin: 0 auto 12px; opacity: .6; }
.empty p { font-size: 13.5px; }
.empty small { font-size: 12px; opacity: .8; }

/* ---------- 登录 / 注册（居中收敛） ---------- */
.auth-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 28px 20px; position: relative; z-index: 1; }
.auth-card { width: min(1000px, 100%); display: grid; grid-template-columns: 1.05fr .95fr; background: #fff; border: 1px solid var(--c-line, #DCE3EC); border-radius: 12px; overflow: hidden; box-shadow: 0 18px 50px rgba(12,32,58,.13); }
.auth-card.single { grid-template-columns: 1fr; width: min(620px, 100%); }
.auth-art { background: linear-gradient(150deg, #072B52, #0B4E9B 55%, #0B63C5); color: #fff; padding: 38px 34px; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.auth-art::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 38px 38px; }
.auth-art > * { position: relative; z-index: 1; }
.auth-art img { height: 34px; width: auto; align-self: flex-start; margin-bottom: 24px; }
.auth-art .a-no { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: .2em; color: #FFB27A; }
.auth-art h1 { font-size: clamp(22px, 2.2vw, 29px); line-height: 1.35; margin: 10px 0 12px; }
.auth-art p { font-size: 13px; color: rgba(255,255,255,.76); line-height: 1.9; }
.auth-art ul { list-style: none; padding: 0; margin: 24px 0 0; font-size: 12.5px; color: rgba(255,255,255,.8); }
.auth-art li { display: flex; gap: 9px; align-items: flex-start; margin-bottom: 11px; }
.auth-art li svg { flex: none; margin-top: 3px; color: #7FC0FF; }
.auth-form { padding: 36px 34px; }
.auth-form h2 { font-size: 20px; margin-bottom: 4px; }
.auth-form .sub { font-size: 12.5px; color: #7A8697; margin-bottom: 22px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; color: #3C4857; }
.field label .req { color: #BA3A2C; }
.input, .select, textarea.input {
  width: 100%; border: 1px solid #CFD9E6; border-radius: 7px; padding: 10px 12px;
  font-size: 13.5px; font-family: inherit; background: #fff; color: #17202B; transition: .16s;
}
.input:focus, .select:focus, textarea.input:focus { border-color: #0B63C5; box-shadow: 0 0 0 3px rgba(11,99,197,.1); outline: none; }
.input.hint { font-family: 'IBM Plex Mono', monospace; letter-spacing: .04em; }
.field .tip { font-size: 11.5px; color: #8A94A3; margin-top: 5px; }
.field.err .input { border-color: #BA3A2C; }
.field .errmsg { color: #BA3A2C; font-size: 11.5px; margin-top: 4px; display: none; }
.field.err .errmsg { display: block; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: #5A6675; line-height: 1.65; }
.check input { margin-top: 3px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-foot { margin-top: 16px; font-size: 12.5px; color: #7A8697; text-align: center; }
.auth-foot a { font-weight: 600; }
.auth-note { margin-top: 18px; padding: 11px 13px; background: #F5F8FC; border-left: 3px solid #0B63C5; border-radius: 4px; font-size: 12px; color: #55637A; line-height: 1.75; }

/* ---------- 照片上传（替代原生 file 控件） ---------- */
.upload {
  position: relative; border: 1.5px dashed #C6D4E6; border-radius: 10px;
  background: linear-gradient(180deg, #FAFCFF, #F3F7FC);
  padding: 26px 18px; text-align: center; cursor: pointer;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.upload:hover { border-color: #0B63C5; background: #F2F8FF; box-shadow: 0 0 0 3px rgba(11,99,197,.07); }
.upload:focus-within { border-color: #0B63C5; box-shadow: 0 0 0 3px rgba(11,99,197,.12); }
.upload input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 3; }
.upload .up-ico {
  width: 46px; height: 46px; margin: 0 auto 10px; border-radius: 50%;
  background: #E6F0FC; color: #0B63C5; display: flex; align-items: center; justify-content: center;
}
.upload b { display: block; font-size: 13.5px; font-weight: 600; color: #17202B; }
.upload span { display: block; margin-top: 3px; font-size: 11.5px; color: #8A94A3; }
.upload .upload-filled { display: none; }
.upload.filled { padding: 0; border-style: solid; border-color: #D8E2EE; background: #0B2A4E; overflow: hidden; }
.upload.filled .upload-empty { display: none; }
.upload.filled .upload-filled { display: block; position: relative; }
.upload.filled img { display: block; width: 100%; max-height: 340px; object-fit: contain; background: #0B2A4E; }
.upload .up-again {
  position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 4px;
  background: rgba(6,24,52,.78); color: #fff; font-size: 11.5px; padding: 5px 10px;
  border-radius: 6px; backdrop-filter: blur(4px);
}

/* ---------- 首页 ---------- */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 26px; align-items: stretch; margin: 28px 0 4px; }
.hero-cover { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid #D8E1EC; min-height: 300px; background: #0B2A4E; }
.hero-cover img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero-cover .tag { position: absolute; left: 16px; top: 16px; background: rgba(6,24,52,.75); color: #fff; font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: .14em; padding: 4px 9px; border-radius: 4px; backdrop-filter: blur(4px); }
.hero-info { display: flex; flex-direction: column; justify-content: center; }
.hero-info .eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: .2em; color: #EA6412; }
.hero-info h1 { font-size: clamp(22px, 2.4vw, 31px); line-height: 1.35; margin: 9px 0 12px; }
.hero-info .desc { color: #5A6675; font-size: 13.5px; line-height: 1.85; }
.price-row { display: flex; align-items: baseline; gap: 12px; margin: 18px 0 6px; }
.price-row .p { font-family: 'Barlow Condensed', sans-serif; font-size: 42px; font-weight: 700; color: #EA6412; line-height: 1; }
.price-row .u { font-size: 13px; color: #6B7684; }
.hero-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.facts { display: flex; gap: 22px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed #D8E1EC; flex-wrap: wrap; }
.facts div { font-size: 12px; color: #6B7684; }
.facts b { display: block; font-family: 'Barlow Condensed', sans-serif; font-size: 22px; color: #17202B; line-height: 1.1; }

/* ---------- 学习 ---------- */
.learn-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
.chapter-list { max-height: 620px; overflow: auto; }
.chapter { display: flex; gap: 11px; padding: 12px 14px; border-bottom: 1px solid #EEF2F7; cursor: pointer; transition: .15s; }
.chapter:hover { background: #F7FAFD; }
.chapter.on { background: #EDF4FD; box-shadow: inset 3px 0 0 #0B63C5; }
.chapter .ch-no { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #8A94A3; padding-top: 2px; min-width: 20px; }
.chapter .ch-main { flex: 1; min-width: 0; }
.chapter .ch-title { font-size: 13px; font-weight: 600; line-height: 1.5; margin-bottom: 5px; }
.chapter .ch-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #8A94A3; }
.chapter .ch-meta .prog { flex: 1; height: 4px; }
.player { background: #0A1620; border-radius: 10px; overflow: hidden; position: relative; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; }
.player .p-cover { position: absolute; inset: 0; }
.player .p-cover img { width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.player .p-inner { position: relative; z-index: 2; text-align: center; color: #fff; padding: 20px; }
.player .p-inner .big { width: 66px; height: 66px; border-radius: 50%; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; cursor: pointer; transition: .2s; }
.player .p-inner .big:hover { background: #0B63C5; border-color: #0B63C5; transform: scale(1.04); }
.player .p-title { font-size: 14px; font-weight: 600; }
.player .p-sub { font-size: 12px; opacity: .65; margin-top: 4px; }
.player .p-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; background: linear-gradient(transparent, rgba(0,0,0,.72)); padding: 22px 16px 12px; }
.player .p-bar .line { height: 4px; background: rgba(255,255,255,.22); border-radius: 4px; overflow: hidden; }
.player .p-bar .line i { display: block; height: 100%; background: #EA6412; width: 0; }
.player .p-bar .ctrl { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; color: rgba(255,255,255,.8); font-size: 11.5px; font-family: 'IBM Plex Mono', monospace; }
.player .p-bar .ctrl .play { cursor: pointer; color: #fff; }
.anti-cheat { display: flex; gap: 8px; align-items: flex-start; background: #FFF7EC; border: 1px solid #F3DFC2; border-left: 3px solid #EA6412; border-radius: 6px; padding: 9px 12px; font-size: 12px; color: #8A5A12; margin-top: 12px; }
.anti-cheat svg { flex: none; margin-top: 2px; color: #EA6412; }
.warn-strip { background: #FBEAE7; border: 1px solid #F0C8C2; color: #A32E21; padding: 9px 13px; border-radius: 6px; font-size: 12.5px; display: none; margin-top: 10px; }
.warn-strip.show { display: block; }

/* ---------- 考试 ---------- */
.exam-layout { display: grid; grid-template-columns: minmax(0,1fr) 250px; gap: 20px; align-items: start; }
.q-item { padding: 18px 20px; border-bottom: 1px solid #EEF2F7; }
.q-item:last-child { border-bottom: none; }
.q-title { font-size: 14px; line-height: 1.75; margin-bottom: 12px; }
.q-title .qn { font-family: 'IBM Plex Mono', monospace; color: #EA6412; margin-right: 6px; }
.q-title .qt { font-size: 10.5px; color: #8A94A3; border: 1px solid #DCE3EC; border-radius: 3px; padding: 0 5px; margin-left: 6px; vertical-align: 1px; }
.opt { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border: 1px solid #E5EAF1; border-radius: 7px; margin-bottom: 7px; cursor: pointer; font-size: 13px; transition: .14s; }
.opt:hover { border-color: #A9C6E8; background: #F8FBFF; }
.opt.on { border-color: #0B63C5; background: #EDF4FD; box-shadow: inset 0 0 0 1px #0B63C5; }
.opt input { margin-top: 4px; }
.answer-card { position: sticky; top: 84px; }
.ac-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.ac-grid button { aspect-ratio: 1; border: 1px solid #DCE3EC; background: #fff; border-radius: 6px; cursor: pointer; font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #4B5866; }
.ac-grid button.done { background: #E8F0FB; border-color: #A9C6E8; color: #0B63C5; }
.ac-grid button.cur { background: #0B63C5; border-color: #0B63C5; color: #fff; }
.timer { font-family: 'Barlow Condensed', monospace; font-size: 30px; font-weight: 700; color: #0B63C5; line-height: 1; }
.timer.low { color: #BA3A2C; }

/* ---------- 证书 ---------- */
.cert-preview { background: #fff; border: 1px solid #D8C9A8; border-radius: 6px; padding: 30px; position: relative; overflow: hidden; }
.cert-preview::before { content: ''; position: absolute; inset: 12px; border: 1px solid #D8C9A8; pointer-events: none; }
.cert-preview .c-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.cert-preview .c-brand img { height: 30px; }
.cert-preview h3 { font-size: 21px; text-align: center; letter-spacing: .12em; margin: 10px 0 6px; }
.cert-preview .c-no { text-align: center; font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #8A7A56; letter-spacing: .08em; }
.cert-preview .c-body { margin: 24px 0; font-size: 14px; line-height: 2.2; }
.cert-preview .c-body b { border-bottom: 1px solid #7A6A46; padding: 0 10px; }
.cert-preview .c-foot { display: flex; justify-content: space-between; align-items: flex-end; font-size: 12px; color: #5A5040; margin-top: 22px; }
.cert-preview .seal { width: 82px; height: 82px; border: 2px solid rgba(186,58,44,.7); border-radius: 50%; color: rgba(186,58,44,.8); display: flex; align-items: center; justify-content: center; text-align: center; font-size: 10px; line-height: 1.3; transform: rotate(-9deg); }

/* ---------- 我的中心 ---------- */
.member-layout { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 20px; align-items: start; }
.menu-group { margin-bottom: 14px; }
.menu-group .mg-t { font-size: 10.5px; letter-spacing: .14em; color: #8A94A3; padding: 0 12px 6px; font-family: 'IBM Plex Mono', monospace; }
.menu-item { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 7px; font-size: 13px; color: #4B5866; cursor: pointer; transition: .14s; }
.menu-item:hover { background: #F3F7FC; }
.menu-item.on { background: #EDF4FD; color: #0B63C5; font-weight: 600; box-shadow: inset 3px 0 0 #0B63C5; }
.menu-item svg { opacity: .8; }

/* ---------- 弹层 / Toast ---------- */
#modal-root { position: fixed; inset: 0; z-index: 80; display: none; }
#modal-root.open { display: block; }
#modal-root .mask { position: absolute; inset: 0; background: rgba(10,22,32,.55); backdrop-filter: blur(2px); }
#modal-root .modal { position: relative; width: min(560px, calc(100% - 32px)); margin: 8vh auto 0; background: #fff; border-radius: 10px; box-shadow: 0 24px 60px rgba(6,20,38,.3); max-height: 84vh; display: flex; flex-direction: column; }
#modal-root .modal.wide { width: min(860px, calc(100% - 32px)); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 1px solid #E5EAF1; }
.modal-head h3 { font-size: 15px; }
.modal-x { border: none; background: none; font-size: 22px; line-height: 1; color: #8A94A3; cursor: pointer; padding: 0 4px; }
.modal-body { padding: 18px 20px; overflow: auto; }
.modal-foot { padding: 13px 20px; border-top: 1px solid #E5EAF1; display: flex; justify-content: flex-end; gap: 9px; }
.confirm-text { font-size: 13.5px; color: #4B5866; line-height: 1.8; }
#toast-box { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; align-items: center; gap: 9px; pointer-events: none; width: max-content; max-width: min(560px, calc(100% - 32px)); }
.toast { background: #17202B; color: #fff; padding: 11px 18px; border-radius: 8px; font-size: 13.5px; line-height: 1.5; text-align: center; box-shadow: 0 10px 30px rgba(10,22,32,.24); opacity: 0; transform: translateY(10px); transition: .24s; max-width: 100%; }
.toast.in { opacity: 1; transform: none; }
.toast.err { background: #A32E21; }
.toast.ok { background: #0B6B4C; }
.form-err { display: flex; align-items: flex-start; gap: 9px; background: #FFF3F1; border: 1px solid #F0C8C1; border-left: 3px solid #C5392A; color: #A32E21; border-radius: 5px; padding: 10px 12px; font-size: 13px; line-height: 1.65; margin: 4px 0 14px; }
.form-err::before { content: '!'; flex: 0 0 16px; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; background: #C5392A; color: #fff; font-size: 11px; font-weight: 700; text-align: center; line-height: 16px; }
.form-err.hide { display: none; }
.loading { text-align: center; padding: 46px 0; color: #8A94A3; font-size: 13px; }
.loading i { display: inline-block; width: 16px; height: 16px; border: 2px solid #CBD6E4; border-top-color: #0B63C5; border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -3px; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .hero, .learn-layout, .exam-layout, .member-layout { grid-template-columns: 1fr; }
  .auth-card { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .answer-card { position: static; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 28px); }
  .nav { display: none; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .auth-form { padding: 26px 20px; }
  .topbar .wrap { height: 58px; gap: 12px; }
  .kpi .k-val { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media print {
  .topbar, .foot, .no-print { display: none !important; }
  body { background: #fff; }
  body::before { display: none; }
  .cert-preview { border: none; box-shadow: none; }
}

/* ---------- 页脚贴底 ---------- */
html { background: var(--c-bg, #F2F0EA); }
body { min-height: 100vh; display: flex; flex-direction: column; }
#view-root { flex: 1 0 auto; }
#site-foot { flex: 0 0 auto; margin-top: auto; }

/* ---------- 微信扫码核验 ---------- */
.qr-box { display: flex; justify-content: center; padding: 6px 0 2px; }
.qr-img { width: 220px; height: 220px; border-radius: 10px; border: 1px solid #E1E7F0; background: #fff; }
.qr-tip { text-align: center; font-size: 13px; color: #17202B; margin-top: 12px; }
.qr-state { margin-top: 8px; text-align: center; font-size: 12px; color: #8A94A3; }
.qr-state.ok { color: #1F7A46; font-weight: 600; }
.qr-state.err { color: #B4342A; }
.member-nav a.menu-item { text-decoration: none; }

/* ---------- V1.3 考试：一题一屏 + 左侧答题卡 ---------- */
.exam-v2 { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 16px; align-items: start; }
.ac-left { position: sticky; top: 82px; }
.exam-timer { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0 14px; padding-top: 14px; border-top: 1px solid #EEF2F7; }
.ac-legend { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 11px; color: #8A94A3; }
.ac-legend .dot { width: 9px; height: 9px; border-radius: 2px; background: #EEF2F7; border: 1px solid #DCE4EE; }
.ac-legend .dot.done { background: #0B63C5; border-color: #0B63C5; }
.ac-legend .dot.cur { border: 2px solid #EA6412; }
.q-v2-head { display: flex; align-items: center; gap: 9px; }
.q-v2-head .qn { width: 28px; height: 28px; border-radius: 7px; background: #0B4E9B; color: #fff;
  font: 12px ui-monospace, monospace; display: flex; align-items: center; justify-content: center; }
.q-v2-title { font-size: 17px; line-height: 1.85; margin: 18px 0 22px; font-weight: 500; }
.q-v2-opts { display: flex; flex-direction: column; gap: 10px; }
.q-opt { display: flex; align-items: flex-start; gap: 11px; padding: 13px 14px; border: 1px solid #DCE4EE;
  border-radius: 9px; font-size: 14px; line-height: 1.7; cursor: pointer; transition: .15s; }
.q-opt:hover { border-color: #9CBEEB; background: #F8FBFF; }
.q-opt.on { border-color: #0B63C5; background: #F0F6FE; }
.q-opt .ol { width: 24px; height: 24px; flex: none; border-radius: 50%; border: 1px solid #C9D4E3;
  display: flex; align-items: center; justify-content: center; font: 11px ui-monospace, monospace; }
.q-opt.on .ol { background: #0B63C5; border-color: #0B63C5; color: #fff; }
.q-right .q-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px; border-top: 1px solid #EEF2F7; }
.exam-v2 .ac-grid button.cur { border: 2px solid #EA6412; color: #EA6412; font-weight: 700; }

/* 交卷区：与翻页之间加虚线分隔，避免两个动作挨在一起误点 */
.exam-v2 .q-submit { display: flex; align-items: center; gap: 16px;
  padding: 13px 14px 15px; border-top: 1px dashed #DCE4EE; }
.exam-v2 .q-submit .qs-info { flex: 1; min-width: 0; }
.exam-v2 .q-submit .qs-n { display: block; font-size: 12.5px; font-weight: 700; color: #16202B; }
.exam-v2 .q-submit .qs-s { display: block; font-size: 11px; color: #8A94A3; margin-top: 3px; }
.exam-v2 .q-submit .qs-s.ok { color: #0B7D57; }
.exam-v2 .q-submit .qs-s.ok .qs-hl { color: #0B7D57; }
.exam-v2 .q-submit .qs-hl { color: #EA6412; font-weight: 700; }
.exam-v2 .q-submit .qs-btn { flex: none; min-width: 118px; height: 38px; letter-spacing: .18em; }

/* ---------- V1.3 考中人脸锁屏 ---------- */
.face-lock { display: none; position: fixed; z-index: 80; inset: 0; background: rgba(6, 22, 44, .82);
  align-items: center; justify-content: center; padding: 20px; }
.face-lock.show { display: flex; }
.fl-card { width: 100%; max-width: 400px; max-height: 92vh; overflow: auto; background: #fff;
  border-radius: 16px; padding: 26px 24px 22px; text-align: center; box-shadow: 0 18px 50px rgba(0,0,0,.22); }
.fl-ico { width: 58px; height: 58px; margin: 0 auto 13px; border-radius: 50%; background: #EDF3FC;
  color: #0B4E9B; display: flex; align-items: center; justify-content: center; }
.fl-card h3 { margin: 0 0 8px; font-size: 17px; }
.fl-card > p { margin: 0 0 14px; font-size: 12.5px; line-height: 1.85; color: #5A6879; }
.fl-foot { margin-top: 14px; }
@media (max-width: 900px) { .exam-v2 { grid-template-columns: 1fr; } .ac-left { position: static; } }


/* ===================== V1.4 菜单统一 / 课程分类 / 帮助中心 / 登录注册 ===================== */
.svc-bar { background: #0B63C5; color: #fff; font-size: 12px; }
.svc-bar .wrap { height: 32px; display: flex; align-items: center; justify-content: space-between; }
.svc-bar b { font-size: 12.5px; font-weight: 600; }
.svc-user { display: flex; align-items: center; gap: 8px; }
.svc-user a { color: #fff; }
.svc-user a:hover { text-decoration: underline; }
.svc-user .sep { opacity: .45; }
.svc-user button { background: none; border: 0; color: #fff; font-size: 12px; cursor: pointer; font-family: inherit; }
.svc-user button:hover { text-decoration: underline; }
.main-nav { background: #fff; border-bottom: 1px solid #E6EBF2; position: sticky; top: 0; z-index: 40; box-shadow: 0 1px 6px rgba(16,32,54,.05); }
.main-nav .wrap { height: 74px; display: flex; align-items: center; gap: 26px; }
.m-brand { display: flex; align-items: center; gap: 10px; color: #17202B; flex: none; }
.m-brand img { height: 42px; width: auto; }
.m-brand b { display: block; font-size: 19px; letter-spacing: .06em; line-height: 1.25; }
.m-brand span { display: block; font-size: 10.5px; color: #7A8697; letter-spacing: .04em; }
.m-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.m-nav a { color: #3C4857; font-size: 13.5px; padding: 8px 13px; border-radius: 6px; white-space: nowrap; }
.m-nav a:hover { color: #0B63C5; background: #F2F7FD; }
.m-nav a.on { color: #EA6412; font-weight: 700; }
.m-search { display: flex; align-items: center; background: #EFF1F4; border-radius: 6px; padding: 0 8px 0 12px; height: 34px; flex: none; }
.m-search input { border: 0; background: transparent; outline: 0; width: 130px; font-size: 12.5px; font-family: inherit; color: #3C4857; }
.m-search button { border: 0; background: transparent; color: #8A94A3; cursor: pointer; padding: 4px; display: flex; }
.m-search button:hover { color: #0B63C5; }

/* 课程分类筛选 + 注意事项 + 课程网格 */
.filter-card { margin-top: 22px; }
.filter-line { display: flex; align-items: center; gap: 20px; padding: 10px 0; }
.filter-line + .filter-line { border-top: 1px solid #EDF1F6; }
.filter-line > b { width: 44px; flex: none; font-size: 13px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.chip { font-size: 13px; color: #4B5866; cursor: pointer; padding: 2px 0; }
.chip:hover { color: #0B63C5; }
.chip.on { color: #EA6412; font-weight: 700; }
.notice-card { margin-top: 18px; background: #fff; }
.notice-title { display: inline-block; color: #EA6412; font-size: 16px; padding-bottom: 5px; border-bottom: 2px solid #EA6412; margin-bottom: 12px; }
.notice-list { margin: 0; padding-left: 22px; color: #5A6675; font-size: 13.5px; line-height: 2; }
.notice-list li { margin-bottom: 6px; }
.notice-list .red, .red { color: #D0342C; font-weight: 600; }
.notice-btns { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.notice-btns .btn { border-radius: 6px; }
.list-head { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 14px; }
.list-head h2 { font-size: 19px; }
.course-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 40px; }
.c-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #E3E9F1; border-radius: 6px; overflow: hidden; color: inherit; transition: .18s; }
.c-card:hover { border-color: #EA6412; box-shadow: 0 8px 22px rgba(16,32,54,.1); transform: translateY(-2px); }
.c-cover { aspect-ratio: 16/9; background: #0B2A4E; overflow: hidden; }
.c-cover img { width: 100%; height: 100%; object-fit: cover; }
.c-body { display: flex; flex-direction: column; flex: 1; padding: 10px 12px 11px; }
/* 标题按实际行数占高，不再预留两行空白；多卡片由 c-meta 贴底对齐 */
.c-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 13px; line-height: 1.45; color: #17202B; }
/* 角色标识：人员卡图标 + 岗位名的浅色小徽标，无括号、紧贴主标题 */
.c-sub { margin-top: 5px; line-height: 1; }
.c-role { display: inline-flex; align-items: center; gap: 4px; max-width: 100%;
  padding: 3px 8px 3px 6px; border: 1px solid #E4EDF8; border-radius: 20px;
  background: #F2F7FD; color: #5C7089; font-size: 11px; line-height: 1.35; white-space: nowrap; }
.c-role svg { flex: none; width: 12px; height: 12px; color: #7B93AE; }
.c-meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 9px; }
.c-count { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: #9AA4B2; }
.c-price { color: #D0342C; font-size: 15px; font-family: 'Barlow Condensed', sans-serif; }
@media (max-width: 1100px) { .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .course-grid { grid-template-columns: 1fr; } .main-nav .wrap { height: 60px; gap: 12px; } .m-nav { display: none; } .m-brand span { display: none; } }

/* 帮助中心 */
.help-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 22px; align-items: start; margin: 28px 0 40px; }
.help-side { padding: 18px 12px; }
.help-group { margin-bottom: 20px; }
.hg-title { color: #0B63C5; font-size: 13px; font-weight: 700; text-align: center; padding-bottom: 10px; margin-bottom: 8px; position: relative; }
.hg-title::before, .hg-title::after { content: ''; position: absolute; top: 50%; width: 22px; height: 1px; background: #D5E3F5; }
.hg-title::before { left: 4px; } .hg-title::after { right: 4px; }
.hg-item { display: block; text-align: center; font-size: 12.5px; color: #5A6675; padding: 8px 6px; border-radius: 5px; line-height: 1.55; }
.hg-item:hover { color: #0B63C5; background: #F3F8FE; }
.hg-item.on { background: #EDF0F3; color: #17202B; font-weight: 600; }
.help-doc { min-height: 520px; }
.help-title { color: #0B63C5; font-size: 21px; font-weight: 700; margin-bottom: 20px; }
.qa-item { margin-bottom: 18px; }
.qa-q { font-size: 13px; color: #3C4857; line-height: 1.8; }
.qa-a { font-size: 13px; color: #6B7684; line-height: 1.9; margin-top: 3px; }
.help-text p { font-size: 13.5px; color: #4B5866; line-height: 2; margin-bottom: 10px; }
.news-item { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid #EEF2F7; }
.news-item b { font-size: 14px; } .news-item p { font-size: 12.5px; margin-top: 5px; line-height: 1.8; }
.news-item span { font-size: 11.5px; white-space: nowrap; }
.contact-row { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid #EEF2F7; font-size: 13.5px; }
.contact-row b { width: 84px; flex: none; color: #6B7684; font-weight: 600; }

/* 个人中心：8 项菜单（橙色左竖条选中） */
.member-nav { padding: 12px 0 !important; }
.member-nav .menu-item { display: block; padding: 12px 24px; font-size: 13px; color: #6B7684; border-radius: 0; box-shadow: none; background: none; }
.member-nav .menu-item:hover { background: #F7F9FC; color: #0B63C5; }
.member-nav .menu-item.on { background: #fff; color: #17202B; font-weight: 600; box-shadow: inset 3px 0 0 #EA6412; }
.panel-head { display: flex; align-items: baseline; gap: 12px; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid #EEF2F7; }
.panel-head h2 { font-size: 15px; } .panel-head span { font-size: 12px; }
.field-tip { font-size: 11.5px; color: #8A94A3; margin-top: 6px; line-height: 1.7; }
.tag-row { display: flex; gap: 8px; margin-bottom: 14px; }
.tag-grey { background: #D9DEE5; color: #5A6675; font-size: 12px; padding: 3px 12px; border-radius: 4px; }
.pkg-table { border: 1px solid #EDF1F6; }
.pkg-head, .pkg-row { display: grid; grid-template-columns: minmax(0, 2fr) 1fr 1fr 1fr; gap: 10px; padding: 10px 12px; font-size: 12.5px; align-items: center; }
.pkg-head { background: #EEF1F5; font-weight: 700; color: #3C4857; }
.pkg-row { border-top: 1px solid #EEF2F7; background: #fff; }
.pkg-row:nth-child(odd) { background: #FAFBFD; }

/* 登录 / 注册（参考站三 Tab 卡片） */
.auth2-page { min-height: 100vh; background: #F5F6F8; padding: 34px 20px 40px; position: relative; z-index: 1; }
.auth2-logo { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 26px; }
.auth2-logo img { height: 52px; width: auto; }
.auth2-logo b { display: block; font-size: 27px; letter-spacing: .12em; color: #17202B; line-height: 1.2; }
.auth2-logo span { display: block; font-size: 12.5px; color: #7A8697; letter-spacing: .1em; margin-top: 3px; }
.auth2-card { width: min(620px, 100%); margin: 0 auto; background: #fff; box-shadow: 0 2px 18px rgba(16,32,54,.06); border: 1px solid #EBEEF3; }
.auth2-tabs { display: grid; grid-template-columns: repeat(3, 1fr); background: #F4F5F7; }
.auth2-tab { text-align: center; padding: 18px 8px; font-size: 16px; color: #5A6675; }
.auth2-tab:hover { color: #0B63C5; }
.auth2-tab.on { background: #fff; color: #17202B; font-weight: 700; box-shadow: inset 0 -2px 0 #EA6412; }
.auth2-body { padding: 30px 46px 38px; }
.auth2-body .field { margin-bottom: 20px; }
.auth2-body .field label { font-size: 13.5px; font-weight: 700; color: #5A6675; margin-bottom: 9px; }
.auth2-body .input, .auth2-body .select { background: #FAFBFC; border: 1px solid #DDE3EA; border-radius: 5px; padding: 13px 14px; font-size: 15px; height: 50px; }
.auth2-body .select { height: 38px; padding: 6px 10px; font-size: 13px; width: auto; min-width: 130px; }
.auth2-submit { background: #F2650B; border-color: #F2650B; color: #fff; font-size: 16px; min-height: 50px; border-radius: 5px; font-weight: 600; margin-top: 6px; }
.auth2-submit:hover { background: #D95808; border-color: #D95808; }
.auth2-links { text-align: center; margin-top: 20px; font-size: 13px; color: #7A8697; }
.auth2-links a { color: #F2650B; font-weight: 600; }
.auth2-links .sep { margin: 0 8px; color: #C9D1DC; }
.auth2-help { text-align: center; margin-top: 16px; font-size: 12.5px; color: #7A8697; }
.auth2-help a { color: #F2650B; }
.auth2-foot { text-align: center; margin-top: 22px; font-size: 12px; color: #98A2B0; }
.auth2-foot .icp { color: #6B7684; }
.reg-types { display: flex; flex-direction: column; gap: 10px; }
.reg-radio { display: flex; align-items: center; gap: 7px; font-size: 13px; color: #4B5866; font-weight: 400 !important; cursor: pointer; }
.reg-radio.risk { color: #D0342C; font-weight: 700 !important; }
.reg-radio input { accent-color: #0B63C5; }
.fg-code { display: flex; gap: 10px; }
.fg-code .input { flex: 1; }
#fg-demo { color: #0B7D57; font-size: 12px; margin-top: 6px; }
@media (max-width: 640px) {
  .auth2-body { padding: 24px 20px 30px; }
  .auth2-logo b { font-size: 21px; }
  .pkg-head, .pkg-row { grid-template-columns: minmax(0, 2fr) 1fr 1fr; }
  .pkg-head span:last-child, .pkg-row span:last-child { display: none; }
}


/* ===================== V1.4b 视频播放页 / 合格证书 / 个人信息 ===================== */
.video-top { display: flex; align-items: center; gap: 14px; margin: 24px 0 10px; font-size: 12.5px; color: #6B7684; }
.video-top a { color: #0B63C5; font-weight: 600; }
.video-top span { color: #8A94A3; }
.video-notice { background: #E8F1FD; border: 1px solid #C9DDF5; color: #0B4E9B; font-size: 12px; line-height: 1.7; padding: 8px 12px; margin-bottom: 10px; }
.video-shell { background: #fff; border: 1px solid #E1E7F0; border-radius: 8px; overflow: hidden; }
.video-stage { position: relative; background: #000; aspect-ratio: 16/8.4; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.v-slide { position: relative; z-index: 1; width: 78%; height: 76%; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; box-shadow: 0 8px 30px rgba(0,0,0,.35); }
.v-slide .v-rule { width: 76%; height: 2px; background: #0B63C5; }
.v-slide h2 { font-size: clamp(19px, 2.4vw, 30px); text-align: center; line-height: 1.5; margin: 22px 0; color: #101820; font-weight: 800; }
.v-slide .v-course { font-size: 12px; color: #8A94A3; margin-top: 20px; text-align: center; }
.v-big { position: absolute; z-index: 2; width: 62px; height: 62px; border-radius: 50%; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.5); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: .2s; }
.v-big:hover { background: #0B63C5; transform: scale(1.06); }
.v-bar { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, rgba(0,0,0,.85)); padding: 16px 14px 9px; }
.v-prog { height: 3px; background: rgba(255,255,255,.28); border-radius: 3px; overflow: hidden; }
.v-prog i { display: block; height: 100%; width: 0; background: #EA6412; }
.v-ctrl { display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,.9); font-size: 12px; margin-top: 8px; font-family: 'IBM Plex Mono', monospace; }
.v-ctrl > span { cursor: pointer; }
.v-ctrl .v-spacer { flex: 1; cursor: default; }
.v-ico { opacity: .85; display: flex; }
.v-ico:hover, .v-ico.off { opacity: .45; }
.v-status { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 11.5px; padding: 8px 12px; background: #F7F9FC; border-top: 1px solid #E9EEF5; }
.vs-blue { background: #0B63C5; color: #fff; padding: 2px 8px; border-radius: 3px; }
.vs-red { background: #D0342C; color: #fff; padding: 2px 8px; border-radius: 3px; }
.learn-layout.v2 { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
.v-side { display: grid; gap: 16px; }
@media (max-width: 900px) { .learn-layout.v2 { grid-template-columns: 1fr; } }

/* 合格证书：服务端合成的真实 PNG 图片 */
.cert-page { padding-bottom: 30px; }
.cert-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 26px 0 18px; }
.dl-pdf, .dl-img { border: 0; color: #fff; border-radius: 22px; padding: 10px 24px; font-weight: 600;
  box-shadow: 0 8px 20px rgba(108,76,241,.28); text-decoration: none; }
.dl-pdf { background: linear-gradient(100deg, #6C4CF1, #8B5CF6); }
.dl-img { background: linear-gradient(100deg, #0B63C5, #2F8BE0); box-shadow: 0 8px 20px rgba(11,99,197,.26); }
.dl-pdf:hover, .dl-img:hover { color: #fff; opacity: .92; }
.cert-photo { width: min(620px, 100%); margin: 0 auto; background: #fff;
  box-shadow: 0 12px 40px rgba(16,32,54,.14); }
.cert-photo img { display: block; width: 100%; height: auto; }


/* 个人信息页（参考站纵向字段） */
.profile-card .card-bd { padding: 22px 30px 28px; }
.pf-row { margin-bottom: 18px; border-bottom: 1px solid #EDF1F6; padding-bottom: 8px; }
.pf-row label { display: block; font-size: 13px; color: #6B7684; margin-bottom: 8px; font-weight: 500; }
.pf-val { font-size: 14px; color: #17202B; min-height: 26px; }
.pf-row .input { border: 0; border-bottom: 1px solid #DCE3EC; border-radius: 0; background: transparent; padding: 4px 0 8px; font-size: 14px; }
.pf-row .input:focus { box-shadow: none; border-color: #0B63C5; }
.pf-ph-box { width: 190px; min-height: 118px; background: #F5F8FC; border: 1px dashed #C9D7E8; border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: #8A94A3; text-align: center; padding: 12px; }
.pf-ph-box span { font-size: 11.5px; color: #5A6675; }
.pf-ph-box small { font-size: 10px; color: #A0AAB8; line-height: 1.5; }
/* 核验照片：默认模糊，点击才看清晰原图 */
.pf-shot { position: relative; display: block; width: 190px; padding: 0; border: 1px solid #DCE3EC; border-radius: 8px; overflow: hidden; background: #F5F8FC; cursor: pointer; line-height: 0; }
.pf-shot-img { display: block; width: 100%; height: 130px; object-fit: cover; filter: blur(9px); transform: scale(1.08); transition: filter .18s; }
.pf-shot:hover .pf-shot-img { filter: blur(6px); }
.pf-shot-mask { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #fff; background: rgba(9, 26, 46, .34); line-height: 1.45; }
.pf-shot-mask b { font-size: 12.5px; font-weight: 600; }
.pf-shot-mask i { font-style: normal; font-size: 10.5px; opacity: .88; }
.pf-shot.none { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 190px; height: 104px; border: 1px dashed #C9D7E8; background: #F5F8FC; color: #8A94A3; cursor: default; line-height: 1.5; }
.pf-shot.none span { font-size: 11.5px; color: #5A6675; }
.pf-shot.none small { font-size: 10px; color: #A0AAB8; }
.pf-shot-tip { font-size: 11px; color: #9AA5B4; margin-top: 7px; }
.pf-view img { display: block; width: 100%; max-width: 340px; margin: 0 auto; border-radius: 8px; }
.pf-view-tip { font-size: 11.5px; color: #8A94A3; text-align: center; margin-top: 10px; line-height: 1.8; }
.pf-face { color: #EA6412; font-size: 13px; margin: 4px 0 14px; font-weight: 600; }
.pf-face.ok { color: #0B7D57; }
.pf-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.pf-go { background: #2BA245; border-color: #2BA245; color: #fff; font-weight: 600; }
.pf-go:hover { color: #fff; background: #238B3A; }
@media print {
  .cert-actions, .topbar, .foot, .no-print { display: none !important; }
  .cert-photo { width: 100%; box-shadow: none; }
  .cert-photo img { width: 100%; }
  body { background: #fff; }
  body::before { display: none; }
  .wrap { width: 100%; }
  @page { size: A4 portrait; margin: 8mm; }
}


/* ===================== V1.4c 个人中心子页（参考站列表卡片） ===================== */
.mc-card .card-hd { padding: 16px 24px; }
.mc-card .card-hd h3 { font-size: 15px; }
.mc-bd { padding: 18px 24px 26px; }
.mc-item { display: flex; align-items: center; gap: 20px; padding: 22px 0; border-bottom: 1px solid #EDF1F6; }
.mc-item:last-child { border-bottom: 0; }
.mc-cover { width: 118px; height: 74px; flex: none; background: #0B2A4E; border-radius: 3px; overflow: hidden; }
.mc-cover img { width: 100%; height: 100%; object-fit: cover; }
.mc-lines { flex: 1; min-width: 0; }
.mc-line { font-size: 13px; color: #5A6675; line-height: 1.9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-btn { flex: none; min-width: 92px; font-size: 12.5px; padding: 7px 14px; border-radius: 4px; }
.mc-btn.grey { display: inline-flex; align-items: center; justify-content: center; background: #D5DAE0; color: #fff; border: 0; }
.mc-prog { display: flex; align-items: center; gap: 12px; margin-top: 14px; max-width: 340px; }
.mc-prog span { font-size: 12px; color: #8A94A3; white-space: nowrap; }
.mc-prog .prog { flex: 1; height: 7px; }
.mc-prog b { font-size: 12px; color: #5A6675; min-width: 36px; }
.cert-item .mc-lines { padding-left: 4px; }
.cert-item .mc-line { white-space: normal; }
.pf-form { max-width: 400px; padding-top: 10px; }
.pf-form .pf-row label { font-size: 12.5px; color: #6B7684; }
.pf-form .btn { border-radius: 4px; margin-top: 8px; }
.qa-form { max-width: 500px; padding-top: 10px; }
.qa-form .select { width: 210px; font-size: 12.5px; }
.qa-form textarea.input { border: 1px solid #DCE3EC; border-radius: 3px; padding: 10px; font-size: 13px; resize: vertical; }
.qa-actions { display: flex; justify-content: flex-end; margin-top: 12px; }
.qa-actions .btn { border-radius: 4px; }
.mc-sub { font-size: 13px; margin: 26px 0 10px; padding-top: 18px; border-top: 1px solid #EDF1F6; }
.qa-his { padding: 12px 0; border-bottom: 1px solid #EEF2F7; }
.qa-his > div { display: flex; align-items: center; gap: 10px; }
.qa-his b { font-size: 13px; font-weight: 600; }
.qa-his p { font-size: 12.5px; margin-top: 6px; line-height: 1.8; }
@media (max-width: 700px) {
  .mc-item { flex-wrap: wrap; gap: 12px; }
  .mc-cover { width: 96px; height: 60px; }
  .mc-btn { margin-left: auto; }
}


/* ===================== V1.4d 仅个人账号 / 仅本年度 ===================== */
.auth2-tabs { grid-template-columns: repeat(2, 1fr); }
.reg-only { font-size: 13.5px; color: #3C4857; background: #F5F8FC; border: 1px solid #E1E8F2; border-radius: 5px; padding: 11px 14px; }
.v-big { background: rgba(6, 22, 44, .58); border-color: rgba(255,255,255,.72); }
.v-big:hover { background: #0B63C5; }

/* V1.21 我的发票：票面详情 / 办理进度 / 修改与申请区 */
.siv-top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 11px; }
.siv-top .mono { font-size: 11.5px; }
.siv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.siv-kv { background: #F8FAFD; border: 1px solid #EEF2F7; border-radius: 7px; padding: 8px 11px; min-width: 0; }
.siv-kv span { display: block; font-size: 10.5px; color: #8A94A3; margin-bottom: 3px; }
.siv-kv b { font-size: 12.5px; font-weight: 500; color: #1B2A3D; word-break: break-all; }
.siv-warn { margin-top: 10px; padding: 9px 12px; border-radius: 7px; background: #FFF6F4; color: #A32E21; font-size: 12px; }
.siv-sec { margin-top: 14px; }
.siv-sec h4 { font-size: 12.5px; font-weight: 500; margin: 0 0 8px; }
.siv-box { margin-top: 13px; padding: 12px; border: 1px dashed #C9DDFA; border-radius: 8px; background: #F7FAFF; }
.siv-box[hidden] { display: none !important; }
.siv-tl { max-height: 170px; overflow: auto; border: 1px solid #EEF2F7; border-radius: 7px; }
.siv-ev { display: flex; gap: 8px; align-items: center; padding: 7px 10px; border-bottom: 1px solid #F0F3F8; font-size: 11px; }
.siv-ev:last-child { border-bottom: 0; }
.siv-ev > span:first-child { color: #8A94A3; flex: none; }
.siv-ev b { color: #0B63C5; font-weight: 500; flex: none; }
.siv-ev > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===================== V1.23 课程详情页重设计（多章节友好） ===================== */
.cd-hero { display: grid; grid-template-columns: 400px minmax(0, 1fr); background: #fff;
  border: 1px solid var(--c-line, #DCE3EC); border-radius: 12px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 32, 54, .04); }
.cd-cover { position: relative; min-height: 272px; background: #0A2036; }
.cd-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cd-cover::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(155deg, rgba(10, 32, 54, .10), rgba(10, 32, 54, .42)); }
.cd-intro { padding: 30px 34px 26px; display: flex; flex-direction: column; }
.cd-kicker { display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .08em;
  color: var(--c-muted, #6C7C8B); font-family: var(--font-mono, monospace); }
.cd-tag { background: var(--c-blue-soft, #E7F0FB); color: var(--c-blue-deep, #073E7E); border-radius: 4px;
  padding: 3px 8px; font-family: var(--font-body); letter-spacing: 0; font-size: 11.5px; }
.cd-sep { width: 14px; height: 1px; background: var(--c-line-2, rgba(12, 27, 41, .2)); }
.cd-title { font-size: clamp(21px, 2.1vw, 29px); line-height: 1.32; letter-spacing: -.01em; margin: 12px 0 0; }
.cd-role { margin-top: 9px; }
.cd-sum { font-size: 13px; line-height: 1.95; color: var(--c-text-2, #41566B); margin: 12px 0 0; max-width: 64ch; }
.cd-facts { display: flex; margin-top: auto; padding-top: 24px; }
.cd-fact { padding-right: 24px; margin-right: 24px; border-right: 1px solid var(--c-line, rgba(12, 27, 41, .12)); }
.cd-fact:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.cd-fact b { display: block; font-family: var(--font-display, 'Barlow Condensed', sans-serif); font-size: 23px;
  font-weight: 600; color: var(--c-ink, #0C1B29); line-height: 1.15; }
.cd-fact span { font-size: 11.5px; color: var(--c-muted, #6C7C8B); }
.cd-cta { display: flex; align-items: flex-end; gap: 12px; margin-top: 20px; padding-top: 18px;
  border-top: 1px dashed var(--c-line-2, rgba(12, 27, 41, .2)); flex-wrap: wrap; }
.cd-price { margin-right: auto; display: flex; align-items: baseline; gap: 8px; }
.cd-price span { font-size: 11.5px; color: var(--c-muted, #6C7C8B); }
.cd-price b { font-family: var(--font-display, 'Barlow Condensed', sans-serif); font-size: 32px; line-height: 1; color: var(--c-ink, #0C1B29); }

.cd-body { display: grid; grid-template-columns: minmax(0, 1fr) 318px; gap: 18px; margin-top: 18px; align-items: start; }
.cd-dir { overflow: hidden; }
.cd-dir-hd { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 17px 22px; border-bottom: 1px solid var(--c-line, #E5EAF1); }
.cd-dir-hd h3 { font-size: 15px; display: flex; align-items: center; gap: 9px; }
.cd-dir-hd h3::before { content: ''; width: 3px; height: 14px; background: var(--c-accent, #EA6412); border-radius: 2px; }
.cd-dir-hd p { font-size: 11.5px; color: var(--c-muted, #6C7C8B); margin-top: 6px;
  font-family: var(--font-mono, monospace); letter-spacing: .01em; }
.cd-toggle { flex: none; border: 1px solid var(--c-line-2, rgba(12, 27, 41, .2)); background: #fff;
  color: var(--c-text-2, #41566B); font-size: 12px; padding: 6px 14px; border-radius: 999px;
  cursor: pointer; font-family: inherit; transition: .15s; }
.cd-toggle:hover { border-color: var(--c-blue, #0B63C5); color: var(--c-blue, #0B63C5); }
.cd-list { list-style: none; margin: 0; padding: 4px 0; position: relative; }
.cd-list.is-clip { max-height: 472px; overflow: hidden; }
.cd-list.is-clip::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 92px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 72%); pointer-events: none; }
.cd-row { display: flex; align-items: center; gap: 16px; padding: 13px 22px 13px 24px;
  position: relative; transition: background .15s; }
.cd-row + .cd-row { box-shadow: inset 0 1px 0 #F1F3F7; }
.cd-row::before { content: ''; position: absolute; left: 0; top: 50%; width: 3px; height: 22px;
  background: var(--c-accent, #EA6412); border-radius: 0 2px 2px 0;
  transform: translateY(-50%) scaleY(0); transform-origin: center; transition: transform .18s; }
.cd-row:hover { background: #FAFBFD; }
.cd-row:hover::before { transform: translateY(-50%) scaleY(1); }
.cd-name { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.65; color: var(--c-text, #122336); }
.cd-dur { flex: none; font-family: var(--font-mono, monospace); font-size: 12px;
  color: var(--c-muted, #6C7C8B); font-variant-numeric: tabular-nums; }

.cd-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 84px; }
.cd-buy { padding: 20px; }
.cd-buy-hd { display: flex; align-items: baseline; justify-content: space-between; }
.cd-buy-hd span { font-size: 11.5px; color: var(--c-muted, #6C7C8B); }
.cd-buy-hd b { font-family: var(--font-display, 'Barlow Condensed', sans-serif); font-size: 34px; line-height: 1; color: var(--c-ink, #0C1B29); }
.cd-buy-btn { width: 100%; justify-content: center; margin-top: 14px; }
.cd-buy-list { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px dashed var(--c-line-2, rgba(12, 27, 41, .2)); }
.cd-buy-list li { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; padding: 5px 0; color: var(--c-muted, #6C7C8B); }
.cd-buy-list b { font-weight: 500; color: var(--c-text, #122336); font-family: var(--font-mono, monospace); }
.cd-buy-tip { margin-top: 14px; font-size: 11px; line-height: 1.75; color: var(--c-muted-2, #93A0AC); }
.cd-help { padding: 16px 20px; }
.cd-help-hd { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--c-text, #122336); }
.cd-help p { font-size: 11.5px; color: var(--c-muted, #6C7C8B); margin: 9px 0 3px; }
.cd-help b { display: block; font-size: 17px; color: var(--c-blue-deep, #073E7E); }
.cd-help a { display: block; margin-top: 9px; font-size: 11.5px; color: var(--c-blue, #0B63C5); }
.cd-bar { display: none; }

@media (max-width: 1080px) {
  .cd-hero { grid-template-columns: 1fr; }
  .cd-cover { min-height: 200px; max-height: 250px; }
  .cd-intro { padding: 22px 24px 24px; }
  .cd-body { grid-template-columns: 1fr; }
  .cd-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .cd-side > .card { flex: 1 1 240px; }
}
@media (max-width: 640px) {
  .cd-cover { min-height: 180px; }
  .cd-intro { padding: 18px 16px 20px; }
  .cd-title { font-size: 20px; }
  .cd-sum { font-size: 12.5px; }
  .cd-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; padding-top: 16px; margin-top: 14px; }
  .cd-fact { padding: 0; margin: 0; border-right: 0; }
  .cd-fact b { font-size: 20px; }
  .cd-cta { display: none; }
  .cd-side { flex-direction: column; }
  .cd-dir-hd { padding: 14px 16px; }
  .cd-row { padding: 12px 16px; gap: 10px; }
  .cd-name { font-size: 12.5px; }
  .cd-dur { font-size: 11px; }
  .cd-list.is-clip { max-height: 420px; }
  .cd-body { padding-bottom: 76px; }
  .cd-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    align-items: center; justify-content: space-between; gap: 14px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px);
    border-top: 1px solid var(--c-line, rgba(12, 27, 41, .12)); }
  .cd-bar > div { display: flex; align-items: baseline; gap: 6px; }
  .cd-bar b { font-family: var(--font-display, 'Barlow Condensed', sans-serif); font-size: 24px; line-height: 1; color: var(--c-ink, #0C1B29); }
  .cd-bar span { font-size: 10.5px; color: var(--c-muted, #6C7C8B); }
  .cd-bar .btn { flex: none; height: 42px; padding: 0 28px; }
}

/* V1.23 移动端页头收敛：服务条不换行、搜索框收窄，避免 390px 溢出 */
@media (max-width: 640px) {
  .svc-bar { font-size: 11px; }
  .svc-bar .wrap { gap: 10px; }
  .svc-bar .wrap > span { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .svc-bar b { font-size: 11.5px; }
  .svc-user { flex: none; white-space: nowrap; gap: 6px; }
  .svc-user a, .svc-user button { white-space: nowrap; }
  .main-nav .wrap { gap: 10px; }
  .m-search { padding: 0 4px 0 9px; height: 32px; }
  .m-search input { width: 74px; font-size: 12px; }
}

/* V1.24 学习页章节列表：去掉 01/02 序号，讲名 + 时长 + 进度三要素对齐课程页 */
.chapter { padding: 13px 16px; gap: 0; }
.chapter .ch-main { width: 100%; }
.chapter .ch-top { display: flex; align-items: baseline; gap: 14px; }
.chapter .ch-title { flex: 1; min-width: 0; font-size: 13px; font-weight: 500; line-height: 1.6; margin: 0; }
.chapter .ch-dur { flex: none; font-family: var(--font-mono, monospace); font-size: 11.5px; color: #8A94A3; font-variant-numeric: tabular-nums; }
.chapter .ch-meta { margin-top: 7px; gap: 9px; }
.chapter .ch-pct { font-family: var(--font-mono, monospace); font-size: 11px; color: #0B63C5; }
.chapter .ch-meta .prog { max-width: 220px; }
.ch-count { font-size: 11.5px; font-weight: 400; color: var(--c-muted, #6C7C8B);
  font-family: var(--font-mono, monospace); padding-left: 2px; }
@media (max-width: 640px) {
  .chapter { padding: 12px 14px; }
  .chapter .ch-title { font-size: 12.5px; }
  .chapter .ch-dur { font-size: 11px; }
}

/* V1.24 播放器接入真实视频（CDN） */
.v-video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000;
  object-fit: contain; z-index: 1; display: none; }
.video-stage.has-video .v-video { display: block; }
.video-stage.has-video .v-slide { display: none; }
.video-stage.has-video .v-big { z-index: 4; opacity: .92; }
.video-stage.has-video .v-big:hover { opacity: 1; }
.video-stage .v-bar { z-index: 5; }

/* 播放中隐藏中央大按钮；有画面时按 16:9 铺满，去掉左右黑边 */
.video-stage.is-playing .v-big { opacity: 0; pointer-events: none; }
.video-stage.has-video { aspect-ratio: 16 / 9; }

/* V1.25 播放器交互修复：缓冲反馈 + 整块画面可点 + 切走提示条带按钮 */
.video-stage { cursor: pointer; }
.video-stage.is-buffering::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 36px; height: 36px;
  margin: -18px 0 0 -18px; border-radius: 50%; z-index: 6; pointer-events: none;
  border: 2px solid rgba(255, 255, 255, .26); border-top-color: #fff;
  animation: vsSpin .8s linear infinite;
}
.video-stage.is-buffering .v-big { opacity: 0; pointer-events: none; }
@keyframes vsSpin { to { transform: rotate(360deg); } }

.warn-strip { display: none; align-items: center; justify-content: space-between; gap: 14px; }
.warn-strip.show { display: flex; }
.warn-strip #warn-resume {
  flex: none; height: 28px; padding: 0 14px; border: 0; border-radius: 5px;
  background: #A32E21; color: #fff; font-size: 12px; font-family: inherit;
  cursor: pointer; transition: .15s;
}
.warn-strip #warn-resume:hover { background: #8B2418; }
@media (max-width: 640px) {
  .warn-strip { flex-wrap: wrap; gap: 8px; }
  .warn-strip #warn-resume { width: 100%; height: 32px; }
}

/* V1.25b 播放按钮命中与触屏响应：加大热区、去掉移动端 300ms 延迟与双击缩放 */
.video-stage, .v-big, .v-bar, .v-ctrl span { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.video-stage { user-select: none; -webkit-user-select: none; }
.v-big { position: absolute; }
.v-big::before { content: ''; position: absolute; inset: -12px; border-radius: 50%; }
.v-big svg, .v-ctrl svg { pointer-events: none; }
#p-toggle2 { cursor: pointer; }

/* V1.26 学习中人脸核验硬锁：未通过不允许继续播放 */
.video-stage.is-locked .v-video { filter: grayscale(1) brightness(.5); }
.video-stage.is-locked::before {
  content: '身份核验中，视频已暂停'; position: absolute; left: 0; right: 0; top: 50%;
  transform: translateY(-50%); text-align: center; color: #fff; font-size: 13px;
  letter-spacing: .04em; z-index: 4; pointer-events: none;
}
.video-stage.is-locked .v-big { opacity: 0; pointer-events: none; }

/* ---------- V1.27 我的班级：先选班级，再在班级内 学习 / 考试 / 证书 ---------- */
.cls-list { display: grid; gap: 14px; margin-top: 16px; }
.cls-card { background: #fff; border: 1px solid #E3E9F1; border-radius: 14px; padding: 16px; }
.cls-top { display: flex; align-items: flex-start; gap: 12px; }
.cls-lv {
  width: 42px; height: 42px; flex: none; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(150deg, #0B4E9B, #0B63C5); color: #fff;
  font: 800 15px/1 'IBM Plex Mono', monospace;
}
.cls-lv.lg { width: 54px; height: 54px; border-radius: 13px; font-size: 19px; }
.cls-tt { flex: 1; min-width: 0; }
.cls-tt b { display: block; font-size: 15px; line-height: 1.4; }
.cls-tt span { display: block; font-size: 11.5px; color: #6B7684; margin-top: 3px; }
.cls-prog { margin-top: 14px; }
.cls-prog-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: #6B7684; margin-bottom: 6px; }
.cls-prog-h b { font-size: 16px; color: #EA6412; font-family: 'IBM Plex Mono', monospace; }
.cls-cnt { font-size: 11.5px; color: #8A94A3; margin-top: 6px; }
.cls-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.cls-step { background: #F6F8FB; border-radius: 9px; padding: 8px 9px; min-width: 0; }
.cls-step i { display: block; width: 7px; height: 7px; border-radius: 50%; background: #C9D3E0; margin-bottom: 6px; }
.cls-step span { display: block; font-size: 10.5px; color: #8A94A3; letter-spacing: .06em; }
.cls-step b { display: block; font-size: 12px; color: #3C4857; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cls-step.ok i { background: #0B7D57; } .cls-step.ok b { color: #0B7D57; }
.cls-step.warn i { background: #D9A03A; } .cls-step.warn b { color: #A96A06; }
.cls-step.risk i { background: #BA3A2C; } .cls-step.risk b { color: #BA3A2C; }
.cls-step.info i { background: #0B63C5; } .cls-step.info b { color: #0B63C5; }
.cls-go { width: 100%; }
.cls-tip { font-size: 12px; color: #8A94A3; margin: 16px 2px 32px; line-height: 1.8; }

/* 班级工作台 */
.cls-detail { padding-top: 2px; }
.cls-back { display: inline-block; font-size: 13px; color: #6B7684; margin: 14px 0 10px; }
.cls-hero {
  background: linear-gradient(135deg, #072B52, #0B4E9B 65%, #0B63C5); color: #fff;
  border-radius: 14px; padding: 18px; display: flex; gap: 13px; align-items: flex-start;
}
.cls-hero .cls-lv { background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .3); }
.cls-hero-tt { min-width: 0; }
.cls-hero-tt h1 { font-size: 17px; line-height: 1.35; }
.cls-hero-tt p { font-size: 12px; opacity: .78; margin-top: 4px; }
.cls-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 10px; font-size: 11.5px; opacity: .92; }
.cls-meta .badge { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .3); }
/* 培训周期已结束 / 权限停用：用明显的黄色警示条，避免学员以为是自己操作错了 */
.cls-warn { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; padding: 11px 14px;
  background: #FFF7E6; border: 1px solid #F5D9A0; border-radius: 10px;
  font-size: 12.5px; line-height: 1.7; color: #8A5A00; }
.cls-warn svg { flex: none; margin-top: 2px; color: #D08A00; }
.cls-bar { background: #fff; border: 1px solid #E3E9F1; border-radius: 12px; padding: 14px 16px; margin-top: 12px; }
.cls-bar-top { display: flex; justify-content: space-between; font-size: 12px; color: #6B7684; margin-bottom: 6px; }
.cls-bar-top b { font-size: 16px; color: #EA6412; font-family: 'IBM Plex Mono', monospace; }
.cls-entries { display: grid; gap: 12px; margin-top: 12px; }
.cls-entry { background: #fff; border: 1px solid #E3E9F1; border-radius: 12px; padding: 15px 16px; }
.ce-hd { display: flex; align-items: center; gap: 8px; }
.ce-no { font: 700 11px/1 'IBM Plex Mono', monospace; color: #0B63C5; background: #E8F0FB; border-radius: 5px; padding: 4px 6px; }
.ce-hd b { font-size: 14.5px; flex: 1; }
.cls-entry p { font-size: 12.5px; color: #6B7684; margin: 9px 0 13px; line-height: 1.75; }
.cls-entry .btn { width: 100%; }
.cls-entry .btn[disabled] { background: #EDF1F6; color: #A6B0BF; border-color: #E3E9F1; cursor: not-allowed; }
.cls-switch { margin: 20px 0 34px; }
.cls-switch b { font-size: 12px; color: #6B7684; letter-spacing: .04em; }
.cls-chips { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 9px; }
.cls-chip {
  display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 1px solid #DDE5EF;
  border-radius: 999px; padding: 7px 13px; font-size: 12.5px; color: #3C4857;
}
.cls-chip span {
  width: 20px; height: 20px; border-radius: 6px; background: #E8F0FB; color: #0B63C5;
  display: grid; place-items: center; font-size: 10.5px; font-weight: 800;
}
@media (max-width: 640px) {
  .cls-hero { padding: 16px; gap: 11px; }
  .cls-hero-tt h1 { font-size: 16px; }
  .cls-step b { font-size: 11.5px; }
  .cls-card { padding: 15px; }
}
@media (min-width: 900px) {
  .cls-list { grid-template-columns: repeat(2, 1fr); }
  .cls-entries { grid-template-columns: repeat(3, 1fr); }
  .cls-hero { padding: 22px 24px; }
}

/* 课程列表顶部：我的班级快捷入口 */
.cls-quick {
  display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #E3E9F1;
  border-left: 3px solid #EA6412; border-radius: 12px; padding: 12px 14px; margin-top: 18px; color: inherit;
}
.cls-quick .cq-n {
  width: 34px; height: 34px; flex: none; border-radius: 9px; display: grid; place-items: center;
  background: #E8F0FB; color: #0B63C5; font: 800 15px/1 'IBM Plex Mono', monospace;
}
.cls-quick .cq-tt { flex: 1; min-width: 0; }
.cls-quick .cq-tt b { display: block; font-size: 14px; }
.cls-quick .cq-tt span {
  display: block; font-size: 11.5px; color: #6B7684; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cls-quick em { font-style: normal; font-size: 12.5px; color: #EA6412; flex: none; }

/* ================================================================
   触屏设备输入框字号下限 16px
   iOS Safari / 微信内置浏览器 对 font-size < 16px 的 input 聚焦时会
   自动放大整个页面，并常伴随"放大后无法缩回"。这里把所有可编辑控件
   统一抬到 16px，从根上消除触发放大的条件。
   命中范围：窄屏（手机）+ 任何触屏设备（iPad、安卓平板）。
   桌面鼠标环境不命中，保持原字号不变。
   ================================================================ */
@media (max-width: 1024px), (pointer: coarse) {
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  input, select, textarea,
  .input, .select, textarea.input,
  .auth2-body .input, .auth2-body .select,
  .pf-row .input,
  .qa-form textarea.input { font-size: 16px; }
  /* 选择框随字号略增高，避免 16px 文字被 38px 高度压扁 */
  .auth2-body .select { height: 42px; padding: 6px 10px; }
  /* 个人信息只读行：去掉底边框后靠内边距撑开，字号变大仍保持行高 */
  .pf-row .input { padding-top: 6px; padding-bottom: 8px; }
}
/* 手机竖屏：顶部搜索框字号抬到 16px 后收窄宽度，保证 390px 视口不溢出 */
@media (max-width: 820px) {
  .m-search { padding: 0 5px 0 9px; }
  .m-search input { width: 62px; font-size: 16px; }
}

/* ---------- 我的订单：单个 / 批量申请发票 ---------- */
.inv-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; padding: 11px 14px; background: #fff; border: 1px solid #E5EAF1; border-radius: 12px; }
.inv-bar .chk { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: #404B5A; cursor: pointer; user-select: none; }
.inv-bar .chk input { width: 15px; height: 15px; accent-color: #0B4E9B; cursor: pointer; }
.inv-bar #inv-count { font-size: 12.5px; color: #6B7684; font-variant-numeric: tabular-nums; }
.inv-bar .inv-hint { margin-left: auto; font-size: 12px; color: #96A0AE; }
.inv-bar .btn[disabled] { opacity: .5; cursor: not-allowed; }
.tbl .col-chk { width: 42px; text-align: center; padding-left: 14px; padding-right: 0; }
.tbl .col-chk input { width: 15px; height: 15px; accent-color: #0B4E9B; cursor: pointer; }
.tbl tr.on td { background: #F1F6FE; }
.inv-sum { margin: 0 0 14px; padding: 10px 12px; border-radius: 9px; background: #F4F8FE; border: 1px solid #DCE7F7; font-size: 13px; color: #17202B; line-height: 1.7; }
.inv-sum b { font-weight: 700; }
.tbl .btn { white-space: nowrap; }
.tbl td.dt { white-space: nowrap; font-variant-numeric: tabular-nums; }
/* 申请单号这类长串别被合并票的多行订单号挤成竖排 */
.tbl td.nw { white-space: nowrap; }

/* ---------- V1.42 我的课程：左侧菜单 + 一行一课 ---------- */
.cls-rows { display: grid; gap: 10px; margin-top: 14px; }
.cls-row {
  display: grid; align-items: center; gap: 14px;
  grid-template-columns: 46px minmax(160px, 1.25fr) minmax(150px, 1fr) auto 120px;
  grid-template-areas: "lv info pg flags go";
  background: #fff; border: 1px solid #E3E9F1; border-radius: 12px; padding: 14px 16px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.cls-row:hover { border-color: #C9D9EE; box-shadow: 0 6px 18px rgba(11, 79, 155, .07); }
.cls-row .cls-lv { grid-area: lv; }
.cls-row .cls-info { grid-area: info; min-width: 0; }
.cls-row .cls-pg { grid-area: pg; min-width: 0; }
.cls-row .cls-flags { grid-area: flags; display: flex; gap: 6px; flex-wrap: wrap; }
.cls-row .cls-go { grid-area: go; width: 100%; }
.cls-info b { display: block; font-size: 14.5px; line-height: 1.35; color: #17202B; }
.cls-info span {
  display: block; font-size: 11.5px; color: #6B7684; margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cls-pg .cls-pg-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 11.5px; color: #6B7684; margin-bottom: 6px; }
.cls-pg .cls-pg-h b { font: 700 14px/1 'IBM Plex Mono', monospace; color: #EA6412; }
.cls-mini {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11px; line-height: 1;
  padding: 5px 9px; border-radius: 999px; background: #F4F6F9; color: #5A6573; white-space: nowrap;
}
.cls-mini i { width: 6px; height: 6px; border-radius: 50%; background: #C9D3E0; }
.cls-mini.ok { background: #EAF6F1; color: #0B7D57; } .cls-mini.ok i { background: #0B7D57; }
.cls-mini.warn { background: #FDF6E7; color: #A96A06; } .cls-mini.warn i { background: #D9A03A; }
.cls-mini.risk { background: #FBEEEC; color: #BA3A2C; } .cls-mini.risk i { background: #BA3A2C; }
.cls-mini.info { background: #E8F0FB; color: #0B63C5; } .cls-mini.info i { background: #0B63C5; }
@media (max-width: 1120px) {
  .cls-row {
    grid-template-columns: 42px minmax(0, 1fr) 116px; row-gap: 12px;
    grid-template-areas: "lv info go" "pg pg pg" "flags flags flags";
  }
}
@media (max-width: 640px) {
  .cls-row {
    grid-template-columns: 42px minmax(0, 1fr); row-gap: 11px;
    grid-template-areas: "lv info" "pg pg" "flags flags" "go go";
    padding: 14px;
  }
}

/* ---------- V1.42 我的发票：状态筛选 + 合并开票展示 ---------- */
.inv-tabs {
  display: flex; gap: 4px; background: #fff; border: 1px solid #E3E9F1; border-radius: 12px;
  padding: 6px; margin-bottom: 12px; overflow-x: auto;
}
.inv-tab {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 8px;
  font-size: 13px; color: #6B7684; text-decoration: none; white-space: nowrap;
}
.inv-tab:hover { background: #F4F7FB; color: #0B63C5; }
.inv-tab.on { background: #0B63C5; color: #fff; font-weight: 600; }
.inv-tab b { font: 600 10.5px/1 'IBM Plex Mono', monospace; background: rgba(23, 32, 43, .07); border-radius: 999px; padding: 4px 6px; }
.inv-tab.on b { background: rgba(255, 255, 255, .24); }
.tbl .iv-ord { font-size: 12.5px; }
.iv-merge { display: inline-block; font-size: 10.5px; font-weight: 700; color: #0B63C5; background: #E8F0FB; border-radius: 5px; padding: 3px 6px; }
.iv-ords { font-size: 10.5px; color: #8A94A3; line-height: 1.65; margin-top: 3px; }
.iv-ct { font-size: 11px; color: #6B7684; margin-top: 4px; line-height: 1.55; }
.tbl .iv-ops { white-space: nowrap; }
.tbl .iv-ops .btn + .btn { margin-left: 6px; }

/* ---------- V1.43 我的课程 / 我的发票改为会员中心同款卡片布局 ---------- */
.card-bd .cls-rows { margin-top: 0; }
.card-bd .cls-tip { margin: 16px 2px 0; }
.card-bd > .inv-tabs {
  border: 0; background: none; border-radius: 0; padding: 0; gap: 2px;
  margin: -2px 0 12px; border-bottom: 1px solid #EEF2F7;
}
.card-bd > .inv-tabs .inv-tab { border-radius: 8px 8px 0 0; padding: 7px 13px; }
.card-bd > .inv-tabs .inv-tab.on { background: #EDF4FD; color: #0B63C5; }
.card-bd > .inv-tabs .inv-tab.on b { background: rgba(11, 99, 197, .16); }

/* ---------- V1.52 收银台：微信 / 支付宝双渠道 ---------- */
.pay-ch { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
/* 卡片是 <label>，需压过 .field label 的块级规则，故用 .pay-ch .pay-ch-o 提高特异性 */
.pay-ch .pay-ch-o {
  position: relative; display: flex; flex-direction: row; align-items: center; gap: 9px;
  margin: 0; padding: 11px 12px; border: 1px solid #E5EAF1; border-radius: 9px; background: #fff;
  font-size: 13px; font-weight: 400; color: #17202B; line-height: 1.32;
  cursor: pointer; transition: border-color .14s, background .14s, box-shadow .14s;
}
.pay-ch .pay-ch-o:hover { border-color: #A9C6E8; background: #F8FBFF; }
.pay-ch .pay-ch-o.on { border-color: #0B63C5; background: #F3F8FE; box-shadow: inset 0 0 0 1px #0B63C5; }
.pay-ch .pay-ch-o input { position: absolute; width: 0; height: 0; opacity: 0; pointer-events: none; }
.pay-ch-ic {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px; color: #fff;
  display: grid; place-items: center; font-style: normal;
}
.pay-ch-ic .ico { width: 17px; height: 17px; }
.pay-ch-ic.wechat { background: #07C160; }
.pay-ch-ic.alipay { background: #1677FF; font-size: 16px; font-weight: 700; line-height: 1; }
.pay-ch-tx { display: flex; flex-direction: column; line-height: 1.32; min-width: 0; }
.pay-ch-tx b { font-size: 13px; font-weight: 600; color: #17202B; }
.pay-ch-tx em { font-style: normal; font-size: 10.5px; color: #8A94A3; margin-top: 2px; white-space: nowrap; }
.pay-ch-tk {
  margin-left: auto; flex: 0 0 auto; width: 16px; height: 16px; border-radius: 50%;
  border: 1px solid #D3DBE6; background: #fff; position: relative; transition: .14s;
}
.pay-ch-o.on .pay-ch-tk { border-color: #0B63C5; background: #0B63C5; }
.pay-ch-o.on .pay-ch-tk::after {
  content: ''; position: absolute; left: 4.6px; top: 1.6px; width: 4.6px; height: 8.6px;
  border: 1.7px solid #fff; border-top: 0; border-left: 0; transform: rotate(42deg);
}.pay-sum {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed #E5EAF1;
}
.pay-sum .k { font-size: 12.5px; color: #6B7684; }
.pay-sum b { font-family: 'Barlow Condensed', 'IBM Plex Mono', sans-serif; font-size: 30px; line-height: 1; color: #EA6412; }
.pay-no { margin-top: 8px; font-size: 11.5px; color: #8A94A3; }
.pay-sub { margin-top: 4px; font-size: 10.5px; color: #8A94A3; }

/* ---------- V1.57 未登录直接报名：内嵌报名信息 ---------- */
.pay-guest {
  margin: -2px 0 18px; padding: 14px 16px 4px;
  border: 1px solid #DCE7F5; border-radius: 10px;
  background: linear-gradient(180deg, #F6FAFF 0%, #FBFDFF 100%);
}
.pg-hd { display: flex; flex-direction: column; margin-bottom: 10px; }
.pg-hd b { font-size: 13.5px; color: #0B3E7C; letter-spacing: .2px; }
.pg-hd span { font-size: 11.5px; color: #6B7C93; margin-top: 3px; }
.pay-guest .pg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-guest .pg-row .field { margin-bottom: 10px; }
@media (max-width: 520px) { .pay-guest .pg-row { grid-template-columns: 1fr; gap: 0; } }
.pay-guest .field { margin-bottom: 10px; }
.pay-guest .field label { font-size: 12px; color: #44546A; margin-bottom: 5px; }
.pg-tip { font-size: 11.5px; color: #7A8899; margin: 2px 0 10px; }
.pg-tip a { color: #0B63C5; text-decoration: none; }
.pg-tip a:hover { text-decoration: underline; }
.pay-guest .form-err { margin: 0 0 10px; }
