/* ============================================================
   组件：按钮 / 标签 / 卡片 / 表格 / 弹窗 / 抽屉 / 表单 / 上传 /
        倒计时 / 空态 / 骨架屏 / Toast / Popconfirm
   ============================================================ */

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  user-select: none;
  cursor: pointer;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--c-primary-hover); }
.btn-primary:active:not(:disabled) { background: var(--c-primary-active); }
.btn-secondary { background: #fff; border-color: var(--c-border-strong); color: var(--c-text); }
.btn-secondary:hover:not(:disabled) { border-color: var(--c-primary); color: var(--c-primary); }
.btn-danger { background: var(--c-danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: var(--c-danger-hover); }
.btn-danger-ghost { background: #fff; border-color: var(--c-danger); color: var(--c-danger); }
.btn-danger-ghost:hover:not(:disabled) { background: var(--c-danger-soft); }
.btn-lg { height: 38px; padding: 0 20px; font-size: var(--fs-md); }
.btn-sm { height: 26px; padding: 0 10px; font-size: var(--fs-xs); }
.btn-block { width: 100%; }
.btn.is-loading { pointer-events: none; opacity: 0.65; }
.btn .spinner {
  width: 13px; height: 13px;
  border: 2px solid rgba(255,255,255,0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: tk-spin 0.7s linear infinite;
}
.btn-secondary .spinner, .btn-danger-ghost .spinner { border-color: rgba(0,0,0,0.15); border-top-color: var(--c-primary); }
@keyframes tk-spin { to { transform: rotate(360deg); } }

/* 文字链按钮（灰链，用于"模拟中标（演示）"等） */
.link-btn { color: var(--c-text-3); font-size: var(--fs-xs); text-decoration: underline; }
.link-btn:hover { color: var(--c-primary); }

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  white-space: nowrap;
}
.tag-blue   { background: var(--c-info-soft);    color: var(--c-info); }
.tag-yellow { background: var(--c-warning-soft); color: var(--c-warning); }
.tag-green  { background: var(--c-success-soft); color: var(--c-success); }
.tag-red    { background: var(--c-danger-soft);  color: var(--c-danger-dark); }
.tag-gray   { background: var(--c-closed-soft);  color: var(--c-text-2); }
.tag-violet { background: var(--c-violet-soft);  color: var(--c-violet); }
.tag-pink   { background: var(--c-pink-soft);    color: var(--c-pink); }
.tag-orange { background: var(--c-orange-soft);  color: var(--c-orange); }

/* 属性标签（描边） */
.attr-tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-border-strong);
  color: var(--c-text-2);
  font-size: 11px;
  white-space: nowrap;
}
.attr-tag.pink   { border-color: #F5B8D6; color: var(--c-pink); }
.attr-tag.violet { border-color: #CDBDF7; color: var(--c-violet); }
.attr-tag.orange { border-color: #FBC9A6; color: var(--c-orange); }

/* 平台标签页 */
.platform-tabs {
  display: flex;
  gap: 8px;
  padding: 12px;
}
.platform-tab {
  padding: 6px 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--c-text-2);
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: all 0.2s;
}
.platform-tab:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
}
.platform-tab.active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
}
.platform-tab:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- 卡片 ---------- */
.card {
  background: var(--c-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--sp-4) var(--sp-5);
}

/* ---------- 统计条 ---------- */
.stat-bar { display: flex; gap: var(--sp-4); margin-bottom: var(--sp-4); }
.stat-item {
  flex: 1;
  background: var(--c-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--sp-3) var(--sp-4);
}
.stat-item .stat-label { font-size: var(--fs-xs); color: var(--c-text-2); }
.stat-item .stat-value { font-size: 22px; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }

/* ---------- 筛选栏 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-4);
}
.filter-item { display: flex; flex-direction: column; gap: 4px; }
.filter-item label { font-size: var(--fs-xs); color: var(--c-text-2); }
.filter-item input, .filter-item select { height: 32px; min-width: 128px; }
.filter-item .range-inputs { display: flex; align-items: center; gap: 6px; }
.filter-item .range-inputs input { width: 90px; min-width: 0; }
.seat-checks { display: flex; gap: var(--sp-2); align-items: center; height: 32px; }
.seat-checks label {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--fs-sm); color: var(--c-text); cursor: pointer;
}
.seat-checks input { accent-color: var(--c-primary); }

/* 标签输入框 */
.tag-input {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  min-width: 200px;
  max-width: 400px;
  padding: 4px 8px;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.tag-input:focus-within {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--c-primary-soft);
  color: var(--c-primary);
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  padding: 2px 6px;
  white-space: nowrap;
}
.tag-remove {
  cursor: pointer;
  opacity: 0.6;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  margin-left: 2px;
}
.tag-remove:hover {
  opacity: 1;
}
.tag-input-field {
  flex: 1;
  min-width: 80px !important;
  border: none !important;
  box-shadow: none !important;
  padding: 2px 4px !important;
  height: 24px !important;
  font-size: var(--fs-sm);
}
.tag-input-field:focus {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* ---------- 报价大厅卡片网格 ---------- */
.pool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--sp-4);
}
.pool-card {
  background: var(--c-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--sp-4);
  display: flex;
  gap: var(--sp-3);
  transition: box-shadow 0.15s, transform 0.15s;
  position: relative;
  will-change: transform;
}
.pool-card:hover { box-shadow: var(--shadow-pop); transform: translateY(-1px); }
.pool-card.is-leaving { opacity: 0; transform: scale(0.97); transition: opacity 0.4s, transform 0.4s; }
/* 卡片右上角平台角标 */
.card-platform { position: absolute; top: 10px; right: 12px; }
.tag-platform { background: #FFF3E8; color: #C2410C; }
.poster {
  width: 76px;
  height: 104px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--c-closed-soft);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  overflow: hidden;
}
.poster img { width: 100%; height: 100%; object-fit: cover; }
.pool-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pool-film { font-size: var(--fs-lg); font-weight: 600; }
.pool-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 5px 0; }
.pool-cinema { font-size: var(--fs-sm); color: var(--c-text); }
.pool-addr { font-size: var(--fs-xs); color: var(--c-text-3); }
.pool-meta {
  display: flex; flex-wrap: wrap; gap: 4px var(--sp-4);
  font-size: var(--fs-sm); color: var(--c-text-2);
  margin: var(--sp-2) 0;
}
.pool-meta .price { color: var(--c-orange); font-weight: 700; }
.pool-meta .cap { font-size: var(--fs-xs); color: var(--c-text-3); }
.pool-foot {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px dashed var(--c-border);
  padding-top: var(--sp-3);
}
/* 报价按钮旁的封顶限价 */
.pool-foot .cap-price { font-size: var(--fs-xs); color: var(--c-text-2); white-space: nowrap; }
.pool-foot .cap-price b { color: var(--c-orange); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }

