:root {
  --navy: #0c1c2e;
  --navy-2: #143049;
  --gold: #c9a227;
  --gold-2: #e6c55a;
  --teal: #0f766e;
  --ink: #1c2430;
  --muted: #64748b;
  --line: #e5e7eb;
  --bg: #f3f5f7;
  --card: #fff;
  --danger: #b42318;
  --ok: #067647;
  --warn: #b54708;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
}
a { color: var(--teal); text-decoration: none; }
a:hover { color: #0a5c56; }
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 208px;
  background: linear-gradient(180deg, var(--navy) 0%, #081421 100%);
  color: #dbe4ee;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: width .18s ease;
}
.sidebar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand { padding: 0; border: 0; min-width: 0; }
.brand strong { display: block; font-size: 17px; color: #fff; letter-spacing: .04em; }
.brand small { color: var(--gold-2); font-size: 12px; }
.sidebar nav { padding: 10px 8px 8px; flex: 1; overflow: auto; }
.sidebar nav > a.nav-home {
  display: block;
  color: #e8eef4;
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 650;
}
.sidebar nav .nav-block > a {
  display: block;
  color: #9eb0c2;
  padding: 5px 10px 5px 14px;
  border-radius: 6px;
  font-size: 13px;
}
.sidebar nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar nav a.active { background: rgba(201,162,39,.2); color: #fff; font-weight: 650; }
.user-box { padding: 12px 14px 16px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; color: #9bb0c3; }
.user-box .name { color: #fff; font-size: 14px; margin-bottom: 4px; }
.user-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.user-links a { color: #c5d2df; }
.nav-mask { display: none; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.content { padding: 10px 14px 16px; flex: 1; min-width: 0; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  min-width: 0;
}
.card h2, .card h3 { margin: 0 0 8px; font-size: 15px; }
.card h3.sub { font-size: 13px; color: var(--muted); font-weight: 600; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 10px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.kpi span { font-size: 12px; color: var(--muted); }
.kpi b, .kpi .num { display: block; font-size: 22px; font-weight: 700; margin-top: 4px; }
.kpi.gold .num, .kpi.gold b { color: #8a6d12; }
.kpi.teal .num, .kpi.teal b { color: var(--teal); }
.kpi.danger .num, .kpi.danger b { color: var(--danger); }
.kpi .lab { font-size: 12px; color: var(--muted); }
.table-wrap { overflow: auto; max-width: 100%; min-width: 0; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th, table.data td { border: 1px solid #edf0f3; padding: 7px 8px; text-align: left; white-space: nowrap; }
table.data.wide { font-size: 12px; }
table.data.wide th, table.data.wide td { padding: 6px 7px; }
table.data td.clip { max-width: 14em; overflow: hidden; text-overflow: ellipsis; }
table.data td.wrap { white-space: normal; min-width: 16em; }
table.data th { background: #f7f4ea; color: #5c4b12; font-weight: 650; }
table.data tr.sub td { background: #f8fafc; font-weight: 650; }
table.data tr.total td { background: #fff7d6; font-weight: 700; }
table.data td.neg { color: var(--ok); }
table.data td.pos { color: var(--danger); }
.btn {
  display: inline-block;
  border: 0;
  background: var(--navy);
  color: #fff;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}
.btn:hover { background: var(--navy-2); color: #fff; }
.btn.gold { background: var(--gold); color: #1c1403; }
.btn.ghost { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.btn.sm { padding: 4px 10px; font-size: 12px; }
.btn.danger { background: var(--danger); }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.row-actions > input:not([type="hidden"]),
.row-actions > select {
  width: auto;
  flex: 0 1 auto;
  min-width: 110px;
}
.row-actions > input[type="text"] { flex: 1 1 180px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 10px; }
.form-grid.two { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.form-grid.one { grid-template-columns: 1fr; }
.form-grid.three { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.form-grid .span2 { grid-column: span 2; }
.form-grid .span3 { grid-column: span 3; }
label.f { display: block; font-size: 12px; color: var(--muted); margin-bottom: 0; }
label.f span { display: block; margin-bottom: 4px; }
input, select, textarea {
  width: 100%;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  background: #fff;
}
textarea { min-height: 72px; resize: vertical; }
.alert { position: relative; padding: 10px 32px 10px 12px; border-radius: 8px; margin-bottom: 12px; }
.alert-success { background: #ecfdf3; color: var(--ok); }
.alert-error { background: #fef3f2; color: var(--danger); }
.badge { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: 12px; background: #f2f4f7; }
.badge.key { background: #fff4d6; color: #8a6d12; }
.badge.ok { background: #ecfdf3; color: var(--ok); }
.badge.warn { background: #fffaeb; color: var(--warn); }
.badge.danger { background: #fef3f2; color: var(--danger); }
.badge.sea { background: #eef2f6; color: #475467; }
.badge.off { background: #f2f4f7; color: #667085; }
.lamp { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; vertical-align: middle; background: #d0d5dd; }
.lamp.green, .lamp.ok { background: #12b76a; }
.lamp.yellow, .lamp.warn { background: #f79009; }
.lamp.red, .lamp.danger { background: #d92d20; }
.lamp.sea { background: #667085; }
.lamp.off { background: #d0d5dd; }
tr.warn-row td { background: #fffcf5; }
tr.danger-row td { background: #fef6f5; }
.loop-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.loop-step { display: inline-block; padding: 4px 8px; border-radius: 8px; font-size: 12px; background: #f2f4f7; color: #667085; }
.loop-step.done { background: #ecfdf3; color: var(--ok); }
.loop-step.on { background: #fff4d6; color: #8a6d12; font-weight: 700; }
.loop-step.risk { background: #fef3f2; color: var(--danger); }
.loop-arr { color: #c5c9d0; font-size: 12px; }
.chip { display: inline-block; padding: 1px 7px; border-radius: 999px; background: #f7f4ea; font-size: 12px; line-height: 1.6; }
.chip.warn { background: #fef3f2; color: var(--danger); }
.chip.ok { background: #ecfdf3; color: var(--ok); }
.muted { color: var(--muted); font-size: 12px; }
.section-title { font-size: 13px; font-weight: 700; color: var(--navy); margin: 16px 0 8px; padding-left: 8px; border-left: 3px solid var(--gold); }
.fill-bar { height: 6px; background: #eef1f4; border-radius: 4px; overflow: hidden; margin-bottom: 4px; min-width: 60px; }
.fill-bar i { display: block; height: 100%; background: var(--teal); }
.fill-bar.warn i { background: #f79009; }
.fill-bar.danger i { background: var(--danger); }
.fill-bar.ok i { background: #12b76a; }
.metric-row { display: flex; align-items: center; gap: 8px; }
.metric-row .fill-bar { flex: 1; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 8px; }
.tile { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; }
.tile h3 { margin: 0 0 4px; font-size: 14px; }
.tile .hint { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.tile.danger { border-color: #fbd5d1; background: #fffbfa; }
.tile.warn { border-color: #fde7c1; background: #fffcf5; }
.shots { display: flex; flex-wrap: wrap; gap: 6px; }
.shots .shot { display: block; width: 84px; height: 64px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.shots .shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shots video.shot { background: #0f172a; }
.timeline .t-media { margin-top: 6px; }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { position: relative; padding: 0 0 12px 18px; border-left: 2px solid #eef1f4; }
.timeline li:last-child { border-left-color: transparent; }
.timeline li::before {
  content: ""; position: absolute; left: -6px; top: 4px; width: 10px; height: 10px;
  border-radius: 50%; background: #fff; border: 2px solid var(--gold);
}
.timeline li.done::before { border-color: #12b76a; }
.timeline li.risk::before { border-color: var(--danger); }
.timeline .t-head { font-size: 13px; font-weight: 650; }
.timeline .t-meta { font-size: 12px; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.filters .f { margin: 0; min-width: 140px; }
.filters input, .filters select { min-width: 140px; }
.req { color: var(--danger); font-style: normal; }
.field-hint { display: block; color: var(--danger); font-size: 12px; margin-top: 4px; min-height: 0; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.pager-meta { font-size: 12px; color: var(--muted); }
.pager-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.empty { text-align: left; padding: 10px 2px; color: var(--muted); }
.empty strong { display: block; color: var(--ink); margin-bottom: 6px; }
.topbar-app {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar-app h1 { margin: 0; font-size: 16px; font-weight: 650; flex: 1; }
.icon-btn {
  width: 36px; height: 36px; border: 1px solid var(--line); background: #fff;
  border-radius: 8px; cursor: pointer; color: var(--navy); font-size: 18px; line-height: 1;
  flex-shrink: 0;
}
.icon-btn:hover { background: #f8fafc; }
.nav-toggle { flex-shrink: 0; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #e6c55a; }
.nav-toggle:hover { background: rgba(255,255,255,.12); }
body.nav-hidden .sidebar { width: 56px; }
body.nav-hidden .brand,
body.nav-hidden nav,
body.nav-hidden .user-box { display: none; }
body.nav-hidden .sidebar-head { justify-content: center; padding: 12px 8px; }
body.nav-hidden .nav-toggle { transform: rotate(180deg); }
.nav-block { margin: 0 0 4px; padding: 2px 0; }
.nav-block-h {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: #d7e2ee; margin: 0; padding: 7px 10px;
  letter-spacing: .04em; font-weight: 650;
  cursor: pointer; user-select: none; border-radius: 8px;
}
.nav-block-h:hover { background: rgba(255,255,255,.06); }
.nav-block:not(.collapsed) .nav-block-h { color: #e6c55a; }
.nav-block-h::after { content: "\25B8"; font-size: 10px; color: #8aa0b5; }
.nav-block:not(.collapsed) .nav-block-h::after { content: "\25BE"; color: #e6c55a; }
.nav-block.collapsed a { display: none; }
.lc-alert-x {
  position: absolute; right: 8px; top: 6px; border: 0; background: transparent;
  cursor: pointer; color: inherit; font-size: 16px; opacity: .6;
}
.trail { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 12px; }
.trail-chip { display: inline-block; padding: 2px 8px; border-radius: 99px; background: #eef2f6; color: #475467; }
.topbar-back {
  flex-shrink: 0; font-size: 13px; font-weight: 650;
  color: var(--navy); padding: 4px 8px; border-radius: 8px;
  background: #f3f5f7; border: 1px solid var(--line);
}
.topbar-back:hover { color: var(--teal); background: #eef6f5; }
.topbar-bell { display: inline-flex; align-items: center; justify-content: center; position: relative; color: var(--navy); text-decoration: none; flex-shrink: 0; }
.topbar-bell svg { width: 18px; height: 18px; }
.topbar-bell:hover { color: var(--teal); background: #eef6f5; border-color: #b6d8d3; }
.topbar-bell .bell-n {
  position: absolute; top: -5px; right: -7px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 99px; background: var(--danger); color: #fff;
  font-size: 11px; line-height: 17px; text-align: center; font-weight: 700;
}
.help-mask { display: none; position: fixed; inset: 0; z-index: 50; background: rgba(8,20,33,.35); }
.help-drawer {
  display: none;
  position: fixed; top: 0; right: 0; z-index: 60; width: min(380px, 92vw); height: 100%;
  background: #fff; box-shadow: -12px 0 32px rgba(8,20,33,.18);
  flex-direction: column;
}
body.help-open .help-mask { display: block; }
body.help-open .help-drawer { display: flex; }
.help-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--line); background: #0c1c2e; color: #fff;
}
.help-head h2 { margin: 0; font-size: 16px; }
.help-head .icon-btn { color: #e6c55a; border-color: rgba(255,255,255,.2); background: transparent; }
.help-body { overflow: auto; padding: 14px 16px 24px; font-size: 13px; line-height: 1.65; color: #334155; }
.help-body h3 { margin: 16px 0 6px; font-size: 14px; color: #0c1c2e; }
.help-body section:first-child h3 { margin-top: 0; }
.help-body p, .help-body li { margin: 0 0 8px; }
.help-body ul { margin: 0; padding-left: 1.2em; }
.help-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.guide, .lc-help-src { display: none !important; height: 0; margin: 0; padding: 0; overflow: hidden; }
.inline-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 0; }
.inline-form input, .inline-form select { width: auto; min-width: 90px; }
.kpi a, .data td > a:not(.btn) { color: inherit; text-decoration: none; border-bottom: 1px dashed rgba(0,0,0,.22); }
.kpi a:hover, .data td > a:not(.btn):hover { color: var(--teal); }
.site-foot { padding: 10px 16px 18px; color: var(--muted); font-size: 12px; }
.content > h1 { display: none; }
.nav-help-item {
  display: block; width: 100%; text-align: left;
  border: 0; background: none; cursor: pointer;
  padding: 7px 10px; margin-top: 8px; border-radius: 8px;
  font-size: 13px; font-weight: 650; color: #e6c55a;
}
.nav-help-item:hover { background: rgba(201,162,39,.16); color: #f3d56a; }
.bar-list { display: flex; flex-direction: column; gap: 6px; }
.bar-item { display: grid; grid-template-columns: 8.5em 1fr 5.5em; gap: 8px; align-items: center; font-size: 12px; }
.bar-item .bar-track { background: #eef1f4; border-radius: 4px; height: 14px; overflow: hidden; }
.bar-item .bar-track i { display: block; height: 100%; background: linear-gradient(90deg, #0f766e, #14b8a6); }
.bar-item .bar-track i.gold { background: linear-gradient(90deg, #c9a227, #e6c55a); }
.bar-item .bar-track i.red { background: linear-gradient(90deg, #b42318, #f04438); }
.bar-item .bar-val { text-align: right; color: var(--muted); }
.stars { color: #f79009; letter-spacing: 1px; }
.txt-danger { color: var(--danger); font-weight: 600; }
.txt-ok { color: var(--ok); font-weight: 600; }
.sub-h { font-size: 13px; font-weight: 650; color: var(--navy); margin: 8px 0 6px; }
.tip-list { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.75; color: #2b3a44; }
.tip-list li { margin-bottom: 3px; }
.doc-body { font-size: 14px; line-height: 1.85; color: #24343d; background: #fbfbf7; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.doc-body p { margin: 0 0 6px; }
label.chk { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: #24343d; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
label.chk input { width: auto; min-width: 0; margin: 0; }
.chk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; margin-top: 8px; }
input.num-input { width: 110px; min-width: 90px; }
.card.faded { opacity: .72; }
.card.danger-card { border-color: #fbd5d1; background: #fffbfa; }
.heat { display: inline-block; width: 100%; height: 16px; border-radius: 3px; }
.sec-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.sec-nav a { padding: 4px 10px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: 12px; color: var(--navy); }
.sec-nav a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.qr-box { display: inline-block; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-align: center; }
.qr-box .qr-code { font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: var(--muted); margin-top: 6px; }
.split { display: grid; grid-template-columns: 1.35fr .65fr; gap: 10px; align-items: start; }
.split.even { grid-template-columns: 1fr 1fr; }
@media (min-width: 1400px) { .content { padding: 12px 18px 18px; max-width: 1360px; } }
@media (max-width: 1100px) { .split, .split.even { grid-template-columns: 1fr; } }
@media (min-width: 981px) { body:not(.nav-hidden) .topbar-app > [data-lc-nav] { display: none; } }
@media (max-width: 980px) {
  .layout { display: block; }
  .sidebar { position: fixed; z-index: 40; height: 100%; width: min(280px, 88vw); box-shadow: 12px 0 32px rgba(8,20,33,.28); }
  .nav-mask { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(8,20,33,.4); }
  body.nav-hidden .sidebar { display: none; width: 0; }
  body.nav-hidden .nav-mask { display: none; }
  .kpis, .form-grid, .form-grid.two, .form-grid.three, .tiles { grid-template-columns: 1fr; }
  .form-grid .span2, .form-grid .span3 { grid-column: span 1; }
}

/* ---------- 登录页 ---------- */
.login {
  position: relative; min-height: 100vh; min-height: 100dvh; overflow: hidden;
  background: #071018; color: #fff;
}
.login__veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 520px at 12% 18%, rgba(201,162,39,.28), transparent 58%),
    linear-gradient(110deg, rgba(8,16,28,.94) 0%, rgba(12,28,48,.74) 42%, rgba(8,18,30,.58) 100%);
}
.login__bar, .login__stage { position: relative; z-index: 1; }
.login__bar { height: 56px; padding: 0 28px; display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  font-weight: 800; color: #1c1403;
  background: linear-gradient(145deg, var(--gold-2), var(--gold));
  box-shadow: 0 8px 24px rgba(201,162,39,.35);
}
.login__stage {
  min-height: calc(100dvh - 56px);
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: center; padding: 0 4vw 20px;
}
.hero { max-width: 580px; animation: login-rise .7s ease both; }
.hero__eyebrow { margin: 0 0 10px; letter-spacing: .18em; font-size: 12px; color: #e6c55a; font-weight: 700; }
.hero__title { margin: 0; font-size: clamp(1.8rem, 3.2vw, 2.7rem); line-height: 1.18; font-weight: 900; letter-spacing: -.02em; }
.hero__sub { margin: 14px 0 0; font-size: 15px; color: rgba(255,255,255,.78); max-width: 26em; }
.hero__flow { margin: 16px 0 0; font-size: 14px; color: #e6c55a; font-weight: 600; }
.hero__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.hero__tags span { border: 1px solid rgba(230,197,90,.36); color: #f0dfa4; border-radius: 99px; padding: 3px 10px; font-size: 12px; }
.panel {
  background: rgba(255,255,255,.95); color: #1c2430; border-radius: 20px;
  padding: 16px 16px 12px; box-shadow: 0 24px 60px rgba(0,0,0,.28);
  display: flex; flex-direction: column; gap: 10px;
  max-height: calc(100dvh - 90px); animation: login-rise .7s .08s ease both;
}
.panel__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.panel__head h2 { margin: 0; font-size: 16px; font-weight: 800; }
.panel__head span { font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: #6b5a22; background: #fff8e1; padding: 3px 8px; border-radius: 99px; }
.panel__roles { display: flex; flex-direction: column; gap: 8px; overflow: auto; min-height: 0; }
.role-block__label { font-size: 12px; font-weight: 700; color: #6b7280; margin-bottom: 6px; letter-spacing: .06em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn {
  border: 1px solid #e5e7eb; background: #f8fafc; border-radius: 12px;
  padding: 7px 10px; cursor: pointer; text-align: left; font-family: inherit; min-width: 118px; color: inherit;
}
.chip-btn strong { display: block; font-size: 13px; color: #123028; }
.chip-btn em { display: block; margin-top: 2px; font-style: normal; font-size: 11px; color: #6d857c; font-family: ui-monospace, Consolas, monospace; }
.chip-btn:hover { border-color: var(--gold); transform: translateY(-1px); }
.chip-btn.on { border-color: var(--gold); background: linear-gradient(180deg, #fff8e1, #f5edd0); }
.panel__form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.panel__form .go { width: 100%; height: 42px; margin-top: 8px; font-weight: 700; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1c1403; }
@keyframes login-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.panel__foot { margin: 0; text-align: center; font-size: 11px; color: #8a7c4a; }
@media (max-width: 960px) {
  .login__stage { grid-template-columns: 1fr; align-content: start; gap: 14px; padding-top: 8px; }
  .hero__sub, .hero__flow, .hero__tags { display: none; }
}
@media (max-width: 560px) {
  .login__bar, .login__stage { padding-left: 14px; padding-right: 14px; }
  .panel__form .form-row { grid-template-columns: 1fr; }
  .chip-btn { min-width: calc(50% - 4px); flex: 1 1 calc(50% - 4px); }
}

/* ---------- 对外端口（师生家长上报 / 进度查询） ---------- */
.pub {
  min-height: 100vh;
  background: linear-gradient(180deg, #0c1c2e 0%, #0c1c2e 190px, #f3f5f7 190px, #f3f5f7 100%);
  padding: 0 0 28px;
}
.pub-head { max-width: 720px; margin: 0 auto; padding: 18px 14px 14px; color: #fff; }
.pub-head h1 { margin: 0 0 4px; font-size: 19px; }
.pub-head p { margin: 0; font-size: 13px; color: #b9c8d6; }
.pub-body { max-width: 720px; margin: 0 auto; padding: 0 14px; }
.pub-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 10px; }
.pub-tabs { display: flex; gap: 6px; margin: 0 0 10px; }
.pub-tabs a { flex: 1; text-align: center; padding: 8px; border-radius: 8px; background: rgba(255,255,255,.14); color: #fff; font-size: 13px; }
.pub-tabs a.on { background: #fff; color: var(--navy); font-weight: 650; }
.pub-foot { max-width: 720px; margin: 0 auto; padding: 6px 14px; color: #8c9aa8; font-size: 12px; text-align: center; }
.progress-steps { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0; }
.progress-steps span { font-size: 12px; padding: 3px 8px; border-radius: 99px; background: #f2f4f7; color: #667085; }
.progress-steps span.on { background: #fff4d6; color: #8a6d12; font-weight: 700; }
.progress-steps span.done { background: #ecfdf3; color: var(--ok); }
.star-pick { display: flex; gap: 6px; font-size: 26px; color: #d0d5dd; cursor: pointer; }
.star-pick i { font-style: normal; }
.star-pick i.on { color: #f79009; }

/* ---------- 移动端作业端 ---------- */
body.m { background: #eef1f4; }
.m-wrap { max-width: 560px; margin: 0 auto; padding: 0 0 74px; }
.m-top {
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(160deg, #0c1c2e, #143049); color: #fff;
  padding: 14px 14px 16px; border-radius: 0 0 16px 16px;
}
.m-top h1 { margin: 0 0 2px; font-size: 17px; }
.m-top .sub { font-size: 12px; color: #a9bccd; }
.m-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.m-kpi { background: rgba(255,255,255,.1); border-radius: 10px; padding: 8px 6px; text-align: center; }
.m-kpi b { display: block; font-size: 17px; }
.m-kpi span { font-size: 11px; color: #b9c8d6; }
.m-card { background: #fff; border-radius: 12px; padding: 12px; margin: 10px 10px 0; }
.m-card h3 { margin: 0 0 8px; font-size: 14px; }
.m-task { border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-bottom: 8px; }
.m-task .t { font-size: 14px; font-weight: 650; }
.m-task .meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.m-task .acts { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.m-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.m-btns a, .m-btns button { text-align: center; padding: 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--navy); font-size: 14px; font-weight: 650; }
.m-btns a .big, .m-btns button .big { display: block; font-size: 20px; margin-bottom: 4px; }
.m-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-top: 1px solid var(--line);
  max-width: 560px; margin: 0 auto;
}
.m-nav a { text-align: center; padding: 9px 4px 10px; font-size: 11px; color: var(--muted); }
.m-nav a.on { color: var(--navy); font-weight: 700; }
.m-nav a .big { display: block; font-size: 17px; }
.m-offline {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 62px; z-index: 40;
  background: #b54708; color: #fff; border-radius: 99px; padding: 6px 14px; font-size: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
}
.m-tasks .m-task.done { background: #f8fafc; color: var(--muted); }
