:root {
  --primary: #123f7d; --primary-dark: #0a2a56; --primary-light: #eaf1fb;
  --accent: #f0b429;
  --danger: #d92d20; --warn: #b54708; --bg: #eef2f8; --card: #ffffff;
  --text: #16233a; --muted: #6b7a90; --border: #e6ecf4; --radius: 16px;
  --shadow: 0 1px 2px rgba(16, 42, 74, .04), 0 8px 24px rgba(16, 42, 74, .06);
  --shadow-lg: 0 12px 40px rgba(10, 42, 86, .18);
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; transition: transform .1s ease, filter .15s ease, opacity .15s ease, background-color .15s ease, box-shadow .15s ease; }
button:active { transform: scale(.96); filter: brightness(.94); }
input, select, textarea { font-family: inherit; font-size: 15px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 12px; width: 100%; background: #f9fbfd; color: var(--text); outline: none; transition: border-color .15s, background .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(18, 63, 125, .1); }
label { font-size: 13px; color: var(--muted); display: block; margin: 12px 0 6px; font-weight: 500; }

/* 登录/注册 */
.auth-wrap {
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 28px 24px; color: #fff;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(255, 255, 255, .16), transparent 60%),
    radial-gradient(800px 500px at 100% 100%, rgba(240, 180, 41, .18), transparent 60%),
    linear-gradient(160deg, #17498f 0%, #0d3468 55%, #071f3f 100%);
}
.auth-brand { text-align: center; margin-bottom: 26px; }
.auth-brand .logo { width: 88px; height: 88px; margin: 0 auto 14px; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, .28); }
.auth-brand .logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.auth-brand h1 { font-size: 25px; font-weight: 700; letter-spacing: 1.5px; }
.auth-brand p { font-size: 13px; opacity: .82; margin-top: 8px; letter-spacing: .5px; }
.auth-card { background: #fff; color: var(--text); border-radius: 22px; padding: 26px 22px; width: 100%; max-width: 400px; box-shadow: var(--shadow-lg); }
.auth-tabs { display: flex; background: var(--bg); border-radius: 12px; padding: 4px; margin-bottom: 18px; }
.auth-tabs button { flex: 1; border: none; background: none; padding: 10px; border-radius: 9px; font-size: 15px; color: var(--muted); transition: color .15s, background .15s, transform .1s ease; }
.auth-tabs button.active { background: #fff; color: var(--primary); font-weight: 700; box-shadow: 0 1px 2px rgba(16, 42, 74, .08); }
.auth-tabs button:active { transform: scale(.96); background: rgba(26, 79, 150, .08); }
.btn {
  display: block; width: 100%; border: none; color: #fff; font-size: 16px; font-weight: 600;
  padding: 14px; border-radius: 13px; margin-top: 18px;
  background: linear-gradient(135deg, #1a4f96, #0b2f5e);
  box-shadow: 0 6px 18px rgba(10, 42, 86, .22);
  transition: transform .08s ease, box-shadow .15s ease, filter .15s ease, background-color .15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.95); box-shadow: 0 2px 8px rgba(10, 42, 86, .28); filter: brightness(.9); }
.btn.secondary { background: #fff; color: var(--primary); border: 1.5px solid var(--primary); box-shadow: none; }
.btn.secondary:active { background: var(--primary-light); transform: scale(.95); }
.btn.danger { background: linear-gradient(135deg, #e5453a, #b42318); box-shadow: 0 6px 18px rgba(180, 35, 24, .22); }
.btn.small { width: auto; display: inline-block; padding: 8px 15px; font-size: 13px; margin-top: 0; border-radius: 9px; }
.btn:disabled { opacity: .5; pointer-events: none; transform: none; filter: none; }
.hint { font-size: 12px; color: var(--muted); margin-top: 12px; line-height: 1.7; }

/* 主应用 */
.topbar {
  position: sticky; top: 0; z-index: 20; color: #fff;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, #17498f, #0a2a56);
  box-shadow: 0 4px 16px rgba(10, 42, 86, .18);
}
.top-logo { width: 30px; height: 30px; border-radius: 8px; background: #fff; object-fit: contain; padding: 2px; flex: 0 0 auto; }
.topbar .title { font-size: 17px; font-weight: 700; flex: 1; letter-spacing: .5px; }
.role-badge { font-size: 11px; background: rgba(255, 255, 255, .2); padding: 4px 11px; border-radius: 20px; white-space: nowrap; }
.topbar .logout { background: rgba(255, 255, 255, .16); border: none; color: #fff; font-size: 12px; padding: 7px 13px; border-radius: 9px; transition: background .15s; }
.topbar .logout:active { background: rgba(255, 255, 255, .3); }
/* 公告铃铛 */
.bell-btn { position: relative; background: rgba(255,255,255,.16); border: none; color: #fff; width: 34px; height: 34px; border-radius: 10px; font-size: 18px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; cursor: pointer; transition: background .15s; }
.bell-btn:active { background: rgba(255,255,255,.3); }
.bell-btn .bell-dot { position: absolute; top: 6px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: #ff4d4f; border: 2px solid #0a2a56; }
.bell-panel { position: fixed; top: 56px; right: 12px; left: 12px; z-index: 60; background: #fff; border-radius: 14px; box-shadow: 0 12px 40px rgba(10,42,86,.28); overflow: hidden; max-height: 60vh; display: flex; flex-direction: column; animation: fadeIn .18s ease; }
.bell-panel .bp-head { padding: 12px 14px; font-size: 14px; font-weight: 700; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.bell-panel .bp-head .link-btn { font-size: 12px; }
.bell-panel .bp-list { overflow-y: auto; }
.bell-panel .bp-item { padding: 11px 14px; border-bottom: 1px solid #f0f3f8; }
.bell-panel .bp-item:last-child { border-bottom: none; }
.bell-panel .bp-item .bp-title { font-size: 13px; font-weight: 600; color: var(--text); display: flex; gap: 6px; align-items: center; }
.bell-panel .bp-item .bp-new { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #ff4d4f; flex: 0 0 auto; }
.bell-panel .bp-item .bp-meta { font-size: 11px; color: var(--muted); margin-top: 3px; }
.bell-panel .bp-empty { padding: 24px; text-align: center; color: var(--muted); font-size: 13px; }
.container { max-width: 760px; margin: 0 auto; padding: 16px 14px calc(96px + env(safe-area-inset-bottom)); animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
.card h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row { display: flex; gap: 10px; align-items: center; }
.row > * { flex: 1; }

/* 底部导航 */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  display: flex; padding: 5px 2px calc(5px + env(safe-area-inset-bottom));
}
.bottom-nav button {
  flex: 1; min-width: 0; border: none; background: none; font-size: 10px; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 0; border-radius: 12px;
  white-space: nowrap; transition: color .15s, background .15s, transform .1s;
}
.bottom-nav button .ico { font-size: 19px; line-height: 1.2; }
.bottom-nav button.active { color: var(--primary); font-weight: 700; background: var(--primary-light); }
.bottom-nav button:active { transform: scale(.96); }

/* 列表项 */
.item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--shadow); transition: transform .1s, box-shadow .15s; }
.item[onclick] { cursor: pointer; }
.item[onclick]:active { transform: scale(.99); box-shadow: 0 2px 8px rgba(16, 42, 74, .08); }
.item .line1 { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.item .title { font-weight: 600; font-size: 15px; }
.item .meta { font-size: 12px; color: var(--muted); line-height: 1.75; }
.tag { font-size: 11px; padding: 3px 9px; border-radius: 20px; white-space: nowrap; font-weight: 600; }
.tag.green { background: #def7ec; color: #03543f; }
.tag.yellow { background: #fdf0c8; color: #723b13; }
.tag.red { background: #fde8e8; color: #9b1c1c; }
.tag.blue { background: #e1effe; color: #1e429f; }
.tag.gray { background: #f1f4f8; color: #4b5563; }

/* 弹层 */
.modal-mask { position: fixed; inset: 0; z-index: 50; background: rgba(9, 22, 42, .5); display: flex; align-items: flex-end; justify-content: center; animation: fadeIn .2s ease; }
.modal { background: #fff; width: 100%; max-width: 760px; max-height: 88vh; overflow-y: auto; border-radius: 22px 22px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0, 0, 0, .2); animation: slideUp .26s cubic-bezier(.22, 1, .36, 1); }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } }
.modal h3 { font-size: 17px; margin-bottom: 8px; }
.modal .close-x { float: right; border: none; background: var(--bg); width: 32px; height: 32px; border-radius: 50%; font-size: 14px; color: var(--muted); }

/* 扫码 */
.scan-box { position: relative; background: #000; border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; }
.scan-box video { width: 100%; height: 100%; object-fit: cover; }
.scan-box .frame { position: absolute; inset: 18%; border: 2.5px solid var(--accent); border-radius: 12px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .25); }
.scan-result { margin-top: 12px; padding: 12px; background: var(--primary-light); border-radius: 10px; font-size: 14px; }

/* 志愿者卡 */
.vcard {
  border-radius: 20px; padding: 22px 20px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1a4f96, #0a2a56);
  box-shadow: 0 12px 28px rgba(10, 42, 86, .28);
}
.vcard::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255, 255, 255, .09); }
.vcard::before { content: ""; position: absolute; left: -30px; bottom: -60px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255, 255, 255, .05); }
.vcard.leader { background: linear-gradient(135deg, #c88a22, #6f4409); box-shadow: 0 12px 28px rgba(146, 116, 20, .3); }
.vcard .vc-role { font-size: 12px; opacity: .88; letter-spacing: 3px; }
.vcard .vc-no { font-size: 21px; font-weight: 700; letter-spacing: 1.5px; margin: 12px 0 16px; font-family: "Consolas", "SF Mono", monospace; }
.vcard .vc-name { font-size: 14px; display: flex; justify-content: space-between; opacity: .96; gap: 10px; }

/* 首页紧凑布局：左银行卡 + 右个人信息 */
.home-top { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
/* 左侧志愿者卡 + 右侧个人信息，各占半屏 */
.home-top .vcard.compact { flex: 0 0 50%; width: auto; max-width: none; padding: 12px 14px; border-radius: 12px; }
.home-top .vcard.compact .vc-role { font-size: 10px; letter-spacing: 2px; white-space: nowrap; }
.home-top .vcard.compact .vc-no { font-size: 15px; margin: 8px 0 10px; letter-spacing: 1px; white-space: nowrap; }
.home-top .vcard.compact .vc-name { font-size: 12px; flex-direction: column; gap: 2px; }
.home-top .vcard.compact .vc-name span { max-width: 100%; white-space: nowrap; }
.home-top .vcard.compact .vc-name span:last-child { opacity: .75; font-size: 11px; }
.home-info { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; }
.home-info .hi-name { font-size: 18px; font-weight: 700; color: var(--text); }
.home-info .hi-role { font-size: 13px; color: var(--primary); font-weight: 600; }
.home-info .hi-groups { font-size: 12px; color: var(--muted); line-height: 1.5; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 15px 8px; text-align: center; box-shadow: var(--shadow); transition: transform .15s; }
.stat:active { transform: scale(.98); }
.stat .num { font-size: 23px; font-weight: 800; color: var(--primary); line-height: 1.2; }
.stat .lbl { font-size: 12px; color: var(--muted); margin-top: 4px; }
.empty { text-align: center; color: var(--muted); font-size: 13px; padding: 36px 0; }
.section-title { font-size: 13px; color: var(--muted); margin: 18px 2px 8px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.section-title::before { content: ""; width: 3px; height: 13px; border-radius: 2px; background: var(--accent); }
.toast {
  position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 99;
  background: rgba(16, 35, 58, .94); color: #fff; padding: 11px 22px; border-radius: 26px; font-size: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28); animation: toastIn .24s ease; max-width: 82vw; text-align: center;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -10px); } }
table.simple { width: 100%; border-collapse: collapse; font-size: 13px; }
table.simple th, table.simple td { text-align: left; padding: 9px 6px; border-bottom: 1px solid var(--border); }
table.simple th { color: var(--muted); font-weight: 500; font-size: 12px; }
table.simple tr:last-child td { border-bottom: none; }

/* 设备登记页：分段切换 */
.seg-tabs { display: flex; background: var(--card); border: 1px solid var(--border); border-radius: 13px; padding: 4px; margin-bottom: 14px; box-shadow: var(--shadow); }
.seg-tabs button { flex: 1; min-width: 0; border: none; background: none; padding: 10px 4px; border-radius: 10px; font-size: 14px; color: var(--muted); font-weight: 600; white-space: nowrap; transition: background .15s, color .15s, transform .1s; }
.seg-tabs button.active { background: var(--primary-light); color: var(--primary); }
.seg-tabs button:active { transform: scale(.96); }
.seg-count { font-size: 11px; font-weight: 700; background: rgba(0, 0, 0, .07); padding: 1px 7px; border-radius: 10px; margin-left: 4px; }
.seg-tabs button.active .seg-count { background: rgba(18, 63, 125, .14); }
/* 盘点进度条 */
.inv-progress { height: 10px; background: var(--primary-light); border-radius: 6px; overflow: hidden; margin-top: 12px; }
.inv-progress .bar { height: 100%; background: linear-gradient(90deg, #1a4f96, #3b82f6); border-radius: 6px; transition: width .4s ease; }
.inv-progress-meta { font-size: 12px; color: var(--muted); margin-top: 6px; }
/* 折叠分组（台账存放点分组 / 工单优先级）内的条目收尾间距 */
.pri-body .item:last-child, .pri-body .empty:last-child { margin-bottom: 2px; }

/* 加载态 */
.loading { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 60px 0; color: var(--muted); font-size: 13px; }
.spinner { width: 26px; height: 26px; border: 3px solid var(--primary-light); border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 公告 */
.link-btn { margin-left: auto; border: none; background: none; color: var(--primary); font-size: 12px; font-weight: 600; padding: 2px 4px; border-radius: 6px; }
.link-btn:active { opacity: .6; transform: scale(.94); }
.ann-card { background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--primary); border-radius: 14px; padding: 13px 15px; margin-bottom: 10px; box-shadow: var(--shadow); }
.ann-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ann-title { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; line-height: 1.5; }
.ann-time { font-size: 11px; color: var(--muted); white-space: nowrap; padding-top: 2px; }
.ann-content { margin-top: 6px; font-size: 13px; color: #3c4a60; line-height: 1.75; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.ann-content.full { display: block; -webkit-line-clamp: unset; overflow: visible; }
.ann-foot { margin-top: 8px; font-size: 11px; color: var(--muted); }
.ann-wrap { margin-bottom: 14px; }
.ann-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 6px; }
.ann-form { background: var(--bg); border-radius: 14px; padding: 14px; margin-bottom: 4px; }
.ann-pin { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; color: var(--text); font-weight: 500; }
.ann-pin input { width: auto; margin: 0; }
.att-link { color: var(--primary); text-decoration: underline; word-break: break-all; }

@media (max-width: 360px) {
  .bottom-nav button { font-size: 9px; }
  .bottom-nav button .ico { font-size: 17px; }
  .container { padding-left: 10px; padding-right: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.slots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.slot { flex: 0 0 calc(50% - 4px); display: flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; font-size: 13px; margin: 0; }
.slot input { width: auto; margin: 0; }

/* 排班表 */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip { padding: 8px 14px; border-radius: 20px; border: 1.5px solid var(--border); background: #fff; color: var(--text); font-size: 13px; font-weight: 500; transition: background .15s, border-color .15s, color .15s, transform .1s ease; }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip:active { transform: scale(.93); }
.slot-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 6px; }
.slot-btn { padding: 10px 6px; border-radius: 11px; border: 1.5px solid var(--border); background: #fff; font-size: 13px; color: var(--muted); font-weight: 600; transition: background .15s, border-color .15s, color .15s, transform .1s ease; }
.slot-btn.active { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.slot-btn:active { transform: scale(.94); }
.day-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 4px 7px; font-size: 13px; font-weight: 700; color: var(--primary); }
.day-count { font-size: 11px; color: var(--muted); font-weight: 500; }
.sched-row { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; box-shadow: var(--shadow); }
.sched-time { flex: 0 0 58px; text-align: center; border-right: 1px dashed var(--border); padding-right: 10px; }
.sched-time b { display: block; font-size: 15px; color: var(--primary); }
.sched-time span { font-size: 11px; color: var(--muted); }
.sched-info { flex: 1; min-width: 0; }
.sched-title { font-size: 14px; font-weight: 600; }
.sched-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.row-del { flex: 0 0 auto; border: none; background: #fde8e8; color: #b42318; font-size: 12px; font-weight: 600; padding: 7px 12px; border-radius: 9px; }
.count-pill { background: var(--primary-light); color: var(--primary); font-size: 11px; padding: 2px 9px; border-radius: 20px; font-weight: 700; }
.quota-bar { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 11px 14px; font-size: 12px; color: var(--muted); margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.quota-bar b { color: var(--primary); font-size: 15px; }
.quota-bar span { margin-left: auto; font-size: 11px; }
.signup-item { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 13px 15px; margin-bottom: 10px; box-shadow: var(--shadow); }
.signup-item .line1 { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.signup-item .title { font-weight: 600; font-size: 15px; }
.signup-item .meta { font-size: 12px; color: var(--muted); line-height: 1.75; }
.past-box { margin-top: 14px; }
.past-box summary { font-size: 12px; color: var(--muted); padding: 8px 2px; cursor: pointer; }
.past-box .sched-row { opacity: .72; }

/* ---------- 动效 ---------- */
@keyframes riseIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes popIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
@keyframes navPop { 0% { transform: scale(1); } 45% { transform: scale(1.18); } 100% { transform: scale(1); } }

.card, .item, .signup-item, .ann-card, .sched-row, .vcard, .quota-bar { animation: riseIn .36s cubic-bezier(.22, 1, .36, 1) both; }
.item:nth-of-type(2), .signup-item:nth-of-type(2), .ann-card:nth-of-type(2) { animation-delay: .05s; }
.item:nth-of-type(3), .signup-item:nth-of-type(3), .ann-card:nth-of-type(3) { animation-delay: .1s; }
.item:nth-of-type(4), .signup-item:nth-of-type(4), .ann-card:nth-of-type(4) { animation-delay: .15s; }
.item:nth-of-type(5), .ann-card:nth-of-type(5) { animation-delay: .2s; }
.item:nth-of-type(6) { animation-delay: .25s; }
.bottom-nav button.active .ico { animation: navPop .38s cubic-bezier(.34, 1.56, .64, 1); }
.modal { animation: slideUp .28s cubic-bezier(.22, 1, .36, 1); }
.toast { animation: toastIn .24s cubic-bezier(.22, 1, .36, 1); }
/* 登录/注册页入场与切换 */
.auth-brand { animation: riseIn .48s cubic-bezier(.22, 1, .36, 1) both; }
.auth-card { animation: riseIn .52s cubic-bezier(.22, 1, .36, 1) .06s both; }
#paneLogin, #paneReg { animation: popIn .22s ease both; }

/* ---------- 响应式 ---------- */
/* 仅在可悬停的精细指针设备上加抬升，触屏不会出现“悬停卡住” */
@media (hover: hover) and (pointer: fine) {
  .item[onclick]:hover, .ann-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(16, 42, 74, .14); }
  .btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
  .card:hover { box-shadow: 0 8px 26px rgba(16, 42, 74, .10); }
}
/* 大屏（平板/桌面）放宽留白、放大弹窗 */
@media (min-width: 640px) {
  .container { padding: 20px 18px calc(96px + env(safe-area-inset-bottom)); }
  .card { padding: 18px 20px; }
  .modal-mask { align-items: center; padding: 24px; }
  .modal { border-radius: 20px; max-height: 84vh; }
  .toast { top: 88px; font-size: 15px; padding: 12px 26px; }
}

/* ---------- 紧急呼叫（首页红色专区） ---------- */
.emergency-box { border: 1.5px solid #f3a9a2; background: #fff5f4; border-radius: 16px; padding: 14px; text-align: center; margin-bottom: 14px; }
.emergency-box .emer-btn { width: 100%; font-size: 18px; padding: 16px; margin: 0; background: linear-gradient(135deg, #e5453a, #b42318); box-shadow: 0 6px 18px rgba(180, 35, 24, .22); }
.emergency-box .emer-btn::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #fff; margin-right: 8px; animation: blink 1.1s infinite; vertical-align: middle; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.emergency-box .emer-latest { margin-top: 10px; font-size: 12px; color: var(--muted); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.danger:hover { filter: brightness(1.08); }
/* 派单按优先级折叠分组 */
.pri-group { margin-bottom: 10px; }
.pri-group summary { font-weight: 600; padding: 10px 12px; border-radius: 10px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.pri-group summary::-webkit-details-marker { display: none; }
.pri-group.urgent summary { background: #fdeceb; color: var(--danger); border: 1px solid #f3a9a2; }
.pri-group.normal summary { background: #eef2f8; color: var(--primary); border: 1px solid var(--border); }
.pri-group summary .pri-count { font-size: 12px; background: rgba(0,0,0,.08); padding: 2px 8px; border-radius: 10px; }
.pri-group[open] summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.pri-group .pri-body { border: 1px solid var(--border); border-top: none; border-radius: 0 0 10px 10px; padding: 8px; background: #fff; }

/* 派单选择器：群组简洁分块 */
.dsp-group { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; background: #f9fbfd; }
.dsp-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.dsp-head .btn { flex: 0 0 auto; }
.dsp-group .chip-row { margin-top: 8px; }
.dsp-group .chip { cursor: pointer; }