/* ---------- 表格 ---------- */
.table-card {
  background: var(--c-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
table.tk-table { width: 100%; border-collapse: collapse; }
.tk-table th {
  text-align: left;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--c-text-2);
  background: #FAFBFC;
  padding: 10px var(--sp-3);
  border-bottom: 1px solid var(--c-border);
  white-space: nowrap;
}
.tk-table td {
  padding: 12px var(--sp-3);
  border-bottom: 1px solid var(--c-border);
  font-size: var(--fs-sm);
  vertical-align: middle;
  height: 52px;
}
.tk-table tbody tr:last-child td { border-bottom: none; }
.tk-table tbody tr:hover { background: #FAFBFF; }
.tk-table tr.has-intercept { background: #FFF7F7; }
.tk-table tr.has-intercept:hover { background: #FEF0F0; }
.tk-table tr.has-intercept td:first-child { box-shadow: inset 2px 0 0 var(--c-danger); }
.tk-table tr.is-closing { background: var(--c-closed-soft); opacity: 0.55; transition: opacity 0.4s; }
.cell-film { font-weight: 600; color: var(--c-text); }
.cell-sub { font-size: var(--fs-xs); color: var(--c-text-3); margin-top: 2px; }
.diff-up { color: var(--c-danger); font-weight: 600; }
.diff-down { color: var(--c-success); font-weight: 600; }
.seat-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.row-actions { display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; }

/* ---------- 弹窗 Modal ---------- */
.modal-mask {
  position: fixed; inset: 0;
  background: rgba(17, 24, 39, 0.45);
  z-index: var(--z-modal);
  display: flex; align-items: center; justify-content: center;
  animation: tk-fade-in 0.18s ease;
}
.modal {
  width: 480px;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 96px);
  background: var(--c-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  display: flex; flex-direction: column;
  animation: tk-fade-in 0.22s ease;
  will-change: transform, opacity;
}
@keyframes tk-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--c-border);
}
.modal-title { font-size: var(--fs-lg); font-weight: 600; display: flex; align-items: center; gap: var(--sp-2); }
.modal-close {
  width: 28px; height: 28px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-text-3); font-size: 16px;
}
.modal-close:hover { background: var(--c-bg); color: var(--c-text); }
.modal-body { padding: var(--sp-4) var(--sp-5); overflow-y: auto; }
.modal-foot {
  display: flex; justify-content: flex-end; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  border-top: 1px solid var(--c-border);
}

/* 弹窗内订单摘要 */
.summary-box {
  background: var(--c-bg);
  border-radius: var(--radius-md);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-sm);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px var(--sp-4);
  margin-bottom: var(--sp-4);
}
.summary-box .s-label { color: var(--c-text-3); font-size: var(--fs-xs); }
.summary-box .s-full { grid-column: 1 / -1; }

