/* =====================================================================
   会议管理系统 全局样式 v3
   移动优先，深蓝商务风。前台、后台、大屏共用一套变量。
   v3 改进：对比度提升、大屏增强、侧边栏图标、确认弹窗、抽屉、
           议程时间轴、签到动画、大屏动效、座位图、批量操作、打印样式
   ===================================================================== */

:root {
  --navy: #0b2545;
  --navy-2: #12335e;
  --blue: #1d6fe0;
  --blue-soft: #e8f0fd;
  --gold: #c9a227;
  --gold-soft: #fbf4dc;
  --ink: #0f172a;
  --ink2: #4a5568;
  --ink3: #66788a;        /* v3: 从 #8494a8 加深到 #66788a，对比度从 3.5:1 提升到 4.5:1 */
  --bg: #f4f7fb;
  --paper: #ffffff;
  --line: #e3e9f2;
  --ok: #12805c;
  --ok-soft: #e6f5ef;
  --warn: #a86400;
  --warn-soft: #fdf3e0;
  --danger: #c0392b;
  --danger-soft: #fdecea;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px -12px rgba(15, 23, 42, .12);
  --th: #f7f9fc;
  --line2: #f1f5f9;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------------- 前台：手机容器 ---------------- */
.wrap {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 0 40px;
  background: var(--bg);
  min-height: 100vh;
}

.hero {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 62%, #1b4478 100%);
  color: #fff;
  padding: 34px 22px 26px;
  border-radius: 0 0 22px 22px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -46px;
  top: -46px;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: rgba(201, 162, 39, .13);
}

.hero .kicker {
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: 23px;
  line-height: 1.35;
  margin: 0 0 8px;
  font-weight: 700;
  letter-spacing: .01em;
}

.hero .sub {
  font-size: 13.5px;
  color: rgba(255, 255, 255, .72);
  margin: 0 0 18px;
}

.hero .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .82);
  position: relative;
  z-index: 1;
}

.hero .meta span { display: inline-flex; align-items: center; gap: 5px; }
.hero .meta b { color: #fff; font-weight: 600; }

/* ---------------- 卡片与分节 ---------------- */
.sec {
  margin: 16px 14px 0;
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.sec-hd {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sec-hd small { font-weight: 400; color: var(--ink3); font-size: 12px; }
.sec-bd { padding: 14px 16px; }

.sec-plain {
  margin: 16px 14px 0;
}

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s ease;
  text-decoration: none;
  line-height: 1.4;
}

.btn:hover { border-color: #c8d4e4; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn.primary {
  background: linear-gradient(135deg, var(--blue), #1559bd);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px -8px rgba(29, 111, 224, .8);
}

.btn.gold {
  background: linear-gradient(135deg, #d8b23a, var(--gold));
  border-color: transparent;
  color: #33280a;
  font-weight: 600;
}

.btn.danger { color: var(--danger); border-color: #f0c8c2; background: #fff; }
.btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.btn.lg { padding: 14px 28px; font-size: 16px; border-radius: 12px; }  /* v3: 抽奖大按钮 */
.btn.block { width: 100%; }
.btn.ghost { background: transparent; }

.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }

/* ---------------- 表单 ---------------- */
.field { margin-bottom: 14px; }
.field > label {
  display: block;
  font-size: 13px;
  color: var(--ink2);
  margin-bottom: 6px;
  font-weight: 500;
}
.field > label .req { color: var(--danger); margin-left: 2px; }

.input, .select, textarea.input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.input:focus, .select:focus, textarea.input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29, 111, 224, .1);
}

textarea.input { resize: vertical; min-height: 74px; }

.hint { font-size: 12px; color: var(--ink3); margin-top: 5px; }

.radio-row { display: flex; gap: 8px; flex-wrap: wrap; }

.radio-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 13.5px;
  cursor: pointer;
  background: #fff;
  color: var(--ink2);
}

.radio-chip input { margin: 0; accent-color: var(--blue); }
.radio-chip:has(input:checked) {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 500;
}

/* v3: 输入框错误状态 */
.input.err, .select.err { border-color: var(--danger); }
.input.err:focus, .select.err:focus { box-shadow: 0 0 0 3px rgba(192, 57, 43, .1); }

/* v3: 草稿保存提示 */
.draft-saved {
  font-size: 11px;
  color: var(--ok);
  margin-top: 4px;
  display: none;
}
.draft-saved.show { display: block; }

/* ---------------- 标签 ---------------- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  background: var(--blue-soft);
  color: var(--blue);
  white-space: nowrap;
}

.tag.gold { background: var(--gold-soft); color: #8a6d10; }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.danger { background: var(--danger-soft); color: var(--danger); }
.tag.grey { background: #eef1f6; color: var(--ink3); }

/* v3: 侧边栏角标 */
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 0 6px;
  margin-left: auto;
}
.nav-badge.warn { background: var(--warn); }

/* ---------------- 议程 ---------------- */
.agenda { padding: 4px 0; }

.agenda .item {
  display: flex;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
}

.agenda .item:last-child { border-bottom: none; }

/* v3: 议程时间轴 */
.agenda .item {
  position: relative;
  padding-left: 28px;
}
.agenda .item::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.agenda .item:first-child::before { top: 18px; }
.agenda .item:last-child::before { bottom: calc(100% - 18px); }
.agenda .item::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--blue);
  z-index: 1;
}
.agenda .item.now::after {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, .2);
}
.agenda .item.now .t { color: var(--gold); }

