/* =========================================================
   签到通 SignHub — 共享样式
   ========================================================= */
:root {
  --primary: #165DFF;
  --primary-dark: #0E42D2;
  --primary-light: #E8F0FF;
  --ink: #1D2129;
  --sub: #4E5969;
  --muted: #86909C;
  --line: #E5E6EB;
  --bg: #F2F3F5;
  --white: #FFFFFF;
  --success: #00B42A;
  --success-bg: #E8FFEA;
  --warn: #FF7D00;
  --warn-bg: #FFF7E8;
  --danger: #F53F3F;
  --danger-bg: #FFECE8;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(29, 33, 41, .06);
  --shadow-lg: 0 8px 32px rgba(29, 33, 41, .14);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
button { font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: 15px; }
.hidden { display: none !important; }
.ev-select { display: none; }
@media (max-width: 900px) {
  .ev-select { display: inline-block; max-width: 170px; height: 36px; font-size: 13px; padding: 0 8px; }
}

/* ---------- 通用组件 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; border-radius: 10px; padding: 0 18px; height: 42px;
  font-size: 15px; font-weight: 500; cursor: pointer; transition: all .15s;
  background: var(--white); color: var(--ink); border: 1px solid var(--line);
  white-space: nowrap; user-select: none;
}
.btn:active { transform: scale(.98); }
.btn:hover { border-color: #C9CDD4; }
.btn-primary { background: var(--primary); color: #fff; border: 1px solid var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-success { background: var(--success); color: #fff; border: 1px solid var(--success); }
.btn-danger { background: var(--white); color: var(--danger); border-color: #FFCDC2; }
.btn-danger:hover { background: var(--danger-bg); }
.btn-ghost { background: transparent; border: 1px dashed var(--line); color: var(--sub); }
.btn-block { width: 100%; height: 50px; font-size: 17px; border-radius: 12px; }
.btn-lg { height: 48px; padding: 0 26px; font-size: 16px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn .spin {
  width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  border-radius: 50%; animation: rot .7s linear infinite;
}
@keyframes rot { to { transform: rotate(360deg); } }

.input, .select, textarea.input {
  width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 10px;
  padding: 0 14px; outline: none; background: var(--white); transition: border .15s;
  color: var(--ink);
}
textarea.input { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.6; }
.input:focus, textarea.input:focus, .select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(22,93,255,.1); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--sub); margin-bottom: 6px; font-weight: 500; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 6px; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 500; }
.badge-green { background: var(--success-bg); color: var(--success); }
.badge-gray { background: #F2F3F5; color: var(--muted); }
.badge-blue { background: var(--primary-light); color: var(--primary); }
.badge-orange { background: var(--warn-bg); color: var(--warn); }

.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }

.toast-wrap { position: fixed; top: 24px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast {
  background: rgba(29,33,41,.92); color: #fff; padding: 10px 20px; border-radius: 10px;
  font-size: 14px; box-shadow: var(--shadow-lg); animation: toastIn .25s ease; max-width: 86vw;
}
.toast.err { background: rgba(197,42,42,.95); }
.toast.ok { background: rgba(14,138,47,.95); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

/* =========================================================
   手机签到页
   ========================================================= */
.page-checkin { background: #EEF2F8; min-height: 100vh; }
.page-checkin .wrap { max-width: 520px; margin: 0 auto; padding: 0 16px 40px; }
.ev-banner {
  background: linear-gradient(135deg, #165DFF 0%, #2B7FFF 55%, #4E9BFF 100%);
  color: #fff; padding: 26px 20px 54px; position: relative; overflow: hidden;
}
.ev-banner::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px;
  background: rgba(255,255,255,.12); border-radius: 50%;
}
.ev-banner::before {
  content: ""; position: absolute; right: 40px; bottom: -80px; width: 160px; height: 160px;
  background: rgba(255,255,255,.08); border-radius: 50%;
}
.ev-banner .brand { display: flex; align-items: center; gap: 8px; font-size: 13px; opacity: .9; margin-bottom: 14px; }
.ev-banner .brand .logo { width: 20px; height: 20px; background: rgba(255,255,255,.25); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.ev-banner h1 { font-size: 22px; margin: 0 0 10px; line-height: 1.4; font-weight: 600; }
.ev-banner .meta { font-size: 13px; opacity: .92; display: flex; flex-direction: column; gap: 2px; }
.ev-banner .stat-pill {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3);
  padding: 5px 14px; border-radius: 20px; font-size: 13px; backdrop-filter: blur(4px);
}
.checkin-main { margin-top: -34px; position: relative; z-index: 2; }
.panel { background: #fff; border-radius: 16px; box-shadow: 0 6px 24px rgba(22,93,255,.08); padding: 22px 18px; }
.panel + .panel { margin-top: 14px; }
.panel h2 { font-size: 17px; margin: 0 0 4px; font-weight: 600; }
.panel .desc { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.search-row { display: flex; gap: 10px; }
.search-row .input { flex: 1; height: 50px; font-size: 16px; }
.result-list { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.result-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; cursor: pointer;
  transition: all .15s; background: #fff;
}
.result-item:active { background: #F7F8FA; }
.result-item:hover { border-color: var(--primary); box-shadow: 0 2px 10px rgba(22,93,255,.1); }
.result-item .who { min-width: 0; }
.result-item .who .nm { font-size: 16px; font-weight: 600; }
.result-item .who .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-item .go { color: var(--primary); font-size: 13px; flex-shrink: 0; }
.empty-tip { text-align: center; color: var(--muted); font-size: 13.5px; padding: 22px 0 6px; }
.empty-tip .big { font-size: 34px; margin-bottom: 8px; }

.person-card { border: 1px solid var(--primary); background: var(--primary-light); border-radius: 14px; padding: 16px; }
.person-card .nm { font-size: 20px; font-weight: 700; }
.person-card .line { font-size: 13.5px; color: var(--sub); margin-top: 4px; }
.person-card.done { border-color: var(--success); background: var(--success-bg); }

.sig-box { border: 1.5px dashed #C9CDD4; border-radius: 12px; background: #FCFDFF; position: relative; overflow: hidden; }
.sig-box canvas { display: block; width: 100%; touch-action: none; cursor: crosshair; }
.sig-box .ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #C9CDD4; font-size: 15px; pointer-events: none; letter-spacing: 2px;
}
.sig-tools { display: flex; gap: 10px; margin-top: 12px; }
.sig-tools .btn { flex: 1; height: 40px; font-size: 14px; color: var(--sub); }

.step-done { text-align: center; padding: 18px 6px 6px; }
.done-circle {
  width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--success); display: flex; align-items: center; justify-content: center;
  animation: pop .45s cubic-bezier(.2,1.4,.5,1);
  box-shadow: 0 8px 24px rgba(0,180,42,.28);
}
@keyframes pop { 0% { transform: scale(.3); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.done-circle svg { width: 44px; height: 44px; }
.done-circle svg path { stroke-dasharray: 48; stroke-dashoffset: 48; animation: draw .5s .25s forwards ease-out; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.step-done h2 { font-size: 22px; margin: 0 0 6px; }
.step-done .who { font-size: 16px; color: var(--sub); }
.done-info { background: #F7F8FA; border-radius: 12px; padding: 14px; margin: 18px 0; text-align: left; font-size: 14px; }
.done-info .row { display: flex; justify-content: space-between; padding: 4px 0; }
.done-info .row .k { color: var(--muted); }
.done-info .row .v { font-weight: 500; }
.closed-banner { background: var(--warn-bg); border: 1px solid #FFE4BA; color: #9C5A00; border-radius: 12px; padding: 12px 16px; font-size: 14px; margin-bottom: 14px; }
.shake { animation: shake .4s; }
@keyframes shake { 0%,100%{transform:none} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)} }

/* 定位状态条（手机签到页） */
.loc-hint { background: var(--primary-light); border: 1px solid #C9DDFF; color: #0E42D2; border-radius: 12px; padding: 11px 14px; font-size: 13.5px; margin-bottom: 14px; }
.loc-box { display: flex; align-items: center; gap: 8px; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; margin-bottom: 12px; line-height: 1.5; }
.loc-box.loading { background: #F2F3F5; color: var(--sub); }
.loc-box.ok { background: var(--success-bg); color: #0E8A2F; }
.loc-box.warn { background: var(--warn-bg); color: #9C5A00; }
.loc-box.err { background: var(--danger-bg); color: var(--danger); }
.loc-box .retry { margin-left: auto; border: none; background: #fff; border-radius: 6px; padding: 5px 10px; font-size: 12.5px; color: inherit; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.1); flex-shrink: 0; }
.loc-box .spin-sm { width: 14px; height: 14px; border: 2px solid rgba(78,89,105,.3); border-top-color: var(--sub); border-radius: 50%; animation: rot .7s linear infinite; flex-shrink: 0; }

/* =========================================================
   管理后台
   ========================================================= */
.page-admin { background: var(--bg); }
.admin-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 250px; background: #171A21; color: #C9CDD4; flex-shrink: 0;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.sidebar .brand { padding: 20px 18px 14px; display: flex; align-items: center; gap: 10px; color: #fff; }
.sidebar .brand .logo { width: 34px; height: 34px; background: var(--primary); border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.sidebar .brand .logo svg { width: 19px; height: 19px; }
.sidebar .brand .tt { font-size: 16px; font-weight: 600; line-height: 1.2; }
.sidebar .brand .tt small { display: block; font-size: 11px; color: #86909C; font-weight: 400; }
.sidebar .sec { padding: 12px 18px 6px; font-size: 11.5px; color: #6B7280; letter-spacing: 1px; display: flex; justify-content: space-between; align-items: center; }
.ev-list { flex: 1; overflow-y: auto; padding: 0 10px 10px; }
.ev-item { padding: 11px 12px; border-radius: 10px; cursor: pointer; margin-bottom: 4px; transition: background .15s; }
.ev-item:hover { background: rgba(255,255,255,.06); }
.ev-item.active { background: var(--primary); color: #fff; }
.ev-item .nm { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.ev-item .sub { font-size: 11.5px; color: #86909C; margin-top: 3px; }
.ev-item.active .sub { color: rgba(255,255,255,.75); }
.ev-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--warn); flex-shrink: 0; }
.ev-item .dot.on { background: #23C343; }
.sidebar .bottom { padding: 12px; border-top: 1px solid rgba(255,255,255,.08); display: flex; gap: 8px; }
.sidebar .bottom .btn { flex: 1; background: rgba(255,255,255,.08); color: #C9CDD4; border: none; height: 36px; font-size: 13px; }
.sidebar .bottom .btn:hover { background: rgba(255,255,255,.14); }

.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  background: #fff; border-bottom: 1px solid var(--line); padding: 0 24px; height: 62px;
  display: flex; align-items: center; gap: 14px; position: sticky; top: 0; z-index: 50;
}
.topbar h1 { font-size: 17px; margin: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .spacer { flex: 1; }
.tabs { display: flex; gap: 4px; background: var(--bg); border-radius: 10px; padding: 4px; }
.tab { padding: 7px 18px; border-radius: 8px; font-size: 14px; cursor: pointer; color: var(--sub); border: none; background: transparent; font-weight: 500; transition: all .15s; }
.tab.active { background: #fff; color: var(--primary); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.content { padding: 22px 24px 60px; max-width: 1200px; width: 100%; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.stat-card { background: #fff; border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.stat-card .k { font-size: 13px; color: var(--muted); }
.stat-card .v { font-size: 30px; font-weight: 700; margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat-card .v small { font-size: 14px; font-weight: 400; color: var(--muted); margin-left: 2px; }
.stat-card.primary .v { color: var(--primary); }
.stat-card.green .v { color: var(--success); }
.stat-card.orange .v { color: var(--warn); }

.panel2 { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 16px; }
.panel2 h3 { margin: 0 0 14px; font-size: 15px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; }
.chart-wrap { position: relative; height: 180px; }
.chart-wrap canvas { width: 100%; height: 100%; display: block; }
.recent-list { display: flex; flex-direction: column; }
.recent-item { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid #F5F6F7; }
.recent-item:last-child { border-bottom: none; }
.recent-item .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; flex-shrink: 0; }
.recent-item .info { flex: 1; min-width: 0; }
.recent-item .info .n { font-size: 14.5px; font-weight: 500; }
.recent-item .info .o { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-item .t { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sig-thumb { width: 74px; height: 30px; object-fit: contain; background: #F7F8FA; border-radius: 6px; cursor: pointer; border: 1px solid var(--line); }

.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar .input { width: 240px; height: 40px; }
.toolbar .spacer { flex: 1; }
.seg { display: flex; background: var(--bg); border-radius: 9px; padding: 3px; }
.seg button { border: none; background: transparent; padding: 6px 16px; border-radius: 7px; font-size: 13.5px; cursor: pointer; color: var(--sub); }
.seg button.active { background: #fff; color: var(--primary); font-weight: 500; box-shadow: 0 1px 3px rgba(0,0,0,.08); }

.table-wrap { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th {
  text-align: left; padding: 12px 14px; background: #FAFBFC; color: var(--sub);
  font-weight: 500; font-size: 13px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.list td { padding: 11px 14px; border-bottom: 1px solid #F5F6F7; vertical-align: middle; }
table.list tr:last-child td { border-bottom: none; }
table.list tr:hover td { background: #FAFBFC; }
table.list .ops { display: flex; gap: 6px; flex-wrap: wrap; }
.link-btn { border: none; background: none; color: var(--primary); font-size: 13px; cursor: pointer; padding: 2px 4px; border-radius: 4px; }
.link-btn:hover { background: var(--primary-light); }
.link-btn.danger { color: var(--danger); }
.link-btn.danger:hover { background: var(--danger-bg); }
.pager { display: flex; align-items: center; gap: 10px; justify-content: flex-end; padding: 12px 14px; font-size: 13.5px; color: var(--sub); }

.modal-mask { position: fixed; inset: 0; background: rgba(15,18,25,.45); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn .18s; }
@keyframes fadeIn { from { opacity: 0; } }
.modal { background: #fff; border-radius: 16px; width: 100%; max-width: 640px; max-height: 88vh; display: flex; flex-direction: column; animation: modalIn .2s ease; }
@keyframes modalIn { from { transform: translateY(14px) scale(.98); opacity: 0; } }
.modal.lg { max-width: 780px; }
.modal-head { padding: 18px 22px 14px; font-size: 17px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #F2F3F5; }
.modal-head .x { cursor: pointer; color: var(--muted); font-size: 20px; line-height: 1; padding: 4px 8px; border-radius: 6px; border: none; background: none; }
.modal-head .x:hover { background: var(--bg); }
.modal-body { padding: 18px 22px; overflow-y: auto; }
.modal-foot { padding: 14px 22px 18px; display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid #F2F3F5; }

.drop-zone {
  border: 2px dashed #C9CDD4; border-radius: 12px; padding: 34px 20px; text-align: center;
  color: var(--muted); cursor: pointer; transition: all .15s; background: #FCFDFF;
}
.drop-zone:hover, .drop-zone.drag { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.drop-zone .big { font-size: 30px; margin-bottom: 8px; }
.preview-table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 10px; }
.preview-table th, .preview-table td { border: 1px solid var(--line); padding: 5px 8px; text-align: left; white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.preview-table th { background: #FAFBFC; color: var(--sub); }
.map-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 16px; margin: 12px 0; }
.map-grid .m-item { display: flex; align-items: center; gap: 8px; }
.map-grid .m-item .lab { font-size: 13px; color: var(--sub); width: 72px; flex-shrink: 0; }
.map-grid .select { height: 38px; font-size: 13.5px; }

.qr-layout { display: flex; gap: 24px; flex-wrap: wrap; }
.qr-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; text-align: center; }
.qr-card .qr-holder { width: 240px; height: 240px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; background: #fff; }
.qr-card .qr-holder img, .qr-card .qr-holder canvas { width: 100% !important; height: 100% !important; }
.qr-link-box { display: flex; gap: 8px; margin-top: 8px; }
.qr-link-box .input { height: 40px; font-size: 13px; flex: 1; background: #F7F8FA; }
.qr-tips { font-size: 13px; color: var(--muted); line-height: 1.9; }
.qr-tips li { margin-bottom: 2px; }
.ops-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.op-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; display: flex; flex-direction: column; }
.op-card h4 { margin: 0 0 6px; font-size: 15.5px; }
.op-card p { color: var(--muted); font-size: 13px; margin: 0 0 16px; flex: 1; line-height: 1.7; }
.danger-zone { border: 1px solid #FFCDC2; background: #FFF9F8; border-radius: var(--radius); padding: 20px; }
.danger-zone h4 { color: var(--danger); margin: 0 0 8px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #F5F6F7; }
.switch-row:last-child { border-bottom: none; }
.switch-row .tt { font-size: 14.5px; font-weight: 500; }
.switch-row .dd { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.switch { position: relative; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; cursor: pointer; z-index: 2; margin: 0; }
.switch .track { position: absolute; inset: 0; background: #C9CDD4; border-radius: 13px; transition: .2s; }
.switch .track::after { content: ""; position: absolute; width: 20px; height: 20px; background: #fff; border-radius: 50%; top: 3px; left: 3px; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + .track { background: var(--success); }
.switch input:checked + .track::after { left: 23px; }

.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(140deg, #EAF1FF 0%, #F5F7FB 60%, #EDF3FF 100%); padding: 20px; }
.login-card { width: 100%; max-width: 400px; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); padding: 38px 34px 30px; }
.login-card .logo-row { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.login-card .logo { width: 46px; height: 46px; background: var(--primary); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.login-card .logo svg { width: 26px; height: 26px; }
.login-card h1 { font-size: 20px; margin: 0; }
.login-card .st { font-size: 12.5px; color: var(--muted); }
.login-error { background: var(--danger-bg); color: var(--danger); font-size: 13.5px; border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; }

/* =========================================================
   大屏签到墙（深色，独立于后台主题）
   ========================================================= */
.page-wall { background: #0A0E1A; color: #E8ECF4; min-height: 100vh; overflow: hidden; }
.wall-wrap { display: flex; flex-direction: column; height: 100vh; padding: 3vh 3vw 2vh; gap: 2.2vh; }
.wall-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 3vw; }
.wall-head .t .nm { font-size: clamp(24px, 3vw, 46px); font-weight: 700; letter-spacing: 1px; background: linear-gradient(90deg, #7EB3FF, #C8DCFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wall-head .t .meta { color: #6B7A99; font-size: clamp(12px, 1.1vw, 17px); margin-top: .6vh; }
.wall-head .stats { display: flex; gap: 2.6vw; align-items: baseline; }
.wall-head .stats .st { text-align: right; }
.wall-head .stats .st .n { font-size: clamp(30px, 4vw, 64px); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.wall-head .stats .st.checked .n { color: #3DDC84; }
.wall-head .stats .st .k { font-size: clamp(11px, 1vw, 15px); color: #6B7A99; margin-top: .8vh; }
.wall-grid { flex: 1; overflow: hidden; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(0, 1fr); gap: 1.4vh 1.2vw; align-content: start; }
.wall-card {
  background: linear-gradient(160deg, rgba(35,48,79,.75), rgba(22,30,51,.9));
  border: 1px solid rgba(110,150,255,.16); border-radius: 14px; padding: 1.5vh 1.2vw;
  display: flex; flex-direction: column; justify-content: space-between; min-height: 0;
  animation: wallIn .5s ease both;
}
@keyframes wallIn { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.wall-card .sig { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; overflow: hidden; padding: .4vh 0; }
.wall-card .sig img { max-width: 100%; max-height: 100%; filter: invert(1) hue-rotate(180deg) brightness(1.05); mix-blend-mode: screen; opacity: .95; }
.wall-card .nm { font-size: clamp(15px, 1.5vw, 24px); font-weight: 600; display: flex; align-items: baseline; gap: .6vw; }
.wall-card .nm .org { font-size: clamp(10px, .82vw, 14px); color: #7E8DB0; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wall-card .tm { color: #5C6B8C; font-size: clamp(10px, .8vw, 13px); margin-top: .5vh; font-variant-numeric: tabular-nums; display: flex; justify-content: space-between; }
.wall-foot { display: flex; align-items: center; justify-content: space-between; gap: 2vw; }
.wall-foot .tip { font-size: clamp(13px, 1.2vw, 19px); color: #8FA2C9; display: flex; align-items: center; gap: 10px; }
.wall-foot .tip .blink { width: 9px; height: 9px; border-radius: 50%; background: #3DDC84; animation: blink 1.6s infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.wall-foot .qr { background: #fff; border-radius: 10px; padding: 8px; }
.wall-foot .qr .holder { width: clamp(64px, 7vw, 110px); height: clamp(64px, 7vw, 110px); }
.wall-foot .qr .holder img, .wall-foot .qr .holder canvas { width: 100% !important; height: 100% !important; }
.wall-empty { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; color: #3C4A6B; font-size: clamp(16px, 1.6vw, 26px); }

/* ---------- 首页 ---------- */
.page-home { background: linear-gradient(160deg, #EAF1FF, #F6F8FC 55%, #EFF4FF); min-height: 100vh; }
.home-wrap { max-width: 680px; margin: 0 auto; padding: 12vh 24px 40px; text-align: center; }
.home-wrap .logo-big { width: 76px; height: 76px; background: var(--primary); border-radius: 20px; margin: 0 auto 22px; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 30px rgba(22,93,255,.3); }
.home-wrap .logo-big svg { width: 42px; height: 42px; }
.home-wrap h1 { font-size: 30px; margin: 0 0 10px; letter-spacing: 1px; }
.home-wrap .slogan { color: var(--sub); font-size: 15.5px; margin-bottom: 34px; line-height: 1.9; }
.home-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.home-feats { margin-top: 46px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; text-align: left; }
.home-feats .f { background: #fff; border-radius: 14px; padding: 16px; box-shadow: var(--shadow); }
.home-feats .f .i { font-size: 20px; }
.home-feats .f .t { font-weight: 600; font-size: 14.5px; margin: 8px 0 3px; }
.home-feats .f .d { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.home-foot { margin-top: 44px; color: var(--muted); font-size: 12.5px; }

@media (max-width: 900px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .sidebar { display: none; }
  .admin-mobile-bar { display: flex; }
  .content { padding: 16px 14px 60px; }
  .topbar { padding: 0 14px; }
  .wall-grid { grid-template-columns: repeat(2, 1fr); }
  .home-feats { grid-template-columns: 1fr; }
}

/* =========================================================
   签到通 v2.0 视觉升级
   ========================================================= */

/* ---- 按钮：主色渐变与投影 ---- */
.btn-primary {
  background: linear-gradient(135deg, #2A6BFF 0%, #165DFF 55%, #0F4FE6 100%);
  border-color: #165DFF;
  box-shadow: 0 4px 14px rgba(22, 93, 255, .22);
}
.btn-primary:hover { box-shadow: 0 7px 20px rgba(22, 93, 255, .32); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

/* ---- 手机签到页 ---- */
.ev-banner { background: linear-gradient(140deg, #0E42D2 0%, #165DFF 48%, #3D8BFF 100%); padding: 28px 22px 62px; }
.ev-banner h1 { font-size: 23px; letter-spacing: .4px; text-shadow: 0 2px 8px rgba(0, 30, 100, .18); }
.ev-banner .stat-pill { backdrop-filter: blur(6px); box-shadow: 0 4px 14px rgba(0, 20, 80, .18); }

/* 步骤条 */
.steps-wrap { display: flex; justify-content: center; margin: -46px auto 18px; position: relative; z-index: 3; }
.steps-bar { display: inline-flex; align-items: center; background: #fff; border-radius: 999px; padding: 8px 20px; box-shadow: 0 8px 24px rgba(14, 66, 210, .14); border: 1px solid #E8F0FF; }
.step-item { display: flex; align-items: center; gap: 6px; }
.step-item .dot { width: 22px; height: 22px; border-radius: 50%; background: #EDF0F5; color: #86909C; font-size: 12px; display: flex; align-items: center; justify-content: center; font-weight: 700; transition: all .25s; }
.step-item .lab { font-size: 12.5px; color: #86909C; transition: color .25s; }
.step-item.active .dot { background: linear-gradient(135deg, #2A6BFF, #165DFF); color: #fff; box-shadow: 0 2px 10px rgba(22, 93, 255, .4); }
.step-item.active .lab { color: var(--primary); font-weight: 600; }
.step-item.done .dot { background: var(--success); color: #fff; }
.step-item.done .lab { color: var(--success); }
.step-line { width: 24px; height: 2px; background: #EDF0F5; border-radius: 1px; margin: 0 5px; }
.step-line.done { background: var(--success); }

/* 结果列表：头像 + 悬浮 */
.result-item { padding: 14px 15px; gap: 12px; }
.result-item:hover { transform: translateY(-1px); }
.result-item .av {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #E8F0FF, #D3E3FF); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px;
}
.result-item .who { flex: 1; min-width: 0; }

/* 输入框更醒目 */
.page-checkin .field label { font-size: 13.5px; color: #4E5969; }
.page-checkin .field .input { height: 52px; font-size: 16px; border-radius: 12px; }

/* 签名区淡点阵背景 */
.sig-box { background-color: #FCFDFF; background-image: radial-gradient(#E3E8F0 1px, transparent 1px); background-size: 16px 16px; }
.sig-box canvas { position: relative; z-index: 1; }

/* 完成页光环 */
.done-circle { position: relative; }
.done-circle::after { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid rgba(0, 180, 42, .35); animation: pulseRing 1.8s ease-out infinite; }
@keyframes pulseRing { 0% { transform: scale(.86); opacity: 1; } 100% { transform: scale(1.28); opacity: 0; } }

.chk-foot { text-align: center; color: #A9B4C4; font-size: 12px; margin-top: 24px; letter-spacing: .5px; }

/* ---- 管理后台 ---- */
.sidebar { background: linear-gradient(180deg, #171A21 0%, #13161C 100%); }
.side-ver { text-align: center; font-size: 11px; color: #5C6B8C; padding: 4px 0 8px; letter-spacing: 1px; }

.stat-card { border: 1px solid #EEF0F3; position: relative; overflow: hidden; transition: box-shadow .2s, transform .15s; }
.stat-card:hover { box-shadow: 0 8px 24px rgba(29, 33, 41, .09); transform: translateY(-1px); }
.stat-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #E5E6EB; }
.stat-card.primary::before { background: linear-gradient(180deg, #3D8BFF, #165DFF); }
.stat-card.green::before { background: linear-gradient(180deg, #3DDC84, #00B42A); }
.stat-card.orange::before { background: linear-gradient(180deg, #FFB65C, #FF7D00); }
.stat-card .k { display: flex; align-items: center; gap: 7px; }
.stat-card .ico { width: 24px; height: 24px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; background: #F2F3F5; }

.table-wrap { max-height: calc(100vh - 250px); overflow: auto; }
table.list th { position: sticky; top: 0; z-index: 2; box-shadow: 0 1px 0 var(--line); }
table.list tr:nth-child(even) td { background: #FCFCFD; }
table.list tr:hover td { background: #F7F9FF; }
.pager { position: sticky; bottom: 0; background: #fff; border-top: 1px solid #F2F3F5; }

.tabs { box-shadow: inset 0 1px 3px rgba(0, 0, 0, .04); }

/* 快速开始引导卡 */
.guide { background: linear-gradient(160deg, #F4F8FF 0%, #FFFFFF 60%); border: 1px solid #E1EBFF; border-radius: 16px; padding: 26px 26px 24px; margin-bottom: 16px; }
.guide h3 { margin: 0 0 6px; font-size: 17px; }
.guide .sub { color: #4E5969; font-size: 13.5px; margin-bottom: 18px; line-height: 1.8; }
.guide-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gstep { background: #fff; border: 1px solid #E5E6EB; border-radius: 13px; padding: 16px; display: flex; flex-direction: column; gap: 8px; transition: all .18s; }
.gstep:hover { border-color: var(--primary); box-shadow: 0 8px 22px rgba(22, 93, 255, .12); transform: translateY(-2px); }
.gstep .n { width: 26px; height: 26px; border-radius: 50%; background: var(--primary-light); color: var(--primary); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.gstep .t { font-weight: 600; font-size: 14.5px; }
.gstep .d { color: #86909C; font-size: 12.5px; line-height: 1.7; flex: 1; }
@media (max-width: 900px) { .guide-steps { grid-template-columns: 1fr; } }