/* 表单行 */
.form-row { margin-bottom: var(--sp-4); }
.form-row > label { display: block; font-size: var(--fs-sm); color: var(--c-text-2); margin-bottom: 5px; }
.form-row > label .req { color: var(--c-danger); margin-left: 2px; }
.form-row input, .form-row textarea, .form-row select { width: 100%; }
.form-row textarea { resize: vertical; min-height: 72px; }
.form-hint { font-size: var(--fs-xs); color: var(--c-text-3); margin-top: 4px; }
.form-hint.warn { color: var(--c-orange); }
.form-error { font-size: var(--fs-xs); color: var(--c-danger); margin-top: 4px; display: none; }
.form-error.is-show { display: block; }

/* 幸福蓝海影院列表 */
.xingfu-cinema-toolbar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}

.xingfu-account-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}

.xingfu-account-scroll {
  overflow-x: auto;
}

.xingfu-account-scroll .tk-table {
  min-width: 900px;
}
.xingfu-cinema-toolbar input {
  flex: 1;
  min-width: 180px;
}
.xingfu-cinema-toolbar .text-sm {
  flex: 0 0 auto;
  min-width: 96px;
  text-align: right;
}
.xingfu-cinema-scroll {
  max-height: min(56vh, 520px);
  overflow: auto;
  border: 1px solid var(--c-border);
}
.xingfu-cinema-scroll .tk-table {
  min-width: 760px;
}
.xingfu-cinema-scroll .tk-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--c-card);
}

/* 快捷原因 chips */
.reason-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-2); }
.reason-chip {
  font-size: var(--fs-xs);
  color: var(--c-text-2);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  transition: all 0.15s;
}
.reason-chip:hover { border-color: var(--c-primary); color: var(--c-primary); }

/* ---------- 抽屉 Drawer ---------- */
.drawer-mask {
  position: fixed; inset: 0;
  background: rgba(17, 24, 39, 0.45);
  z-index: var(--z-drawer);
  animation: tk-fade-in 0.18s ease;
}
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: var(--drawer-w);
  max-width: calc(100vw - 48px);
  background: var(--c-card);
  box-shadow: var(--shadow-drawer);
  z-index: calc(var(--z-drawer) + 1);
  display: flex; flex-direction: column;
  animation: tk-drawer-in 0.25s ease;
}
@keyframes tk-drawer-in {
  from { transform: translateX(40px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--c-border);
}
.drawer-title { font-size: var(--fs-lg); font-weight: 600; }
.drawer-body { flex: 1; overflow-y: auto; padding: var(--sp-5); }

/* 详情区块 */
.detail-section { margin-bottom: var(--sp-6); }
.detail-section-title {
  font-size: var(--fs-sm); font-weight: 600; color: var(--c-text-2);
  margin-bottom: var(--sp-3);
  display: flex; align-items: center; gap: var(--sp-2);
}
.detail-section-title::before {
  content: ""; width: 3px; height: 14px; border-radius: 2px; background: var(--c-primary);
}
.detail-hero { display: flex; gap: var(--sp-4); }
.detail-hero .poster { width: 92px; height: 126px; }
.detail-hero .hero-film { font-size: var(--fs-xl); font-weight: 700; }
.kv-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--sp-3) var(--sp-4);
  font-size: var(--fs-sm);
}
.kv-grid .kv-full { grid-column: 1 / -1; }
.kv-label { font-size: var(--fs-xs); color: var(--c-text-3); margin-bottom: 2px; }
.kv-value { color: var(--c-text); word-break: break-all; }
.kv-value.mono { font-family: ui-monospace, Consolas, monospace; font-size: var(--fs-xs); }
.copy-btn {
  margin-left: 6px; color: var(--c-text-3); cursor: pointer; font-size: var(--fs-xs);
}
.copy-btn:hover { color: var(--c-primary); }

