/* ========== 腾讯 TDesign 风格设计变量 ========== */
:root {
  --brand: #0052D9;
  --brand-hover: #0034B5;
  --brand-active: #001F7F;
  --brand-1: #ECF2FE;
  --brand-2: #D9E6FD;
  --text-1: #1D2129;
  --text-2: #4E5969;
  --text-3: #86909C;
  --text-4: #A9AEB8;
  --border: #E5E6EB;
  --border-light: #F0F1F3;
  --bg: #F5F7FA;
  --white: #FFFFFF;
  --success: #00A870;
  --success-bg: #E3F9E9;
  --warning: #ED7B2F;
  --warning-bg: #FFF1E0;
  --danger: #E34D59;
  --danger-bg: #FDECEE;
  --gold: #C9A227;
  --gold-bg: #FBF5E2;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.03);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.10);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text-1);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
svg { width: 20px; height: 20px; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: var(--brand); text-decoration: none; }

/* ========== 侧边栏 ========== */
.sidebar {
  position: fixed; left: 0; top: 0; bottom: 0; width: 236px;
  background: var(--white); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; z-index: 30;
}
.brand { height: 68px; display: flex; align-items: center; gap: 11px; padding: 0 20px; border-bottom: 1px solid var(--border-light); }
.brand-logo {
  width: 36px; height: 36px; border-radius: 10px; flex: 0 0 auto;
  background: linear-gradient(135deg, #0052D9, #2B7FFF);
  color: #fff; display: grid; place-items: center;
  box-shadow: 0 4px 10px rgba(0,82,217,.25);
}
.brand-logo svg { width: 21px; height: 21px; }
.brand-logo.sm { width: 32px; height: 32px; border-radius: 9px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 15px; font-weight: 600; letter-spacing: .2px; }
.brand-text span { font-size: 11px; color: var(--text-3); }
.side-nav { flex: 1; overflow-y: auto; padding: 14px 12px; }
.nav-group-title { font-size: 11px; color: var(--text-3); padding: 12px 10px 6px; letter-spacing: .5px; }
.nav-item {
  display: flex; align-items: center; gap: 11px; height: 42px; padding: 0 12px;
  border-radius: 8px; color: var(--text-2); font-size: 14px; margin-bottom: 2px;
  cursor: pointer; transition: .18s; border: none; background: none; width: 100%; text-align: left;
}
.nav-item svg { width: 19px; height: 19px; color: var(--text-3); flex: 0 0 auto; }
.nav-item:hover { background: var(--bg); color: var(--text-1); }
.nav-item.active { background: var(--brand-1); color: var(--brand); font-weight: 600; }
.nav-item.active svg { color: var(--brand); }
.nav-badge { margin-left: auto; background: var(--danger); color: #fff; font-size: 10px; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 5px; }
.side-footer { padding: 14px 16px; border-top: 1px solid var(--border-light); }
.side-user { display: flex; align-items: center; gap: 10px; }
.side-user-info { display: flex; flex-direction: column; line-height: 1.3; }
.side-user-info strong { font-size: 13px; }
.side-user-info span { font-size: 11px; color: var(--text-3); }

/* ========== 顶栏 ========== */
.main { margin-left: 236px; min-height: 100vh; }
.topbar {
  height: 68px; background: var(--white); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; position: sticky; top: 0; z-index: 20;
}
.crumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); }
.crumb svg { width: 14px; height: 14px; }
.crumb strong { color: var(--text-1); font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.status-pill {
  display: flex; align-items: center; gap: 7px; background: var(--brand-1); color: var(--brand);
  font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 20px;
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); position: relative; }
.pulse::after { content:""; position:absolute; inset:-4px; border-radius:50%; border:1px solid var(--brand); animation: pulse 2s infinite; opacity:.5; }
@keyframes pulse { 0%{transform:scale(.6);opacity:.7} 100%{transform:scale(1.6);opacity:0} }
.icon-btn { position: relative; border: none; background: none; color: var(--text-2); padding: 5px; display: grid; place-items: center; border-radius: 6px; }
.icon-btn:hover { background: var(--bg); color: var(--brand); }
.icon-btn .dot { position: absolute; right: 4px; top: 3px; width: 7px; height: 7px; background: var(--danger); border-radius: 50%; border: 1.5px solid #fff; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; flex: 0 0 auto; }
.avatar-blue { background: var(--brand-1); color: var(--brand); border: 1px solid var(--brand-2); }
.avatar-orange { background: var(--warning-bg); color: var(--warning); }
.avatar-green { background: var(--success-bg); color: var(--success); }
.avatar-gold { background: var(--gold-bg); color: var(--gold); }
.avatar-gray { background: #F2F3F5; color: var(--text-2); }

/* ========== 内容区 ========== */
.view-wrap { padding: 24px 28px 48px; max-width: 1440px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.page-title { font-size: 22px; font-weight: 600; margin: 0 0 4px; letter-spacing: -.3px; }
.page-sub { color: var(--text-3); font-size: 13px; margin: 0; }
.section-title { font-size: 15px; font-weight: 600; margin: 26px 0 12px; display: flex; align-items: center; gap: 8px; }
.section-title::before { content:""; width: 3px; height: 14px; border-radius: 2px; background: var(--brand); }
.section-title .more { margin-left: auto; font-size: 12px; color: var(--brand); font-weight: 400; cursor: pointer; display:flex;align-items:center;gap:2px;}
.section-title .more svg { width: 13px; height: 13px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 15px; border-radius: 6px; font-size: 13px; font-weight: 500;
  border: 1px solid var(--border); background: var(--white); color: var(--text-1); transition: .18s;
}
.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: #fff; }

.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 18px 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border-light); }
.card-head h3 { margin: 0; font-size: 15px; font-weight: 600; }
.card-head .link { font-size: 12px; color: var(--brand); cursor: pointer; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g-hero { grid-template-columns: 1.6fr 1fr; }

/* 首页 Hero */
.hero {
  border-radius: var(--radius-lg); padding: 26px 28px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(115deg, #0052D9 0%, #2B7FFF 60%, #4C9BFF 100%);
  box-shadow: 0 10px 28px rgba(0,82,217,.20);
}
.hero::before { content:""; position:absolute; right:-60px; top:-90px; width:280px; height:280px; border-radius:50%; background:rgba(255,255,255,.08); }
.hero::after { content:""; position:absolute; right:80px; bottom:-120px; width:220px; height:220px; border-radius:50%; background:rgba(255,255,255,.06); }
.hero-tag { display: inline-flex; align-items:center; gap:6px; background: rgba(255,255,255,.18); border:1px solid rgba(255,255,255,.22); padding: 3px 11px; border-radius: 20px; font-size: 11px; letter-spacing:.5px; }
.hero h2 { font-size: 26px; margin: 12px 0 6px; font-weight: 600; letter-spacing: -.4px; position:relative; }
.hero p { margin: 0; font-size: 13px; opacity: .85; position:relative; }
.hero-meta { display: flex; gap: 26px; margin-top: 20px; position:relative; flex-wrap: wrap; }
.hero-meta div { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.hero-meta svg { width: 16px; height: 16px; opacity: .85; }
.hero-count { position: absolute; right: 30px; top: 26px; text-align: center; z-index: 2; }
.hero-count .num { font-size: 46px; font-weight: 700; line-height: 1; letter-spacing: -1px; }
.hero-count .unit { font-size: 13px; opacity: .85; margin-top: 4px; }
.hero-count .label { font-size: 11px; opacity: .75; margin-top: 6px; }

/* 统计卡 */
.stat { padding: 18px 20px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.stat-label { font-size: 12px; color: var(--text-3); margin-bottom: 6px; }
.stat-value { font-size: 28px; font-weight: 600; line-height: 1.1; letter-spacing: -.5px; }
.stat-value small { font-size: 13px; font-weight: 400; color: var(--text-3); margin-left: 3px; }
.stat-trend { font-size: 11px; margin-top: 7px; display: inline-flex; align-items: center; gap: 3px; color: var(--success); }
.stat-trend.warn { color: var(--warning); }
.stat-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto; }
.stat-icon svg { width: 21px; height: 21px; }
.bg-blue { background: var(--brand-1); color: var(--brand); }
.bg-orange { background: var(--warning-bg); color: var(--warning); }
.bg-green { background: var(--success-bg); color: var(--success); }
.bg-gold { background: var(--gold-bg); color: var(--gold); }
.bg-red { background: var(--danger-bg); color: var(--danger); }

/* 空状态 */
.empty-state { display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:32px 16px;color:var(--text-3);gap:8px; }
.empty-state .empty-ico { width:44px;height:44px;border-radius:50%;background:var(--bg);display:grid;place-items:center;color:var(--text-4); }
.empty-state .empty-ico svg { width:22px;height:22px; }
.empty-state p { font-size:12px;margin:0;line-height:1.6; }
.kanban-empty { text-align:center;color:var(--text-4);font-size:12px;padding:22px 0; }
.task-due { font-size:11px;color:var(--warning);margin-top:8px; }
.task-ops { display:flex;gap:12px;margin-top:10px;padding-top:9px;border-top:1px solid var(--border-light); }
.task-ops button { border:none;background:none;padding:0;color:var(--text-3);font-size:11px;cursor:pointer;font-family:inherit; }
.task-ops button:hover { color:var(--brand); }
.signin-url { font-size:11px;color:var(--text-3);max-width:210px;margin:8px auto 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:var(--bg);padding:5px 10px;border-radius:6px; }
.lottery-stage { margin-top:20px;padding:38px 24px;border-radius:16px;text-align:center;background:linear-gradient(135deg,#0052D9,#2B7BFF);color:#fff;box-shadow:0 8px 30px rgba(0,82,217,.28); }
.lottery-stage .ls-label { font-size:14px;opacity:.9;letter-spacing:2px; }
.lottery-stage .ls-name { font-size:30px;font-weight:700;margin:14px 0 8px;line-height:1.4;word-break:break-all; }
.lottery-stage .ls-prize { font-size:15px;opacity:.92; }
.lottery-stage .btn { background:#fff;color:var(--brand);width:auto;padding:0 26px; }

/* 快捷入口 */
.quick { padding: 16px 8px; display: flex; flex-direction: column; align-items: center; gap: 9px; cursor: pointer; transition: .18s; text-align:center; }
.quick:hover { background: var(--bg); }
.quick svg { width: 24px; height: 24px; }
.quick span { font-size: 12px; color: var(--text-2); }

/* 进度条 */
.progress-row { padding: 11px 0; }
.progress-row:not(:last-child) { border-bottom: 1px solid var(--border-light); }
.progress-top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.progress-top span:last-child { color: var(--text-3); font-size: 12px; }
.progress-track { height: 6px; background: #F0F1F3; border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 4px; background: var(--brand); transition: width .4s; }
.progress-fill.green { background: var(--success); }
.progress-fill.orange { background: var(--warning); }

/* 公告 / 列表 */
.notice { display:flex; gap:11px; padding: 12px 0; align-items:flex-start; }
.notice:not(:last-child) { border-bottom:1px solid var(--border-light); }
.notice-badge { font-size:10px; padding:2px 7px; border-radius:4px; background:var(--brand-1); color:var(--brand); white-space:nowrap; margin-top:2px; }
.notice-badge.orange { background:var(--warning-bg); color:var(--warning); }
.notice p { margin:0; font-size:13px; color:var(--text-2); }
.notice time { font-size:11px; color:var(--text-4); }

/* 岗位卡 */
.role-card { padding: 18px; transition:.2s; }
.role-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.role-top { display: flex; align-items: center; gap: 11px; margin-bottom: 13px; }
.role-icon { width: 38px; height: 38px; border-radius: 9px; display:grid; place-items:center; flex:0 0 auto; }
.role-icon svg { width:20px;height:20px; }
.role-top strong { display:block; font-size:14px; }
.role-top span { font-size:11px; color:var(--text-3); }
.role-desc { font-size:12px; color:var(--text-2); min-height: 38px; margin:0 0 13px; }
.role-foot { display:flex; justify-content:space-between; align-items:center; border-top:1px solid var(--border-light); padding-top:11px; font-size:12px; color:var(--text-3); }
.role-foot .num { color:var(--brand); font-weight:600; }

/* 任务看板 */
.kanban-col { background:#EEF0F4; border-radius:var(--radius); padding:12px; min-height: 300px; }
.kanban-head { display:flex; align-items:center; justify-content:space-between; padding: 2px 4px 12px; font-size:13px; font-weight:600; }
.kanban-head .count { background:#fff; color:var(--text-3); font-size:11px; padding:1px 8px; border-radius:10px; font-weight:400; }
.kanban-head .bar { width:3px;height:13px;border-radius:2px;display:inline-block;margin-right:7px;vertical-align:-2px;}
.task-card { background:#fff; border-radius:8px; padding:13px; margin-bottom:10px; box-shadow:0 1px 3px rgba(0,0,0,.05); cursor:grab; border:1px solid transparent; }
.task-card:hover { border-color:var(--brand-2); }
.task-title { font-size:13px; font-weight:500; line-height:1.5; margin:0 0 9px; }
.task-meta { display:flex; align-items:center; justify-content:space-between; gap:6px; font-size:11px; color:var(--text-3); }
.task-tag { font-size:10px; padding:2px 7px; border-radius:4px; background:var(--brand-1); color:var(--brand); white-space:nowrap; }
.task-tag.orange { background:var(--warning-bg);color:var(--warning); }
.task-tag.green { background:var(--success-bg);color:var(--success); }
.task-tag.red { background:var(--danger-bg);color:var(--danger); }
.task-avatar { width:20px;height:20px;border-radius:50%;display:grid;place-items:center;font-size:10px;font-weight:600; }

/* 表格 */
.table-wrap { overflow-x:auto; }
table { width:100%; border-collapse:collapse; font-size:13px; }
th { text-align:left; font-weight:500; color:var(--text-3); background:#FAFBFC; padding:11px 14px; white-space:nowrap; border-bottom:1px solid var(--border); }
td { padding:12px 14px; border-bottom:1px solid var(--border-light); color:var(--text-2); }
tr:last-child td { border-bottom:none; }
tbody tr:hover { background:#FAFBFE; }
.cell-user { display:flex; align-items:center; gap:9px; }
.cell-user strong { color:var(--text-1); font-size:13px; font-weight:500; }
.cell-user small { color:var(--text-3); font-size:11px; }
.tag { display:inline-block; font-size:11px; padding:2px 8px; border-radius:4px; background:#F2F3F5; color:var(--text-2); white-space:nowrap; }
.tag.blue { background:var(--brand-1);color:var(--brand); }
.tag.green { background:var(--success-bg);color:var(--success); }
.tag.orange { background:var(--warning-bg);color:var(--warning); }
.tag.gold { background:var(--gold-bg);color:var(--gold); }
.tag.red { background:var(--danger-bg);color:var(--danger); }

/* 筛选栏 */
.filter-bar { display:flex; align-items:center; gap:10px; margin-bottom:16px; flex-wrap:wrap; }
.search-box { display:flex; align-items:center; gap:7px; height:34px; border:1px solid var(--border); border-radius:6px; padding:0 11px; background:#fff; min-width:220px; }
.search-box svg { width:16px;height:16px;color:var(--text-3); }
.search-box input { border:none; outline:none; font-size:13px; width:100%; color:var(--text-1); background:none; }
.search-box input::placeholder { color:var(--text-4); }
.chip { height:30px; padding:0 13px; border-radius:15px; border:1px solid var(--border); background:#fff; color:var(--text-2); font-size:12px; display:inline-flex;align-items:center; }
.chip:hover { border-color:var(--brand); color:var(--brand); }
.chip.active { background:var(--brand-1); border-color:var(--brand-1); color:var(--brand); font-weight:600; }

/* 时间轴 */
.timeline { position:relative; padding-left: 4px; }
.tl-item { display:flex; gap:14px; position:relative; padding-bottom:22px; }
.tl-item:not(:last-child)::before { content:""; position:absolute; left:34px; top:24px; bottom:0; width:1px; background:var(--border); }
.tl-time { width:62px; flex:0 0 auto; font-size:13px; font-weight:600; color:var(--text-1); padding-top:2px; }
.tl-dot { width:12px;height:12px;border-radius:50%;background:#fff;border:2.5px solid var(--brand);flex:0 0 auto;margin-top:5px;position:relative;z-index:1; }
.tl-dot.done { background:var(--brand); }
.tl-dot.now { border-color:var(--warning); box-shadow:0 0 0 4px var(--warning-bg); }
.tl-body { flex:1; background:#fff; border:1px solid var(--border); border-radius:8px; padding:12px 15px; }
.tl-body strong { font-size:13px; display:block; margin-bottom:3px;}
.tl-body p { margin:0; font-size:12px; color:var(--text-3); }
.tl-body .tl-owner { margin-top:8px; font-size:11px; color:var(--brand); display:inline-flex;align-items:center;gap:4px; }
.tl-body .tl-owner svg { width:13px;height:13px; }

/* 签到卡 */
.checkin-hero { text-align:center; padding:26px 20px; }
.qr-box { width:150px;height:150px;margin:0 auto 16px;border:1px solid var(--border);border-radius:10px;padding:10px;background:#fff;display:grid;place-items:center; }
.qr-box svg { width:100%;height:100%;color:var(--text-1); }
.checkin-num { font-size:32px;font-weight:700;letter-spacing:-.5px; }
.checkin-sub { color:var(--text-3); font-size:12px; }
.stat-inline { display:flex;justify-content:space-around;padding:16px 0;border-top:1px solid var(--border-light);margin-top:18px;}
.stat-inline div { text-align:center; }
.stat-inline b { display:block;font-size:19px;font-weight:600; }
.stat-inline span { font-size:11px;color:var(--text-3); }

/* 应急卡 */
.emergency-item { display:flex;gap:12px;padding:14px 0;align-items:flex-start; }
.emergency-item:not(:last-child){border-bottom:1px solid var(--border-light);}
.emer-icon { width:34px;height:34px;border-radius:8px;display:grid;place-items:center;flex:0 0 auto; }
.emer-icon svg { width:18px;height:18px; }
.emer-body strong { font-size:13px;display:block; }
.emer-body p { margin:3px 0 0;font-size:12px;color:var(--text-2); }
.emer-body .emer-tel { font-size:12px;color:var(--brand);font-weight:600; }
.call-card { display:flex;align-items:center;gap:12px;padding:14px;border:1px solid var(--border);border-radius:8px;background:#fff; }
.call-card .avatar { width:38px;height:38px; }
.call-card strong { display:block;font-size:13px; }
.call-card span { font-size:11px;color:var(--text-3); }
.call-card button { margin-left:auto;border:none;background:var(--brand-1);color:var(--brand);width:32px;height:32px;border-radius:50%;display:grid;place-items:center; }
.call-card button svg { width:16px;height:16px; }

/* 物资进度 */
.meter { display:flex;align-items:center;gap:10px; }
.meter-track { flex:1;height:6px;background:#F0F1F3;border-radius:4px;overflow:hidden; }
.meter-fill { height:100%;border-radius:4px;background:var(--brand); }
.meter span { font-size:11px;color:var(--text-3);width:46px;text-align:right; }

/* 我的 */
.profile-head { text-align:center;padding:26px 20px 20px; }
.profile-head .avatar { width:60px;height:60px;font-size:22px;margin:0 auto 12px; }
.profile-head h3 { margin:0;font-size:17px; }
.profile-head p { margin:4px 0 0;color:var(--text-3);font-size:12px; }
.profile-stat { display:flex;border-top:1px solid var(--border-light);padding-top:16px;margin-top:18px; }
.profile-stat div { flex:1;text-align:center; }
.profile-stat b { display:block;font-size:18px;font-weight:600; }
.profile-stat span { font-size:11px;color:var(--text-3); }
.profile-stat div+div { border-left:1px solid var(--border-light); }
.list-row { display:flex;align-items:center;gap:12px;padding:14px 0;cursor:pointer; }
.list-row:not(:last-child){border-bottom:1px solid var(--border-light);}
.list-row .row-icon { width:32px;height:32px;border-radius:8px;display:grid;place-items:center; }
.list-row .row-icon svg { width:17px;height:17px; }
.list-row strong { font-size:13px;font-weight:500; }
.list-row .row-right { margin-left:auto;display:flex;align-items:center;gap:6px;color:var(--text-3);font-size:12px; }
.list-row .row-right svg { width:15px;height:15px; }

/* ========== 移动端 ========== */
.mobile-header, .tabbar { display: none; }
@media (max-width: 991px) {
  .sidebar { display: none; }
  .main { margin-left: 0; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .topbar { display: none; }
  .mobile-header {
    display:flex; align-items:center; justify-content:space-between; height:58px; padding:0 16px;
    background:var(--white); border-bottom:1px solid var(--border); position:sticky; top:0; z-index:20;
  }
  .mh-left { display:flex;align-items:center;gap:10px; }
  .mh-title { display:flex;flex-direction:column;line-height:1.25; }
  .mh-title strong { font-size:15px; }
  .mh-title span { font-size:10px;color:var(--text-3); }
  .view-wrap { padding:14px 14px 28px; }
  .page-head { margin-bottom:14px; }
  .page-title { font-size:19px; }
  .grid { gap:12px; }
  .g2, .g3, .g4, .g-hero { grid-template-columns: repeat(2, 1fr); }
  .g-hero, .g-2col-mobile { grid-template-columns: 1fr; }
  .hero { padding:20px; border-radius:16px; }
  .hero h2 { font-size:21px; }
  .hero-meta { gap:12px; margin-top:16px; }
  .hero-meta div { font-size:11px; }
  .hero-count { position:static; text-align:left; margin-top:16px; display:flex; align-items:baseline; gap:6px; }
  .hero-count .num { font-size:30px; }
  .hero-count .unit, .hero-count .label { margin:0; font-size:11px; }
  .card { border-radius:14px; }
  .stat { padding:15px; }
  .stat-value { font-size:23px; }
  .stat-icon { width:34px;height:34px; }
  .stat-icon svg { width:18px;height:18px; }
  .quick { padding:14px 2px; }
  .role-desc { min-height:auto; }
  .kanban-col { padding:10px; min-height:0; margin-bottom:12px; }
  .tabbar {
    display:flex; position:fixed; bottom:0; left:0; right:0; height:calc(58px + env(safe-area-inset-bottom));
    background:rgba(255,255,255,.97); backdrop-filter:blur(10px); border-top:1px solid var(--border);
    z-index:40; padding-bottom:env(safe-area-inset-bottom);
  }
  .tab-item { flex:1; display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;background:none;border:none;color:var(--text-3);font-size:10px;position:relative; }
  .tab-item svg { width:21px;height:21px; }
  .tab-item.active { color:var(--brand);font-weight:600; }
  .tab-item .tab-dot { position:absolute;top:7px;right:calc(50% - 15px);width:6px;height:6px;border-radius:50%;background:var(--danger); }
  .search-box { min-width:0; flex:1; }
  .tl-time { width:50px;font-size:12px; }
  .tl-item { gap:10px; }
  .tl-item:not(:last-child)::before { left:29px; }
}
@media (max-width: 380px) {
  .g4 { grid-template-columns: repeat(2,1fr); }
  .hero-meta div { width:100%; }
}

/* ========== 抽屉 / 提示 ========== */
.drawer-mask { display:none; position:fixed;inset:0;background:rgba(0,0,0,.35);z-index:60; }
.drawer-mask.show { display:block; }
.drawer { position:fixed;right:0;top:0;bottom:0;width:340px;max-width:88vw;background:#fff;z-index:61;transform:translateX(100%);transition:transform .25s;box-shadow:-8px 0 32px rgba(0,0,0,.12);display:flex;flex-direction:column; }
.drawer.show { transform:translateX(0); }
.drawer-head { display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid var(--border); }
.drawer-head strong { font-size:16px; }
.drawer-head .icon-btn { font-size:24px;line-height:1; }
.drawer-list { padding:8px 20px;overflow-y:auto; }
.drawer-item { padding:14px 0;border-bottom:1px solid var(--border-light); }
.drawer-item strong { font-size:13px;display:block;margin-bottom:3px; }
.drawer-item p { margin:0;font-size:12px;color:var(--text-2); }
.drawer-item time { font-size:11px;color:var(--text-4); }
.toast { position:fixed;left:50%;top:76px;transform:translate(-50%,-12px);background:rgba(29,33,41,.9);color:#fff;padding:9px 18px;border-radius:6px;font-size:13px;z-index:100;opacity:0;pointer-events:none;transition:.22s;white-space:nowrap; }
.toast.show { opacity:1;transform:translate(-50%,0); }
.fade-in { animation:fade .25s ease-out; }
@keyframes fade { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:translateY(0)} }

/* ========== 岗位编辑 / 人员选择 ========== */
.role-card { position:relative; }
.role-actions { position:absolute;right:10px;top:10px;display:flex;gap:4px;opacity:0;transition:.18s; }
.role-card:hover .role-actions { opacity:1; }
@media (hover:none) { .role-actions { opacity:1; } }
.mini-btn { width:24px;height:24px;border-radius:5px;border:1px solid var(--border);background:#fff;color:var(--text-3);display:grid;place-items:center;font-size:15px;line-height:1;padding:0; }
.mini-btn svg { width:14px;height:14px; }
.mini-btn:hover { border-color:var(--brand);color:var(--brand); }
.mini-btn.danger:hover { border-color:var(--danger);color:var(--danger); }
.role-assign { border-top:1px solid var(--border-light);padding-top:10px;margin-top:10px; }
.role-assign-label { font-size:11px;color:var(--text-3);display:flex;justify-content:space-between;margin-bottom:7px; }
.role-chips { display:flex;flex-wrap:wrap;gap:5px;min-height:22px; }
.person-chip { display:inline-flex;align-items:center;gap:4px;background:var(--brand-1);color:var(--brand);font-size:11px;padding:2px 7px;border-radius:4px; }
.person-chip b { cursor:pointer;font-weight:400;opacity:.7; }
.person-chip b:hover { opacity:1; }
.no-person { font-size:11px;color:var(--text-4); }
.pick-btn { margin-top:8px;height:26px;padding:0 10px;border:1px dashed var(--brand-2);background:#fff;color:var(--brand);border-radius:5px;font-size:11px;display:inline-flex;align-items:center;gap:4px; }
.pick-btn svg { width:13px;height:13px; }
.pick-btn:hover { background:var(--brand-1); }
.modal-mask { position:fixed;inset:0;background:rgba(0,0,0,.42);z-index:80;display:flex;align-items:center;justify-content:center;padding:16px;animation:fade .18s; }
.modal { background:#fff;border-radius:14px;width:100%;max-width:460px;max-height:86vh;display:flex;flex-direction:column;box-shadow:0 20px 60px rgba(0,0,0,.2); }
.modal-head { display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--border); }
.modal-head strong { font-size:16px; }
.modal-close { border:none;background:none;font-size:24px;color:var(--text-3);line-height:1;cursor:pointer; }
.modal-body { padding:18px 20px;overflow-y:auto; }
.modal-foot { display:flex;justify-content:flex-end;gap:8px;padding:14px 20px;border-top:1px solid var(--border); }
.field { display:flex;flex-direction:column;gap:6px;margin-bottom:14px;font-size:12px;color:var(--text-2); }
.field span i { color:var(--danger);font-style:normal; }
.field input,.field textarea,.field select { border:1px solid var(--border);border-radius:6px;padding:8px 10px;font-size:13px;font-family:inherit;color:var(--text-1);outline:none;background:#fff; }
.field input:focus,.field textarea:focus,.field select:focus { border-color:var(--brand); }
.field textarea { resize:vertical; }
.field-row { display:grid;grid-template-columns:1fr 1fr;gap:12px; }
.modal-search { display:flex;align-items:center;gap:8px;border:1px solid var(--border);border-radius:6px;padding:0 10px;height:36px;margin-bottom:12px; }
.modal-search svg { width:16px;height:16px;color:var(--text-3); }
.modal-search input { border:none;outline:none;flex:1;font-size:13px; }
.member-grid { display:flex;flex-direction:column;gap:6px;max-height:52vh;overflow-y:auto;padding-right:2px; }
.member-item { position:relative;display:flex;align-items:center;gap:10px;padding:9px 10px;border:1px solid var(--border);border-radius:8px;background:#fff;cursor:pointer;transition:.15s;min-width:0;text-align:left;width:100%; }
.member-item:hover { border-color:var(--brand);background:#f7faff; }
.member-item.selected { border-color:var(--brand);background:var(--brand-1); }
.member-item .avatar { width:32px;height:32px;font-size:13px;flex:none; }
.member-name { flex:1;min-width:0;font-size:13px;line-height:1.4;color:var(--text-1);white-space:normal;word-break:break-word; }
.member-item.selected .member-name { color:var(--brand);font-weight:500; }
.member-rename { flex:none;border:none;background:none;color:var(--text-3);font-size:12px;padding:4px 6px;border-radius:4px;cursor:pointer; }
.member-rename:hover { background:#eef2f7;color:var(--brand); }
.member-edit-input { flex:1;min-width:0;border:1px solid var(--brand);border-radius:5px;padding:6px 8px;font-size:13px;outline:none; }
.member-edit-actions { display:flex;gap:6px;flex:none; }
.member-edit-actions button { border:1px solid var(--border);background:#fff;border-radius:5px;padding:5px 9px;font-size:12px;cursor:pointer; }
.member-edit-actions button.primary { background:var(--brand);border-color:var(--brand);color:#fff; }
.member-check { flex:none;width:18px;height:18px;border-radius:50%;background:var(--brand);color:#fff;display:none;place-items:center; }
.member-item.selected .member-check { display:grid; }
.member-check svg { width:12px;height:12px; }
.member-empty { text-align:center;color:var(--text-4);font-size:12px;padding:24px 0; }
@media(max-width:480px) { .field-row { grid-template-columns:1fr; } }

/* ========== 号码牌 / 互动抽号 / 选歌大屏 ========== */
.badge-no { display:inline-block;background:var(--brand-1);color:var(--brand);font-size:12px;font-weight:700;letter-spacing:.5px;padding:3px 9px;border-radius:6px;font-variant-numeric:tabular-nums;white-space:nowrap; }
.draw-kind { cursor:pointer;transition:.18s;border:1px solid var(--border); }
.draw-kind:hover { border-color:var(--brand-2); }
.draw-kind.active { border-color:var(--brand);box-shadow:0 0 0 2px var(--brand-1); }
.draw-kind.active .role-top strong { color:var(--brand); }
.chk-field { display:flex;align-items:center;gap:7px;font-size:12px;color:var(--text-2);height:36px;padding-bottom:2px;white-space:nowrap;cursor:pointer; }
.chk-field input { width:15px;height:15px;accent-color:var(--brand);cursor:pointer; }
.hint-line { font-size:11px;color:var(--text-3);margin-top:12px;line-height:1.7; }
.draw-stage { margin-top:4px;padding:42px 24px;border-radius:18px;text-align:center;color:#fff;background:radial-gradient(700px 300px at 50% 0%,#2B7BFF,#0052D9 70%);box-shadow:0 12px 36px rgba(0,82,217,.3); }
.draw-stage .ds-label { font-size:14px;letter-spacing:4px;opacity:.9; }
.draw-stage .ds-no { font-size:76px;font-weight:800;letter-spacing:8px;line-height:1.25;margin-top:8px;font-variant-numeric:tabular-nums; }
.draw-stage .ds-name { font-size:26px;font-weight:600;margin-top:4px;word-break:break-all; }
.draw-stage .ds-meta { font-size:13px;opacity:.88;margin-top:10px;line-height:1.7; }
.draw-stage .btn { background:#fff;color:var(--brand);width:auto;padding:0 28px; }
.mini-sel { border:1px solid var(--border);border-radius:5px;padding:4px 6px;font-size:12px;font-family:inherit;color:var(--text-1);background:#fff;outline:none;max-width:100px; }
.mini-sel:focus { border-color:var(--brand); }
.song-current { background:linear-gradient(120deg,var(--brand-1),#F3F8FF);border:1px solid var(--brand-2);border-radius:12px;padding:16px 18px;margin-bottom:14px; }
.song-current .sc-label { font-size:11px;letter-spacing:2px;color:var(--brand);margin-bottom:6px; }
.song-current .sc-title { font-size:22px;font-weight:700;color:var(--text-1);word-break:break-all; }
.song-current .sc-sub { font-size:12px;color:var(--text-2);margin-top:8px;display:flex;align-items:center;gap:8px;flex-wrap:wrap; }
.song-queue-list { display:flex;flex-direction:column;gap:8px; }
.song-queue-item { display:flex;align-items:center;gap:12px;padding:9px 12px;border:1px solid var(--border-light);border-radius:9px;background:#fff; }
.song-queue-item i { width:26px;height:26px;border-radius:7px;background:var(--brand-1);color:var(--brand);font-style:normal;font-size:13px;font-weight:700;display:grid;place-items:center;flex:none; }
.song-queue-item .sq-info { flex:1;min-width:0; }
.song-queue-item .sq-info strong { font-size:14px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.song-queue-item .sq-info small { font-size:11px;color:var(--text-3); }
@media(max-width:480px) { .ds-no { font-size:56px;letter-spacing:5px; } .draw-stage { padding:32px 16px; } .draw-stage .ds-name { font-size:20px; } }

/* ========== 悬浮伴奏播放器 ========== */
.audio-player { position:fixed;left:50%;bottom:16px;transform:translateX(-50%);width:min(720px,calc(100% - 24px));
  background:#1D2129;color:#fff;border-radius:14px;box-shadow:0 10px 40px rgba(0,0,0,.30);z-index:1200;display:none;overflow:hidden; }
.ap-viz-wrap { height:26px;background:linear-gradient(180deg,#232936,#1D2129);border-bottom:1px solid rgba(255,255,255,.05); }
.ap-viz { display:block;width:100%;height:26px; }
.ap-lyric { height:34px;display:flex;align-items:center;justify-content:center;gap:12px;padding:0 20px;position:relative;overflow:hidden; }
.ap-lyric-line { font-size:13px;color:rgba(255,255,255,.42);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color .25s; }
.ap-lyric-line.on { color:#fff;font-weight:600;animation:lyricPop .35s ease-out; }
@keyframes lyricPop{from{transform:translateY(6px);opacity:.3}to{transform:translateY(0);opacity:1}}
.ap-lyric-next { font-size:11px;color:rgba(255,255,255,.22);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:32%; }
.ap-progress { height:3px;background:rgba(255,255,255,.14); }
.ap-bar { height:100%;width:0;background:var(--brand);transition:width .2s linear; }
.ap-close { position:absolute;top:8px;right:10px;background:none;border:none;color:rgba(255,255,255,.5);font-size:20px;line-height:1;cursor:pointer;z-index:2; }
.ap-close:hover { color:#fff; }
.ap-main { display:flex;align-items:center;gap:16px;padding:12px 20px; }
.ap-info { display:flex;align-items:center;gap:11px;flex:1;min-width:0; }
.ap-note { width:36px;height:36px;border-radius:9px;background:var(--brand);display:grid;place-items:center;font-size:18px;flex:none; }
.ap-info strong { font-size:14px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.ap-info small { font-size:11px;color:rgba(255,255,255,.5);display:block;margin-top:2px; }
.ap-controls { display:flex;align-items:center;gap:10px;flex:none; }
.ap-controls button { background:none;border:none;color:rgba(255,255,255,.75);cursor:pointer;width:26px;height:26px;display:grid;place-items:center;padding:0; }
.ap-controls button svg { width:16px;height:16px;fill:currentColor; }
.ap-controls button:hover { color:#fff; }
.ap-controls .ap-play { background:#fff;color:#1D2129;border-radius:50%;width:38px;height:38px;font-size:14px;font-weight:700; }
.ap-right { display:flex;align-items:center;gap:10px;flex:none; }
.ap-time { font-size:11px;color:rgba(255,255,255,.6);font-variant-numeric:tabular-nums;white-space:nowrap; }
.ap-vol { width:70px;accent-color:var(--brand);cursor:pointer; }
.ap-loop { background:none;border:none;color:rgba(255,255,255,.5);cursor:pointer;font-size:18px;line-height:1;padding:2px 5px; }
.ap-loop.on { color:var(--brand); }
@media(max-width:560px) {
  .audio-player { bottom:calc(64px + 8px); }
  .ap-main { gap:8px;padding:10px 12px; }
  .ap-vol,.ap-time { display:none; }
  .ap-info strong { font-size:13px; }
}

