/* TPC 实景体验 · 管理后台 —— 游戏卡通风主题 */
:root {
  --primary: #7c5cff;
  --primary-dark: #5a3ee0;
  --accent: #ffb020;
  --accent-dark: #e89500;
  --pink: #ff6b9d;
  --danger: #ff5470;
  --success: #2ec27e;
  --warning: #ff9f43;
  --ink: #3a2e55;
  --ink-2: #8a7fa8;
  --bg: #f6f2ff;
  --card: #ffffff;
  --border: #e6dcff;
  --radius: 16px;
  --shadow-pop: 0 4px 0 rgba(90, 62, 224, 0.28);
  --shadow-soft: 0 8px 24px rgba(124, 92, 255, 0.10);
  --font-fun: 'ZCOOL KuaiLe', 'Yuanti SC', 'YouYuan', 'Microsoft YaHei', sans-serif;
  --font-body: 'Nunito', 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 176, 32, 0.07) 0 90px, transparent 91px),
    radial-gradient(circle at 92% 85%, rgba(255, 107, 157, 0.08) 0 110px, transparent 111px),
    var(--bg);
}
a { color: var(--primary); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-fun); font-weight: 400; letter-spacing: 0.5px; }

/* ---------- 按钮：厚描边 + 硬阴影的"果冻按钮" ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  padding: 8px 16px; border-radius: 14px;
  border: 2px solid var(--ink);
  font-family: var(--font-fun); font-size: 14px; letter-spacing: 1px;
  cursor: pointer; transition: 0.12s;
  background: #fff; color: var(--ink);
  box-shadow: 0 3px 0 var(--ink);
  white-space: nowrap; user-select: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.btn.primary {
  background: linear-gradient(180deg, #8f70ff, var(--primary-dark));
  color: #fff; border-color: var(--primary-dark);
  box-shadow: 0 3px 0 var(--primary-dark);
}
.btn.primary:hover { box-shadow: 0 4px 0 var(--primary-dark); }
.btn.primary:active { box-shadow: 0 1px 0 var(--primary-dark); }
.btn.ghost { background: transparent; box-shadow: none; border-color: var(--border); color: var(--ink-2); }
.btn.ghost:hover { color: var(--primary); border-color: var(--primary); }
.btn.danger {
  color: var(--danger); border-color: var(--danger);
  background: #fff0f3; box-shadow: 0 3px 0 var(--danger);
}
.btn.danger:hover { box-shadow: 0 4px 0 var(--danger); }
.btn.small { padding: 4px 12px; font-size: 12px; border-radius: 11px; border-width: 2px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ---------- 布局 ---------- */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w, 220px);
  background: linear-gradient(180deg, #33205e 0%, #4a2a8a 60%, #5a3aa0 100%);
  border-right: 4px solid var(--ink);
  display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0;
  --sidebar-w: 220px;
  box-shadow: 6px 0 0 rgba(58, 46, 85, 0.12);
}
/* 星空装饰 */
.sidebar::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.55) 1.5px, transparent 2px),
    radial-gradient(circle, rgba(255,176,32,0.8) 2px, transparent 3px),
    radial-gradient(circle, rgba(255,107,157,0.7) 1.5px, transparent 2.5px);
  background-size: 130px 150px, 200px 180px, 170px 130px;
  background-position: 10px 20px, 80px 90px, 40px 160px;
}
.brand {
  padding: 22px 18px 18px; position: relative; z-index: 1;
  font-family: var(--font-fun); font-size: 17px; color: #fff;
  border-bottom: 2px dashed rgba(255,255,255,0.25);
}
.brand span {
  display: inline-block; margin-top: 6px; padding: 2px 12px;
  font-size: 12px; color: var(--ink);
  background: var(--accent); border: 2px solid var(--ink);
  border-radius: 999px; box-shadow: 0 2px 0 var(--ink);
}
.sidebar nav { flex: 1; padding: 12px 10px; overflow-y: auto; position: relative; z-index: 1; }
.sidebar nav a {
  display: block; margin-bottom: 6px; padding: 10px 14px;
  color: rgba(255,255,255,0.78); font-family: var(--font-fun);
  font-size: 15px; letter-spacing: 2px;
  border: 2px solid transparent; border-radius: 14px; transition: 0.15s;
}
.sidebar nav a:hover { color: #fff; background: rgba(255,255,255,0.12); transform: translateX(2px); }
.sidebar nav a.active {
  color: var(--ink);
  background: var(--accent);
  border-color: var(--ink);
  box-shadow: 0 3px 0 var(--ink);
}
.sidebar-user { padding: 14px 16px; border-top: 2px dashed rgba(255,255,255,0.25); position: relative; z-index: 1; }
.sidebar-user .u-name { color: #fff; font-family: var(--font-fun); font-size: 15px; letter-spacing: 1px; }
.sidebar-user .u-role {
  display: inline-block; margin: 6px 0 12px; padding: 1px 10px;
  font-size: 12px; color: #fff;
  background: rgba(255,255,255,0.16); border: 1.5px solid rgba(255,255,255,0.4); border-radius: 999px;
}
.sidebar-user .btn { background: rgba(255,255,255,0.92); }

.main { flex: 1; margin-left: 220px; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: 62px; background: var(--card);
  border-bottom: 3px solid var(--ink);
  display: flex; align-items: center; padding: 0 26px;
  position: sticky; top: 0; z-index: 10;
}
.topbar h1 { font-size: 19px; position: relative; padding-left: 16px; }
.topbar h1::before {
  content: '';
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 8px; height: 22px; border-radius: 6px;
  background: linear-gradient(180deg, var(--accent), var(--pink));
  border: 2px solid var(--ink);
}
.content { padding: 22px 26px 46px; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card); border: 2.5px solid var(--ink);
  border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px;
  box-shadow: var(--shadow-pop), var(--shadow-soft);
}
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.toolbar .grow { flex: 1; }
.toolbar input, .toolbar select {
  padding: 8px 12px; border: 2px solid var(--ink); border-radius: 12px;
  font-size: 13px; font-family: var(--font-body);
  background: #fff; color: var(--ink); min-width: 0;
  box-shadow: 0 2px 0 var(--ink);
}
.toolbar input:focus, .toolbar select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 2px 0 var(--primary-dark);
}
.toolbar input[type="date"] { width: 150px; }
.toolbar input::placeholder { color: #b7abdb; }

/* ---------- 表格 ---------- */
.table-card {
  background: var(--card); border: 2.5px solid var(--ink);
  border-radius: var(--radius); overflow-x: auto;
  box-shadow: var(--shadow-pop), var(--shadow-soft);
}
table { width: 100%; border-collapse: collapse; background: transparent; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 2px dashed var(--border); font-size: 13px; vertical-align: middle; }
th {
  color: #fff; font-family: var(--font-fun); font-weight: 400; letter-spacing: 1.5px;
  background: linear-gradient(180deg, #8f70ff, var(--primary-dark));
  white-space: nowrap; font-size: 13.5px;
}
th:first-child { border-top-left-radius: 0; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #f6f1ff; }
td .ops { display: flex; gap: 6px; flex-wrap: wrap; }
.muted { color: var(--ink-2); font-size: 12px; }

/* ---------- 徽标：糖果药丸 ---------- */
.badge {
  display: inline-block; padding: 3px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
  border: 2px solid; transform: rotate(-1deg);
}
.badge.blue  { background: #e9e3ff; color: #5a3ee0; border-color: #5a3ee0; }
.badge.green { background: #dcf8ea; color: #178a56; border-color: #178a56; }
.badge.orange{ background: #fff1d6; color: #b26a00; border-color: #b26a00; }
.badge.red   { background: #ffe1e8; color: #d3285a; border-color: #d3285a; }
.badge.gray  { background: #efecf7; color: #7d74a0; border-color: #b0a6d6; }
.badge.cyan  { background: #dcf3f8; color: #0b7a8f; border-color: #0b7a8f; }
.badge.purple{ background: #f3e8ff; color: #7b3fd4; border-color: #7b3fd4; }
/* 权限管理矩阵 */
.perm-table th, .perm-table td { padding: 8px 10px; }
.perm-table thead th { text-align: center; }
.perm-table tbody tr:hover { background: #f8f5ff; }
.perm-chk { width: 16px; height: 16px; accent-color: #7b4fd0; cursor: pointer; }

/* ---------- 统计卡：奖励卡片 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 18px; }
.stat-card {
  background: var(--card); border: 2.5px solid var(--ink);
  border-radius: var(--radius); padding: 16px 18px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-pop), var(--shadow-soft);
  transition: 0.15s;
}
.stat-card::before {
  content: ''; position: absolute; right: -18px; top: -18px;
  width: 64px; height: 64px; border-radius: 50%;
  background: repeating-linear-gradient(45deg, rgba(255,176,32,0.35) 0 6px, transparent 6px 12px);
  border: 2.5px solid var(--ink);
}
.stat-card:nth-child(2)::before { background: repeating-linear-gradient(45deg, rgba(255,107,157,0.3) 0 6px, transparent 6px 12px); }
.stat-card:nth-child(3)::before { background: repeating-linear-gradient(45deg, rgba(46,194,126,0.3) 0 6px, transparent 6px 12px); }
.stat-card:nth-child(4)::before { background: repeating-linear-gradient(45deg, rgba(124,92,255,0.3) 0 6px, transparent 6px 12px); }
.stat-card:hover { transform: translateY(-2px); }
.stat-card .num { font-family: var(--font-fun); font-size: 28px; color: var(--primary-dark); margin-top: 6px; }
.stat-card .num.warn { color: var(--danger); }
.stat-card .label { color: var(--ink-2); font-size: 13px; font-weight: 700; }

/* ---------- 简易柱状图 ---------- */
.chart { display: flex; align-items: flex-end; gap: 14px; height: 180px; padding: 10px 6px 0; }
.chart .bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.chart .bar {
  width: 60%; max-width: 42px; min-height: 3px;
  background: linear-gradient(180deg, #8f70ff, var(--primary-dark));
  border: 2px solid var(--ink); border-bottom: none;
  border-radius: 10px 10px 0 0; transition: height .3s;
}
.chart .bar-label { font-size: 11px; color: var(--ink-2); white-space: nowrap; font-weight: 700; }
.chart .bar-value { font-size: 12px; color: var(--ink); font-weight: 700; }

/* ---------- 表单 ---------- */
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.form-row .req { color: var(--danger); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 9px 13px; border: 2px solid var(--ink); border-radius: 12px;
  font-size: 14px; font-family: var(--font-body); background: #fff; color: var(--ink);
  box-shadow: 0 2px 0 var(--ink);
}
.form-row textarea { resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 2px 0 var(--primary-dark);
}
.form-error { display: none; color: var(--danger); font-size: 13px; font-weight: 700; margin: 8px 0; }
.inline-inputs { display: flex; gap: 8px; }
.inline-inputs select, .inline-inputs input {
  padding: 9px 12px; border: 2px solid var(--ink); border-radius: 12px;
  font-size: 13px; font-family: var(--font-body); background: #fff; color: var(--ink);
}

/* ---------- 弹窗 ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(51, 32, 94, 0.55); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadeIn 0.15s;
}
.modal {
  background: var(--card); border: 3px solid var(--ink); border-radius: 20px;
  width: 100%; max-width: 460px; max-height: 90vh;
  display: flex; flex-direction: column;
  box-shadow: 6px 6px 0 rgba(58, 46, 85, 0.35), 0 24px 60px rgba(0,0,0,0.25);
  animation: popIn 0.18s;
}
.modal.lg { max-width: 720px; }
.modal.xl { max-width: 980px; }
/* 一行双输入（人数范围等） */
.form-inline-row { display: flex; align-items: center; gap: 8px; }
.form-inline-row input { flex: 1; max-width: 160px; }
.form-inline-row .range-sep { color: #9a8fb8; font-weight: bold; }
.form-inline-row.base-price-row input { max-width: 90px; }
/* 内容配置（剧本编辑） */
.cfg-box { border: 2px solid var(--border); border-radius: 12px; padding: 10px; background: #fdfcff; position: relative; }
.cfg-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.cfg-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px dashed var(--border); }
.cfg-row:last-child { border-bottom: none; }
.cfg-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: bold; }
.cfg-toggle {
  min-width: 52px; padding: 3px 10px; border: 2px solid #178a56; border-radius: 12px;
  background: #dcf8ea; color: #178a56; font-size: 12px; cursor: pointer; flex: none;
}
.cfg-toggle.opt { border-color: #b26a00; background: #fff1d6; color: #b26a00; }
.cfg-price { display: flex; align-items: center; gap: 4px; flex: none; }
.cfg-price input { width: 76px; padding: 3px 6px; border: 2px solid var(--border); border-radius: 8px; text-align: right; }
.cfg-price i { font-style: normal; color: #7d74a0; font-size: 12px; }
.cfg-del {
  width: 24px; height: 24px; border: none; border-radius: 50%; background: #ffe1e8; color: #d3285a;
  font-size: 14px; line-height: 1; cursor: pointer; flex: none;
}
.cfg-pick {
  position: absolute; top: 44px; left: 10px; right: 10px; z-index: 5;
  background: #fff; border: 2px solid var(--primary); border-radius: 12px;
  box-shadow: 0 10px 30px rgba(58, 46, 85, 0.25);
  max-height: 220px; overflow-y: auto; padding: 6px;
}
.cfg-pick-item {
  display: block; width: 100%; text-align: left; padding: 7px 12px; margin: 2px 0;
  border: none; border-radius: 8px; background: #f6f2ff; cursor: pointer; font-size: 14px;
}
.cfg-pick-item:hover { background: var(--primary); color: #fff; }
.cfg-pick-item.had { opacity: .45; cursor: not-allowed; }
.cfg-pick-depth { color: #b0a6d6; margin-right: 4px; }
.cfg-pick-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2px 8px 8px; margin-bottom: 6px;
  border-bottom: 1px dashed var(--border);
}
.cfg-pick-close {
  width: 24px; height: 24px; border: none; border-radius: 50%;
  background: #efecf7; color: #7d74a0; font-size: 14px; line-height: 1; cursor: pointer;
}
.cfg-pick-close:hover { background: #ffe1e8; color: #d3285a; }
.cfg-path { color: #9a8fb8; font-size: 12px; font-weight: normal; }
/* 用户管理 */
.avatar-sm {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--border); background: #f6f2ff;
}
.avatar-sm.avatar-empty {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; color: #b0a6c8;
}
.openid-cell { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 用户轨迹 */
.traj-stage {
  position: relative; border-radius: 12px; overflow: hidden;
  background: #eceaf4; border: 2px solid var(--border);
}
.traj-stage > img { display: block; width: 100%; user-select: none; }
.traj-svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; filter: drop-shadow(0 0 2px rgba(255,255,255,.8));
}
.traj-dot {
  position: absolute; width: 14px; height: 14px; border-radius: 50%;
  background: #7b4fd0; border: 3px solid #fff; box-shadow: 0 1px 6px rgba(60,30,110,.45);
  transform: translate(-50%, -50%); pointer-events: none;
  animation: traj-pulse 1.6s ease-out infinite;
}
@keyframes traj-pulse {
  0% { box-shadow: 0 1px 6px rgba(60,30,110,.45), 0 0 0 0 rgba(123,79,208,.4); }
  70% { box-shadow: 0 1px 6px rgba(60,30,110,.45), 0 0 0 12px rgba(123,79,208,0); }
  100% { box-shadow: 0 1px 6px rgba(60,30,110,.45), 0 0 0 0 rgba(123,79,208,0); }
}
.traj-controls { margin-top: 12px; }
.traj-controls input[type="range"] { width: 100%; accent-color: #7b4fd0; }
.traj-meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 4px; }
.traj-meta .mono { font-size: 14px; font-weight: 700; color: #4a3f66; }
.traj-list { display: flex; flex-direction: column; gap: 4px; }
.traj-li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 12px; border-radius: 8px; background: #f6f4fb; cursor: pointer;
}
.traj-li:hover { background: #efeafc; }
.traj-li.cur { background: #e7ddff; box-shadow: inset 3px 0 0 #7b4fd0; }
/* ---------- 富文本编辑器 ---------- */
.rich-editor { border: 2px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; }
.rich-toolbar {
  display: flex; flex-wrap: wrap; gap: 4px; align-items: center;
  padding: 8px; border-bottom: 2px dashed var(--border); background: #f8f5ff;
}
.rich-toolbar button {
  min-width: 32px; height: 32px; padding: 0 8px;
  border: 2px solid var(--border); border-radius: 8px; background: #fff;
  font-size: 14px; line-height: 1; cursor: pointer;
}
.rich-toolbar button:hover { border-color: var(--primary); }
.rich-toolbar button.on { background: var(--primary); border-color: var(--primary-dark); color: #fff; }
.rich-toolbar select, .rich-toolbar input[type="color"] {
  height: 32px; padding: 0 6px; border: 2px solid var(--border); border-radius: 8px; background: #fff; cursor: pointer;
}
.rich-toolbar input[type="color"] { width: 40px; padding: 2px; }
.rich-toolbar .rich-sep { width: 1px; height: 22px; background: var(--border); margin: 0 4px; }
.rich-area {
  min-height: 320px; max-height: 52vh; overflow-y: auto;
  padding: 14px 18px; font-size: 15px; line-height: 1.9; outline: none;
  word-break: break-word;
}
.rich-area:focus { background: #fdfcff; }
.rich-area p { margin: 0 0 8px; }
.rich-area h2 { font-size: 21px; margin: 14px 0 8px; }
.rich-area h3 { font-size: 17.5px; margin: 12px 0 6px; }
.rich-area blockquote {
  margin: 8px 0; padding: 6px 14px; border-left: 4px solid var(--primary);
  background: #f6f2ff; color: #5a4a80; border-radius: 0 8px 8px 0;
}
.rich-area ul, .rich-area ol { margin: 8px 0; padding-left: 26px; }
.rich-area img { max-width: 100%; }
.rich-area[data-empty="true"]::before {
  content: attr(data-placeholder); color: #b0a6c8; pointer-events: none;
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 2.5px dashed var(--border);
  background: linear-gradient(180deg, #f6f2ff, #fff);
  border-radius: 16px 16px 0 0;
}
.modal-head h3 { font-size: 16px; color: var(--primary-dark); }
.modal-close {
  background: #fff; border: 2px solid var(--ink); border-radius: 10px;
  font-size: 18px; cursor: pointer; color: var(--ink); line-height: 1;
  width: 30px; height: 30px; box-shadow: 0 2px 0 var(--ink);
}
.modal-close:hover { background: #ffe1e8; color: var(--danger); }
.modal-body { padding: 18px 20px; overflow-y: auto; }
.modal-foot { padding: 14px 20px; border-top: 2.5px dashed var(--border); display: flex; justify-content: flex-end; gap: 10px; }

/* ---------- 报名详情弹窗（卡通卡片风） ---------- */
.su-modal { position: relative; }
.su-modal .modal-head {
  background: linear-gradient(90deg, #7c5cff 0%, #9b6cff 55%, #ffb020 100%);
  border-bottom: none; border-radius: 17px 17px 0 0;
}
.su-modal .modal-head h3 {
  color: #fff; font-family: var(--font-fun); font-size: 17px; letter-spacing: 1px;
  text-shadow: 0 2px 0 rgba(58, 46, 85, 0.3);
}
.su-modal .modal-close { box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25); }
.su-modal .modal-close:hover { transform: rotate(8deg); }
/* 标题下的彩虹糖条 */
.su-modal::before {
  content: ''; position: absolute; left: 18px; right: 18px; top: 56px; height: 6px; z-index: 2;
  background: repeating-linear-gradient(90deg, #ff6b9d 0 26px, #ffb020 26px 52px, #2ec27e 52px 78px, #4ea9ff 78px 104px);
  border-radius: 999px; border: 1.5px solid rgba(58, 46, 85, 0.4);
}
.su-modal .modal-body { padding: 26px 20px 18px; }
.su-modal h4 {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-fun); font-size: 15px; color: var(--primary-dark);
  margin: 14px 0 8px;
}
.su-modal h4::before {
  content: ''; width: 10px; height: 10px; border-radius: 50%; flex: none;
  background: var(--accent); border: 2px solid var(--ink);
}
/* 企业信息英雄卡 */
.su-hero {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, #f3e8ff 0%, #fff7e0 100%);
  border: 2.5px solid var(--ink); border-radius: 14px;
  padding: 12px 16px; margin-bottom: 12px;
  box-shadow: 3px 3px 0 rgba(124, 92, 255, 0.25);
}
.su-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: #7c5cff; color: #fff; font-family: var(--font-fun); font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  border: 2.5px solid var(--ink); box-shadow: 0 3px 0 rgba(58, 46, 85, 0.3);
}
.su-hero-main { flex: 1; min-width: 0; }
.su-company { font-family: var(--font-fun); font-size: 18px; color: var(--ink); }
.su-contact { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.su-hero .badge { transform: rotate(3deg); }
/* 键值行：圆角胶囊卡片 */
.su-modal .traj-li {
  border: 2px solid var(--border); border-radius: 10px; background: #fdfcff;
  transition: 0.12s;
}
.su-modal .traj-li:hover {
  transform: translate(-1px, -1px);
  border-color: var(--primary); background: #f8f5ff;
  box-shadow: 2px 2px 0 rgba(124, 92, 255, 0.2);
}
/* 处理区：虚线框小舞台 */
.su-processing {
  background: #f8f5ff; border: 2px dashed var(--primary);
  border-radius: 14px; padding: 14px;
}
.su-processing input, .su-processing select { border-width: 2px; }

@keyframes popIn {
  from { transform: scale(0.92) translateY(8px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- 抽屉 ---------- */
.drawer-overlay { position: fixed; inset: 0; background: rgba(51, 32, 94, 0.55); z-index: 100; animation: fadeIn 0.15s; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 640px; max-width: 95vw;
  background: var(--card); border-left: 3px solid var(--ink);
  box-shadow: -8px 0 0 rgba(58, 46, 85, 0.15), -20px 0 50px rgba(0,0,0,0.2);
  display: flex; flex-direction: column;
}
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 2.5px dashed var(--border);
  background: linear-gradient(180deg, #f6f2ff, #fff);
}
.drawer-head h3 { font-size: 16px; color: var(--primary-dark); }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 20px; }

/* ---------- 登录页：游戏开场画面 ---------- */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #33205e 0%, #5a3aa0 55%, #7c5cff 100%);
  position: relative; overflow: hidden;
}
/* 浮动装饰气泡 */
.login-wrap::before, .login-wrap::after {
  content: ''; position: absolute; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.25);
  animation: floaty 6s ease-in-out infinite;
}
.login-wrap::before { width: 180px; height: 180px; left: 8%; top: 14%; background: rgba(255,176,32,0.18); }
.login-wrap::after { width: 120px; height: 120px; right: 10%; bottom: 12%; background: rgba(255,107,157,0.2); animation-delay: -3s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(4deg); }
}
.login-card {
  width: 380px; background: var(--card);
  border: 3px solid var(--ink); border-radius: 24px; padding: 38px 34px;
  box-shadow: 8px 8px 0 rgba(58, 46, 85, 0.4), 0 30px 70px rgba(0, 0, 0, 0.35);
  position: relative; z-index: 1;
  animation: popIn 0.25s;
}
.login-card h2 { font-size: 21px; color: var(--primary-dark); text-align: center; }
.login-card .sub {
  text-align: center; color: var(--ink-2); font-size: 13px; font-weight: 700;
  margin: 8px 0 26px; padding: 4px 0;
  border-bottom: 2px dashed var(--border);
}
.login-card .btn { margin-top: 10px; padding: 12px; font-size: 16px; letter-spacing: 6px; }

/* ---------- 监控页 ---------- */
.monitor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.monitor-card {
  background: var(--card); border: 2.5px solid var(--ink);
  border-radius: var(--radius); padding: 14px 16px;
  box-shadow: var(--shadow-pop), var(--shadow-soft);
}
.monitor-card .m-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.monitor-card .m-title { font-family: var(--font-fun); font-size: 15px; letter-spacing: 1px; }
.monitor-card .m-sub { color: var(--ink-2); font-size: 12px; margin-top: 3px; font-weight: 700; }
.player-row {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  border: 2px solid var(--border); border-radius: 13px; margin-bottom: 8px;
  font-size: 13px; background: #fdfcff; transition: 0.15s;
}
.player-row:hover { border-color: var(--primary); }
.player-row.stuck {
  border-color: var(--danger);
  background: linear-gradient(180deg, #fff0f3, #fff);
  animation: stuckPulse 1.6s ease-in-out infinite;
}
@keyframes stuckPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 84, 112, 0.35); }
  50% { box-shadow: 0 0 0 5px rgba(255, 84, 112, 0.12); }
}
.player-row .p-name { font-weight: 800; min-width: 72px; }
.player-row .p-stage { flex: 1; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-row .p-idle { font-size: 12px; color: var(--ink-2); white-space: nowrap; font-weight: 700; }
.player-row.stuck .p-idle { color: var(--danger); }

/* ---------- 提示 ---------- */
.toast {
  position: fixed; top: 22px; left: 50%; transform: translate(-50%, -14px);
  background: var(--ink); color: #fff; padding: 11px 22px;
  border: 2.5px solid #fff; outline: 2.5px solid var(--ink);
  border-radius: 14px; font-family: var(--font-fun); font-size: 14px; letter-spacing: 1px;
  opacity: 0; transition: 0.3s; z-index: 200; max-width: 80vw;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--danger); }
.toast.success { background: var(--success); }

.loading { text-align: center; color: var(--ink-2); padding: 60px 0; font-weight: 700; }
.empty { text-align: center; color: var(--ink-2); padding: 60px 0; font-weight: 700; }
.empty.error { color: var(--danger); }

/* ---------- 分页 ---------- */
.pager { display: flex; gap: 8px; align-items: center; margin-top: 16px; font-size: 13px; color: var(--ink-2); font-weight: 700; }
.pager button { padding: 4px 12px; }

/* ---------- 关卡 / 线索分组 ---------- */
.stage-block {
  border: 2.5px solid var(--ink); border-radius: 14px;
  margin-bottom: 16px; overflow: hidden;
  box-shadow: var(--shadow-pop);
  background: var(--card);
}
.stage-block .s-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  background: linear-gradient(180deg, #fff3d9, #ffe9b8);
  border-bottom: 2.5px dashed var(--border);
}
.stage-block .s-head h4 { font-size: 14.5px; color: var(--ink); }
.stage-block .s-body { padding: 12px 14px; }

/* ---------- Tab 胶囊 ---------- */
.tabs { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs button {
  padding: 7px 20px; border-radius: 999px;
  border: 2px solid var(--ink); background: #fff; cursor: pointer;
  font-family: var(--font-fun); font-size: 14px; letter-spacing: 2px;
  color: var(--ink-2); box-shadow: 0 3px 0 var(--ink);
  transition: 0.12s;
}
.tabs button:hover { transform: translateY(-1px); color: var(--primary-dark); }
.tabs button.active {
  background: linear-gradient(180deg, #8f70ff, var(--primary-dark));
  color: #fff; border-color: var(--primary-dark);
  box-shadow: 0 3px 0 var(--primary-dark);
}
.tabs button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }

/* ---------- 今日作战板 ---------- */
.today-hero {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  background: linear-gradient(135deg, #fff 55%, #f3edff);
}
.hero-date { font-size: 13px; color: var(--ink-2); font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.hero-title {
  font-family: var(--font-fun); font-size: 34px; color: var(--primary-dark);
  letter-spacing: 2px; line-height: 1.2; margin: 2px 0 10px;
}
.hero-meta { color: var(--ink-2); font-size: 13px; font-weight: 700; }
.hero-right { text-align: center; flex-shrink: 0; }
.hero-count {
  font-family: var(--font-fun); font-size: 56px; color: var(--ink);
  letter-spacing: 4px; line-height: 1;
  background: var(--accent); border: 3px solid var(--ink); border-radius: 18px;
  padding: 12px 22px; box-shadow: 0 5px 0 var(--ink);
}
.hero-count-label { margin-top: 10px; color: var(--ink-2); font-weight: 800; font-size: 13px; }
.hero-live {
  font-family: var(--font-fun); font-size: 40px; color: #fff; letter-spacing: 4px;
  background: linear-gradient(180deg, var(--pink), #e04178);
  border: 3px solid var(--ink); border-radius: 18px;
  padding: 14px 26px; box-shadow: 0 5px 0 var(--ink);
  display: flex; align-items: center; gap: 12px;
}
.hero-live span {
  display: inline-block; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; animation: stuckPulse 1.4s ease-in-out infinite;
}

/* 三栏看板 */
.today-board {
  display: grid; grid-template-columns: 280px 1fr 280px; gap: 16px;
  align-items: start;
}
@media (max-width: 1100px) { .today-board { grid-template-columns: 1fr; } }
.tb-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 8px; }
.tb-head h3 { font-size: 15.5px; }
.tb-head .ops { display: flex; gap: 6px; }

/* 环节步骤条 */
.steps { display: flex; align-items: flex-start; gap: 4px; overflow-x: auto; padding: 6px 2px 2px; }
.step { display: flex; flex-direction: column; align-items: center; min-width: 76px; flex-shrink: 0; text-align: center; }
.step-dot {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-fun); font-size: 16px;
  background: #f1ecff; color: var(--ink-2);
  border: 2.5px solid var(--border); transition: 0.2s;
}
.step-name { margin-top: 7px; font-size: 12px; font-weight: 800; color: var(--ink-2); line-height: 1.3; }
.step.done .step-dot {
  background: var(--success); color: #fff; border-color: var(--ink);
  box-shadow: 0 3px 0 var(--ink);
}
.step.done .step-name { color: var(--success); }
.step.active .step-dot {
  background: var(--accent); color: var(--ink); border-color: var(--ink);
  box-shadow: 0 4px 0 var(--ink); transform: scale(1.12);
}
.step.active .step-name { color: var(--ink); }
.step-line { flex: 1; min-width: 14px; height: 4px; margin-top: 18px; border-radius: 4px; background: var(--border); }
.steps-hint { color: var(--ink-2); font-size: 13px; font-weight: 700; padding: 4px 0; }

/* NPC / 岗位列表 */
.staff-list { display: flex; flex-direction: column; gap: 8px; max-height: 460px; overflow-y: auto; }
.staff-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border: 2px solid var(--border); border-radius: 13px; padding: 9px 12px;
  background: #fdfcff;
}
.staff-row.ready { border-color: var(--success); background: #f2fbf7; }
.staff-name { font-weight: 800; font-size: 13.5px; }
.staff-pos { color: var(--ink-2); font-size: 12px; margin-top: 2px; }
.staff-ops { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.staff-ops .modal-close { width: 26px; height: 26px; font-size: 13px; }
.staff-toggle { min-width: 74px; }

/* 地图 */
.map-area {
  border: 2.5px solid var(--ink); border-radius: 14px; overflow: hidden;
  min-height: 420px; display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 2px 8px rgba(58, 46, 85, 0.08);
  background: #fbf9ff;
}
.map-area img { width: 100%; height: 100%; min-height: 420px; object-fit: contain; background: #fff; }
.map-placeholder { text-align: center; color: var(--ink-2); font-weight: 700; padding: 40px; }
.map-placeholder .map-pin {
  width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50% 50% 50% 0;
  background: var(--accent); border: 3px solid var(--ink);
  transform: rotate(-45deg); box-shadow: 0 4px 0 var(--ink);
  position: relative;
}

.arrive-meter {
  height: 14px; border: 2px solid var(--ink); border-radius: 999px;
  background: #fff; overflow: hidden; margin-bottom: 12px;
}
.arrive-meter .arrive-bar {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--pink));
}
.arrive-meter.full .arrive-bar { background: var(--success); }

.players-list { display: flex; flex-direction: column; gap: 8px; max-height: 430px; overflow-y: auto; }
.player-item {
  display: flex; align-items: center; gap: 9px;
  border: 2px solid var(--border); border-radius: 13px;
  padding: 8px 10px; background: #fdfcff;
}
.player-item.done { border-color: var(--success); background: #f2fbf7; }
.p-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff;
  border: 2px solid var(--ink);
}
.player-item.done .p-avatar { background: var(--success); }
.p-info { flex: 1; min-width: 0; }
.p-nick { font-weight: 800; font-size: 13.5px; }
.p-stage { color: var(--ink-2); font-size: 12px; margin-top: 2px; }
.p-time { color: var(--ink-2); font-size: 12px; font-weight: 700; }

.tree-row {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; margin-bottom: 5px;
  border: 2px solid var(--border); border-radius: 12px;
  background: #fdfcff;
}
.tree-row:hover { border-color: var(--primary); }
.tree-row.sel { border-color: var(--accent); background: #fff8e8; }