/* ============================================================
   农村公益电影放映管理系统 —— 样式
   ============================================================ */
:root {
  --brand: #7c3aed;
  --brand-d: #5b21b6;
  --brand-l: #a78bfa;
  --blue: #2563eb;
  --ink: #0f172a;
  --ink-2: #334155;
  --dim: #64748b;
  --dim-2: #94a3b8;
  --line: #e5e8f0;
  --line-2: #eef1f7;
  --bg: #f5f6fa;
  --card: #ffffff;
  --ok: #059669;
  --ok-bg: #ecfdf5;
  --warn: #b45309;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --r: 16px;
  --r-sm: 10px;
  --sh: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .12);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

html, body {
  margin: 0; padding: 0; overflow-x: clip;
  font-family: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
input, select, textarea, button { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.dim { color: var(--dim-2); }
.nowrap { white-space: nowrap; }
.hl { color: var(--brand); }
.star { color: var(--danger); }

/* ---------------------------------------------- 通用按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: .16s ease; text-decoration: none;
}
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn.primary { background: linear-gradient(135deg, var(--brand), var(--blue)); color: #fff; box-shadow: 0 6px 16px -8px rgba(124, 58, 237, .8); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn.ghost:hover { border-color: var(--brand-l); color: var(--brand); }
.btn.danger { background: transparent; border-color: #fecaca; color: var(--danger); }
.btn.danger:hover { background: var(--danger-bg); }
.btn:active { transform: scale(.97); }

/* ============================================================
   登录页
   ============================================================ */
.login-body {
  min-height: 100vh; display: grid; place-items: center;
  background: linear-gradient(135deg, #4c1d95 0%, #5b21b6 34%, #2563eb 100%);
  padding: 24px; overflow: hidden; position: relative;
}
.bg-orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.bg-orbs span {
  position: absolute; border-radius: 50%; opacity: .8;
  animation: float 16s ease-in-out infinite; will-change: transform;
}
.bg-orbs span:nth-child(1) {
  width: 640px; height: 640px; top: -220px; left: -180px;
  background: radial-gradient(circle closest-side, rgba(168, 85, 247, .5), rgba(168, 85, 247, 0) 72%);
}
.bg-orbs span:nth-child(2) {
  width: 560px; height: 560px; bottom: -200px; right: -160px; animation-delay: -5s;
  background: radial-gradient(circle closest-side, rgba(59, 130, 246, .5), rgba(59, 130, 246, 0) 72%);
}
.bg-orbs span:nth-child(3) {
  width: 480px; height: 480px; top: 38%; left: 52%; animation-delay: -9s; opacity: .5;
  background: radial-gradient(circle closest-side, rgba(99, 102, 241, .4), rgba(99, 102, 241, 0) 72%);
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(26px, -34px) scale(1.08); }
}

.login-wrap { position: relative; z-index: 2; width: 100%; max-width: 400px; }
.login-card {
  background: rgba(38, 16, 84, .35);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 22px;
  padding: 34px 28px 24px;
  box-shadow: 0 30px 70px -26px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .3);
  color: #fff;
  animation: rise .5s cubic-bezier(.2, .8, .3, 1);
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.login-logo {
  width: 62px; height: 62px; margin: 0 auto 14px;
  display: grid; place-items: center; border-radius: 18px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
}
.login-card h1 { margin: 0; font-size: 21px; text-align: center; letter-spacing: .5px; font-weight: 700; }
.login-sub { margin: 7px 0 22px; text-align: center; font-size: 12.5px; color: rgba(255, 255, 255, .72); letter-spacing: .4px; }

.login-alert {
  display: flex; align-items: center; gap: 7px;
  background: rgba(255, 82, 108, .2); border: 1px solid rgba(255, 130, 150, .4);
  color: #ffd9e0; border-radius: 10px; padding: 9px 12px;
  font-size: 13px; margin-bottom: 16px;
  animation: shake .42s;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}

.login-card .field {
  display: flex; align-items: center; height: 50px; margin-bottom: 14px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 12px; overflow: hidden;
  transition: .18s;
}
.login-card .field:focus-within {
  background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .55);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .1);
}
.f-icon { width: 46px; display: grid; place-items: center; color: rgba(255, 255, 255, .82); flex: 0 0 auto; }
.login-card .field input,
.login-card .field input[type="text"],
.login-card .field input[type="password"] {
  flex: 1; min-width: 0; height: 100%; border: 0; background: transparent;
  color: #fff; font-size: 15px; outline: none; padding-right: 8px;
  box-shadow: none;
}
.login-card .field input::placeholder { color: rgba(255, 255, 255, .62); }
.login-card .field input:-webkit-autofill { -webkit-text-fill-color: #fff; transition: background-color 9s; }
.pwd-eye {
  width: 44px; height: 100%; border: 0; background: transparent;
  color: rgba(255, 255, 255, .6); display: grid; place-items: center;
}
.pwd-eye:hover { color: #fff; }

.btn-login {
  width: 100%; height: 50px; margin-top: 6px; border: 0; border-radius: 12px;
  background: #fff; color: var(--brand-d);
  font-size: 16px; font-weight: 700; letter-spacing: 4px;
  box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .6);
  transition: .18s;
}
.btn-login:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .65); }
.btn-login:active { transform: scale(.985); }
.login-foot { margin-top: 20px; text-align: center; font-size: 11.5px; color: rgba(255, 255, 255, .5); }

/* ============================================================
   员工端
   ============================================================ */