.agenda .t {
  flex: 0 0 52px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

.agenda .c b { display: block; font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.agenda .c span { font-size: 12.5px; color: var(--ink3); }

/* ---------------- 信息行 ---------------- */
.kv { display: grid; grid-template-columns: 78px 1fr; gap: 10px 12px; font-size: 14px; }
.kv dt { color: var(--ink3); font-size: 13px; }
.kv dd { margin: 0; font-weight: 500; }

.big-num {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}

/* ---------------- 会务卡 ---------------- */
.pass {
  background: linear-gradient(155deg, var(--navy) 0%, #17406e 100%);
  color: #fff;
  border-radius: 16px;
  padding: 20px;
  margin: 16px 14px 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 40px -22px rgba(11, 37, 69, .9);
}

.pass::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -50px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(201, 162, 39, .12);
}

.pass .who { font-size: 22px; font-weight: 700; letter-spacing: .02em; }
.pass .org { font-size: 13px; color: rgba(255, 255, 255, .74); margin-top: 4px; }

.pass .grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.pass .grid3 > div {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  padding: 10px 11px;
}

.pass .grid3 .lb { font-size: 11.5px; color: rgba(255, 255, 255, .62); margin-bottom: 3px; }
.pass .grid3 .vl { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pass .grid3 .vl.sm { font-size: 14px; font-weight: 600; }

.code-strip {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.code-strip .qr {
  width: 100px;
  height: 100px;
  background: #fff;
  border-radius: 10px;
  padding: 6px;
  flex: 0 0 100px;
}

.code-strip .qr img { width: 100%; height: 100%; display: block; }

.code-strip .cd .lb { font-size: 11.5px; color: rgba(255, 255, 255, .62); }
.code-strip .cd .num {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .16em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.code-strip .cd .tip { font-size: 11.5px; color: rgba(255, 255, 255, .55); margin-top: 3px; }

/* v3: 签到状态动画 */
.checkin-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.checkin-status.done {
  color: #7ee2b8;
}
.checkin-status.done .check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  animation: pop .3s ease;
}
@keyframes pop {
  0% { transform: scale(0); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* v3: 会务卡操作按钮 */
.pass-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  position: relative;
  z-index: 1;
}
.pass-actions .btn { flex: 1; padding: 8px 12px; font-size: 13px; }

/* v3: 复制成功提示 */
.copy-done { color: var(--ok); font-size: 12px; }

/* ---------------- 签到结果页 ---------------- */
.state {
  max-width: 520px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

.state .icon {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}

.state .icon.ok { background: var(--ok-soft); color: var(--ok); }
.state .icon.warn { background: var(--warn-soft); color: var(--warn); }
.state .icon.bad { background: var(--danger-soft); color: var(--danger); }

.state h2 { font-size: 20px; margin: 0 0 8px; }
.state p { color: var(--ink2); font-size: 14px; margin: 0 0 20px; }

/* ---------------- 后台布局 ---------------- */
.admin {
  display: flex;
  min-height: 100vh;
}

.side {
  width: 208px;
  flex: 0 0 208px;
  background: var(--navy);
  color: #fff;
  padding: 18px 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.side .brand {
  padding: 0 18px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  margin-bottom: 12px;
}

.side .brand b { font-size: 15px; display: block; }
.side .brand span { font-size: 11.5px; color: rgba(255, 255, 255, .5); }

.side nav { flex: 1; }

/* v3: 侧边栏图标 */
.side nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  color: rgba(255, 255, 255, .74);
  font-size: 13.5px;
  border-left: 3px solid transparent;
}

.side nav a .nav-ico {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  opacity: .8;
}

.side nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }
.side nav a.on {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border-left-color: var(--gold);
  font-weight: 600;
}
.side nav a.on .nav-ico { opacity: 1; }

.side .foot {
  padding: 12px 18px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 12px;
  color: rgba(255, 255, 255, .5);
}

.side .foot a { color: rgba(255, 255, 255, .7); }

.main { flex: 1; min-width: 0; padding: 22px 26px 50px; }

.page-hd {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.page-hd h1 { font-size: 19px; margin: 0; font-weight: 700; }
.page-hd .desc { font-size: 13px; color: var(--ink3); margin-top: 3px; }

/* v3: 快捷键提示 */
.kbd-hint {
  font-size: 11px;
  color: var(--ink3);
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: ui-monospace, monospace;
}

/* ---------------- 统计卡 ---------------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
}

.stat .lb { font-size: 12.5px; color: var(--ink3); }
.stat .vl { font-size: 25px; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 2px; letter-spacing: -.01em; }
.stat .sub { font-size: 11.5px; color: var(--ink3); margin-top: 2px; }
.stat .vl.danger { color: var(--danger); }
.stat .vl.ok { color: var(--ok); }
.stat .vl.warn { color: var(--warn); }

/* ---------------- 表格 ---------------- */
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 18px;
}

.panel-hd {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.panel-bd { padding: 0; }
.panel-bd.pad { padding: 16px; }

.table-wrap { overflow-x: auto; }

table.tb {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

table.tb th {
  text-align: left;
  padding: 10px 12px;
  background: #f7f9fc;
  color: var(--ink3);
  font-weight: 600;
  font-size: 12.5px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

table.tb td {
  padding: 9px 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

table.tb tbody tr:hover { background: #fafcff; }
table.tb tbody tr.bad { background: #fffafa; }
table.tb tbody tr.bad:hover { background: #fff5f4; }
table.tb tbody tr.selected { background: #e8f0fd; }

table.tb .num { font-variant-numeric: tabular-nums; }
table.tb .muted { color: var(--ink3); font-size: 12.5px; }

.cell-select, .cell-input {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 13px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
  max-width: 100%;
}

.cell-select:focus, .cell-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(29, 111, 224, .1);
}

.cell-input.seat { width: 78px; }
.cell-input.ts { width: 62px; }

.err-list { display: flex; gap: 4px; flex-wrap: wrap; }

/* v3: 批量操作栏 */
.batch-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--blue-soft);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  flex-wrap: wrap;
}
.batch-bar .cnt { font-weight: 600; color: var(--blue); }
.batch-bar .btn { padding: 5px 10px; font-size: 12px; }

/* v3: 行选择框 */
.row-check {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
  cursor: pointer;
}

/* ---------------- 工具条 ---------------- */
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.toolbar .input, .toolbar .select { width: auto; min-width: 170px; }

/* ---------------- 分页 ---------------- */
.pager { padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13px; }
.pager ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.pager li a, .pager li span {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink2);
  background: #fff;
}
.pager li.active span { background: var(--blue); border-color: var(--blue); color: #fff; }
.pager li.disabled span { color: var(--ink3); background: #f7f9fc; }

/* ---------------- toast ---------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(15, 23, 42, .94);
  color: #fff;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: all .25s ease;
  z-index: 9999;
  max-width: 84vw;
  text-align: center;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok { background: rgba(18, 128, 92, .96); }
.toast.bad { background: rgba(192, 57, 43, .96); }

/* v3: loading spinner */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, .4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9998;
}
.loading-overlay.show { display: flex; }
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--line);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- 确认弹窗 ---------------- */
.confirm-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}
.confirm-mask.show { display: flex; }
.confirm-box {
  background: #fff;
  border-radius: 14px;
  padding: 24px 22px 18px;
  max-width: 380px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
  animation: pop .2s ease;
}
.confirm-box h3 { margin: 0 0 10px; font-size: 16px; }
.confirm-box p { margin: 0 0 18px; font-size: 14px; color: var(--ink2); white-space: pre-line; }
.confirm-box .btn-row { gap: 10px; }
.confirm-box .btn { flex: 1; }

/* ---------------- 抽屉面板 ---------------- */
.drawer-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .4);
  display: none;
  z-index: 9999;
}
.drawer-mask.show { display: block; }
.drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 440px;
  max-width: 90vw;
  background: #fff;
  box-shadow: -8px 0 30px rgba(0, 0, 0, .1);
  z-index: 10000;
  transform: translateX(100%);
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
}
.drawer.show { transform: translateX(0); }
.drawer-hd {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-hd h3 { margin: 0; font-size: 16px; }
.drawer-bd { flex: 1; overflow-y: auto; padding: 16px 20px; }
.drawer-ft {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
}
.drawer-ft .btn { flex: 1; }
.drawer-close {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  font-size: 20px;
  color: var(--ink3);
  cursor: pointer;
  border-radius: 8px;
}
.drawer-close:hover { background: var(--bg); }

/* ---------------- 座位图 ---------------- */
.seat-map {
  background: var(--bg);
  border-radius: 10px;
  padding: 20px;
  margin-top: 14px;
  overflow-x: auto;
}
.seat-map .table-row {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.seat-map .table-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  margin: 0 8px;
}
.seat-map .seat-pos {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.seat-map .seat-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--ink3);
}
.seat-map .seat-dot.me {
  background: var(--gold);
  color: #33280a;
  font-weight: 700;
}

/* ---------------- 大屏 ---------------- */
.screen-page {
  background: #060d1a;
  color: #fff;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

/* v3: 大屏背景粒子动效 */
.sc-bg-particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .3;
}
.sc-bg-particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(201, 162, 39, .3);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); opacity: .3; }
  50% { transform: translateY(-20px) translateX(10px); opacity: .6; }
}

/* v3: 大屏断线提示 */
.sc-disconnect {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--danger);
  color: #fff;
  text-align: center;
  padding: 8px;
  font-size: 14px;
  font-weight: 600;
  z-index: 100;
  display: none;
  animation: pulse 1.5s ease infinite;
}
.sc-disconnect.show { display: block; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .6; }
}