/* 出票区禁用遮罩 */
.locked-zone { position: relative; }
.locked-mask {
  position: absolute; inset: -8px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(1px);
  z-index: 5;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: var(--sp-2);
  border-radius: var(--radius-md);
  text-align: center;
}
.locked-mask .lock-icon { font-size: 26px; }
.locked-mask .lock-text { color: var(--c-danger-dark); font-weight: 600; font-size: var(--fs-sm); }
.locked-mask .lock-sub { color: var(--c-text-2); font-size: var(--fs-xs); }

/* ---------- 上传组件 ---------- */
.uploader-list { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.upload-trigger {
  width: 88px; height: 88px;
  border: 1px dashed var(--c-border-strong);
  border-radius: var(--radius-md);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
  color: var(--c-text-3);
  font-size: var(--fs-xs);
  cursor: pointer;
  transition: all 0.15s;
  background: #fff;
}
.upload-trigger:hover { border-color: var(--c-primary); color: var(--c-primary); }
.upload-trigger .plus { font-size: 22px; line-height: 1; }
.upload-thumb {
  width: 88px; height: 88px;
  border-radius: var(--radius-md);
  border: 1px solid var(--c-border);
  position: relative;
  overflow: hidden;
  background: var(--c-closed-soft);
}
.upload-thumb img { width: 100%; height: 100%; object-fit: cover; }
.upload-thumb .del {
  position: absolute; top: 3px; right: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55); color: #fff;
  font-size: 11px; line-height: 18px; text-align: center;
  display: none; cursor: pointer;
}
.upload-thumb:hover .del { display: block; }
.upload-thumb .uploading {
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.7);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-xs); color: var(--c-text-2);
}
/* 二维码识别角标（缩略图底部） */
.upload-thumb .qr-badge {
  position: absolute; left: 0; right: 0; bottom: 0;
  font-size: 10px; line-height: 16px; text-align: center;
  color: #fff; background: rgba(37, 99, 235, 0.85);
  z-index: 2;
}
.upload-thumb .qr-badge.ok { background: rgba(16, 185, 129, 0.92); }
.upload-thumb .qr-badge.none { background: rgba(107, 114, 128, 0.88); }
.upload-thumb .qr-badge.decoding { background: rgba(37, 99, 235, 0.85); }
/* 自动填入高亮（取票码/验证码输入框） */
input.auto-filled {
  border-color: var(--c-success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
  transition: border-color 0.3s, box-shadow 0.3s;
}

/* ---------- 倒计时 ---------- */
.countdown { font-weight: 600; font-size: var(--fs-sm); }
.countdown.is-calm { color: var(--c-info); }
.countdown.is-warn { color: var(--c-orange); font-weight: 700; }
.countdown.is-urgent { color: var(--c-danger); font-weight: 700; animation: tk-blink 1s infinite; }
.countdown.is-over { color: var(--c-danger); font-weight: 700; }

/* ---------- 标签式多选框 ---------- */
.ms-box {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
  min-height: 32px; min-width: 200px; max-width: 340px;
  padding: 3px 8px 3px 6px;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: text;
  position: relative;
}
.ms-box:focus-within { border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }
.ms-chips { display: contents; }
.ms-chip {
  display: inline-flex; align-items: center; gap: 3px;
  background: var(--c-primary-soft); color: var(--c-primary);
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs); line-height: 20px;
  padding: 0 4px 0 8px;
  white-space: nowrap;
}
.ms-chip .x { cursor: pointer; opacity: 0.55; font-size: 10px; }
.ms-chip .x:hover { opacity: 1; }
.ms-input {
  border: none !important; box-shadow: none !important;
  padding: 2px !important; height: 24px;
  flex: 1; min-width: 56px;
  font-size: var(--fs-sm);
}
.ms-input:focus { border: none !important; box-shadow: none !important; }
.ms-input.is-error { background: var(--c-danger-soft); border-radius: 3px; }
.ms-arrow { margin-left: auto; color: var(--c-text-3); font-size: 9px; pointer-events: none; }
.ms-panel {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-pop);
  z-index: 50;
  max-height: 216px; overflow-y: auto;
  padding: 6px;
}
.ms-option {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: var(--radius-sm);
  font-size: var(--fs-sm); cursor: pointer;
}
.ms-option:hover { background: var(--c-bg); }
.ms-option input { accent-color: var(--c-primary); }
.ms-empty-hint { color: var(--c-text-3); font-size: var(--fs-xs); padding: 6px 8px; }

