* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #2563eb;
  --primary-soft: #eff6ff;
  --bg: #f4f6fa;
  --card: #ffffff;
  --border: #e5e9f0;
  --text: #1e293b;
  --muted: #7c8aa0;
  --green: #16a34a;
  --red: #dc2626;
  --sidebar: #10192e;
  --tabbar-h: 60px;
}
html { -webkit-tap-highlight-color: transparent; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: #e9edf3;
  color: var(--text);
  font-size: 14px;
}
.phone {
  max-width: 520px; margin: 0 auto; min-height: 100vh;
  background: var(--bg); box-shadow: 0 0 40px rgba(15, 23, 42, .1);
  position: relative;
}

/* ===== 顶栏 ===== */
.m-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--sidebar); color: #fff;
  padding: 12px 16px; display: flex; align-items: center; justify-content: space-between;
  padding-top: calc(12px + env(safe-area-inset-top));
}
.mh-left { display: flex; align-items: center; gap: 10px; }
.mh-logo {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 17px; flex-shrink: 0;
}
.mh-title { font-weight: 600; font-size: 15px; }
.mh-sub { font-size: 11px; color: #94a3b8; margin-top: 2px; }
.mh-day {
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 20px; padding: 4px 12px; font-size: 12px; font-weight: 600;
}

/* ===== 主体 ===== */
.m-main { padding: 14px 14px calc(var(--tabbar-h) + 28px + env(safe-area-inset-bottom)); }
.page { display: none; }
.page.active { display: block; animation: fadeIn .2s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 15px; margin-bottom: 12px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.card-head h3, .card > h3, .plan-title { font-size: 15px; }
.link { background: none; border: none; color: var(--primary); font-size: 13px; cursor: pointer; padding: 0; }

/* ===== 概览 ===== */
.hero {
  background: linear-gradient(135deg, #1d4ed8, #4f46e5);
  border-radius: 16px; color: #fff; padding: 18px 16px; margin-bottom: 12px;
  box-shadow: 0 8px 20px rgba(37, 99, 235, .25);
}
.hero-top { display: flex; align-items: center; justify-content: space-between; }
.hero-top b { font-size: 17px; }
.hero-day {
  background: rgba(255, 255, 255, .2); border-radius: 20px;
  padding: 3px 12px; font-size: 12px; font-weight: 600;
}
.hero-sub { font-size: 12px; opacity: .85; margin: 6px 0 14px; }
.hb-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 12px; }
.hb-row span { width: 58px; flex-shrink: 0; opacity: .9; }
.hb { flex: 1; height: 7px; background: rgba(255, 255, 255, .22); border-radius: 4px; overflow: hidden; }
.hb i { display: block; height: 100%; background: #fff; border-radius: 4px; }
.hb i.g { background: #6ee7b7; }

.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.ms {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 4px; text-align: center;
}
.ms b { font-size: 17px; display: block; }
.ms span { font-size: 11px; color: var(--muted); }

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.quick-btn {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 4px; text-align: center; cursor: pointer; font-size: 12px; color: var(--text);
}
.quick-btn .qi {
  width: 34px; height: 34px; border-radius: 10px; margin: 0 auto 6px;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.qi.b1 { background: var(--primary-soft); color: var(--primary); }
.qi.b2 { background: #ecfdf5; color: var(--green); }
.qi.b3 { background: #fff7ed; color: #ea580c; }
.qi.b4 { background: #f5f3ff; color: #7c3aed; }

.todo-list { list-style: none; }
.todo-list li {
  display: flex; gap: 8px; padding: 9px 0; font-size: 13px;
  border-bottom: 1px solid #f1f4f9; align-items: baseline;
}
.todo-list li:last-child { border-bottom: none; }
.todo-list .todo-phase { color: var(--primary); font-weight: 600; white-space: nowrap; font-size: 12px; }
.todo-list .todo-owner { margin-left: auto; color: var(--muted); font-size: 11px; white-space: nowrap; }
.todo-empty { color: var(--muted); text-align: center; padding: 18px 0; }

.checkin-hero { display: flex; align-items: center; gap: 16px; }
.ring {
  width: 74px; height: 74px; border-radius: 50%; flex-shrink: 0; position: relative;
  background: conic-gradient(var(--green) calc(var(--p) * 1%), #e8edf5 0);
  display: flex; align-items: center; justify-content: center;
}
.ring::before { content: ""; position: absolute; inset: 7px; background: #fff; border-radius: 50%; }
.ring span { position: relative; font-weight: 700; font-size: 15px; }
.cd-rows { flex: 1; }
.cd-row { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 0; border-bottom: 1px dashed #eef2f7; }
.cd-row:last-child { border-bottom: none; }

.feed-list { list-style: none; }
.feed-list li { display: flex; gap: 10px; padding: 8px 0; font-size: 13px; border-bottom: 1px solid #f1f4f9; }
.feed-list li:last-child { border: none; }
.feed-list .feed-time { color: var(--muted); font-size: 12px; white-space: nowrap; }

/* ===== 学员 ===== */
.search-bar { position: sticky; top: 62px; z-index: 15; background: var(--bg); padding: 2px 0 6px; }
.search-bar .input { width: 100%; }
.input {
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px;
  font-size: 14px; outline: none; background: #fff; width: 100%;
}
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .1); }
textarea.input { resize: vertical; font-family: inherit; }
select.input { appearance: auto; }

.chip-row { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; border: 1px solid var(--border); background: #fff; color: #475569;
  border-radius: 20px; padding: 6px 14px; font-size: 12px; cursor: pointer;
}
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.summary-line { font-size: 12px; color: var(--muted); margin: 8px 2px 10px; }
.summary-line b { color: var(--green); }

.stu-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 13px 14px; margin-bottom: 10px; display: flex; gap: 12px; align-items: flex-start;
}
.avatar {
  width: 42px; height: 42px; border-radius: 50%; color: #fff; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600;
}
.stu-info { flex: 1; min-width: 0; }
.stu-name-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.stu-name { font-weight: 600; font-size: 15px; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 11px; }
.tag.g1 { background: var(--primary-soft); color: var(--primary); }
.tag.g2 { background: #ecfdf5; color: var(--green); }
.tag.g3 { background: #fff7ed; color: #ea580c; }
.tag.g4 { background: #f5f3ff; color: #7c3aed; }
.tag.g5 { background: #fef2f2; color: var(--red); }
.tag.g6 { background: #ecfeff; color: #0891b2; }
.tag.on { background: #ecfdf5; color: var(--green); }
.tag.off { background: #fef2f2; color: var(--red); }
.stu-meta { font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.6; }
.stu-meta .health { color: #b45309; }
.ck-btn {
  flex-shrink: 0; border: 1px solid var(--border); background: #fff; color: var(--muted);
  border-radius: 20px; padding: 6px 12px; font-size: 12px; cursor: pointer; margin-top: 2px;
}
.ck-btn.on { background: #ecfdf5; border-color: #a7f3d0; color: var(--green); }
.empty-inline { text-align: center; color: var(--muted); padding: 44px 0; font-size: 13px; }

.fab {
  position: fixed; bottom: calc(var(--tabbar-h) + 22px + env(safe-area-inset-bottom));
  right: 16px;
  width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--primary); color: #fff; font-size: 24px; line-height: 1;
  box-shadow: 0 8px 20px rgba(37, 99, 235, .4); z-index: 30;
}
.fab:active { transform: scale(.94); }
@media (min-width: 540px) {
  .fab { right: calc(50% - 260px + 16px); }
}

/* ===== SOP ===== */
.sop-top { display: flex; align-items: center; gap: 14px; }
.sop-top .ring { --p: 0; background: conic-gradient(var(--primary) calc(var(--p) * 1%), #e8edf5 0); width: 64px; height: 64px; }
.sop-top .ring::before { inset: 6px; }
.sop-top .ring span { font-size: 13px; color: var(--primary); }
.sop-top-info b { font-size: 15px; }
.sop-top-info p { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.6; }

.sop-phase {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; margin-bottom: 10px; overflow: hidden;
}
.sop-phase-head {
  display: flex; align-items: center; gap: 10px; padding: 14px 15px;
  cursor: pointer; user-select: none;
}
.sop-phase-head:active { background: #fafbfd; }
.sop-phase-head .ph-name { font-weight: 600; font-size: 14px; flex: 1; }
.sop-phase-head .ph-count { font-size: 12px; color: var(--muted); }
.sop-phase-head .arrow { color: var(--muted); transition: transform .2s; font-size: 16px; }
.sop-phase.open .arrow { transform: rotate(90deg); }
.sop-bar { width: 64px; height: 5px; background: #e8edf5; border-radius: 4px; overflow: hidden; flex-shrink: 0; }
.sop-bar i { display: block; height: 100%; background: var(--primary); border-radius: 4px; }
.sop-items { display: none; border-top: 1px solid var(--border); }
.sop-phase.open .sop-items { display: block; }
.sop-item {
  display: flex; gap: 10px; padding: 12px 15px; align-items: flex-start;
  border-bottom: 1px solid #f1f4f9; font-size: 13px;
}
.sop-item:last-of-type { border-bottom: none; }
.sop-item input[type="checkbox"] { width: 19px; height: 19px; accent-color: var(--primary); flex-shrink: 0; margin-top: 1px; }
.sop-item .si-main { flex: 1; min-width: 0; }
.sop-item.done .si-text { color: var(--muted); text-decoration: line-through; }
.sop-item .si-owner {
  display: inline-block; margin-top: 5px; background: var(--primary-soft); color: var(--primary);
  padding: 1px 10px; border-radius: 20px; font-size: 11px;
}
.sop-item .si-del { background: none; border: none; color: #cbd5e1; cursor: pointer; font-size: 14px; padding: 2px; }
.sop-add { display: flex; gap: 8px; padding: 10px 15px 14px; background: #fafbfd; }
.sop-add .input { flex: 1; padding: 8px 10px; font-size: 13px; }

/* ===== 行程 ===== */
.day-pills { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.day-pills::-webkit-scrollbar { display: none; }
.day-pill {
  flex-shrink: 0; border: 1px solid var(--border); background: #fff; border-radius: 12px;
  padding: 8px 16px; text-align: center; cursor: pointer; color: var(--text);
}
.day-pill b { display: block; font-size: 14px; }
.day-pill span { font-size: 11px; color: var(--muted); }
.day-pill.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.day-pill.active span { color: rgba(255, 255, 255, .8); }
.timeline { position: relative; padding-left: 22px; margin-top: 12px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: #e8edf5; }
.tl-item { position: relative; padding-bottom: 16px; }
.tl-item::before {
  content: ""; position: absolute; left: -21px; top: 5px; width: 10px; height: 10px;
  border-radius: 50%; background: #fff; border: 3px solid var(--primary);
}
.tl-time { font-size: 12px; color: var(--primary); font-weight: 600; }
.tl-title { font-weight: 600; margin: 3px 0 2px; font-size: 14px; }
.tl-meta { font-size: 12px; color: var(--muted); line-height: 1.7; }

/* ===== 更多 ===== */
.seg { display: flex; background: #eef1f6; border-radius: 10px; padding: 3px; margin-bottom: 12px; }
.seg button {
  flex: 1; border: none; background: none; padding: 8px 0; border-radius: 8px;
  font-size: 13px; color: #64748b; cursor: pointer;
}
.seg button.active { background: #fff; color: var(--text); font-weight: 600; box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }

.member-row {
  display: flex; align-items: center; gap: 12px; padding: 11px 0;
  border-bottom: 1px solid #f1f4f9;
}
.member-row:last-child { border-bottom: none; }
.member-row .mr-info { flex: 1; min-width: 0; }
.member-row .mr-name { font-weight: 600; font-size: 14px; }
.member-row .mr-duty { font-size: 12px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-row .mr-group { font-size: 11px; color: var(--primary); margin-top: 2px; }
.mr-acts { display: flex; gap: 6px; flex-shrink: 0; }
.mini-btn {
  border: 1px solid var(--border); background: #fff; border-radius: 8px;
  padding: 6px 10px; font-size: 12px; cursor: pointer; text-decoration: none; color: var(--text);
}
.mini-btn.call { background: #ecfdf5; border-color: #a7f3d0; color: var(--green); font-weight: 600; }
.mini-btn.del { color: var(--red); }

.contact-list { list-style: none; }
.contact-list li { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-bottom: 1px solid #f1f4f9; }
.contact-list li:last-child { border-bottom: none; }
.contact-list .c-name { font-weight: 600; font-size: 14px; }
.contact-list .c-role { font-size: 11px; color: var(--muted); margin-top: 1px; }
.contact-list .c-info { flex: 1; min-width: 0; }

.plan-item { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.plan-head {
  padding: 12px 14px; cursor: pointer; font-weight: 600; font-size: 13px;
  display: flex; align-items: center; gap: 8px; user-select: none;
}
.plan-head:active { background: #fafbfd; }
.plan-head .arrow { margin-left: auto; color: var(--muted); transition: transform .2s; }
.plan-item.open .arrow { transform: rotate(90deg); }
.plan-body {
  display: none; padding: 10px 14px 13px; font-size: 13px; color: #475569;
  line-height: 1.9; border-top: 1px dashed #eef2f7; white-space: pre-line;
}
.plan-item.open .plan-body { display: block; }

.checks-col { display: flex; flex-direction: column; gap: 9px; }
.safety-check {
  display: flex; align-items: center; gap: 10px; border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 13px; font-size: 13px; cursor: pointer; user-select: none;
}
.safety-check input { width: 18px; height: 18px; accent-color: var(--green); flex-shrink: 0; }
.safety-check.done { background: #f0fdf4; border-color: #bbf7d0; }

.btn-danger {
  width: 100%; border: 1px solid #fecaca; background: #fff; color: var(--red);
  border-radius: 12px; padding: 13px; font-size: 14px; cursor: pointer; margin: 4px 0 14px;
}
.pc-link { text-align: center; font-size: 12px; color: var(--muted); padding-bottom: 10px; }
.pc-link a { color: var(--primary); text-decoration: none; }

/* ===== 底部导航 ===== */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 520px; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--border); display: flex; z-index: 40;
}
.tabbtn {
  flex: 1; border: none; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: #94a3b8; font-size: 10px; position: relative;
}
.tabbtn .ti { font-size: 19px; font-style: normal; }
.tabbtn.active { color: var(--primary); }
.tabbtn.active .ti { transform: scale(1.06); }
.tab-badge {
  position: absolute; top: 7px; left: calc(50% + 6px);
  min-width: 16px; height: 16px; border-radius: 9px; background: var(--red); color: #fff;
  font-size: 10px; font-style: normal; line-height: 16px; padding: 0 4px; display: none;
}
.tab-badge.show { display: block; }

/* ===== 底部弹层 ===== */
.sheet-mask {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .5); z-index: 60;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.sheet-mask.show { opacity: 1; pointer-events: auto; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 520px;
  background: #fff; border-radius: 18px 18px 0 0; max-height: 86vh;
  display: flex; flex-direction: column;
  transform: translateY(100%); transition: transform .25s ease-out;
  padding-bottom: env(safe-area-inset-bottom);
}
.sheet-mask.show .sheet { transform: none; }
.sheet-grip { width: 38px; height: 4px; background: #d7dde6; border-radius: 3px; margin: 9px auto 0; }
.sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; border-bottom: 1px solid var(--border);
}
.sheet-head h3 { font-size: 16px; }
.sheet-head button { background: none; border: none; font-size: 15px; color: var(--muted); cursor: pointer; padding: 4px; }
.sheet-body { padding: 16px 18px; overflow-y: auto; }
.sheet-foot { padding: 12px 18px 16px; border-top: 1px solid var(--border); }
.btn-primary {
  width: 100%; background: var(--primary); color: #fff; border: none;
  border-radius: 12px; padding: 13px; font-size: 15px; font-weight: 600; cursor: pointer;
}
.btn-primary:active { background: #1d4ed8; }

.sheet-profile { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.sheet-profile .sp-name { font-size: 17px; font-weight: 700; }
.sheet-profile .sp-tags { margin-top: 5px; display: flex; gap: 6px; }
.detail-rows { margin-bottom: 14px; }
.detail-rows .dr {
  display: flex; gap: 10px; padding: 9px 0; font-size: 13px;
  border-bottom: 1px dashed #eef2f7; align-items: flex-start;
}
.detail-rows .dr:last-child { border-bottom: none; }
.detail-rows .dr b { color: var(--muted); font-weight: 500; min-width: 76px; flex-shrink: 0; }
.detail-rows .dr span { flex: 1; line-height: 1.6; word-break: break-all; }
.sheet-act-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sa-btn {
  border: 1px solid var(--border); background: #fff; border-radius: 12px;
  padding: 12px; font-size: 14px; cursor: pointer; text-align: center; text-decoration: none; color: var(--text);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.sa-btn.green { background: #ecfdf5; border-color: #a7f3d0; color: var(--green); font-weight: 600; }
.sa-btn.blue { background: var(--primary-soft); border-color: #bfdbfe; color: var(--primary); font-weight: 600; }
.sa-btn.red { color: var(--red); border-color: #fecaca; background: #fff; }
.sa-btn.full { grid-column: 1 / -1; }

.form-row { margin-bottom: 13px; }
.form-row label { display: block; font-size: 13px; color: #475569; margin-bottom: 6px; }
.form-row .input { width: 100%; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ===== 提示 ===== */
.toast {
  position: fixed; bottom: calc(var(--tabbar-h) + 30px); left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: #1e293b; color: #fff; padding: 10px 22px; border-radius: 10px;
  font-size: 13px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 99;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 380px) {
  .mini-stats, .quick-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== 用户与权限 ===== */
.mh-user {
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .24);
  color: #fff; border-radius: 20px; padding: 5px 12px;
  font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit;
}
body[data-role="assistant"] .mgr-only,
body[data-role="assistant"] .admin-only,
body[data-role="leader"] .admin-only { display: none !important; }
body.in-login .tabbar, body.in-login .fab { display: none !important; }

.tag.st-pending { background: #f1f5f9; color: #64748b; }
.tag.st-done { background: #fff7ed; color: #ea580c; }
.tag.st-verified { background: #ecfdf5; color: var(--green); }
.sop-item.locked { opacity: .7; }
.sop-item input[type="checkbox"]:disabled { cursor: not-allowed; }
.si-status { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.si-vbtn {
  border: 1px solid var(--border); background: #fff; border-radius: 8px;
  padding: 4px 10px; font-size: 12px; cursor: pointer; white-space: nowrap; font-family: inherit;
}
.si-vbtn.ok { color: var(--green); border-color: #a7f3d0; background: #ecfdf5; font-weight: 600; }
.si-vbtn.no { color: var(--red); border-color: #fecaca; background: #fff; }

/* ===== 登录页（手机） ===== */
#mp-login { min-height: 100vh; }
body.in-login { background: #8ecaff; }
body.in-login .m-header { display: none; }
body.in-login .m-main { padding: 0; }
body.in-login .phone { background: transparent; box-shadow: none; }

.login-sky {
  position: relative; min-height: 100vh; overflow: hidden;
  padding: calc(22px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: center;
  background:
    radial-gradient(120% 68% at 50% 0%, #cbe8ff 0%, #9dd0ff 34%, #74bbfb 64%, #4f9df2 100%);
}
.login-sky::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 170px;
  background: radial-gradient(140% 100% at 50% 100%, #eef8ff 0%, rgba(238, 248, 255, 0) 72%);
  pointer-events: none;
}
.login-cloud {
  position: absolute; background: #fff; border-radius: 999px; opacity: .9;
  filter: blur(1.5px); animation: cloudFloat 15s ease-in-out infinite;
}
.login-cloud::before, .login-cloud::after {
  content: ""; position: absolute; background: #fff; border-radius: 50%;
}
.cl-a { width: 118px; height: 36px; top: 13%; left: -26px; }
.cl-a::before { width: 54px; height: 54px; top: -22px; left: 20px; }
.cl-a::after { width: 38px; height: 38px; top: -14px; left: 60px; }
.cl-b { width: 88px; height: 28px; top: 25%; right: -18px; animation-delay: -5s; }
.cl-b::before { width: 42px; height: 42px; top: -18px; left: 15px; }
.cl-b::after { width: 28px; height: 28px; top: -11px; left: 46px; }
.cl-c { width: 68px; height: 22px; top: 6%; right: 44px; opacity: .72; animation-delay: -9s; }
.cl-c::before { width: 32px; height: 32px; top: -15px; left: 11px; }
@keyframes cloudFloat { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(12px); } }

.login-hero { position: relative; z-index: 1; text-align: center; margin: 4px 0 14px; }
.login-logo {
  width: 60vw; max-width: 264px; display: block; margin: 0 auto;
  filter: drop-shadow(0 14px 20px rgba(13, 80, 150, .24));
}
.login-camp {
  margin-top: 4px; font-size: 12px; color: #fff; opacity: .95;
  text-shadow: 0 1px 4px rgba(20, 84, 150, .45);
}

.login-card-m {
  position: relative; z-index: 1; width: 100%; max-width: 384px;
  background: #fff; border-radius: 26px; padding: 14px 18px 20px;
  box-shadow: 0 18px 40px rgba(13, 80, 150, .22);
  animation: fadeIn .25s;
}
.login-tabs { display: flex; border-bottom: 1px solid #edf1f7; }
.login-tabs.hide { display: none; }
.ltab {
  flex: 1; background: none; border: none; font-family: inherit; cursor: pointer;
  padding: 10px 0 12px; font-size: 16px; font-weight: 600; color: #9aa7b8; position: relative;
}
.ltab.active { color: #1f6fe5; }
.ltab.active::after {
  content: ""; position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%);
  width: 44px; height: 3px; border-radius: 3px; background: #1f6fe5;
}
.login-grid-m { display: block; padding-top: 4px; }

/* 输入行：圆角胶囊 + 图标 */
.lf {
  display: flex; align-items: center; gap: 10px; height: 50px; margin-top: 14px;
  background: #f4f7fb; border-radius: 26px; padding: 0 16px;
  border: 1px solid transparent; transition: background .15s, border-color .15s, box-shadow .15s;
}
.lf:focus-within { background: #fff; border-color: #bcd9ff; box-shadow: 0 0 0 3px rgba(31, 111, 229, .08); }
.lf svg { width: 18px; height: 18px; flex-shrink: 0; color: #9aa7b8; }
.lf input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font-family: inherit; font-size: 15px; color: #1e293b;
}
.lf input::placeholder { color: #9aa7b8; }
.lf-eye {
  flex-shrink: 0; border: none; background: none; padding: 2px 0 2px 6px;
  cursor: pointer; color: #9aa7b8; font-size: 12px; font-family: inherit;
}
.login-error { min-height: 16px; font-size: 12px; color: #dc2626; margin: 8px 4px 0; text-align: left; }
.btn-login {
  width: 100%; height: 50px; margin-top: 10px; border: none; border-radius: 26px;
  background: linear-gradient(90deg, #3f96ff, #1268f0);
  color: #fff; font-family: inherit; font-size: 17px; font-weight: 600; letter-spacing: 1px;
  box-shadow: 0 10px 22px rgba(31, 111, 229, .32); cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}
.btn-login:active { transform: scale(.98); box-shadow: 0 6px 14px rgba(31, 111, 229, .3); }
.btn-login:disabled { opacity: .65; }
.agree-row {
  display: flex; align-items: flex-start; gap: 6px; margin-top: 14px;
  font-size: 12px; color: #7c8aa0; line-height: 1.5; text-align: left;
}
.agree-row input { accent-color: #1f6fe5; margin-top: 2px; flex-shrink: 0; }
.agree-row b { color: #1f6fe5; font-weight: 600; }
.login-tip { margin-top: 12px; font-size: 11px; color: #9aa7b8; line-height: 1.7; text-align: center; }
.login-switch { margin-top: 12px; text-align: center; }
.login-foot {
  position: relative; z-index: 1; margin-top: auto; padding-top: 22px;
  font-size: 11px; color: rgba(255, 255, 255, .88); text-align: center;
}

/* 已登录态卡片 */
.login-card {
  border: 1px solid var(--border); border-radius: 18px; padding: 18px 10px;
  text-align: center; cursor: pointer; background: var(--card); transition: all .15s;
}
.login-card:active { transform: scale(.97); border-color: var(--primary); }
.login-card .avatar { margin: 0 auto 8px; }
.login-card .lc-name { font-weight: 600; font-size: 14px; }
.login-card .lc-role { font-size: 11px; color: var(--muted); margin-top: 3px; }
.login-card .lc-role.admin { color: #b45309; font-weight: 600; }
.login-card.current { border-color: var(--primary); background: var(--primary-soft); }
.lc-enter { margin-top: 8px; font-size: 11px; color: var(--primary); }
.login-hint-m { font-size: 12px; color: var(--muted); line-height: 1.8; text-align: center; padding: 0 8px; }
.login-field { display: block; margin-bottom: 12px; text-align: left; }
.login-field > span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.login-field .input { width: 100%; }
.btn.full { width: 100%; justify-content: center; }
.link-btn {
  background: none; border: none; padding: 6px 4px; cursor: pointer;
  color: var(--primary); font-size: 12px; font-family: inherit;
}
.acc-state { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; }
.acc-state.on { background: #dcfce7; color: #15803d; }
.acc-state.off { background: #fef3c7; color: #b45309; }

/* ===== 操作日志（手机） ===== */
.audit-list { list-style: none; }
.audit-list li { padding: 9px 0; border-bottom: 1px solid #f1f4f9; font-size: 12px; line-height: 1.6; }
.audit-list li:last-child { border-bottom: none; }
.audit-list .al-top { display: flex; gap: 8px; align-items: center; }
.audit-list .al-time { color: var(--muted); margin-left: auto; white-space: nowrap; font-size: 11px; }
.audit-list .al-detail { color: var(--muted); margin-top: 2px; }
.audit-empty { text-align: center; color: var(--muted); padding: 16px 0; font-size: 12px; }

/* ===== SOP 执行项补充 ===== */
.si-sub { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
.si-time { font-size: 11px; color: var(--muted); }

/* ================= 运营升级批次一 ================= */
.pill-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 10px; }
.pill-row .day-pill { flex-shrink: 0; padding: 6px 14px; }
.pill-row .day-pill b { font-size: 13px; }
.rc-scope { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.rc-actions-m { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.rc-student {
  display: flex; align-items: center; gap: 8px; padding: 9px 12px; margin-bottom: 8px;
  border: 1px solid var(--border); border-radius: 12px; cursor: pointer; background: #fff;
}
.rc-student.present { border-color: var(--green); background: #f0fdf4; }
.rc-name { font-weight: 500; font-size: 14px; }
.rc-student .tag { margin-left: auto; }
.rc-rec { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; background: #fff; }
.rc-rec-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rc-num { font-size: 14px; }
.rc-num.ok { color: var(--green); }
.rc-num.warn { color: var(--orange); }
.rc-meta { margin-left: auto; font-size: 11px; color: var(--muted); }
.rc-absent { margin-top: 5px; font-size: 12px; color: var(--red); }
.rc-absent.ok { color: var(--muted); }
.health-chips-m { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.health-card { padding: 12px 14px; margin-bottom: 10px; }
.hc-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hc-top b { font-size: 14px; }
.hc-meta { margin-left: auto; font-size: 11px; color: var(--muted); }
.hc-body { margin-top: 6px; font-size: 13px; line-height: 1.7; }
.hc-actions { margin-top: 8px; display: flex; gap: 8px; }
.data-grid-m { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.row-inline-m { display: flex; gap: 8px; align-items: center; }
.row-inline-m .input { flex: 1; }
.archive-row-m { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.archive-row-m .ar-info b { font-size: 13px; display: block; }
.archive-row-m .ar-info span { font-size: 11px; color: var(--muted); }
.mini-btn.full-w { width: 100%; justify-content: center; text-align: center; }
.btn-primary.full { width: 100%; margin-bottom: 12px; }
.briefing-text { line-height: 1.9; font-size: 13px; white-space: pre-wrap; }
.sop-item.is-new { background: #fffbeb; }
.tag.new { background: #fef3c7; color: #b45309; font-weight: 600; }
.tab-badge.dot { background: #ef4444; width: 8px; height: 8px; min-width: 8px; border-radius: 50%; padding: 0; top: 7px; left: calc(50% + 10px); }

/* ================= 分组与行程编辑 ================= */
.tl-item { display: flex; gap: 10px; align-items: flex-start; }
.tl-item .tl-time { flex-shrink: 0; width: 84px; }
.tl-item .tl-main { flex: 1; min-width: 0; }
.tl-item .tl-title { margin-top: 0; }
.tl-acts-m { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.sched-acts-m { display: flex; gap: 6px; }
.sched-acts-m .mini-btn { padding: 4px 9px; font-size: 12px; }
.chip-row .mini-btn.mgmt { margin-left: auto; flex-shrink: 0; }
.day-pill.add { justify-content: center; color: var(--muted); }

/* ================= 结营交付与教学闭环（closing-loop-3） ================= */
.sig-pad {
  width: 100%; height: 130px; border: 1px dashed var(--border); border-radius: 10px;
  background: #fff; touch-action: none; cursor: crosshair; display: block;
}
.wl-box {
  background: #f0f7ff; border: 1px solid #dbeafe; border-radius: 10px;
  padding: 8px 10px; margin-bottom: 10px; font-size: 12px;
}
.wl-box b { color: var(--primary); display: block; }
.wl-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.wl-list span {
  background: #fff; border: 1px solid #bfdbfe; color: #1d4ed8;
  border-radius: 999px; padding: 1px 8px; font-size: 11px;
}
.wl-health { margin-top: 5px; color: #d97706; font-size: 11px; }

/* =============== 多营次 UI（移动端） =============== */
.m-header { flex-wrap: wrap; }
.m-camp-select-btn {
  font-size: 12px; padding: 6px 22px 6px 10px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 18px;
  background: rgba(255,255,255,.15);
  color: #fff; font-weight: 600;
  appearance: none; -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center;
  min-width: 72px;
  backdrop-filter: blur(4px);
}
.m-camp-select-btn option { color: #16233c; }
.m-camp-select { display: none; }
.mh-plus {
  width: 30px; height: 30px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, var(--accent), #3b82f6); color: #fff;
  font-size: 18px; font-weight: 600; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
}
.mh-plus:active { transform: scale(0.9); }

/* Modal 复用桌面样式 */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.4); display: flex;
  align-items: center; justify-content: center; z-index: 9999;
}
.modal {
  background: #fff; border-radius: 14px; padding: 20px; width: 320px; max-width: 92vw;
  display: flex; flex-direction: column; gap: 10px;
}
.modal h3 { margin: 0; font-size: 16px; }
.modal label { display: flex; flex-direction: column; font-size: 13px; color: var(--text-soft); gap: 4px; }
.modal input { padding: 8px 12px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 14px; }

/* 合规档案 / 异常处理 */
.student-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.student-row:last-child { border-bottom: none; }
.sr-name { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.comp-cells { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.comp-cell { min-width: 44px; padding: 6px 4px; font-size: 11px; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; color: #9ca3af; cursor: pointer; }
.comp-cell.on { background: #10b981; color: #fff; border-color: #10b981; }
.incident-card { border: 1px solid #f0f0f0; border-radius: 10px; padding: 12px; margin-bottom: 10px; }
.inc-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.inc-type { font-size: 11px; padding: 2px 8px; border-radius: 12px; background: #fef2f2; color: #ef4444; }
.inc-status { font-size: 11px; padding: 2px 8px; border-radius: 12px; background: #eff6ff; color: #2563eb; }
.inc-status.resolved { background: #f0fdf4; color: #16a34a; }
.inc-status.processing { background: #fffbeb; color: #d97706; }
.inc-time { font-size: 11px; color: #9ca3af; margin-left: auto; }
.inc-source { font-size: 13px; font-weight: 600; }
.inc-note { font-size: 12px; color: #6b7280; margin: 4px 0 8px; }
.inc-actions { display: flex; gap: 8px; }
.modal .nc-checks { font-size: 13px; color: var(--text-soft); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.chk-row {
  display: flex; align-items: center; gap: 7px; font-size: 12px;
  background: #fff7ed; border: 1px solid #fed7aa; border-radius: 10px; padding: 8px 10px;
  margin-bottom: 10px;
}
.hv-row-m { border: 1px solid var(--border); border-radius: 12px; padding: 9px 11px; margin-bottom: 8px; }
.hv-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.hv-sig-m { width: 110px; height: 42px; border-radius: 8px; border: 1px solid var(--border); object-fit: contain; background: #fff; margin-top: 6px; }
.task-card-m { margin-bottom: 10px; }
.tc-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.tc-desc { font-size: 12px; color: var(--muted); margin-bottom: 6px; line-height: 1.6; }
.task-students-m { display: flex; flex-wrap: wrap; gap: 6px; }
.ts-btn-m {
  border: 1px solid var(--border); background: #f8fafc; color: var(--muted);
  border-radius: 999px; padding: 4px 10px; font-size: 11px; cursor: pointer;
}
.ts-btn-m.done { background: #ecfdf5; border-color: #a7f3d0; color: #059669; }
.ts-btn-m.exc { background: #fffbeb; border-color: #fde68a; color: #d97706; }
.report-text-m {
  width: 100%; font-family: inherit; line-height: 1.8; font-size: 12px;
  white-space: pre-wrap; background: #f8fafc; border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 12px;
}
.points-log-m { display: flex; flex-direction: column; gap: 6px; max-height: 170px; overflow: auto; margin-top: 8px; }
.notice-card-m { border: 1px solid var(--border); border-radius: 12px; padding: 9px 11px; margin-bottom: 8px; }
.notice-card-m .mr-acts { margin-left: auto; display: flex; gap: 6px; }
.notice-body-m { font-size: 12px; line-height: 1.7; white-space: pre-wrap; word-break: break-all; }
.expense-row-m {
  display: flex; align-items: center; gap: 8px; font-size: 12px;
  border-bottom: 1px dashed var(--border); padding: 7px 2px;
}
.growth-picker { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow: auto; }
.gp-row {
  display: flex; align-items: center; gap: 8px; border: 1px solid var(--border);
  border-radius: 10px; padding: 9px 12px; background: #fff; font-size: 13px; cursor: pointer;
}
.gp-row:active { border-color: var(--primary); color: var(--primary); }

/* ============================================================
   2026 天空蓝 UI 改版（覆盖层）
   仅视觉层：不改动任何业务 DOM 语义 / ID / data-* 属性
   ============================================================ */
:root {
  --sky-1: #3f9dff;
  --sky-2: #7cc7ff;
  --sky-3: #cfeeff;
  --primary: #2f86ff;
  --primary-2: #5ab4ff;
  --primary-soft: #eaf3ff;
  --bg: #eef6ff;
  --card: #ffffff;
  --border: #e6eef9;
  --text: #16233c;
  --muted: #7b8ca8;
  --green: #22a45d;
  --red: #ef5b5b;
  --orange: #f0a03c;
  --violet: #7c6cf5;
  --sidebar: #3f9dff;
  --radius: 20px;
  --shadow: 0 10px 26px rgba(47, 134, 255, .10), 0 2px 8px rgba(22, 35, 60, .04);
  --shadow-sm: 0 4px 14px rgba(47, 134, 255, .08);
  --tabbar-h: 66px;
}

body {
  background: #dceaf9;
  color: var(--text);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
.phone {
  background: var(--bg);
  overflow-x: hidden;
  box-shadow: 0 0 60px rgba(30, 90, 160, .16);
}
/* 天空渐变背景层 */
.phone::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 260px;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
    #3f9dff 0%,
    #43adf9 22%,
    #63c2fd 40%,
    #90e1fe 59%,
    #aaebfe 76%,
    #c4eefe 93%,
    #e8f6ff 99%,
    #eef6ff 100%);
}
body.in-login .phone::before { display: none; }

/* ---------- 顶栏 ---------- */
.m-header {
  position: sticky;
  top: 0;
  z-index: 30;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 10px 16px 12px;
  padding-top: calc(10px + env(safe-area-inset-top));
  background: linear-gradient(180deg, #3f9dff 0%, #43adf9 100%);
  color: #fff;
}
.mh-left { flex: 1; min-width: 0; gap: 9px; }
.mh-logo {
  width: 34px; height: 34px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .24);
  border: 1.4px solid rgba(255, 255, 255, .55);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .5px;
  box-shadow: 0 4px 12px rgba(20, 80, 150, .16);
}
.mh-left > div { min-width: 0; }
.mh-meta { min-width: 0; }
.mh-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.35;
}
.mh-sub {
  font-size: 10.5px;
  color: rgba(255, 255, 255, .82);
  margin-top: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mh-acts { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.mh-user {
  max-width: 108px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(255, 255, 255, .22);
  border: 1px solid rgba(255, 255, 255, .42);
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 600;
}
.mh-plus {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  color: var(--primary);
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(20, 80, 150, .18);
}

/* ---------- 主体与卡片 ---------- */
.m-main {
  position: relative;
  z-index: 1;
  padding: 0 16px calc(var(--tabbar-h) + 26px + env(safe-area-inset-bottom));
}
.card {
  background: var(--card);
  border: none;
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.card-head { margin-bottom: 12px; }
.card-head h3, .card > h3, .plan-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text);
}
.card-head h3::before {
  content: "";
  display: inline-block;
  width: 3px; height: 13px;
  margin-right: 7px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--primary-2), var(--primary));
  vertical-align: -1px;
}
.link { color: var(--muted); font-size: 12px; }

/* ---------- 页头主视觉 ---------- */
.page-hero {
  position: relative;
  margin: 0 -16px 14px;
  padding: 12px 20px 22px;
  min-height: 196px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: url("assets/hero-mascot.jpg") right bottom / auto 196px no-repeat;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(63, 157, 255, .55) 0%, rgba(63, 157, 255, .28) 34%, rgba(63, 157, 255, 0) 60%);
  pointer-events: none;
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.24;
  color: #fff;
  letter-spacing: .6px;
  max-width: 210px;
  text-shadow: 0 3px 14px rgba(18, 78, 150, .22);
}
.page-hero p {
  margin-top: 7px;
  font-size: 12px;
  letter-spacing: 1.4px;
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 1px 6px rgba(18, 78, 150, .18);
}
.page-hero .ph-line {
  display: block;
  width: 34px; height: 3px;
  margin-top: 10px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0));
}

/* ---------- 概览：进度卡 ---------- */
#heroCard {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
}
.pc-ring {
  width: 78px; height: 78px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: conic-gradient(from -90deg, #2f86ff calc(var(--p, 0) * 1%), #e6effc 0);
}
.pc-ring::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #fff;
}
.pc-ring span {
  position: relative;
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
}
.pc-ring em {
  position: relative;
  margin-top: 3px;
  font-size: 9px;
  font-style: normal;
  color: var(--muted);
}
.pc-main { flex: 1; min-width: 0; }
.pc-title { font-size: 15px; font-weight: 700; }
.pc-sub { margin-top: 5px; font-size: 12px; color: var(--muted); }
.pc-sub b { color: var(--primary); font-size: 13px; }
.pc-bar {
  margin-top: 10px;
  height: 7px;
  border-radius: 6px;
  background: #e8f1fd;
  overflow: hidden;
}
.pc-bar i {
  display: block;
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, #6fc0ff, #2f86ff);
}
.pc-foot { margin-top: 8px; font-size: 11px; color: var(--muted); }

/* ---------- 概览：四宫格指标 ---------- */
.mini-stats { gap: 10px; margin-bottom: 14px; }
.ms {
  background: var(--card);
  border: none;
  border-radius: 18px;
  padding: 12px 4px 10px;
  box-shadow: var(--shadow);
}
.ms .ms-ic {
  width: 28px; height: 28px;
  margin: 0 auto 6px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ms .ms-ic .ic { width: 16px; height: 16px; }
.ms .ms-ic.b { background: #e8f2ff; color: #2f86ff; }
.ms .ms-ic.g { background: #e4f8ed; color: #22a45d; }
.ms .ms-ic.o { background: #fff2e2; color: #f0a03c; }
.ms .ms-ic.v { background: #efecff; color: #7c6cf5; }
.ms b { font-size: 19px; font-weight: 800; line-height: 1.1; }
.ms span { font-size: 11px; color: var(--muted); }

/* ---------- 概览：快捷宫格 ---------- */
.quick-grid { gap: 10px; margin-bottom: 16px; }
.quick-btn {
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.quick-btn .qi {
  width: 54px; height: 54px;
  border-radius: 18px;
  margin: 0;
  font-size: 22px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.quick-btn .qi .ic { width: 24px; height: 24px; stroke-width: 1.9; }
.qi.b1 { background: linear-gradient(135deg, #6fc0ff, #2f86ff); box-shadow: 0 9px 20px rgba(47, 134, 255, .28); }
.qi.b2 { background: linear-gradient(135deg, #5fd6a4, #22a45d); box-shadow: 0 9px 20px rgba(34, 164, 93, .24); }
.qi.b3 { background: linear-gradient(135deg, #ffc46e, #f09a2c); box-shadow: 0 9px 20px rgba(240, 154, 44, .24); }
.qi.b4 { background: linear-gradient(135deg, #ab9dff, #7c6cf5); box-shadow: 0 9px 20px rgba(124, 108, 245, .24); }

/* ---------- 概览：今日待办 ---------- */
.todo-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  font-size: 13px;
  border-bottom: 1px solid #f1f6fd;
}
.todo-list .todo-ic {
  width: 34px; height: 34px;
  flex-shrink: 0;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.todo-list .todo-ic .ic { width: 17px; height: 17px; }
.todo-ic.b { background: #e8f2ff; color: #2f86ff; }
.todo-ic.g { background: #e4f8ed; color: #22a45d; }
.todo-ic.o { background: #fff2e2; color: #f0a03c; }
.todo-ic.v { background: #efecff; color: #7c6cf5; }
.todo-main { flex: 1; min-width: 0; display: block; }
.todo-title {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.todo-sub { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); }
.todo-go {
  flex-shrink: 0;
  border: none;
  background: #eaf3ff;
  color: var(--primary);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 11.5px;
  font-weight: 600;
  font-family: inherit;
}

/* ---------- 概览：签到 / 动态 ---------- */
.ring { background: conic-gradient(var(--primary) calc(var(--p) * 1%), #e8f1fd 0); }
.ring span { color: var(--primary); }
.cd-row { border-bottom: 1px dashed #eef4fc; font-size: 12.5px; }
.feed-list li { border-bottom: 1px solid #f1f6fd; font-size: 12.5px; }
.feed-list .feed-time { color: var(--muted); }
.todo-empty, .empty-inline { color: #a3b2c9; }

/* ---------- 学员 ---------- */
.search-bar {
  position: static;
  background: transparent;
  padding: 0 0 10px;
}
.search-wrap { position: relative; }
.search-wrap .search-ic {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  width: 17px; height: 17px;
  color: #9fb2cc;
  pointer-events: none;
}
.search-bar .input {
  height: 46px;
  border: none;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  padding-left: 44px;
  font-size: 13.5px;
}
.input {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 13px;
  background: #fff;
}
.input:focus {
  border-color: #bcd9ff;
  box-shadow: 0 0 0 3px rgba(47, 134, 255, .10);
}
.chip-row { gap: 8px; padding: 2px 0 6px; }
.chip {
  border: none;
  background: #fff;
  color: #6c7f9c;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.chip.active {
  background: linear-gradient(135deg, #62b8ff, #2f86ff);
  color: #fff;
  box-shadow: 0 8px 18px rgba(47, 134, 255, .28);
}
.summary-line { color: #8ea1bb; margin: 8px 2px 12px; }
.summary-line b { color: var(--primary); }

.stu-card {
  border: none;
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  align-items: center;
  gap: 12px;
}
.stu-card .avatar {
  width: 52px; height: 52px;
  font-size: 19px;
  box-shadow: 0 4px 10px rgba(22, 35, 60, .10);
}
.stu-info { flex: 1; }
.stu-name { font-size: 16px; font-weight: 700; }
.stu-tags { display: flex; align-items: center; gap: 6px; margin-top: 7px; flex-wrap: wrap; }
.stu-tags .tag {
  display: inline-flex;
  align-items: center;
  max-width: 62%;
  overflow: hidden;
  white-space: nowrap;
}
.stu-tags .tag .ic { flex-shrink: 0; }
.tag {
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
}
.tag .ic { width: 11px; height: 11px; margin-right: 2px; vertical-align: -1px; }
.tag.g1 { background: #efeaff; color: #6b5cf0; }
.tag.g2 { background: #e4f8ed; color: #22a45d; }
.tag.g3 { background: #fff2e2; color: #e08a24; }
.tag.g4 { background: #efeaff; color: #7c6cf5; }
.tag.g5 { background: #ffecec; color: #e85555; }
.tag.g6 { background: #e9f6ff; color: #2489d6; }
.tag.on { background: #e4f8ed; color: #22a45d; }
.tag.off { background: #f1f4f9; color: #93a4bd; }
.ck-btn {
  border: none;
  background: #f2f6fc;
  color: #8296b4;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 11.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;
}
.ck-btn .ic { width: 12px; height: 12px; }
.ck-btn.on { background: #e4f8ed; color: #22a45d; }
.stu-arrow { color: #c9d7e9; font-size: 17px; margin-left: -4px; }

/* ---------- SOP ---------- */
.sop-top { gap: 15px; padding: 18px; }
.sop-top .ring { width: 76px; height: 76px; }
.sop-top .ring::before { inset: 7px; }
.sop-top .ring span { font-size: 19px; font-weight: 800; color: var(--primary); }
.sop-top-info b { font-size: 15px; }
.sop-top-info p { font-size: 12px; color: var(--muted); margin-top: 5px; }

.sop-phase {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}
.sop-phase-head { padding: 15px 16px; gap: 10px; }
.ph-num {
  width: 27px; height: 27px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #62b8ff, #2f86ff);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(47, 134, 255, .26);
}
.sop-phase-head .ph-name { font-size: 14.5px; font-weight: 700; }
.ph-count {
  background: #eaf3ff;
  color: var(--primary);
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 600;
}
.sop-bar { display: none; }
.sop-phase-head .arrow { color: #b9c9dd; font-size: 17px; }
.sop-items { border-top: 1px solid #f1f6fd; }
.sop-item { padding: 13px 16px; border-bottom: 1px solid #f4f8fd; }
.sop-item input[type="checkbox"] {
  width: 21px; height: 21px;
  border-radius: 7px;
  border: 1.6px solid #cfdcee;
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  margin-top: 1px;
  accent-color: unset;
  transition: background .15s, border-color .15s;
}
.sop-item input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #62b8ff, #2f86ff);
  border-color: transparent;
}
.sop-item input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 7px; top: 3px;
  width: 5px; height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.sop-item input[type="checkbox"]:disabled { opacity: .55; }
.sop-item .si-owner {
  background: #eef4fd;
  color: #6d86a8;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 10.5px;
}
.tag.st-pending { background: #fff2e2; color: #e08a24; }
.tag.st-done { background: #e8f2ff; color: #2f86ff; }
.tag.st-verified { background: #e4f8ed; color: #22a45d; }
.si-vbtn { border-radius: 999px; font-size: 11.5px; padding: 4px 11px; }
.si-vbtn.ok { background: #e4f8ed; border-color: #b9ecd0; color: #1c9c57; }
.si-vbtn.no { border-color: #ffd6d6; color: #e85555; }

/* ---------- 行程 ---------- */
.day-pills {
  background: #fff;
  border-radius: var(--radius);
  padding: 10px;
  gap: 8px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.day-pill {
  border: none;
  background: transparent;
  border-radius: 14px;
  padding: 8px 14px;
  min-width: 70px;
}
.day-pill b { font-size: 13.5px; }
.day-pill span { font-size: 10.5px; color: var(--muted); }
.day-pill.active {
  background: linear-gradient(135deg, #62b8ff, #2f86ff);
  box-shadow: 0 7px 16px rgba(47, 134, 255, .30);
}
.day-pill.active b { color: #fff; }
.day-pill.active span { color: rgba(255, 255, 255, .88); }

.timeline { padding-left: 0; margin-top: 14px; }
.timeline::before { display: none; }
.tl-item {
  position: relative;
  display: flex;
  gap: 11px;
  padding-bottom: 16px;
  align-items: flex-start;
}
.tl-item::before { display: none; }
.tl-rail {
  width: 12px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  position: relative;
}
.tl-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: linear-gradient(135deg, #62b8ff, #2f86ff);
  box-shadow: 0 0 0 3px #e8f2ff;
  flex-shrink: 0;
}
.tl-item::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 26px;
  bottom: 0;
  width: 2px;
  background: #e8f1fd;
}
.tl-item:last-child::after { display: none; }
.tl-thumb {
  width: 62px;
  height: 62px;
  flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #a9d8ff, #5aaefa);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 6px 14px rgba(47, 134, 255, .18);
}
.tl-thumb .ic { width: 24px; height: 24px; }
.tl-item .tl-main { flex: 1; min-width: 0; }
.tl-time { font-size: 11.5px; color: var(--primary); font-weight: 700; }
.tl-title { font-size: 14.5px; font-weight: 700; margin: 3px 0 4px; }
.tl-meta { font-size: 11.5px; color: var(--muted); line-height: 1.65; }
.tl-meta .ic { width: 11px; height: 11px; margin-right: 3px; vertical-align: -1px; color: #a9bbd2; }
.tl-acts-m { padding-top: 2px; }
.tl-acts-m .mini-btn { padding: 4px 8px; font-size: 11px; }

/* ---------- 按钮 / 表单 ---------- */
.btn-primary {
  background: linear-gradient(135deg, #62b8ff, #2f86ff);
  border-radius: 15px;
  padding: 13px;
  font-size: 14.5px;
  font-weight: 600;
  box-shadow: 0 9px 20px rgba(47, 134, 255, .28);
}
.btn-primary:active { background: linear-gradient(135deg, #4aa8ff, #1f6fe5); }
.mini-btn {
  border: none;
  background: #f2f7ff;
  color: #4a74a8;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
}
.mini-btn.call { background: #e4f8ed; color: #1c9c57; }
.mini-btn.del { background: #fff0f0; color: #e85555; }
.btn-danger {
  border: none;
  background: #fff0f0;
  color: #e85555;
  border-radius: 15px;
}
.seg { background: #eef4fd; border-radius: 14px; }
.seg button { border-radius: 11px; color: #7890ae; }
.seg button.active {
  color: var(--primary);
  border-radius: 11px;
  box-shadow: 0 2px 8px rgba(47, 134, 255, .14);
}
.data-grid-m { gap: 10px; }
.contact-list li { border-bottom: 1px solid #f1f6fd; }
.member-row { border-bottom: 1px solid #f1f6fd; }
.safety-check { border: 1px solid #eaf1fa; border-radius: 14px; background: #fbfdff; }
.safety-check.done { background: #eefaf3; border-color: #c9eeda; }
.plan-item { border: none; background: #f8fbff; border-radius: 14px; }
.plan-head { font-size: 13px; }
.plan-body { border-top: 1px dashed #e6effb; color: #5a6e8c; }
.hv-row-m, .notice-card-m, .incident-card, .rc-student, .rc-rec, .health-card, .task-card-m {
  border-color: #eaf1fa;
}
.rc-student, .rc-rec, .health-card.card, .task-card-m.card, .hv-row-m, .notice-card-m {
  border-radius: 16px;
}
.rc-student { border: 1px solid #eef4fc; box-shadow: var(--shadow-sm); }
.rc-student.present { border-color: #b9ecd0; background: #f2fcf6; }
.hc-top .tag, .rc-rec .tag { border-radius: 999px; }

/* 更多页快捷入口 */
.mtiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.mtile {
  background: #fff;
  border-radius: 18px;
  padding: 12px 4px 10px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: var(--text);
  font-size: 11.5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.mtile .mi {
  width: 42px; height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.mtile .mi .ic { width: 21px; height: 21px; }
.mi.b { background: linear-gradient(135deg, #62b8ff, #2f86ff); box-shadow: 0 7px 16px rgba(47, 134, 255, .24); }
.mi.g { background: linear-gradient(135deg, #5fd6a4, #22a45d); box-shadow: 0 7px 16px rgba(34, 164, 93, .22); }
.mi.o { background: linear-gradient(135deg, #ffc46e, #f09a2c); box-shadow: 0 7px 16px rgba(240, 154, 44, .22); }
.mi.v { background: linear-gradient(135deg, #ab9dff, #7c6cf5); box-shadow: 0 7px 16px rgba(124, 108, 245, .22); }

/* ---------- 底部导航 ---------- */
.tabbar {
  background: rgba(255, 255, 255, .98);
  border-top: none;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -8px 26px rgba(47, 134, 255, .12);
  padding-top: 4px;
}
.tabbtn {
  color: #a1b2ca;
  font-size: 10.5px;
  gap: 4px;
  padding-bottom: 8px;
}
.tabbtn .ti {
  width: 24px; height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
}
.tabbtn .ti svg { width: 22px; height: 22px; }
.tabbtn.active { color: var(--primary); }
.tabbtn.active .ti { transform: translateY(-1px) scale(1.04); }
.tabbtn.active::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px; height: 3px;
  border-radius: 3px;
  background: var(--primary);
}
.tab-badge { top: 2px; left: calc(50% + 7px); }
.tab-badge.dot { top: 3px; }

/* ---------- 弹层 ---------- */
.sheet { border-radius: 24px 24px 0 0; }
.sheet-head h3 { font-size: 16px; font-weight: 700; }
.sa-btn { border-radius: 14px; border: 1px solid #eaf1fa; }
.sa-btn.green { background: #e4f8ed; border-color: #c9eeda; color: #1c9c57; }
.sa-btn.blue { background: #eaf3ff; border-color: #cfe4ff; color: var(--primary); }
.sa-btn.red { background: #fff0f0; border-color: #ffd6d6; color: #e85555; }
.toast { border-radius: 14px; background: rgba(22, 35, 60, .92); }
.gp-row { border-radius: 12px; border-color: #eaf1fa; }

/* 图标基础样式 */
.ic {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* 底色托底（滚动区） */
.m-main { padding-bottom: calc(var(--tabbar-h) + 30px + env(safe-area-inset-bottom)); }

@media (max-width: 380px) {
  .page-hero { min-height: 176px; background-size: auto 176px; }
  .page-hero h1 { font-size: 21px; }
  .mini-stats { grid-template-columns: repeat(4, 1fr); }
  .quick-grid { grid-template-columns: repeat(4, 1fr); }
  .quick-btn .qi { width: 48px; height: 48px; border-radius: 16px; }
  .mtiles { grid-template-columns: repeat(4, 1fr); }
  .mtile .mi { width: 38px; height: 38px; }
}