/* v3: 大屏全屏按钮 */
.sc-fullscreen {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .15);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s ease;
}
.sc-fullscreen:hover { background: rgba(255, 255, 255, .2); }

.sc-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  position: relative;
  z-index: 1;
}

.sc-hd .ti { font-size: 22px; font-weight: 700; letter-spacing: .04em; }
.sc-hd .sub { font-size: 13px; color: rgba(255, 255, 255, .45); margin-top: 2px; }

.sc-stats { display: flex; gap: 40px; }

.sc-stats .it { text-align: right; }
.sc-stats .lb { font-size: 12px; color: rgba(255, 255, 255, .45); letter-spacing: .08em; }
.sc-stats .vl {
  font-size: 34px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  line-height: 1.1;
}

.sc-main {
  padding: 30px 40px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  height: calc(100vh - 96px);
  position: relative;
  z-index: 1;
}

.sc-left { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.sc-prize {
  text-align: center;
  padding: 10px 0 0;
}

.sc-prize .nm { font-size: 17px; color: rgba(255, 255, 255, .6); letter-spacing: .2em; }
.sc-prize .cnt { font-size: 15px; color: var(--gold); margin-top: 6px; }

/* v3: 奖项队列预告 */
.sc-queue {
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, .4);
  padding: 4px 0;
}
.sc-queue .next {
  display: inline-block;
  padding: 3px 14px;
  border-radius: 20px;
  background: rgba(201, 162, 39, .15);
  color: var(--gold);
  font-weight: 600;
  margin-left: 8px;
}

.sc-big {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 72px;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 10px 16px;
  border-radius: 20px;
  background: radial-gradient(circle at 50% 40%, rgba(29, 111, 224, .22), transparent 68%);
  min-height: 220px;
  line-height: 1.2;
  word-break: break-all;
}

.sc-big.idle { font-size: 30px; color: rgba(255, 255, 255, .32); font-weight: 500; letter-spacing: .1em; }
.sc-big.win { color: var(--gold); text-shadow: 0 0 46px rgba(201, 162, 39, .45); }

/* v3: idle 屏保动画 */
.sc-big.idle-anim {
  animation: idlePulse 3s ease-in-out infinite;
}
@keyframes idlePulse {
  0%, 100% { opacity: .32; }
  50% { opacity: .5; }
}

.sc-ctl { display: flex; gap: 14px; justify-content: center; padding-bottom: 6px; }

.sc-btn {
  padding: 15px 44px;
  border-radius: 12px;
  border: none;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .1em;
  background: linear-gradient(135deg, #d8b23a, var(--gold));
  color: #2b2208;
  transition: all .15s ease;
}

.sc-btn:hover { filter: brightness(1.08); }
.sc-btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.sc-btn.stop { background: linear-gradient(135deg, #e05b4a, #c0392b); color: #fff; }

/* v9：大屏口令输入（口令只经 POST 提交，不再出现在链接里） */
.sc-auth { width: 100%; max-width: 420px; margin: 0 auto; text-align: center; }
.sc-auth-tip { color: rgba(255,255,255,.45); font-size: 13px; margin-bottom: 12px; }
.sc-auth form { display: flex; gap: 8px; justify-content: center; }
.sc-auth input {
  flex: 1; min-width: 0; padding: 10px 12px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08);
  color: #fff; font-size: 15px; outline: none;
}
.sc-auth input:focus { border-color: rgba(255,255,255,.55); }
.sc-auth input::placeholder { color: rgba(255,255,255,.35); }
.sc-auth .sc-btn { padding: 10px 18px; font-size: 14px; }
.sc-auth-err { color: #ff9b8c; font-size: 13px; margin-bottom: 10px; }
.sc-auth-msg { min-height: 20px; margin-top: 10px; font-size: 13px; color: rgba(255,255,255,.6); }

.sc-right {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}

.sc-right .hd {
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
  letter-spacing: .14em;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  padding-bottom: 10px;
}

.sc-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 9px; }

.sc-list .row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, .05);
  border-radius: 9px;
  font-size: 14px;
  animation: slideIn .3s ease;
}
@keyframes slideIn {
  from { transform: translateX(20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.sc-list .row .nm { font-weight: 600; }
.sc-list .row .co { font-size: 12px; color: rgba(255, 255, 255, .42); margin-left: auto; text-align: right; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sc-list .row.win { background: rgba(201, 162, 39, .16); border: 1px solid rgba(201, 162, 39, .3); }
.sc-list .row.win .nm { color: var(--gold); }

/* v3: 大屏观看模式文字加大 */
.sc-watch-mode {
  color: rgba(255, 255, 255, .35);
  font-size: 22px;   /* v3: 从 14px 加大到 22px */
  text-align: center;
  padding: 60px 20px;
}

/* ---------------- 登录页 ---------------- */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, #0b2545 0%, #12335e 55%, #1b4478 100%);
  padding: 24px;
}

.login-box {
  width: 100%;
  max-width: 372px;
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .6);
}

.login-box h1 { font-size: 19px; margin: 0 0 4px; }
.login-box .sub { font-size: 13px; color: var(--ink3); margin-bottom: 22px; }

/* ---------------- 空状态 ---------------- */
.empty {
  padding: 46px 20px;
  text-align: center;
  color: var(--ink3);
  font-size: 14px;
}

/* ---------------- 全局错误边界 ---------------- */
.global-error {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--danger);
  color: #fff;
  text-align: center;
  padding: 12px;
  font-size: 14px;
  z-index: 10001;
  display: none;
}
.global-error.show { display: block; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
  .sc-main { grid-template-columns: 1fr; height: auto; }
  .sc-right { max-height: 300px; }
  .sc-big { font-size: 54px; }
}

@media (max-width: 860px) {
  .admin { flex-direction: column; }
  .side {
    width: 100%;
    flex: none;
    height: auto;
    position: relative;
    padding: 12px 0;
  }
  .side nav { display: flex; overflow-x: auto; }
  .side nav a { border-left: none; border-bottom: 3px solid transparent; white-space: nowrap; padding: 9px 14px; }
  .side nav a.on { border-left: none; border-bottom-color: var(--gold); }
  .side .brand, .side .foot { display: none; }
  .main { padding: 16px 14px 40px; }
  .sc-hd { flex-direction: column; gap: 12px; padding: 16px 20px; align-items: flex-start; }
  .sc-stats { gap: 24px; }
  .sc-stats .it { text-align: left; }
  .sc-main { padding: 18px; }
  .sc-big { font-size: 38px; min-height: 150px; }
  .drawer { width: 100vw; }
}

/* =====================================================================
   颁奖管理
   ===================================================================== */
.award-lock-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: #FDECEC;
  border: 1px solid #E8B4B4;
  border-left: 4px solid #C0392B;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 18px;
  color: #8E2B22;
}
.award-lock-banner b { font-size: 15px; }
.award-lock-banner span { flex: 1; min-width: 200px; font-size: 13px; }

.award-batch {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
}
.award-batch-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: var(--th);
  border-bottom: 1px solid var(--line);
}
.award-batch-name { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 200px; }
.award-batch-name b { font-size: 15px; }
.award-batch-actions { display: flex; gap: 8px; }
.award-batch-meta { padding: 6px 16px; font-size: 12px; border-bottom: 1px solid var(--line2); }
.award-batch .table-wrap { padding: 8px 12px 4px; }
.award-batch table.tb { min-width: 0; }
.award-add-winner { padding: 10px 16px 14px; }

