/* ============================================================
   座位表（CSS Grid 版）
   28 条固定轨道：行号30 | 过道26 | 座位1-12 ×58 | 中过道34 |
                  座位13-24 ×58 | 过道26   = 1508px
   ============================================================ */

.seatwrap {
  position: relative;
  margin: 6px 0 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  background: #FFFDF8;
  overflow: hidden;
}
.seatscroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 10px 0;
}
.seatscroll::-webkit-scrollbar { height: 6px; }
.seatscroll::-webkit-scrollbar-thumb {
  background: rgba(217, 83, 26, .35);
  border-radius: 3px;
}

/* ---------- 网格 ---------- */
.seatgrid {
  display: grid;
  width: max-content;
  background: #FFFDF8;
  font-variant-numeric: tabular-nums;
}

/* ---------- 通用单元格 ---------- */
.sg-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(217, 83, 26, .34);
  border-bottom: 1px solid rgba(217, 83, 26, .26);
  min-height: 30px;
  box-sizing: border-box;
}
.sg-blank {
  border-right-color: transparent;
  border-bottom-color: transparent;
}

/* ---------- 讲台 ---------- */
.sg-stage {
  height: 30px;
  align-self: center;
  background: linear-gradient(180deg, #F4832F, #DC5A10);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .22em;
  border-radius: 4px;
  border-right: 0;
  border-bottom: 0;
}

/* ---------- 列号 ---------- */
.sg-num {
  height: 26px;
  font-size: 12px;
  font-weight: 800;
  color: var(--orange-deep);
}
.sg-num.sg-a { background: #F8E4C9; }
.sg-num.sg-b { background: #F3DBBB; }

/* ---------- 行号 ---------- */
.sg-rowno {
  background: #F3E7D2;
  font-size: 11.5px;
  font-weight: 800;
  color: #8A5A2B;
}

/* ---------- 过道 ---------- */
.sg-aisle, .sg-mid {
  background: #EAF0DC;
  border-right-color: rgba(120, 150, 70, .32);
  border-bottom-color: rgba(120, 150, 70, .26);
}
.sg-mid { background: #E4EDD2; }
.sg-aisle span, .sg-mid span {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .3em;
  line-height: 1;
  color: #6B7C46;
  display: inline-block;
}

/* ---------- 座位 ---------- */
.sg-seat {
  height: 30px;
  padding: 0 2px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sg-seat.sg-a { background: #FFFDF8; }
.sg-seat.sg-b { background: #FDF3E4; }
.sg-seat.sg-empty { background: #FAF6EF; }

/* 第 11 行（加座）高亮 */
.seatgrid > .sg-seat[style*="grid-row:13"] {
  color: var(--orange-deep);
  background: #FDEBD3;
}

/* ---------- 机构标签 ---------- */
.sg-org {
  height: 26px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #7A5A34;
  background: #FBF3E4;
  white-space: nowrap;
}

/* ---------- 右侧渐隐 ---------- */
.seatwrap::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 22px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 253, 248, 0), rgba(255, 253, 248, .95));
}

/* ---------- 滑动提示 ---------- */
.seathint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 0 10px;
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--ink-2);
}
.seathint::before,
.seathint::after {
  content: "";
  width: 16px; height: 1px;
  background: var(--line);
}

/* ---------- 新增人员 ---------- */
.seatadd {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 2px 0 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #FBF3E4;
  border-left: 3px solid #C8A24A;
}
.seatadd__k {
  flex: none;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .1em;
  color: #8A6A2B;
  padding-top: 2px;
}
.seatadd__v {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
}
.seatadd__v span {
  font-size: 12.5px;
  font-weight: 700;
  color: #6B4E1E;
  background: #FFF;
  border: 1px solid rgba(200, 162, 74, .38);
  border-radius: 999px;
  padding: 2px 10px;
}

/* ---------- 图片放大 ---------- */
.zoombox { cursor: zoom-in; }

/* ============================================================
   图片点击放大
   ============================================================ */
.shot--tall img, .shot img { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(30, 14, 3, .94);
  padding: 12px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.lightbox.is-on { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: none;
  width: auto;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}
.lightbox__close {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top));
  right: 12px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .4);
  background: rgba(0, 0, 0, .5);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  display: grid; place-items: center;
}