/* ============================================================
   site.css — 全站共享自定义样式（在 Tailwind 工具类之上）
   ============================================================ */

html { scroll-behavior: smooth; }
body {
  background-color: #070c17;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: #0a1120; }
::-webkit-scrollbar-thumb { background: #26334a; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #35486a; }
.no-sb::-webkit-scrollbar { display: none; }
.no-sb { scrollbar-width: none; }

/* ---------- 背景 ---------- */
.grid-bg {
  background-image: radial-gradient(circle at 1px 1px, rgba(148,163,184,0.16) 1px, transparent 0);
  background-size: 28px 28px;
}

/* ---------- 面板 / 卡片 ---------- */
.panel { background: linear-gradient(180deg, #0d1526 0%, #0a1120 100%); border: 1px solid #1c2740; border-radius: 14px; }
.panel-h { border-bottom: 1px solid #1c2740; }
.kpi { background: linear-gradient(180deg, #0e1729 0%, #0a1120 100%); border: 1px solid #1c2740; border-radius: 14px; }
.job:hover { border-color: rgba(34,211,238,0.42); background: #0e1729; }
.card-hover { transition: .18s; }
.card-hover:hover { border-color: rgba(34,211,238,0.42); transform: translateY(-2px); }

/* ---------- 标签 / 按钮 ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px;
  font-size: 11.5px; line-height: 18px; background: rgba(34,211,238,0.08); color: #67e8f9;
  border: 1px solid rgba(34,211,238,0.18); transition: .15s; white-space: nowrap; cursor: pointer;
}
.chip:hover { background: rgba(34,211,238,0.18); color: #a5f3fc; }
.chip-mute { background: rgba(148,163,184,0.08); color: #94a3b8; border-color: rgba(148,163,184,0.18); }
.chip-mute:hover { background: rgba(148,163,184,0.16); color: #cbd5e1; }

.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 9px;
  font-size: 13px; transition: .15s; cursor: pointer; border: 1px solid transparent;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, #22d3ee, #3b82f6); color: #04121f; font-weight: 600; }
.btn-primary:hover:not(:disabled) { filter: brightness(1.08); }
.btn-ghost { border-color: #26334a; color: #cbd5e1; }
.btn-ghost:hover:not(:disabled) { border-color: rgba(34,211,238,0.45); color: #fff; }
.btn-danger { background: rgba(251,113,133,0.12); color: #fda4af; border-color: rgba(251,113,133,0.3); }
.btn-danger:hover:not(:disabled) { background: rgba(251,113,133,0.22); color: #fecdd3; }
.btn-sm { padding: 5px 10px; font-size: 12px; border-radius: 7px; }
.btn-icon { padding: 6px; border-radius: 7px; }

/* ---------- 表单 ---------- */
.input, .select, .textarea {
  width: 100%; background: #0b1220; border: 1px solid #1e293b; border-radius: 9px;
  padding: 8px 12px; font-size: 13px; color: #e2e8f0; transition: .15s;
}
.input::placeholder, .textarea::placeholder { color: #475569; }
.input:focus, .select:focus, .textarea:focus {
  border-color: rgba(34,211,238,0.5); outline: none; box-shadow: 0 0 0 3px rgba(34,211,238,0.08);
}
.select option { background: #0b1220; color: #e2e8f0; }
.textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
.label { display: block; font-size: 12px; color: #94a3b8; margin-bottom: 6px; }
.form-hint { font-size: 11.5px; color: #64748b; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table thead th {
  text-align: left; padding: 10px 14px; font-size: 11.5px; font-weight: 500; color: #94a3b8;
  border-bottom: 1px solid #1c2740; white-space: nowrap; background: rgba(11,18,32,0.6);
}
.table tbody td { padding: 11px 14px; border-bottom: 1px solid rgba(28,39,64,0.6); vertical-align: middle; }
.table tbody tr { transition: .12s; }
.table tbody tr:hover { background: rgba(34,211,238,0.035); }
.table tbody tr:last-child td { border-bottom: none; }
.th-sort { cursor: pointer; user-select: none; }
.th-sort:hover { color: #cbd5e1; }

/* ---------- 标签页 / 分段 ---------- */
.tab-btn { transition: .15s; cursor: pointer; }
.tab-btn.active { background: rgba(34,211,238,0.14); color: #67e8f9; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-start; justify-content: center;
  padding: 6vh 16px 16px; background: rgba(4,8,18,0.72); backdrop-filter: blur(3px);
  animation: fadeIn .15s ease;
}
.modal {
  width: 100%; max-width: 640px; max-height: 88vh; overflow-y: auto;
  background: linear-gradient(180deg, #0e1729, #0a1120); border: 1px solid #243044;
  border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  animation: slideUp .18s ease;
}

/* ---------- toast ---------- */
.toast-wrap {
  position: fixed; right: 18px; bottom: 18px; z-index: 80;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
  padding: 10px 16px; border-radius: 10px; font-size: 13px; color: #e2e8f0;
  background: #0f172a; border: 1px solid #26334a; box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  opacity: 0; transform: translateY(8px); transition: .25s;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast-success { border-color: rgba(52,211,153,0.4); }
.toast-error { border-color: rgba(251,113,133,0.5); }

/* ---------- 状态徽标 ---------- */
.badge-venue { border-radius: 5px; padding: 1px 7px; font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.status-pill { border-radius: 999px; padding: 2px 10px; font-size: 11px; white-space: nowrap; }

/* ---------- 空状态 ---------- */
.empty {
  border: 1px dashed #26334a; border-radius: 12px; padding: 32px 16px;
  text-align: center; color: #64748b; font-size: 12.5px;
}

/* ---------- 动图 / bar race ---------- */
.race-row { transition: all .7s cubic-bezier(.4, 0, .2, 1); }

/* ---------- 动画 ---------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .3s ease both; }
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin .9s linear infinite; }

/* ---------- 步骤指示 ---------- */
.step-dot { width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; font-size: 12px; }
.step-line { width: 2px; flex: 1; margin: 4px 0; background: #1e293b; border-radius: 2px; }
.step-done .step-dot { background: rgba(52,211,153,0.15); color: #6ee7b7; border: 1px solid rgba(52,211,153,0.4); }
.step-done .step-line { background: rgba(52,211,153,0.3); }
.step-active .step-dot { background: rgba(34,211,238,0.15); color: #67e8f9; border: 1px solid rgba(34,211,238,0.4); }
.step-idle .step-dot { background: rgba(148,163,184,0.08); color: #64748b; border: 1px solid #26334a; }