/* v3: datalist 搜索 */
.att-search {
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
}
.att-search input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 13px;
}

/* =====================================================================
   主持人手卡 A5 双面打印
   ===================================================================== */
.a5-page { padding: 8px 0; }
.a5-head { margin-bottom: 14px; }
.a5-head h2 { margin: 0 0 4px; font-size: 18px; }
.a5-sub { margin: 0; font-size: 12px; color: var(--ink2); }
.a5-batch { margin-bottom: 16px; }
.a5-batch-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.a5-batch-hd b { font-size: 15px; }
.a5-count { font-size: 12px; color: var(--ink2); margin-left: auto; }
.a5-tb { width: 100%; border-collapse: collapse; font-size: 13px; }
.a5-tb th, .a5-tb td { border: 1px solid var(--line); padding: 5px 8px; text-align: left; }
.a5-tb th { background: var(--th); font-weight: 600; }
.a5-empty { font-size: 13px; color: var(--ink3); padding: 8px 0; }
.a5-h3 { font-size: 14px; margin: 16px 0 8px; }
.a5-notes { margin: 0; padding-left: 20px; font-size: 13px; color: var(--ink2); }
.a5-notes li { margin-bottom: 4px; }
.award-card-status { margin-bottom: 14px; }

@media print {
  .no-print { display: none !important; }
  .admin { display: block !important; }
  .side { display: none !important; }
  .main { padding: 0 !important; }
  @page { size: A5; margin: 10mm; }
  .a5-page { page-break-after: always; }
  .a5-back { page-break-before: always; }

  /* v3: award 批次分页保护 */
  .a5-batch { page-break-inside: avoid; }
}

/* v3: 后台打印样式 */
@media print {
  .toolbar, .batch-bar, .page-hd > div:last-child,
  .btn, .no-print { display: none !important; }
  .panel { box-shadow: none; border: 1px solid #ccc; page-break-inside: avoid; }
  table.tb { font-size: 11px; }
  .side { display: none !important; }
}
/* =====================================================================
   会议管理系统 v4 · 晚宴落座大屏 & 落座管理
   追加样式（不修改已有规则，纯增量）
   ===================================================================== */

/* ---------------- 落座大屏（暗色主题，复用 screen-page 基底） ---------------- */

/* 大屏头部 */
.seat-sc-hd {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 24px 40px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.seat-sc-hd .ti {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: .04em;
  background: linear-gradient(135deg, #fff 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.seat-sc-hd .sub {
  font-size: 14px;
  color: rgba(255, 255, 255, .45);
  margin-top: 4px;
}

.seat-sc-stats {
  display: flex;
  gap: 36px;
}

.seat-sc-stats .it {
  text-align: right;
}

.seat-sc-stats .lb {
  font-size: 12px;
  color: rgba(255, 255, 255, .4);
  letter-spacing: .08em;
}

.seat-sc-stats .vl {
  font-size: 36px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.seat-sc-stats .vl:first-child,
.seat-sc-stats .it:nth-child(1) .vl {
  color: var(--gold);
}

.seat-sc-stats .it:nth-child(3) .vl {
  color: #e05b4a;
}

/* 大屏主体 */
.seat-sc-main {
  position: relative;
  z-index: 2;
  padding: 28px 40px 40px;
  overflow-y: auto;
  height: calc(100vh - 130px);
}

.seat-loading {
  text-align: center;
  color: rgba(255, 255, 255, .35);
  font-size: 18px;
  padding: 80px 0;
}

.seat-empty {
  text-align: center;
  color: rgba(255, 255, 255, .4);
  font-size: 18px;
  padding: 80px 0;
}

/* 桌卡片网格 */
.seat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

/* 单桌卡片 */
.seat-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  padding: 20px;
  transition: border-color .3s;
}

.seat-card:hover {
  border-color: rgba(201, 162, 39, .25);
}

/* 卡片头部 */
.seat-card-hd {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.seat-card-no {
  font-size: 24px;
  font-weight: 700;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  letter-spacing: .05em;
}

.seat-card-label {
  font-size: 15px;
  color: rgba(255, 255, 255, .6);
  flex: 1;
}

.seat-card-count {
  font-size: 14px;
  color: rgba(255, 255, 255, .5);
  font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, .06);
  padding: 2px 10px;
  border-radius: 20px;
}

/* 进度条 */
.seat-card-bar {
  height: 6px;
  background: rgba(255, 255, 255, .08);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.seat-card-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width .5s ease;
}

.seat-card-rate {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-bottom: 12px;
}

/* 未落座区域 */
.seat-unseated {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 12px;
}

.seat-unseated-hd {
  font-size: 12px;
  color: rgba(255, 255, 255, .4);
  letter-spacing: .08em;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.seat-name-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.seat-name-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(224, 91, 74, .12);
  border: 1px solid rgba(224, 91, 74, .3);
  color: #f0a090;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  animation: seatNamePulse 2s ease-in-out infinite;
}

@keyframes seatNamePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .65; }
}

/* 全员到齐 */
.seat-all-seated {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 12px;
  color: var(--gold);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

/* 大屏断线提示 */
.seat-sc-disconnect {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(192, 57, 43, .9);
  color: #fff;
  text-align: center;
  padding: 8px;
  font-size: 14px;
  z-index: 100;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .6; }
}

/* 大屏响应式 */
@media (max-width: 768px) {
  .seat-sc-hd { padding: 16px 20px 14px; flex-direction: column; gap: 12px; align-items: flex-start; }
  .seat-sc-hd .ti { font-size: 20px; }
  .seat-sc-stats { gap: 20px; }
  .seat-sc-stats .vl { font-size: 28px; }
  .seat-sc-main { padding: 18px; height: calc(100vh - 160px); }
  .seat-grid { grid-template-columns: 1fr; gap: 14px; }
  .seat-card { padding: 16px; }
  .seat-card-no { font-size: 20px; }
}

/* ---------------- 扫码落座页 ---------------- */

.seat-scan-page {
  background: linear-gradient(160deg, #0b2545 0%, #12335e 50%, #0b2545 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.seat-scan-wrap {
  max-width: 460px;
  width: 100%;
}

.seat-scan-card {
  background: var(--paper);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}

.seat-scan-card-err {
  text-align: center;
}

.seat-scan-event {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
}

.seat-scan-sub {
  font-size: 14px;
  color: var(--ink3);
  text-align: center;
  margin-top: 4px;
  margin-bottom: 24px;
}

/* 桌信息区 */
.seat-scan-table {
  background: var(--blue-soft);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin-bottom: 24px;
}

.seat-scan-table-no {
  font-size: 42px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
}

.seat-scan-table-label {
  font-size: 16px;
  color: var(--ink2);
  margin-top: 4px;
}

.seat-scan-table-cap {
  font-size: 13px;
  color: var(--ink3);
  margin-top: 8px;
}

/* 表单 */
.seat-scan-form .field {
  margin-bottom: 20px;
}

.seat-scan-form .field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.seat-scan-form .input {
  font-size: 18px;
  text-align: center;
  letter-spacing: .1em;
  font-variant-numeric: tabular-nums;
}

.seat-scan-form .hint {
  font-size: 12px;
  color: var(--ink3);
  margin-top: 6px;
}

/* 落座结果 */
.seat-scan-result {
  margin-top: 20px;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  animation: pop .4s ease;
}

@keyframes pop {
  0% { transform: scale(.9); opacity: 0; }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); opacity: 1; }
}