.emp-body {
  min-height: 100vh; padding-bottom: calc(74px + var(--safe-b));
  background: var(--bg);
}
.emp-head {
  background: linear-gradient(135deg, #4c1d95, #6d28d9 48%, #2563eb);
  color: #fff; padding: 14px 16px 0;
  position: sticky; top: 0; z-index: 30;
  box-shadow: 0 6px 20px -12px rgba(76, 29, 149, .8);
}
.emp-head-in { display: flex; align-items: center; justify-content: space-between; max-width: 720px; margin: 0 auto; padding-bottom: 14px; }
.emp-brand { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; letter-spacing: .3px; }
.emp-logout {
  font-size: 12.5px; padding: 6px 13px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .26);
  color: #fff;
}
.emp-logout:hover { background: rgba(255, 255, 255, .26); }
.emp-main { max-width: 720px; margin: 0 auto; padding: 16px 14px 28px; min-width: 0; }

.emp-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px); border-top: 1px solid var(--line);
  padding-bottom: var(--safe-b);
}
.emp-tabbar .tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 9px 0 8px; font-size: 11.5px; color: var(--dim-2);
  transition: .15s;
}
.emp-tabbar .tab.on { color: var(--brand); font-weight: 600; }
.emp-tabbar .tab.on svg { transform: translateY(-1px); }

/* 打卡头部 */
.punch-hero {
  background: linear-gradient(135deg, #4c1d95, #6d28d9 48%, #2563eb);
  color: #fff; border-radius: 18px; padding: 16px 18px 15px;
  margin-bottom: 14px; box-shadow: 0 16px 34px -20px rgba(76, 29, 149, .95);
  position: relative; overflow: hidden;
}
.punch-hero::after {
  content: ""; position: absolute; width: 190px; height: 190px; border-radius: 50%;
  background: rgba(255, 255, 255, .1); top: -100px; right: -50px;
}
.hero-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; position: relative; z-index: 1; }
.hero-hi { font-size: 17px; font-weight: 700; letter-spacing: .3px; }
.hero-date { font-size: 12.5px; color: rgba(255, 255, 255, .72); margin-top: 3px; }
.hero-gps {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
  font-size: 12px; padding: 6px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .22);
  color: #fff; max-width: 200px;
}
.hero-gps span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-gps .dot { width: 7px; height: 7px; border-radius: 50%; background: #fbbf24; flex: 0 0 auto; animation: blink 1.2s infinite; }
.hero-gps[data-state="ok"] .dot { background: #34d399; animation: none; }
.hero-gps[data-state="fail"] .dot { background: #fb7185; animation: none; }
@keyframes blink { 50% { opacity: .25; } }

.today-strip {
  margin-top: 13px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .18);
  display: flex; gap: 14px; align-items: baseline; font-size: 12.5px;
  color: rgba(255, 255, 255, .8); position: relative; z-index: 1;
}
.today-strip b { color: #fff; font-size: 13.5px; }

/* 卡片 */
.card {
  min-width: 0; background: var(--card); border-radius: var(--r); padding: 16px;
  box-shadow: var(--sh); border: 1px solid var(--line-2);
  margin-bottom: 14px;
}
.card-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; gap: 10px; }
.card-hd h3 { margin: 0; font-size: 14.5px; font-weight: 700; letter-spacing: .2px; }
.card-hd h3 b { font-weight: 700; }
.req-tip { font-size: 11.5px; color: var(--dim-2); }
.badge-soft {
  font-size: 11.5px; color: var(--brand); background: #f3f0ff;
  border: 1px solid #e9e3ff; padding: 2px 9px; border-radius: 999px; white-space: nowrap;
}

.field { display: block; margin-bottom: 13px; }
.field:last-child { margin-bottom: 0; }
.lbl { display: block; font-size: 12.5px; color: var(--ink-2); font-weight: 600; margin-bottom: 7px; }
.lbl b { color: var(--danger); font-weight: 700; }
.field input[type=text], .field input[type=tel], .field input[type=password],
.field input[type=number], .field input[type=date], .field input[type=search],
.field input[type=datetime-local], .field select, .field textarea {
  width: 100%; height: 44px; padding: 0 13px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line); background: #fbfcfe; outline: none;
  transition: .16s; font-size: 15px;
}
.field textarea { height: auto; padding: 10px 13px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand-l); background: #fff; box-shadow: 0 0 0 3px rgba(124, 58, 237, .1);
}
.field input[readonly] { background: #f1f5f9; color: var(--dim); }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2394a3b8' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
  padding-right: 34px;
}
.hint { display: block; font-size: 11.5px; color: var(--dim-2); margin-top: 5px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 460px) { .grid2 { grid-template-columns: minmax(0, 1fr); gap: 0; } }

.addr-preview {
  display: flex; align-items: flex-start; gap: 6px;
  background: #f3f0ff; border: 1px solid #e9e3ff; color: var(--brand-d);
  border-radius: 10px; padding: 9px 11px; font-size: 12.5px; margin: -3px 0 13px;
  line-height: 1.45;
}
.addr-preview[hidden] { display: none; }