/* ---------- Popconfirm ---------- */
.popconfirm {
  position: absolute;
  z-index: var(--z-popconfirm);
  width: 240px;
  background: var(--c-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-pop);
  padding: var(--sp-3) var(--sp-4);
  animation: tk-fade-in 0.15s ease;
}
.popconfirm .pc-text { font-size: var(--fs-sm); display: flex; gap: 6px; }
.popconfirm .pc-text .warn-ico { color: var(--c-warning); flex-shrink: 0; }
.popconfirm .pc-actions { display: flex; justify-content: flex-end; gap: var(--sp-2); margin-top: var(--sp-3); }

/* ---------- Toast ---------- */
.toast-wrap {
  position: fixed;
  top: 16px; left: 50%;
  z-index: var(--z-toast);
  display: flex; flex-direction: column; gap: var(--sp-2);
  transform: translateX(-50%);
}
.toast {
  display: flex; align-items: center; gap: var(--sp-2);
  background: var(--c-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-pop);
  padding: 9px 16px;
  font-size: var(--fs-sm);
  animation: tk-slide-down 0.25s ease;
  border-left: 3px solid var(--c-info);
}
.toast.success { border-left-color: var(--c-success); }
.toast.error { border-left-color: var(--c-danger); }
.toast.warning { border-left-color: var(--c-warning); }
.toast.is-hiding { opacity: 0; transition: opacity 0.3s; }

/* ---------- 空态 ---------- */
.empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 64px 0;
  gap: var(--sp-2);
  background: var(--c-card);
  border-radius: var(--radius-md);
}
.empty .empty-emoji { font-size: 44px; }
.empty .empty-text { color: var(--c-text-2); font-size: var(--fs-sm); }

/* ---------- 骨架屏 ---------- */
.skeleton-block {
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, #EEF0F3 25%, #F7F8FA 37%, #EEF0F3 63%);
  background-size: 400px 100%;
  animation: tk-shimmer 1.3s infinite;
}

/* ---------- Tab ---------- */
.tab-bar { display: flex; gap: var(--sp-6); border-bottom: 1px solid var(--c-border); margin-bottom: var(--sp-4); }
.tab-item {
  padding: 8px 2px;
  font-size: var(--fs-md);
  color: var(--c-text-2);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab-item:hover { color: var(--c-text); }
.tab-item.is-active { color: var(--c-primary); font-weight: 600; border-bottom-color: var(--c-primary); }

/* ---------- 开关 ---------- */
.switch { position: relative; display: inline-block; width: 38px; height: 20px; }
.switch input { display: none; }
.switch .slider {
  position: absolute; inset: 0;
  background: #D1D5DB; border-radius: 20px;
  transition: background 0.2s;
}
.switch .slider::before {
  content: ""; position: absolute;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; top: 2px; left: 2px;
  transition: transform 0.2s;
}
.switch input:checked + .slider { background: var(--c-primary); }
.switch input:checked + .slider::before { transform: translateX(18px); }

/* ---------- 拦截弹窗 ---------- */
.intercept-banner {
  display: flex; gap: var(--sp-3);
  background: var(--c-danger-soft);
  border: 1px solid #F6C6C6;
  border-radius: var(--radius-md);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--c-danger-dark);
}
.intercept-banner .warn-ico { font-size: 18px; flex-shrink: 0; }

/* ---------- 出票成功态 ---------- */
.issue-success {
  display: flex; flex-direction: column; align-items: center;
  padding: var(--sp-6) 0; gap: var(--sp-2); text-align: center;
}
.issue-success .ok-emoji { font-size: 42px; }
.issue-success .ok-title { font-size: var(--fs-lg); font-weight: 700; color: var(--c-success); }