.seat-scan-result.ok {
  background: var(--ok-soft);
  border: 1px solid var(--ok);
}

.seat-scan-result.err {
  background: var(--danger-soft);
  border: 1px solid var(--danger);
}

.seat-scan-result-icon {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 6px;
}

.seat-scan-result.ok .seat-scan-result-icon {
  color: var(--ok);
}

.seat-scan-result.err .seat-scan-result-icon {
  color: var(--danger);
}

.seat-scan-result-msg {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.seat-scan-result-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--blue);
  margin-top: 6px;
}

.seat-scan-result-table {
  font-size: 14px;
  color: var(--ink3);
  margin-top: 4px;
}

/* 本桌参会人列表 */
.seat-scan-table-info {
  background: rgba(255, 255, 255, .06);
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
  backdrop-filter: blur(10px);
}

.seat-scan-table-info-hd {
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
  margin-bottom: 10px;
  letter-spacing: .05em;
}

.seat-scan-table-info-empty {
  font-size: 13px;
  color: rgba(255, 255, 255, .4);
  text-align: center;
  padding: 12px 0;
}

.seat-scan-name-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.seat-scan-name-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, .04);
  border-radius: 6px;
  font-size: 14px;
}

.seat-scan-name-text {
  font-weight: 600;
  color: rgba(255, 255, 255, .9);
}

.seat-scan-name-seat {
  font-size: 12px;
  color: rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .06);
  padding: 1px 6px;
  border-radius: 4px;
}

.seat-scan-name-done {
  font-size: 12px;
  color: var(--gold);
  margin-left: auto;
}

.seat-scan-name-wait {
  font-size: 12px;
  color: rgba(255, 255, 255, .35);
  margin-left: auto;
}

/* ---------------- 后台落座管理 ---------------- */

.seat-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
}

.seat-admin-card {
  padding: 0;
  overflow: hidden;
}

.seat-admin-card-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--th);
  border-bottom: 1px solid var(--line);
}

.seat-admin-card-no {
  font-size: 20px;
  font-weight: 700;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
  letter-spacing: .05em;
}

.seat-admin-card-label {
  font-size: 14px;
  color: var(--ink2);
  margin-left: 8px;
}

.seat-admin-card-meta {
  display: flex;
  gap: 4px;
}

/* 桌码展示 */
.seat-admin-card-code {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.seat-admin-card-code-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px;
  background: var(--blue-soft);
  border-radius: 10px;
  border: 2px dashed var(--blue);
}

.seat-admin-card-code-box.empty {
  background: var(--bg);
  border-color: var(--line);
}

.seat-admin-card-code-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: .12em;
  font-family: ui-monospace, "SF Mono", "Cascadia Code", monospace;
  font-variant-numeric: tabular-nums;
}

.seat-admin-card-code-box.empty .seat-admin-card-code-text {
  color: var(--ink3);
  font-size: 16px;
  letter-spacing: .04em;
}

.seat-admin-card-code-label {
  font-size: 12px;
  color: var(--ink3);
  margin-top: 2px;
}

/* 名单区 */
.seat-admin-card-section {
  padding: 12px 16px;
}

.seat-admin-card-section-hd {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink2);
  margin-bottom: 8px;
  letter-spacing: .04em;
}

.seat-admin-name-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.seat-admin-name-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 14px;
  transition: background .15s;
}

.seat-admin-name-item:hover {
  background: var(--th);
}

.seat-admin-name-item.done {
  opacity: .6;
}

.seat-admin-name-text {
  font-weight: 600;
  color: var(--ink);
}

.seat-admin-name-seat {
  font-size: 12px;
  color: var(--ink3);
  background: var(--bg);
  padding: 1px 6px;
  border-radius: 4px;
}

.seat-admin-name-company {
  font-size: 12px;
  color: var(--ink3);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seat-admin-name-time {
  font-size: 12px;
  color: var(--ink3);
  font-variant-numeric: tabular-nums;
}

.seat-admin-card-empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--ink3);
  font-size: 14px;
}

/* 后台响应式 */
@media (max-width: 768px) {
  .seat-admin-grid {
    grid-template-columns: 1fr;
  }
  .seat-admin-card-hd {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}

/* ---------------- v5：随行人员登记 ---------------- */
.companion-box { margin: 0 0 14px; }
.companion-card {
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 10px;
  background: var(--paper);
  padding: 12px 14px 2px;
  margin-bottom: 12px;
}
.companion-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.companion-hd span {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}
.companion-hd small {
  font-size: 12px;
  color: var(--ink3);
}
.companion-card .field { margin-bottom: 12px; }
.drawer-static {
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--navy);
  font-size: 14px;
}