/* 打卡距离实时提示 */
.dist-check {
  display: flex; align-items: center; gap: 7px;
  border-radius: 10px; padding: 9px 11px; font-size: 12.5px; margin: -3px 0 13px;
  line-height: 1.45; background: #f0f9ff; border: 1px solid #bae6fd; color: #0369a1;
  font-weight: 600;
}
.dist-check[hidden] { display: none; }
.dist-check .dc-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.dist-check[data-state="ok"] { background: #ecfdf5; border-color: #bbf7d0; color: #15803d; }
.dist-check[data-state="bad"] { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.dist-check[data-state="idle"] { background: #f8fafc; border-color: #e2e8f0; color: #64748b; font-weight: 500; }

/* 人数步进器 */
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button {
  height: 40px; min-width: 46px; border-radius: 9px; border: 1.5px solid var(--line);
  background: #fbfcfe; color: var(--ink-2); font-weight: 700; font-size: 13px;
  transition: .14s;
}
.stepper button:hover { border-color: var(--brand-l); color: var(--brand); background: #fff; }
.stepper button:active { transform: scale(.94); }
.stepper input {
  flex: 1; min-width: 0; height: 44px; text-align: center;
  border: 1.5px solid var(--line); border-radius: 9px; background: #fbfcfe;
  font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--ink); outline: none;
}
.stepper input:focus { border-color: var(--brand-l); background: #fff; box-shadow: 0 0 0 3px rgba(124, 58, 237, .1); }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.quick-num { display: flex; gap: 7px; margin-top: 9px; flex-wrap: wrap; }
.quick-num button {
  padding: 5px 13px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--dim); font-size: 12.5px; transition: .14s;
}
.quick-num button:hover { border-color: var(--brand-l); color: var(--brand); background: #faf8ff; }

/* 上传 */
.uploader { position: relative; }
.uploader input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2; }
.up-inner {
  border: 1.5px dashed #d7dcea; border-radius: 12px; background: #fbfcfe;
  padding: 22px 10px; display: flex; flex-direction: column; align-items: center; gap: 7px;
  color: var(--dim-2); font-size: 13px; transition: .16s;
}
.uploader:hover .up-inner { border-color: var(--brand-l); background: #faf8ff; color: var(--brand); }
.previews { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 11px; }
.prev-item { position: relative; width: 78px; height: 78px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #f1f5f9; }
.prev-item img { width: 100%; height: 100%; object-fit: cover; }
.prev-item .x {
  position: absolute; top: 0; right: 0; width: 22px; height: 22px;
  border: 0; background: rgba(15, 23, 42, .68); color: #fff; font-size: 14px;
  line-height: 22px; text-align: center; padding: 0; border-radius: 0 0 0 8px;
}
.prev-item .x:hover { background: var(--danger); }
.prev-item .pv-badge {
  position: absolute; bottom: 0; left: 0; right: 0; font-size: 10px;
  background: rgba(15, 23, 42, .55); color: #fff; text-align: center; padding: 1px 0;
}

/* 提交 */
.submit-zone { margin-top: 6px; }
.btn-punch {
  position: relative; width: 100%; height: 54px; border: 0; border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--blue));
  color: #fff; font-size: 16.5px; font-weight: 700; letter-spacing: 2px;
  box-shadow: 0 14px 28px -14px rgba(124, 58, 237, .95);
  transition: .18s; display: flex; align-items: center; justify-content: center; gap: 9px;
}
.btn-punch:active { transform: scale(.985); }
.btn-punch[disabled] { opacity: .78; }
.btn-punch .spin { display: none; width: 17px; height: 17px; border: 2.4px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: sp .7s linear infinite; }
.btn-punch.loading .spin { display: block; }
@keyframes sp { to { transform: rotate(360deg); } }
.submit-note { text-align: center; font-size: 11.5px; color: var(--dim-2); margin: 9px 0 0; }

/* 弹窗 */
.modal {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: rgba(15, 23, 42, .5); backdrop-filter: blur(3px); padding: 24px;
  animation: fade .2s;
}
.modal[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  background: #fff; border-radius: 20px; padding: 26px 22px 20px; width: 100%; max-width: 330px;
  text-align: center; animation: pop .28s cubic-bezier(.2, 1.2, .4, 1);
}
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ok-check {
  width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--ok-bg); color: var(--ok); display: grid; place-items: center;
}
.modal-card h3 { margin: 0 0 6px; font-size: 18px; }
.modal-card p { margin: 0 0 20px; color: var(--dim); font-size: 13.5px; }
.modal-btns { display: flex; gap: 10px; }
.modal-btns .btn { flex: 1; height: 44px; }

/* 页面标题 / 分段 */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 14px; flex-wrap: wrap; min-width: 0; }
.page-head h2 { margin: 0; font-size: 18px; font-weight: 700; }
.seg-group { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 3px; gap: 2px; box-shadow: var(--sh); }
.seg { padding: 6px 13px; border-radius: 8px; font-size: 12.5px; color: var(--dim); font-weight: 500; transition: .15s; }
.seg:hover { color: var(--brand); }
.seg.on { background: linear-gradient(135deg, var(--brand), var(--blue)); color: #fff; font-weight: 600; box-shadow: 0 4px 10px -6px rgba(124, 58, 237, .9); }

/* 统计卡 */
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat-row.wide { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-card { background: #fff; border-radius: 13px; padding: 13px 12px; box-shadow: var(--sh); border: 1px solid var(--line-2); }
.stat-card .num { font-size: 22px; font-weight: 700; letter-spacing: -.5px; font-variant-numeric: tabular-nums; color: var(--ink); }
.stat-card .lab { font-size: 11.5px; color: var(--dim); margin-top: 2px; }
@media (max-width: 560px) { .stat-row.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 日历 */
.cal-head { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; margin-bottom: 6px; }
.cal-head span { text-align: center; font-size: 11px; color: var(--dim-2); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.cal-cell {
  position: relative; aspect-ratio: 1 / .92; min-width: 0; border-radius: 9px;
  display: grid; place-items: center; font-size: 12.5px; color: var(--dim);
  background: #f8fafc; border: 1px solid transparent;
}
.cal-cell.empty { background: transparent; }
.cal-cell.has { background: #f3f0ff; color: var(--brand-d); border-color: #e6ddff; font-weight: 600; }
.cal-cell.hot { background: linear-gradient(135deg, #7c3aed, #2563eb); color: #fff; border-color: transparent; }
.cal-cell.today { box-shadow: inset 0 0 0 2px var(--brand); }
.cal-cell i { position: absolute; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; }
.cal-cell.hot i { background: #fff; opacity: .9; }

/* 记录列表 */
.rec-list { display: flex; flex-direction: column; gap: 9px; }
.rec-item {
  display: flex; min-width: 0; gap: 12px; background: #fff; border-radius: 13px; padding: 10px;
  box-shadow: var(--sh); border: 1px solid var(--line-2); transition: .16s;
}
.rec-item:hover { border-color: var(--brand-l); transform: translateY(-1px); }
.rec-thumb { width: 78px; height: 78px; border-radius: 10px; overflow: hidden; flex: 0 0 auto; background: #f1f5f9; display: grid; place-items: center; }
.rec-thumb img { width: 100%; height: 100%; object-fit: cover; }
.no-pic { font-size: 11px; color: var(--dim-2); }
.rec-main { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 2px 0; }
.rec-title { font-size: 14.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-sub { font-size: 12px; color: var(--dim-2); margin-top: 2px; }
.rec-meta { display: flex; align-items: center; gap: 8px; justify-content: space-between; margin-top: 5px; }
.tag { display: inline-block; font-size: 11.5px; color: var(--ink-2); background: #f1f5f9; padding: 2px 8px; border-radius: 6px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag-soft { display: inline-block; font-size: 11.5px; color: #0284c7; background: #f0f9ff; border: 1px solid #e0f2fe; padding: 2px 8px; border-radius: 6px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.coord-cell { max-width: 200px; }
.rec-people { font-size: 12.5px; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; flex: 0 0 auto; }

.empty { text-align: center; padding: 42px 16px; color: var(--dim-2); }
.empty p { margin: 12px 0 16px; font-size: 13.5px; }
.empty svg { margin: 0 auto; opacity: .5; }

/* KV 列表 */
.kv-list { display: flex; flex-direction: column; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--dim); flex: 0 0 auto; }
.kv b { font-weight: 600; text-align: right; word-break: break-all; }

/* 相册 */
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.gal-item { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #f1f5f9; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: .2s; }
.gal-item:hover img { transform: scale(1.05); }
.empty-tip { font-size: 12.5px; color: var(--dim-2); margin: 0; }

/* 提示条 */
.alert { border-radius: 10px; padding: 11px 14px; font-size: 13px; margin-bottom: 14px; }
.alert.err { background: var(--danger-bg); color: #b91c1c; border: 1px solid #fecaca; }
.alert.ok { background: var(--ok-bg); color: #047857; border: 1px solid #a7f3d0; }

.toast {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%) translateY(-14px);
  z-index: 200; padding: 10px 20px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  box-shadow: 0 12px 30px -10px rgba(15, 23, 42, .4); opacity: 0; transition: .3s;
  pointer-events: none; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok { background: #065f46; color: #fff; }
.toast.err { background: #b91c1c; color: #fff; }

/* ============================================================
   管理端
   ============================================================ */
.adm-body { min-height: 100vh; background: #f4f5f9; }
.adm-nav {
  background: linear-gradient(100deg, #1e1b4b, #312e81 60%, #1e3a8a);
  color: #fff; position: sticky; top: 0; z-index: 50;
  box-shadow: 0 8px 24px -16px rgba(30, 27, 75, .9);
}
.adm-nav-in {
  max-width: 1440px; margin: 0 auto; padding: 0 20px; height: 58px;
  display: flex; align-items: center; gap: 26px;
}
.adm-brand { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 700; letter-spacing: .4px; flex: 0 0 auto; }
.adm-links { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.adm-links::-webkit-scrollbar { display: none; }
.adm-link {
  display: flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 9px;
  font-size: 13.5px; color: rgba(255, 255, 255, .68); transition: .15s; white-space: nowrap;
}
.adm-link:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.adm-link.on { background: rgba(255, 255, 255, .16); color: #fff; font-weight: 600; }
.adm-user { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.adm-name { font-size: 13px; color: rgba(255, 255, 255, .78); }
.adm-out {
  font-size: 12.5px; padding: 5px 13px; border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .26); color: rgba(255, 255, 255, .9);
}
.adm-out:hover { background: rgba(255, 255, 255, .14); }

.adm-main { max-width: 1440px; margin: 0 auto; padding: 22px 20px 46px; }
@media (max-width: 700px) { .adm-main { padding: 16px 12px 40px; } .adm-nav-in { padding: 0 12px; gap: 12px; } .adm-brand span { display: none; } .adm-name { display: none; } }

.adm-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.adm-page-head h1 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.2px; }
.adm-page-head .sub { margin: 5px 0 0; font-size: 12.5px; color: var(--dim); }
.head-actions { display: flex; gap: 9px; flex-wrap: wrap; }

.adm-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; flex-wrap: wrap; }
.search { display: flex; align-items: center; height: 40px; background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding-left: 12px; color: var(--dim-2); gap: 8px; min-width: 260px; }
.search:focus-within { border-color: var(--brand-l); box-shadow: 0 0 0 3px rgba(124, 58, 237, .09); }
.search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; height: 100%; font-size: 14px; color: var(--ink); }
.search button { height: 100%; padding: 0 15px; border: 0; background: transparent; color: var(--brand); font-weight: 600; font-size: 13.5px; }
.search.sm { min-width: 190px; height: 38px; }
.filter-form { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.filter-form select {
  height: 38px; padding: 0 30px 0 12px; border-radius: 9px; border: 1.5px solid var(--line);
  background: #fff; font-size: 13.5px; appearance: none; outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2394a3b8' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
}
.filter-form select:focus { border-color: var(--brand-l); }

.table-wrap { background: #fff; border-radius: 15px; box-shadow: var(--sh); border: 1px solid var(--line-2); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.adm-table th {
  text-align: left; padding: 12px 14px; font-size: 12px; font-weight: 600; color: var(--dim);
  background: #fafbfd; border-bottom: 1px solid var(--line); white-space: nowrap;
  position: sticky; top: 0; z-index: 1;
}
.adm-table td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; white-space: nowrap; }
.adm-table tbody tr:last-child td { border-bottom: 0; }
.adm-table tbody tr:hover { background: #fbfaff; }
.adm-table .ops { text-align: right; white-space: nowrap; }
.adm-table .ops .btn + .btn { margin-left: 6px; }
.adm-table.rec-table { min-width: 1080px; }

.chip { display: inline-block; font-size: 11.5px; padding: 2px 9px; border-radius: 999px; font-weight: 600; }
.role-admin { background: #eef2ff; color: #4338ca; }
.role-emp { background: #f1f5f9; color: var(--ink-2); }
.st-on { background: var(--ok-bg); color: #047857; }
.st-off { background: #f1f5f9; color: var(--dim-2); }

.emp-cell { display: flex; align-items: center; gap: 10px; }
.emp-cell .avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto;
  background: linear-gradient(135deg, #ddd6fe, #bfdbfe);
  color: var(--brand-d); display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
}
.emp-cell i { display: block; font-style: normal; font-size: 11px; }
.movie { font-weight: 600; }
.num-cell { text-align: center; }
.num-cell b { font-size: 15px; }

.pic-cell { display: flex; gap: 4px; align-items: center; }
.pic-cell img { width: 38px; height: 38px; border-radius: 7px; object-fit: cover; border: 1px solid var(--line); }
.pic-cell .more {
  width: 38px; height: 38px; border-radius: 7px; background: #f1f5f9; color: var(--dim);
  display: grid; place-items: center; font-size: 12px; font-weight: 600;
}
.pic-cell a:hover img { border-color: var(--brand-l); }

.pager { display: flex; align-items: center; gap: 6px; padding: 14px; flex-wrap: wrap; border-top: 1px solid var(--line-2); }
.pg { min-width: 32px; height: 32px; padding: 0 10px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; color: var(--ink-2); background: #f8fafc; }
.pg:hover { background: #f1f5f9; }
.pg.on { background: linear-gradient(135deg, var(--brand), var(--blue)); color: #fff; font-weight: 600; }
.pg.gap { background: transparent; color: var(--dim-2); }
.pg-info { margin-left: auto; font-size: 12px; color: var(--dim-2); }

.rank-card { margin-top: 16px; }
.rank-list { display: flex; flex-direction: column; gap: 11px; }
.rank-row { display: flex; align-items: center; gap: 11px; font-size: 13.5px; }
.rank-row .rk { width: 21px; height: 21px; border-radius: 6px; background: #f1f5f9; color: var(--dim); display: grid; place-items: center; font-size: 11.5px; font-weight: 700; flex: 0 0 auto; }
.rank-row:nth-child(1) .rk { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #fff; }
.rank-row:nth-child(2) .rk { background: linear-gradient(135deg, #cbd5e1, #94a3b8); color: #fff; }
.rank-row:nth-child(3) .rk { background: linear-gradient(135deg, #fdba74, #fb923c); color: #fff; }
.rank-row .nm { width: 108px; flex: 0 0 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row .bar { flex: 1; height: 7px; background: #f1f5f9; border-radius: 999px; overflow: hidden; }
.rank-row .bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--blue)); }
.rank-row .ct { width: 52px; text-align: right; font-size: 12.5px; color: var(--dim); flex: 0 0 auto; font-variant-numeric: tabular-nums; }

/* 表单网格 */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.form-grid > .card { margin-bottom: 0; }
.form-grid > .card:nth-child(3), .form-grid > .card:nth-child(4) { grid-column: span 2; }
.form-actions { grid-column: span 2; display: flex; justify-content: flex-end; gap: 10px; padding-top: 4px; }
@media (max-width: 900px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-grid > .card:nth-child(3), .form-grid > .card:nth-child(4) { grid-column: span 1; }
  .form-actions { grid-column: span 1; }
}
.form-actions .btn { min-width: 108px; }

.pic-manage { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pic-item { position: relative; width: 84px; height: 84px; border-radius: 9px; overflow: hidden; border: 1px solid var(--line); }
.pic-item img { width: 100%; height: 100%; object-fit: cover; }
.pic-item .del {
  position: absolute; top: 0; right: 0; width: 21px; height: 21px; border: 0;
  background: rgba(15, 23, 42, .66); color: #fff; font-size: 13px; line-height: 21px;
  padding: 0; border-radius: 0 0 0 7px;
}
.pic-item .del:hover { background: var(--danger); }

/* 地址管理 */
.addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(310px, 100%), 1fr)); gap: 14px; align-items: start; }
.addr-card { margin-bottom: 0; }
.addr-card .card-hd h3 { font-size: 14.5px; }
.cnt { font-size: 11.5px; color: var(--dim-2); font-weight: 400; margin-left: 5px; }
.addr-ops { display: inline-flex; gap: 5px; align-items: center; }
.inline { display: inline; }
.mini {
  height: 25px; padding: 0 9px; border-radius: 7px; border: 1px solid var(--line);
  background: #fff; color: var(--dim); font-size: 11.5px; transition: .14s;
}
.mini:hover { border-color: var(--brand-l); color: var(--brand); }
.mini.off { border-color: #fecaca; color: var(--danger); }
.mini.on { border-color: #a7f3d0; color: var(--ok); }
.mini.danger:hover { background: var(--danger-bg); border-color: #fecaca; color: var(--danger); }
.addr-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; }
.addr-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--line-2); }
.addr-item:last-child { border-bottom: 0; }
.addr-name { font-size: 13.5px; }
.addr-name.off { color: var(--dim-2); text-decoration: line-through; }
.addr-item .addr-ops { opacity: .32; transition: .15s; }
.addr-item:hover .addr-ops { opacity: 1; }
@media (max-width: 700px) { .addr-item .addr-ops { opacity: 1; } }
.addr-add { display: flex; gap: 8px; }
.addr-add input {
  flex: 1; min-width: 0; height: 38px; padding: 0 12px; border-radius: 9px;
  border: 1.5px solid var(--line); background: #fbfcfe; outline: none; font-size: 14px;
}
.addr-add input:focus { border-color: var(--brand-l); background: #fff; box-shadow: 0 0 0 3px rgba(124, 58, 237, .09); }

/* 错误页 */
.err-body { min-height: 100vh; display: grid; place-items: center; background: var(--bg); }
.err-box { text-align: center; padding: 40px; }
.err-code { font-size: 68px; font-weight: 800; letter-spacing: -3px; color: #d8dce8; line-height: 1; }
.err-box p { color: var(--dim); margin: 12px 0 22px; font-size: 14px; }

/* 滚动条 */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #d3d9e6; border-radius: 9px; }
::-webkit-scrollbar-thumb:hover { background: #b9c0d1; }
::-webkit-scrollbar-track { background: transparent; }

/* ============================================================
   数据总览 / 报表 / 审核 / 公告 / 导入
   ============================================================ */

.stat-row.wide .stat-card .num { font-size: 26px; }
.stat-card .hint { font-size: 11.5px; color: var(--dim-2); margin-top: 4px; }
.stat-card .num .unit { font-size: 13px; color: var(--dim-2); font-weight: 500; margin-left: 2px; }
.stat-card.accent { background: linear-gradient(140deg, #f7f4ff, #fff 70%); border-color: #ede9fe; }
.stat-card.accent .num { color: var(--brand-d); }
.stat-card.accent .lab { color: var(--brand); }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.dash-grid > .card { margin: 0; }
@media (max-width: 1040px) { .dash-grid { grid-template-columns: minmax(0, 1fr); } }

.chart { width: 100%; height: 190px; display: block; }

/* 动态流 */
.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; max-height: 236px; overflow-y: auto; }
.feed-row { display: flex; align-items: flex-start; gap: 9px; padding: 8px 2px; border-bottom: 1px dashed var(--line-2); font-size: 12.8px; color: var(--ink-2); }
.feed-row:last-child { border-bottom: 0; }
.feed-row .dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 6px; flex: 0 0 auto; background: var(--dim-2); }
.feed-row .dot.ok { background: var(--ok); }
.feed-row .dot.p { background: #f59e0b; }
.feed-row .dot.no { background: var(--danger); }
.feed-row em { font-style: normal; font-weight: 600; color: var(--ink); }
.feed-row i { font-style: normal; color: var(--brand); font-weight: 600; }
.feed-row time { margin-left: auto; font-size: 11.5px; color: var(--dim-2); flex: 0 0 auto; white-space: nowrap; }
.feed-row > div { min-width: 0; }

/* 考核进度 */
.prog-list { display: flex; flex-direction: column; gap: 11px; }
.prog-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 96px; align-items: center; gap: 12px; font-size: 13px; }
.prog-row .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prog-row .bar { height: 8px; background: #f1f5f9; border-radius: 999px; overflow: hidden; }
.prog-row .bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--blue)); }
.prog-row .bar.done i { background: linear-gradient(90deg, #10b981, #059669); }
.prog-row .bar.low i { background: linear-gradient(90deg, #f59e0b, #f97316); }
.prog-row .ct { text-align: right; font-variant-numeric: tabular-nums; font-size: 12px; color: var(--dim); }
.prog-row .ct b { color: var(--ink); font-size: 13.5px; }
.prog-row .ct i { display: block; font-style: normal; font-size: 11px; color: var(--dim-2); }

/* 表格内进度条 */
.adm-table .bar { display: block; min-width: 110px; height: 7px; background: #f1f5f9; border-radius: 999px; overflow: hidden; }
.adm-table .bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--blue)); }
.adm-table .bar.done i { background: linear-gradient(90deg, #10b981, #059669); }
.adm-table .bar.low i { background: linear-gradient(90deg, #f59e0b, #f97316); }
.on-row { background: #faf8ff; }
.table-wrap.flat { box-shadow: none; border: 0; border-radius: 0; }
.table-wrap.flat .adm-table th { background: transparent; }

/* 设置表单 */
.set-form { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.set-form .field { margin: 0; min-width: 190px; }
.set-form .field.inline { display: flex; flex-direction: column; gap: 6px; }
.set-form input, .set-form select { height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 0 11px; font-size: 14px; background: #fff; outline: none; }
.set-form input:focus, .set-form select:focus { border-color: var(--brand-l); }

/* 批量审核 */
.batch-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line-2); border-radius: 13px; padding: 10px 14px; margin-bottom: 12px; box-shadow: var(--sh); }
.batch-bar .ck-all { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.batch-tip { font-size: 12.5px; color: var(--dim-2); }
.batch-note { flex: 1; min-width: 150px; height: 32px; border: 1px solid var(--line); border-radius: 9px; padding: 0 11px; font-size: 13px; outline: none; font-family: inherit; }
.batch-note:focus { border-color: var(--brand-l); }
.adm-table .ck { width: 34px; padding-right: 0; }
.adm-table .ck input, .batch-bar input[type=checkbox] { width: 15px; height: 15px; accent-color: var(--brand); }
.btn.ok { background: var(--ok); color: #fff; }
.btn.warn { background: #f59e0b; color: #fff; }
.ico { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; font-size: 13px; font-weight: 700; }
.ico.ok { background: var(--ok-bg); color: #047857; }
.ico.ok:hover { background: #d1fae5; }
.ico.no { background: var(--danger-bg); color: var(--danger); }
.ico.no:hover { background: #fee2e2; }
.adm-table .ops .ico + .ico { margin-left: 4px; }
.adm-table .ops .ico + .btn { margin-left: 6px; }

/* 审核状态 */
.chip.st-pending { background: #fffbeb; color: #b45309; }
.chip.st-ok { background: var(--ok-bg); color: #047857; }
.chip.st-rej { background: var(--danger-bg); color: var(--danger); }
.chip.mini { font-size: 10.5px; padding: 1px 7px; margin-left: 6px; vertical-align: 1px; }
.chip.lv { background: #eef2ff; color: #4338ca; margin-right: 8px; }
.audit-note { display: block; font-style: normal; font-size: 11px; color: var(--danger); margin-top: 3px; }
.seg-group .seg .cnt { font-style: normal; font-size: 10.5px; background: var(--danger); color: #fff; border-radius: 999px; padding: 0 5px; margin-left: 3px; vertical-align: 1px; }
.rec-note { margin-top: 5px; font-size: 11.5px; color: var(--danger); }
.link.sm { font-size: 12.5px; color: var(--brand); }
.empty.small { padding: 20px 10px; }
.empty.small p { margin: 0; }

/* 公告 */
.notice-form { display: flex; flex-direction: column; gap: 12px; max-width: 660px; }
.notice-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; font-family: inherit; outline: none; resize: vertical; line-height: 1.6; }
.notice-form textarea:focus { border-color: var(--brand-l); }
.notice-form input, .notice-form select { height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 0 11px; font-size: 14px; background: #fff; outline: none; font-family: inherit; }
.notice-list { display: flex; flex-direction: column; gap: 12px; }
.notice-item { border: 1px solid var(--line-2); border-left: 3px solid var(--brand-l); border-radius: 12px; padding: 13px 15px; background: #fff; }
.notice-item.lv-warn { border-left-color: #f59e0b; }
.notice-item.lv-important { border-left-color: var(--danger); }
.ni-hd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.ni-body { margin: 8px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.65; }
.ni-ops { display: flex; gap: 8px; margin-top: 10px; }

/* 导入 */
.import-form { display: flex; flex-direction: column; gap: 14px; }
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px 18px; border: 1.6px dashed #d8d5f0; border-radius: 14px; background: #faf9ff; cursor: pointer; text-align: center; }
.dropzone:hover { border-color: var(--brand-l); background: #f6f3ff; }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dz-ico { width: 40px; height: 40px; border-radius: 50%; background: #ede9fe; color: var(--brand); display: grid; place-items: center; font-size: 19px; font-weight: 700; }
.import-res { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.ir-item { flex: 1; min-width: 120px; background: #f8fafc; border-radius: 12px; padding: 12px 14px; }
.ir-item b { display: block; font-size: 22px; font-weight: 700; }
.ir-item span { font-size: 12px; color: var(--dim); }
.ir-item.ok b { color: var(--ok); }
.ir-item.warn b { color: #b45309; }
.tip-line { font-size: 12.5px; color: var(--dim); margin: 12px 0 0; line-height: 1.7; }

/* 员工端公告条 */
.emp-notice { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; padding: 12px 13px; border-radius: 13px; background: #f5f3ff; border: 1px solid #ede9fe; color: var(--brand-d); }
.emp-notice.lv-warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.emp-notice.lv-important { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.en-ico { width: 20px; height: 20px; border-radius: 50%; background: rgba(124, 58, 237, .13); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: 0 0 auto; margin-top: 1px; }
.en-body { flex: 1; min-width: 0; font-size: 13px; }
.en-body b { display: block; margin-bottom: 3px; }
.en-body p { margin: 0; opacity: .85; line-height: 1.55; font-size: 12.5px; }
.en-close { border: 0; background: transparent; color: inherit; opacity: .5; font-size: 19px; line-height: 1; cursor: pointer; padding: 0 2px; }

/* 灯箱 */
.lb { position: fixed; inset: 0; z-index: 300; background: rgba(15, 23, 42, .88); display: grid; place-items: center; padding: 24px; animation: fade .18s; }
.lb img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.lb-x { position: absolute; top: 18px; right: 20px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }

/* ---------------------------------------------- 手机打卡入口卡 */
.mobile-entry .me-box { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.me-qr { flex: 0 0 auto; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 6px 18px -14px rgba(15, 23, 42, .5); }
.me-qr img { width: 152px; height: 152px; display: block; }
.me-info { flex: 1 1 320px; min-width: 0; }
.me-url { display: inline-block; padding: 9px 13px; border-radius: 10px; background: #f5f3ff; border: 1px dashed var(--brand-l); color: var(--brand); font-weight: 700; font-size: 15px; letter-spacing: .2px; word-break: break-all; font-variant-numeric: tabular-nums; }
.me-steps { margin: 10px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 13.5px; line-height: 1.9; }
.me-steps li { margin: 0; }
.me-note { margin: 10px 0 0; font-size: 12.5px; line-height: 1.7; color: #92400e; background: #fffbeb; border-left: 3px solid #f59e0b; padding: 8px 11px; border-radius: 0 8px 8px 0; }
@media (max-width: 640px) {
  .mobile-entry .me-box { gap: 14px; }
  .me-qr img { width: 132px; height: 132px; }
  .me-url { font-size: 13.5px; }
}

/* ---------------------------------------------- 实际放映地点（自动定位） */
.real-loc { display: flex; gap: 11px; align-items: flex-start; padding: 12px 13px; border-radius: 12px; background: #f8f7ff; border: 1px solid #e8e3fd; margin-bottom: 14px; }
.real-loc[data-state="ok"] { background: #f0fdf6; border-color: #bbf7d0; }
.real-loc[data-state="fail"] { background: #fffbeb; border-color: #fde68a; }
.rl-ico { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: #fff; color: var(--brand); border: 1px solid #e8e3fd; }
.real-loc[data-state="ok"] .rl-ico { color: var(--ok); border-color: #bbf7d0; }
.real-loc[data-state="fail"] .rl-ico { color: #b45309; border-color: #fde68a; }
.rl-body { min-width: 0; flex: 1; }
.rl-lbl { font-size: 12.5px; font-weight: 700; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.rl-state { font-weight: 600; font-size: 11.5px; color: var(--dim); background: #fff; border-radius: 999px; padding: 1px 8px; border: 1px solid var(--line); }
.real-loc[data-state="ok"] .rl-state { color: var(--ok); border-color: #bbf7d0; background: #ecfdf5; }
.real-loc[data-state="fail"] .rl-state { color: #b45309; border-color: #fde68a; background: #fffbeb; }
.rl-text { margin-top: 3px; font-size: 14px; color: var(--ink); line-height: 1.45; word-break: break-all; }

/* 观影人数：手填大输入 */
.people-input { height: 54px; font-size: 22px; font-weight: 700; text-align: center; letter-spacing: 2px; }
.people-input::placeholder { font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--dim-2); }

/* ---------------------------------------------- 全屏成功 / 错误提示 */
.ok-screen { position: fixed; inset: 0; z-index: 400; background: rgba(15, 23, 42, .58); display: grid; place-items: center; padding: 22px; }
.ok-in { width: 100%; max-width: 340px; background: #fff; border-radius: 22px; padding: 30px 22px 22px; text-align: center; box-shadow: 0 30px 70px -20px rgba(2, 6, 23, .45); animation: pop .22s ease; }
@keyframes pop { from { transform: scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
.ok-badge { width: 78px; height: 78px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 14px 30px -12px rgba(5, 150, 105, .8); }
.ok-screen.err .ok-badge { background: linear-gradient(135deg, #f87171, #dc2626); font-size: 42px; font-weight: 800; line-height: 1; box-shadow: 0 14px 30px -12px rgba(220, 38, 38, .7); }
.ok-in h2 { margin: 0 0 6px; font-size: 20px; }
.ok-msg { margin: 0 0 12px; color: var(--ink-2); font-size: 14.5px; }
.ok-meta { display: grid; gap: 6px; text-align: left; background: #f8fafc; border: 1px solid var(--line-2); border-radius: 12px; padding: 11px 13px; font-size: 13px; color: var(--dim); margin-bottom: 18px; }
.ok-meta b { color: var(--ink); font-weight: 600; }
.ok-meta:empty { display: none; }
.err-msg { margin: 0 0 8px; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.err-detail { margin: 0 0 16px; font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.err-detail b { color: var(--danger); }
.btn-ok { width: 100%; height: 50px; border: 0; border-radius: 14px; background: linear-gradient(135deg, var(--brand), var(--blue)); color: #fff; font-size: 16px; font-weight: 700; letter-spacing: 3px; cursor: pointer; }
.btn-ok:active { transform: scale(.985); }
.btn-ok:disabled { opacity: .6; letter-spacing: 1px; }

/* ---------------------------------------------- 满屏公告（强制确认） */
.notice-screen { position: fixed; inset: 0; z-index: 380; background: rgba(15, 23, 42, .62); display: grid; place-items: center; padding: 20px; overflow-y: auto; }
.ns-wrap { width: 100%; max-width: 380px; }
.ns-card { background: #fff; border-radius: 20px; padding: 24px 20px 20px; box-shadow: 0 30px 70px -20px rgba(2, 6, 23, .5); }
.ns-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ns-tag { font-size: 11.5px; font-weight: 700; color: var(--brand); background: #f5f3ff; border-radius: 999px; padding: 3px 10px; }
.ns-card.lv-warn .ns-tag { color: #b45309; background: #fffbeb; }
.ns-card.lv-important .ns-tag { color: #b91c1c; background: #fef2f2; }
.ns-top time { font-size: 11.5px; color: var(--dim-2); }
.ns-card h2 { margin: 0 0 10px; font-size: 19px; line-height: 1.4; }
.ns-body { font-size: 14.5px; line-height: 1.8; color: var(--ink-2); max-height: 46vh; overflow-y: auto; padding-right: 4px; }
.ns-foot { margin: 12px 0 0; text-align: center; font-size: 11.5px; color: var(--dim-2); }

/* ---------------------------------------------- 公告接收人选择 */
.rcv-box { border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; background: #fff; }
.rcv-all { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; padding-bottom: 9px; border-bottom: 1px dashed var(--line-2); margin-bottom: 9px; cursor: pointer; }
.rcv-list { display: flex; flex-wrap: wrap; gap: 9px 16px; max-height: 170px; overflow-y: auto; }
.rcv-list.off { opacity: .4; pointer-events: none; }
.rcv-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.ni-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--dim); margin-top: 8px; }
.ni-meta b { color: var(--brand); font-weight: 700; }

/* ---------------------------------------------- 定位重试与提示 */
.rl-retry { flex: 0 0 auto; align-self: center; height: 34px; padding: 0 13px; border-radius: 10px; border: 1px solid #c7bdfa; background: #fff; color: var(--brand); font-size: 13px; font-weight: 700; cursor: pointer; -webkit-appearance: none; }
.rl-retry:active { transform: scale(.97); }
.rl-tip { margin: 0 0 14px; font-size: 12.5px; line-height: 1.75; color: #92400e; background: #fffbeb; border-left: 3px solid #f59e0b; padding: 8px 11px; border-radius: 0 8px 8px 0; }
.rl-tip b { color: #b45309; }
.real-loc[data-state="ok"] + .rl-tip { display: none; }
.addr-anchor { font-size: 11px; color: var(--dim-2); margin-left: 6px; }
.addr-anchor.on { color: var(--ok); }

.set-form .field.inline.wide { flex: 1 1 340px; }
.set-form .field.inline.wide input { width: 100%; }

.me-pub { margin-top: 9px; font-size: 12.5px; line-height: 1.75; color: #1e3a8a; background: #eff6ff; border-left: 3px solid #60a5fa; padding: 8px 11px; border-radius: 0 8px 8px 0; }
.me-pub code { font-size: 12.5px; background: #fff; border: 1px solid #dbeafe; border-radius: 5px; padding: 1px 5px; }
.me-pub.ok { color: #14532d; background: #f0fdf4; border-left-color: #34d399; }
.me-pub.warn { color: #7c2d12; background: #fff7ed; border-left-color: #fb923c; }