/* ---------------- v5：参会名单统计条 ---------------- */
.stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--th);
}
.stat-item {
  min-width: 96px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.stat-item .stat-label {
  display: block;
  font-size: 12px;
  color: var(--ink3);
  line-height: 1.4;
}
.stat-item .stat-num {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}
.stat-item.accent .stat-num { color: var(--blue); }
.parent-name {
  font-size: 12px;
  color: var(--ink3);
}

/* v9：分房分座批量导入弹窗 */
.imp-mask {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(10, 20, 35, .55);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.imp-mask[hidden] { display: none !important; }
.imp-panel {
  width: min(880px, 100%); max-height: 88vh; display: flex; flex-direction: column;
  background: #fff; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.28); overflow: hidden;
}
.imp-hd { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line, #e6eaf0); }
.imp-hd h3 { margin: 0; font-size: 16px; }
.imp-close { border: 0; background: transparent; font-size: 24px; line-height: 1; color: var(--ink3, #8894a5); cursor: pointer; }
.imp-bd { padding: 16px 20px; overflow: auto; }
.imp-ft { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line, #e6eaf0); }
.imp-steps { font-size: 13px; color: var(--ink2, #47536b); background: var(--bg, #f6f8fb); border-radius: 8px; padding: 10px 12px; }
.imp-steps b { display: inline-block; width: 18px; height: 18px; line-height: 18px; text-align: center; border-radius: 50%; background: var(--blue, #0b4d9c); color: #fff; font-size: 11px; }
.imp-tips { font-size: 12px; color: var(--ink3, #8894a5); line-height: 1.7; margin: 10px 0 14px; }
.imp-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.imp-summary { margin: 14px 0 8px; font-size: 13px; min-height: 20px; }
.imp-table-wrap { max-height: 300px; overflow: auto; border: 1px solid var(--line, #e6eaf0); border-radius: 8px; }
.imp-table-wrap[hidden] { display: none !important; }
.imp-table-wrap .tb { font-size: 12px; }
.imp-table-wrap .tb tr.bad { background: #fff4f2; }
.imp-table-wrap .tb td { white-space: nowrap; }
.imp-force { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; color: #b4472f; }
.imp-force[hidden] { display: none !important; }

/* =====================================================================
   v11 前台深色金主题（邀请函 / 报名 / 会务卡 / 签到结果）
   作用域：仅 body.front。后台 layout/admin.html 不含 front 类，样式零影响。
   做法：先在 front 作用域内重定义设计变量（旧组件自动跟随），
         再逐个覆盖写死 #fff 的旧规则，最后追加前台专有新组件。
   ===================================================================== */

body.front {
  --bg:        #08090c;
  --paper:     #14161b;
  --line:      rgba(255, 255, 255, .075);
  --line2:     rgba(255, 255, 255, .045);
  --th:        rgba(255, 255, 255, .03);
  --ink:       #f3efe6;
  --ink2:      rgba(243, 239, 230, .70);
  --ink3:      rgba(243, 239, 230, .44);
  --blue:      #e3bd77;          /* 前台主强调色统一改为金 */
  --blue-soft: rgba(227, 189, 119, .13);
  --gold:      #e3bd77;
  --gold-soft: rgba(227, 189, 119, .13);
  --ok:        #57d3a6;
  --ok-soft:   rgba(87, 211, 166, .14);
  --warn:      #f0b74e;
  --warn-soft: rgba(240, 183, 78, .14);
  --danger:    #ff7264;
  --danger-soft: rgba(255, 114, 100, .14);
  --navy:      #0d0f13;
  --navy-2:    #17181d;
  --radius:    16px;
  --shadow:    0 1px 0 rgba(255, 255, 255, .04) inset, 0 14px 34px -22px rgba(0, 0, 0, .95);

  background: #08090c;
  color: var(--ink);
}

body.front::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 520px;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(46% 40% at 50% 0%, rgba(227, 189, 119, .16) 0%, rgba(227, 189, 119, 0) 70%),
    radial-gradient(70% 46% at 50% -6%, rgba(120, 92, 40, .22) 0%, rgba(8, 9, 12, 0) 72%);
}

body.front .wrap {
  position: relative;
  z-index: 1;
  background: transparent;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}

/* ---------------- 顶栏 ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 16px;
  background: rgba(8, 9, 12, .82);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}

.topbar .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar .brand i {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: linear-gradient(150deg, #f6e0a8, #cf9a3f);
  box-shadow: 0 0 12px rgba(227, 189, 119, .5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  color: #2b1d05;
}

.topbar .nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.topbar .nav a {
  font-size: 12.5px;
  color: rgba(243, 239, 230, .62);
  text-decoration: none;
}

.topbar .nav a:active { color: var(--gold); }

.topbar .back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: rgba(243, 239, 230, .7);
  text-decoration: none;
}

/* ---------------- 邀请函主视觉 ---------------- */
.invite-hero {
  position: relative;
  margin: 14px 14px 0;
  padding: 30px 18px 26px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .07);
  background:
    radial-gradient(60% 52% at 50% 30%, rgba(227, 189, 119, .20) 0%, rgba(227, 189, 119, 0) 66%),
    linear-gradient(178deg, #1a1712 0%, #0d0e12 58%, #0a0b0e 100%);
  overflow: hidden;
  text-align: center;
}

.invite-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -124px;
  width: 306px;
  height: 306px;
  margin-left: -150px;
  border-radius: 50%;
  border: 1px solid rgba(227, 189, 119, .08);
  background: radial-gradient(closest-side, rgba(227, 189, 119, .09), rgba(227, 189, 119, 0) 70%);
  pointer-events: none;
}

.invite-hero .mark {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 0 0 16px;
}

.invite-hero .mark b {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1;
  background: linear-gradient(170deg, #fff6e2 6%, #f2d79f 42%, #c9993f 96%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #f2d79f;
}

.invite-hero .mark em {
  font-style: normal;
  font-size: 11px;
  letter-spacing: .38em;
  color: rgba(243, 239, 230, .5);
  text-indent: .38em;
}

.invite-hero .kicker {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: .26em;
  text-indent: .26em;
  color: rgba(227, 189, 119, .85);
  margin-bottom: 12px;
}

.invite-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  font-size: 21px;
  line-height: 1.46;
  font-weight: 800;
  letter-spacing: .005em;
  color: #fbf7ee;
}

.invite-hero h1 .num {
  color: #f4d79a;
  background: linear-gradient(170deg, #fff3d8, #dfb069);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.invite-hero .subs {
  position: relative;
  z-index: 1;
  font-size: 12px;
  line-height: 1.85;
  color: rgba(243, 239, 230, .55);
  margin: 0;
}

/* 时间地点胶囊 */
.meta-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 14px 14px 0;
}

.meta-pills span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .09);
  background: rgba(255, 255, 255, .045);
  font-size: 11.5px;
  color: rgba(243, 239, 230, .78);
  font-variant-numeric: tabular-nums;
}

.meta-pills span b {
  font-weight: 600;
  color: #f6ecd8;
}

.meta-pills svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------------- 免费双金卡 ---------------- */
.perk-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 14px 0;
}

.perk {
  position: relative;
  padding: 13px 13px 12px;
  border-radius: 14px;
  border: 1px solid rgba(227, 189, 119, .26);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(227, 189, 119, .10), rgba(227, 189, 119, 0) 62%),
    #121317;
  overflow: hidden;
}

.perk h4 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: #f3dcae;
  letter-spacing: .01em;
}

.perk h4::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(227, 189, 119, .8);
}

.perk ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.perk li {
  position: relative;
  padding-left: 10px;
  font-size: 10.5px;
  line-height: 1.72;
  color: rgba(243, 239, 230, .52);
  margin-bottom: 4px;
}

.perk li:last-child { margin-bottom: 0; }

.perk li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(227, 189, 119, .55);
}

/* ---------------- 分节（深色卡） ---------------- */
body.front .sec {
  background: #121419;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

body.front .sec-hd {
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  font-size: 14.5px;
  font-weight: 700;
  color: #f7f2e7;
}

body.front .sec-hd small {
  color: rgba(243, 239, 230, .42);
  font-weight: 400;
}

body.front .sec-bd { padding: 16px; }

/* 分节标题（无卡版，用于报名区块引导） */
.sec-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 14px 10px;
  font-size: 15.5px;
  font-weight: 800;
  color: #f8f3e8;
  letter-spacing: .01em;
}

.sec-title::before {
  content: "";
  width: 3px;
  height: 15px;
  border-radius: 2px;
  background: linear-gradient(180deg, #f3d9a4, #c9993f);
  box-shadow: 0 0 10px rgba(227, 189, 119, .45);
}

.sec-title small {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 400;
  color: rgba(243, 239, 230, .42);
}

.sec-lead {
  margin: 0 14px 12px;
  font-size: 11.5px;
  color: rgba(243, 239, 230, .44);
  line-height: 1.7;
}

/* ---------------- 按钮 ---------------- */
body.front .btn {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  color: #f2ede2;
  border-radius: 11px;
  font-weight: 600;
}

body.front .btn:hover { border-color: rgba(255, 255, 255, .18); text-decoration: none; }

body.front .btn.primary,
body.front .btn.gold {
  background: linear-gradient(178deg, #f8e6bb 0%, #eccb8b 46%, #d5a352 100%);
  border-color: transparent;
  color: #2f2208;
  font-weight: 800;
  box-shadow: 0 10px 26px -14px rgba(227, 189, 119, .9), 0 1px 0 rgba(255, 255, 255, .5) inset;
}

body.front .btn.primary:active,
body.front .btn.gold:active { transform: translateY(1px); }

body.front .btn.danger {
  color: #ff8a7d;
  border-color: rgba(255, 114, 100, .35);
  background: rgba(255, 114, 100, .08);
}

body.front .btn.ghost {
  background: rgba(255, 255, 255, .035);
  border-color: rgba(255, 255, 255, .09);
  color: rgba(243, 239, 230, .72);
}

/* 主行动按钮：大号金色 */
.btn-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: .04em;
  color: #2f2208;
  cursor: pointer;
  background: linear-gradient(178deg, #f9e9c1 0%, #eecd8e 44%, #d6a453 100%);
  box-shadow: 0 14px 30px -16px rgba(227, 189, 119, .95), 0 1px 0 rgba(255, 255, 255, .55) inset;
  text-decoration: none;
}

.btn-cta:active { transform: translateY(1px); }
.btn-cta:disabled { opacity: .6; }

.btn-cta.sub {
  height: 44px;
  font-size: 14px;
  color: #efe8d8;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: none;
  font-weight: 600;
}

/* ---------------- 表单 ---------------- */
body.front .field { margin-bottom: 16px; }

body.front .field > label {
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(243, 239, 230, .58);
  margin-bottom: 8px;
  letter-spacing: .01em;
}

body.front .field > label .req {
  color: #e08a72;
  margin-left: 3px;
}

body.front .input,
body.front .select,
body.front textarea.input {
  background: #191b21;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 11px;
  color: #f5f0e6;
  font-size: 14px;
  padding: 12px 13px;
  line-height: 1.5;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

body.front .input::placeholder,
body.front textarea.input::placeholder { color: rgba(243, 239, 230, .26); }

body.front .input:focus,
body.front .select:focus,
body.front textarea.input:focus {
  outline: none;
  background: #1c1e25;
  border-color: rgba(227, 189, 119, .55);
  box-shadow: 0 0 0 3px rgba(227, 189, 119, .12);
}

body.front .input.err,
body.front .select.err {
  border-color: rgba(255, 114, 100, .7);
  box-shadow: 0 0 0 3px rgba(255, 114, 100, .12);
}

/* 下拉：去掉系统箭头，换金色自绘箭头 */
body.front .select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23e3bd77' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 11px 7px;
}

/* 浏览器自动填充：默认浅底会在深色页闪白块 */
body.front .input:-webkit-autofill,
body.front .input:-webkit-autofill:hover,
body.front .input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f5f0e6;
  -webkit-box-shadow: 0 0 0 60px #191b21 inset;
  caret-color: #f5f0e6;
}

body.front .hint {
  font-size: 11.5px;
  line-height: 1.7;
  color: rgba(243, 239, 230, .36);
  margin-top: 7px;
}

body.front .draft-saved { color: rgba(87, 211, 166, .9); }

/* 单选：胶囊式，选中转金 */
body.front .radio-row { gap: 9px; }

body.front .radio-chip {
  padding: 9px 15px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .09);
  background: #191b21;
  color: rgba(243, 239, 230, .66);
  font-size: 13px;
  font-weight: 500;
}

body.front .radio-chip input {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .26);
  background: #0e0f13;
  position: relative;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

body.front .radio-chip input:checked {
  border-color: #e6c081;
  background: #e6c081;
  box-shadow: inset 0 0 0 3px #17181c;
}

body.front .radio-chip:has(input:checked) {
  border-color: rgba(227, 189, 119, .6);
  background: rgba(227, 189, 119, .13);
  color: #f4d79a;
  font-weight: 600;
}

/* 勾选框 */
body.front input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin: 1px 0 0;
  border-radius: 5px;
  border: 1.5px solid rgba(255, 255, 255, .24);
  background: #0e0f13;
  position: relative;
  transition: border-color .15s ease, background .15s ease;
}

body.front input[type="checkbox"]:checked {
  border-color: transparent;
  background: linear-gradient(180deg, #f3d79f, #d5a352);
}

body.front input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 1.5px;
  width: 5px;
  height: 9px;
  border: 2px solid #2f2208;
  border-top: 0;
  border-left: 0;
  transform: rotate(42deg);
}

/* ---------------- 标签 ---------------- */
body.front .tag {
  background: rgba(227, 189, 119, .13);
  color: #f0d5a2;
}

body.front .tag.gold { background: rgba(227, 189, 119, .15); color: #f4d79a; }
body.front .tag.ok { background: rgba(87, 211, 166, .14); color: #6fe0b8; }
body.front .tag.warn { background: rgba(240, 183, 78, .14); color: #f6c56a; }
body.front .tag.danger { background: rgba(255, 114, 100, .14); color: #ff8a7d; }
body.front .tag.grey { background: rgba(255, 255, 255, .07); color: rgba(243, 239, 230, .5); }

/* ---------------- 议程时间轴 ---------------- */
body.front .agenda .item { border-bottom-color: rgba(255, 255, 255, .06); }

body.front .agenda .item::before { background: rgba(255, 255, 255, .09); }

body.front .agenda .item::after {
  background: #121419;
  border-color: rgba(227, 189, 119, .55);
}

body.front .agenda .item.now::after {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(227, 189, 119, .18);
}

body.front .agenda .t { color: #e6c688; }

body.front .agenda .c b { color: #f3eee4; }
body.front .agenda .c span { color: rgba(243, 239, 230, .42); }

/* ---------------- 会务卡 ---------------- */
body.front .pass {
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(227, 189, 119, .13), rgba(227, 189, 119, 0) 62%),
    linear-gradient(160deg, #1b1a17 0%, #101116 62%, #0b0c10 100%);
  border: 1px solid rgba(227, 189, 119, .26);
  border-radius: 18px;
  box-shadow: 0 18px 44px -24px rgba(0, 0, 0, .95), 0 1px 0 rgba(255, 255, 255, .05) inset;
}

body.front .pass::after { background: rgba(227, 189, 119, .07); }

body.front .pass .grid3 > div { background: rgba(255, 255, 255, .045); border-color: rgba(255, 255, 255, .07); }

body.front .code-strip { background: rgba(255, 255, 255, .045); border-color: rgba(255, 255, 255, .08); }

body.front .code-strip .cd .num { color: #f6e3ba; letter-spacing: .12em; }

body.front .code-strip .qr { background: #fff; }

body.front .pass-actions .btn {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .1);
  color: rgba(243, 239, 230, .82);
}

/* ---------------- 状态页 / 空态 ---------------- */
body.front .empty { color: rgba(243, 239, 230, .35); }

body.front .big-num { color: #f7f2e7; }
body.front .kv dt { color: rgba(243, 239, 230, .45); }

/* ---------------- 邀请函：报名引导卡 ---------------- */
.join-card {
  position: relative;
  margin: 22px 14px 0;
  padding: 18px 16px 16px;
  border-radius: 16px;
  border: 1px solid rgba(227, 189, 119, .3);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(227, 189, 119, .14), rgba(227, 189, 119, 0) 60%),
    #121419;
  box-shadow: 0 18px 40px -26px rgba(227, 189, 119, .5);
}

.join-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  color: #f8f3e8;
}

.join-card h3::before {
  content: "";
  width: 3px;
  height: 15px;
  border-radius: 2px;
  background: linear-gradient(180deg, #f3d9a4, #c9993f);
}

.join-card p {
  margin: 0 0 14px;
  font-size: 11.5px;
  line-height: 1.7;
  color: rgba(243, 239, 230, .44);
}

.join-card .btn-row { gap: 10px; margin-top: 10px; }
.join-card .btn-row .btn { height: 42px; font-size: 13.5px; }

/* ---------------- 同行参会人员 ---------------- */
.cp-card {
  margin: 22px 14px 0;
  border-radius: 16px;
  border: 1px solid rgba(227, 189, 119, .2);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(227, 189, 119, .09), rgba(227, 189, 119, 0) 58%),
    #121419;
  overflow: hidden;
}

.cp-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.cp-hd b {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 700;
  color: #f4efe5;
}

.cp-hd b::before {
  content: "";
  width: 3px;
  height: 13px;
  border-radius: 2px;
  background: linear-gradient(180deg, #f3d9a4, #c9993f);
}

.cp-hd small {
  font-size: 10.5px;
  color: rgba(243, 239, 230, .35);
  margin-right: auto;
}

.cp-add {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(227, 189, 119, .42);
  background: rgba(227, 189, 119, .12);
  color: #f2d79f;
  font-size: 11.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.cp-add:active { background: rgba(227, 189, 119, .2); }
.cp-add[disabled] { opacity: .45; }

.cp-bd { padding: 12px 14px 14px; }

.cp-hint {
  margin: 12px 14px 0;
  font-size: 11px;
  line-height: 1.75;
  color: rgba(243, 239, 230, .36);
}

/* 随行人数计数条 */
.cp-count {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .07);
  margin-bottom: 12px;
}

.cp-count .lb { font-size: 12px; color: rgba(243, 239, 230, .55); }
.cp-count .vl { font-size: 12.5px; font-weight: 700; color: #f4d79a; }
.cp-count .stepper { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.cp-count .stepper button {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .05);
  color: #f2ede2;
  font-size: 15px;
  line-height: 1;
  font-family: inherit;
  cursor: pointer;
}

.cp-count .stepper button:disabled { opacity: .35; }

body.front .companion-box { margin: 0; }

body.front .companion-card {
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 12px;
  padding: 13px 13px 1px;
  margin-bottom: 12px;
}

body.front .companion-hd { border-bottom: 0; padding: 0 0 10px; }
body.front .companion-hd span { color: #f4d79a; font-size: 13px; }
body.front .companion-hd small { color: rgba(243, 239, 230, .32); }

/* 空态表格（与设计稿一致的三列表头） */
.cp-table { width: 100%; border-collapse: collapse; }

.cp-table th:nth-child(1) { width: 34%; }
.cp-table th:nth-child(2) { width: 40%; }

.cp-table th {
  padding: 0 0 9px;
  text-align: left;
  font-size: 10.5px;
  font-weight: 500;
  color: rgba(243, 239, 230, .3);
  letter-spacing: .04em;
}

.cp-table td {
  padding: 9px 0;
  font-size: 12.5px;
  color: #f2ede2;
  border-top: 1px dashed rgba(255, 255, 255, .07);
}

.cp-empty {
  padding: 16px 0 6px;
  text-align: center;
  font-size: 11.5px;
  color: rgba(243, 239, 230, .3);
}

/* ---------------- 隐私协议 ---------------- */
.agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 18px 14px 0;
  font-size: 11.5px;
  line-height: 1.65;
  color: rgba(243, 239, 230, .48);
}

.agree label { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }

.agree em {
  font-style: normal;
  color: #efd3a0;
  border-bottom: 1px solid rgba(227, 189, 119, .35);
}

.agree.err { color: #ff9a8e; }

.agree-doc {
  margin: 8px 14px 0;
  padding: 12px 13px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .07);
  background: rgba(255, 255, 255, .03);
  font-size: 11px;
  line-height: 1.8;
  color: rgba(243, 239, 230, .42);
}

.agree-doc summary {
  cursor: pointer;
  font-size: 11.5px;
  color: rgba(243, 239, 230, .58);
  outline: none;
}

.agree-doc p { margin: 9px 0 0; }

/* ---------------- 提交区 ---------------- */
.submit-zone {
  margin: 18px 14px 0;
}

.submit-zone .tip {
  margin: 10px 0 0;
  text-align: center;
  font-size: 11px;
  color: rgba(243, 239, 230, .3);
}

/* 特别说明 */
.notes {
  margin: 20px 14px 0;
  padding: 14px 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .06);
  background: rgba(255, 255, 255, .022);
}

.notes h5 {
  margin: 0 0 9px;
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(243, 239, 230, .6);
  letter-spacing: .04em;
}

.notes ul { margin: 0; padding: 0; list-style: none; }

.notes li {
  position: relative;
  padding-left: 11px;
  margin-bottom: 6px;
  font-size: 10.5px;
  line-height: 1.72;
  color: rgba(243, 239, 230, .36);
}

.notes li:last-child { margin-bottom: 0; }

.notes li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 6px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(227, 189, 119, .45);
}

/* ---------------- 倒计时 ---------------- */
.countdown {
  margin: 26px 14px 0;
  text-align: center;
}

.countdown .lb {
  font-size: 11px;
  letter-spacing: .12em;
  color: rgba(243, 239, 230, .38);
  margin-bottom: 11px;
}

.countdown .digits {
  display: flex;
  justify-content: center;
  gap: 9px;
}

.cd-cell {
  width: 62px;
  padding: 9px 0 8px;
  border-radius: 11px;
  border: 1px solid rgba(227, 189, 119, .22);
  background:
    radial-gradient(100% 80% at 50% 0%, rgba(227, 189, 119, .11), rgba(227, 189, 119, 0) 70%),
    #131419;
}

.cd-cell b {
  display: block;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  color: #f7e9c9;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

.cd-cell span {
  display: block;
  margin-top: 3px;
  font-size: 9.5px;
  color: rgba(243, 239, 230, .3);
  letter-spacing: .1em;
}

.cd-cell[data-days] { display: none; }

/* 已报名人数 */
.enroll-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 16px 14px 0;
  font-size: 11.5px;
  color: rgba(243, 239, 230, .42);
}

.enroll-line b {
  color: #f4d79a;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.enroll-line .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #57d3a6;
  box-shadow: 0 0 8px rgba(87, 211, 166, .8);
}

/* ---------------- 底部导航 ---------------- */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: stretch;
  height: calc(54px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(10, 11, 14, .92);
  border-top: 1px solid rgba(255, 255, 255, .07);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
}

.tabbar .tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: rgba(243, 239, 230, .38);
  text-decoration: none;
  font-size: 9.5px;
  letter-spacing: .04em;
}

.tabbar .tab svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tabbar .tab:active { color: rgba(243, 239, 230, .7); }

body.page-home .tabbar .tab[data-tab="home"],
body.page-register .tabbar .tab[data-tab="register"],
body.page-done .tabbar .tab[data-tab="register"],
body.page-card .tabbar .tab[data-tab="card"],
body.page-lookup .tabbar .tab[data-tab="card"],
body.page-checkin .tabbar .tab[data-tab="home"] {
  color: #f2d79f;
}

body.page-home .tabbar .tab[data-tab="home"] svg,
body.page-register .tabbar .tab[data-tab="register"] svg,
body.page-done .tabbar .tab[data-tab="register"] svg,
body.page-card .tabbar .tab[data-tab="card"] svg,
body.page-lookup .tabbar .tab[data-tab="card"] svg {
  filter: drop-shadow(0 0 6px rgba(227, 189, 119, .45));
}

/* ---------------- 签到结果页补充 ---------------- */
body.front .state h2 { color: #f8f3e8; }
body.front .state p { color: rgba(243, 239, 230, .5); }
body.front .state .icon.ok {
  background: rgba(87, 211, 166, .12);
  color: #6fe0b8;
  border: 1px solid rgba(87, 211, 166, .28);
}

/* ---------------- toast / 弹窗在深色下的可读性 ---------------- */
body.front .toast { background: rgba(24, 26, 32, .96); color: #f3efe6; border: 1px solid rgba(255, 255, 255, .1); }

/* v11：无障碍隐藏（保留表单可提交性）与同行空态切换 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

#companionBox:not(:empty) ~ .cp-empty-wrap { display: none; }

/* 保险：大屏与落座扫码页即便带上 front 类，也不出现底部导航与背景光晕 */
body.screen-page::before,
body.seat-scan-page::before { display: none; }

body.screen-page .tabbar,
body.seat-scan-page .tabbar { display: none; }
