/* ==========================================================================
   站点管理后台原型 - 样式表
   ========================================================================== */
:root {
  --header-bg-start: #4b42ba;
  --header-bg-end: #5b51cf;
  --header-height: 54px;
  --tabs-height: 36px;

  --primary: #409eff;
  --primary-hover: #66b1ff;
  --primary-light: #ecf5ff;
  --primary-border: #b3d8ff;

  --success-text: #52c41a;
  --success-bg: #f0f9eb;
  --success-border: #d9f2cc;

  --danger-text: #f56c6c;
  --danger-bg: #fef0f0;
  --danger-border: #fde2e2;

  --warning-text: #e6a23c;
  --warning-bg: #fdf6ec;
  --warning-border: #faecd8;

  --muted-tag-text: #909399;
  --muted-tag-bg: #f4f4f5;
  --muted-tag-border: #e9e9eb;

  --bg-page: #f5f6f8;
  --bg-card: #ffffff;
  --border-color: #ebeef5;
  --border-input: #dcdfe6;

  --text-primary: #303133;
  --text-regular: #606266;
  --text-secondary: #909399;
  --text-placeholder: #b4bccc;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

button, input, select {
  font-family: inherit;
  font-size: inherit;
}

/* Shell 布局 */
.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ==========================================================================
   顶部导航栏
   ========================================================================== */
.top-header {
  position: relative;
  height: var(--header-height);
  background: linear-gradient(90deg, var(--header-bg-start) 0%, #5249c5 48%, var(--header-bg-end) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 8px;
  user-select: none;
  z-index: 50;
  flex-shrink: 0;
}

.header-bg-arc {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.header-bg-arc::before {
  content: "";
  position: absolute;
  left: -40px;
  top: -110px;
  width: 640px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at 30% 60%, rgba(255, 255, 255, 0.08), transparent 70%);
}

.header-left {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 196px;
  z-index: 2;
}

.group-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 186px;
  height: 26px;
  padding: 0 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.group-switcher:hover {
  background: rgba(255, 255, 255, 0.2);
}

.group-switcher-icon {
  display: inline-flex;
  width: 13px;
  height: 13px;
  opacity: 0.9;
}

.group-switcher-icon svg {
  width: 100%;
  height: 100%;
}

.group-switcher-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.group-switcher-caret {
  font-size: 10px;
  opacity: 0.85;
}

.header-sub-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.82);
  padding-left: 2px;
  letter-spacing: 0.2px;
}

.header-nav {
  position: relative;
  display: flex;
  align-items: stretch;
  height: 100%;
  gap: 2px;
  z-index: 2;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 58px;
  padding: 0 10px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
  cursor: pointer;
  font-size: 11.5px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.nav-item.active {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-weight: 500;
}

.header-right {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 120px;
  justify-content: flex-end;
  z-index: 2;
}

.header-notice-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  flex-shrink: 0;
  white-space: nowrap;
}

.notice-text {
  font-size: 11px;
  white-space: nowrap;
}

.header-notice-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.notice-icon-wrap {
  position: relative;
  display: inline-flex;
  width: 18px;
  height: 18px;
}

.notice-icon-wrap svg {
  width: 100%;
  height: 100%;
}

.notice-badge {
  position: absolute;
  top: -4px;
  right: -7px;
  font-size: 10px;
  line-height: 1;
  color: #ffffff;
  font-weight: 600;
}

.notice-text {
  font-size: 11px;
}

.user-menu-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12.5px;
  color: #ffffff;
}

.user-menu-wrap:hover {
  background: rgba(255, 255, 255, 0.12);
}

.user-caret {
  font-size: 10px;
  opacity: 0.85;
}

/* 通用下拉菜单 */
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  min-width: 160px;
  background: #ffffff;
  border: 1px solid #e4e7ed;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  padding: 5px 0;
  z-index: 120;
  color: var(--text-primary);
}

.dropdown-menu.open {
  display: block;
}

.header-dropdown {
  left: 0;
  min-width: 190px;
}

.user-dropdown {
  right: 0;
  min-width: 148px;
}

.batch-dropdown {
  right: 0;
  min-width: 136px;
}

.dropdown-item {
  padding: 7px 14px;
  font-size: 12.5px;
  color: var(--text-regular);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s ease, color 0.12s ease;
}

.dropdown-item:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.dropdown-item.active {
  color: var(--primary);
  font-weight: 500;
  background: #f5faff;
}

.dropdown-item.danger:hover {
  background: var(--danger-bg);
  color: var(--danger-text);
}

.dropdown-divider {
  height: 1px;
  background: #ebeef5;
  margin: 4px 0;
}

/* ==========================================================================
   多标签页栏
   ========================================================================== */
.tabs-bar {
  height: var(--tabs-height);
  background: #ffffff;
  border-bottom: 1px solid #e4e7ed;
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
  user-select: none;
  z-index: 30;
}

.tab-scroll-btn,
.tab-tool-btn,
.tab-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: none;
  background: #ffffff;
  color: var(--text-regular);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.tab-scroll-btn {
  width: 34px;
  border-right: 1px solid #ebeef5;
}

.tab-scroll-btn.border-left {
  border-right: none;
  border-left: 1px solid #ebeef5;
}

.tab-scroll-btn svg,
.tab-tool-btn svg,
.tab-icon-btn svg {
  width: 13px;
  height: 13px;
}

.tab-scroll-btn:hover,
.tab-tool-btn:hover,
.tab-icon-btn:hover {
  background: #f5f7fa;
  color: var(--text-primary);
}

.tabs-track {
  flex: 1;
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs-track::-webkit-scrollbar {
  display: none;
}

.tab-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  font-size: 12.5px;
  color: var(--text-regular);
  background: #ffffff;
  border-right: 1px solid #ebeef5;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.tab-item:hover {
  background: #f5f7fa;
  color: var(--text-primary);
}

.tab-item.active {
  background: #3b9cff;
  color: #ffffff;
  border-right-color: #3b9cff;
}

.tab-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  font-size: 13px;
  line-height: 1;
  opacity: 0.72;
  transition: background 0.12s ease, opacity 0.12s ease;
}

.tab-close:hover {
  background: rgba(0, 0, 0, 0.12);
  opacity: 1;
}

.tab-item.active .tab-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.tabs-right-tools {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
}

.tab-tool-btn {
  padding: 0 11px;
  font-size: 12px;
  border-left: 1px solid #ebeef5;
}

.tab-batch-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
}

.caret-sm {
  width: 12px;
  height: 12px;
}

.tab-icon-btn {
  width: 34px;
  border-left: 1px solid #ebeef5;
}

/* ==========================================================================
   主内容区
   ========================================================================== */
.main-content {
  flex: 1;
  padding: 16px 20px 24px;
  display: flex;
  flex-direction: column;
}

.page-view {
  display: none;
}

.page-view.active {
  display: block;
}

/* 页面头部标题区 */
.page-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.page-title-block {
  min-width: 0;
}

.page-title {
  font-size: 18px;
  font-weight: 600;
  color: #1f2329;
  line-height: 1.35;
  margin-bottom: 4px;
}

.page-subtitle {
  font-size: 12px;
  color: #86909c;
  margin-bottom: 8px;
}

.page-notice {
  font-size: 12px;
  color: #606266;
  line-height: 1.6;
}

.inline-link {
  color: var(--primary);
  text-decoration: none;
  margin-left: 6px;
  font-weight: 500;
}

.inline-link:hover {
  text-decoration: underline;
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding-top: 2px;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-default {
  background: #ffffff;
  border-color: var(--border-input);
  color: var(--text-regular);
}

.btn-default:hover:not(:disabled) {
  color: var(--primary);
  border-color: var(--primary-border);
  background: #f5faff;
}

/* 汇总指标胶囊条 */
.summary-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 10px;
}

.summary-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.summary-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 25px;
  padding: 0 9px;
  border-radius: 13px;
  background: #ffffff;
  border: 1px solid #e4e7ed;
  font-size: 11.5px;
  color: #606266;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.summary-pill .pill-count {
  font-weight: 600;
  color: #303133;
}

.summary-pill:hover {
  border-color: var(--primary-border);
  color: var(--primary);
}

.summary-pill.active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.summary-pill.active .pill-count {
  color: var(--primary);
}

.summary-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #86909c;
  line-height: 1.4;
}

.hint-icon {
  font-size: 12px;
  color: #909399;
}

/* 搜索筛选卡片 */
.filter-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 10px;
}

.filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.form-input,
.form-select {
  height: 32px;
  border: 1px solid var(--border-input);
  border-radius: 4px;
  background: #ffffff;
  color: var(--text-primary);
  font-size: 12.5px;
  padding: 0 10px;
  outline: none;
  transition: border-color 0.15s ease;
}

.form-input:focus,
.form-select:focus {
  border-color: var(--primary);
}

.form-input::placeholder {
  color: var(--text-placeholder);
}

.search-input {
  width: 248px;
}

/* 自定义 Element 风格下拉选择器 */
.custom-select {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 32px;
  min-width: 112px;
  padding: 0 9px 0 10px;
  border: 1px solid var(--border-input);
  border-radius: 4px;
  background: #ffffff;
  color: var(--text-primary);
  font-size: 12.5px;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s ease;
}

.custom-select.wide {
  min-width: 126px;
}

.custom-select.compact {
  height: 28px;
  min-width: 92px;
  font-size: 12px;
  padding: 0 8px 0 10px;
}

.custom-select:hover {
  border-color: #c0c4cc;
}

.custom-select.open,
.custom-select:focus {
  border-color: var(--primary);
  outline: none;
}

.custom-select-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-select-text.is-placeholder {
  color: #a8abb2;
}

.custom-select-arrow {
  width: 13px;
  height: 13px;
  color: #a8abb2;
  flex-shrink: 0;
  transition: transform 0.16s ease;
}

.custom-select.open .custom-select-arrow {
  transform: rotate(180deg);
  color: var(--primary);
}

.select-dropdown {
  left: 0;
  min-width: 100%;
}

.select-dropdown.drop-up {
  top: auto;
  bottom: calc(100% + 4px);
}

.form-select {
  min-width: 112px;
  padding-right: 26px;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='none' stroke='%23909399' stroke-width='1.6'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

.search-btn {
  padding: 0 16px;
}

.reset-btn {
  padding: 0 14px;
}

/* ==========================================================================
   数据表格卡片
   ========================================================================== */
.table-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
}

.table-scroll-container {
  width: 100%;
  overflow-x: auto;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

.table-loading-mask {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.78);
  z-index: 20;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--primary);
  font-size: 13px;
}

.table-loading-mask.show {
  display: flex;
}

.spinner {
  width: 26px;
  height: 26px;
  border: 2.5px solid #d9ecff;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.table-scroll-container {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  min-width: 1260px;
  border-collapse: collapse;
  table-layout: fixed;
}

.data-table thead th {
  background: #fafafa;
  color: #303133;
  font-weight: 600;
  font-size: 12px;
  padding: 10px 8px;
  text-align: center;
  border-bottom: 1px solid #ebeef5;
  border-right: 1px solid #f0f2f5;
  white-space: nowrap;
}

.data-table thead th:last-child {
  border-right: none;
}

.data-table tbody tr {
  transition: background 0.12s ease;
}

.data-table tbody tr:hover {
  background: #f9fbff;
}

.data-table tbody td {
  padding: 8px 9px;
  border-bottom: 1px solid #ebeef5;
  border-right: 1px solid #f2f3f5;
  vertical-align: middle;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-primary);
  word-break: break-word;
}

.data-table tbody td:last-child {
  border-right: none;
}

/* 单元格细节排版 */
.cell-group-top {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.group-name {
  font-weight: 600;
  color: #1f2329;
  font-size: 12.5px;
}

.sub-text {
  font-size: 12px;
  color: #909399;
  margin-top: 2px;
}

.site-code {
  font-weight: 500;
  color: #303133;
  font-size: 12.5px;
}

.site-name {
  color: #303133;
  font-size: 12.5px;
  margin-top: 1px;
}

.org-company {
  color: #303133;
  font-size: 12.5px;
}

.org-group {
  color: #909399;
  font-size: 11.5px;
  margin-top: 2px;
}

.runtime-line1 {
  color: #303133;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.runtime-line2 {
  color: #606266;
  font-size: 11.5px;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.runtime-conflict-badge {
  display: inline-block;
  margin-top: 3px;
  font-size: 11px;
  color: #e6a23c;
  background: #fdf6ec;
  border: 1px solid #faecd8;
  padding: 0 5px;
  border-radius: 3px;
}

/* 标签样式 */
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 0 5px;
  border-radius: 3px;
  font-size: 10.5px;
  line-height: 1;
  border: 1px solid transparent;
  white-space: nowrap;
}

.tag-success {
  background: var(--success-bg);
  color: var(--success-text);
  border-color: var(--success-border);
}

.tag-danger {
  background: var(--danger-bg);
  color: var(--danger-text);
  border-color: var(--danger-border);
}

.tag-warning {
  background: var(--warning-bg);
  color: var(--warning-text);
  border-color: var(--warning-border);
}

.tag-primary {
  background: var(--primary-light);
  color: var(--primary);
  border-color: #d9ecff;
}

.tag-muted {
  background: var(--muted-tag-bg);
  color: var(--muted-tag-text);
  border-color: var(--muted-tag-border);
}

/* 状态列 */
.status-cell {
  text-align: center;
  padding-left: 5px !important;
  padding-right: 5px !important;
}

.status-tags-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 4px;
}

.status-reason {
  margin-top: 5px;
  font-size: 11px;
  color: #909399;
}

/* 下发资格列 */
.eligibility-cell {
  text-align: center;
  padding-left: 5px !important;
  padding-right: 5px !important;
}

.eligibility-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 4px;
}

.eligibility-stacked {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

/* 事实时间列 */
.facts-cell {
  font-size: 10.8px;
  line-height: 1.45;
  color: #606266;
}

.facts-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.facts-line.muted {
  color: #909399;
}

/* 操作列 */
.ops-cell {
  text-align: center;
  padding-left: 6px !important;
  padding-right: 6px !important;
}

.ops-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.op-link {
  border: none;
  background: transparent;
  color: var(--primary);
  font-size: 11.5px;
  cursor: pointer;
  padding: 2px 1px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 1px;
}

.op-link:hover:not(:disabled) {
  color: var(--primary-hover);
  text-decoration: underline;
}

.op-link:disabled {
  color: #c0c4cc;
  cursor: not-allowed;
}

.op-caret {
  width: 11px;
  height: 11px;
}

/* 空状态 */
.empty-state-cell {
  text-align: center;
  padding: 48px 16px !important;
  color: #909399;
}

.empty-state-title {
  font-size: 14px;
  color: #606266;
  margin-bottom: 6px;
}

/* ==========================================================================
   分页栏
   ========================================================================== */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #ffffff;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}

.pagination-info {
  font-size: 12px;
  color: #909399;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-numbers {
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-btn {
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border: 1px solid #dcdfe6;
  background: #ffffff;
  color: var(--text-regular);
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.page-btn:hover:not(.active):not(:disabled) {
  color: var(--primary);
  border-color: var(--primary-border);
}

.page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  font-weight: 600;
}

.page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.page-size-select {
  height: 28px;
  padding: 0 8px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #ffffff;
  color: var(--text-regular);
  font-size: 12px;
  cursor: pointer;
  outline: none;
}

/* ==========================================================================
   占位视图（切换其他标签页）
   ========================================================================== */
.placeholder-card {
  max-width: 560px;
  margin: 48px auto;
  background: #ffffff;
  border: 1px solid #ebeef5;
  border-radius: 8px;
  padding: 36px 32px;
  text-align: center;
}

.placeholder-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  margin-bottom: 12px;
}

.placeholder-card h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.placeholder-card p {
  font-size: 13px;
  color: #606266;
  margin-bottom: 20px;
}

/* ==========================================================================
   侧滑抽屉 & 模态弹窗
   ========================================================================== */
.drawer-overlay,
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.36);
  z-index: 200;
}

.drawer-overlay.open {
  display: flex;
  justify-content: flex-end;
}

.drawer-panel {
  width: 480px;
  max-width: 92vw;
  height: 100%;
  background: #ffffff;
  box-shadow: -8px 0 28px rgba(0, 0, 0, 0.14);
  display: flex;
  flex-direction: column;
  animation: slideInRight 0.2s ease;
}

@keyframes slideInRight {
  from { transform: translateX(30px); opacity: 0.7; }
  to { transform: translateX(0); opacity: 1; }
}

.drawer-header,
.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid #ebeef5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-title,
.modal-title {
  font-size: 15px;
  font-weight: 600;
  color: #1f2329;
}

.drawer-subtitle {
  display: block;
  font-size: 12px;
  color: #909399;
  margin-top: 2px;
}

.modal-close-btn {
  border: none;
  background: transparent;
  font-size: 20px;
  color: #909399;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  line-height: 1;
}

.modal-close-btn:hover {
  background: #f5f7fa;
  color: #303133;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
}

.drawer-footer,
.modal-footer {
  padding: 12px 20px;
  border-top: 1px solid #ebeef5;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.detail-section {
  margin-bottom: 18px;
}

.detail-section-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #1f2329;
  margin-bottom: 10px;
  padding-left: 8px;
  border-left: 3px solid var(--primary);
}

.detail-grid {
  display: grid;
  grid-template-columns: 112px 1fr;
  row-gap: 8px;
  column-gap: 10px;
  font-size: 12.5px;
}

.detail-key {
  color: #909399;
}

.detail-val {
  color: #303133;
  word-break: break-all;
}

/* 弹窗 */
.modal-overlay.open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-dialog {
  width: 460px;
  max-width: 92vw;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  animation: fadeScale 0.16s ease;
}

@keyframes fadeScale {
  from { transform: scale(0.96); opacity: 0.7; }
  to { transform: scale(1); opacity: 1; }
}

.modal-body {
  padding: 18px 20px;
}

.form-field {
  margin-bottom: 14px;
}

.form-field:last-child {
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-size: 12.5px;
  color: #606266;
  margin-bottom: 6px;
  font-weight: 500;
}

.form-field .form-input,
.form-field .form-select,
.form-textarea {
  width: 100%;
}

.form-textarea {
  border: 1px solid var(--border-input);
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 12.5px;
  resize: vertical;
  min-height: 70px;
  outline: none;
}

.form-textarea:focus {
  border-color: var(--primary);
}

/* 悬浮行菜单 */
.floating-menu {
  display: none;
  position: fixed;
  min-width: 152px;
  background: #ffffff;
  border: 1px solid #e4e7ed;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  padding: 5px 0;
  z-index: 180;
}

.floating-menu.open {
  display: block;
}

/* Toast 提示 */
.toast-container {
  position: fixed;
  top: 66px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 6px;
  font-size: 12.5px;
  background: #ffffff;
  color: #303133;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border: 1px solid #ebeef5;
  animation: toastIn 0.2s ease;
}

.toast.success {
  background: #f0f9eb;
  border-color: #d9f2cc;
  color: #52c41a;
}

.toast.info {
  background: #ecf5ff;
  border-color: #d9ecff;
  color: #409eff;
}

.toast.warning {
  background: #fdf6ec;
  border-color: #faecd8;
  color: #e6a23c;
}

@keyframes toastIn {
  from { transform: translateY(-8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   下发资格列 - 5个文字按钮样式
   ========================================================================== */
.dispatch-links-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.dispatch-links-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-wrap: nowrap;
}

.dispatch-text-btn {
  border: none;
  background: transparent;
  color: var(--primary);
  font-size: 11.5px;
  line-height: 1.3;
  padding: 2px 2px;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

.dispatch-text-btn:hover {
  color: #1d7df2;
  background: var(--primary-light);
  text-decoration: underline;
}

.dispatch-count-zero {
  color: var(--danger-text);
  font-weight: 500;
}

/* ==========================================================================
   下发配置弹窗（语言/币种/场馆/存款渠道/提款渠道）
   ========================================================================== */
.dispatch-dialog {
  width: 780px;
  max-width: 94vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.dispatch-dialog.wide-modal {
  width: 1380px;
  max-width: 96vw;
}

.dispatch-header-info {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.dispatch-header-meta {
  font-size: 12px;
  color: #909399;
}

.dispatch-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
  background: #ffffff;
}

.dispatch-modal-footer {
  justify-content: space-between;
}

.dispatch-footer-summary {
  font-size: 12px;
  color: #606266;
}

.dispatch-footer-summary strong {
  color: var(--primary);
  font-weight: 600;
}

.dispatch-footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dispatch-site-tip {
  background: #fdf6ec;
  border: 1px solid #faecd8;
  color: #b88230;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 4px;
  margin-bottom: 14px;
}

/* 语言 & 币种 表单样式（严格对应截图1/2/3） */
.dispatch-form-section {
  margin-bottom: 22px;
}

.dispatch-form-section:last-child {
  margin-bottom: 4px;
}

.dispatch-field-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  color: #303133;
  margin-bottom: 14px;
  font-weight: 500;
}

.required-star {
  color: #f56c6c;
  margin-right: 3px;
}

.dispatch-field-hint {
  font-size: 12.5px;
  color: #909399;
  font-weight: 400;
}

.dispatch-checkbox-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding: 4px 2px;
}

.dispatch-checkbox-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: #303133;
  cursor: pointer;
  user-select: none;
}

.dispatch-checkbox-item input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--primary);
  cursor: pointer;
}

.dispatch-remark-textarea {
  width: 100%;
  min-height: 112px;
  padding: 12px 14px;
  border: 1px solid #dcdfe6;
  border-radius: 6px;
  font-size: 13px;
  color: #303133;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s ease;
}

.dispatch-remark-textarea:focus {
  border-color: var(--primary);
}

.dispatch-remark-textarea::placeholder {
  color: #b4bccc;
}

/* 场馆 / 存款渠道 / 提款渠道 弹窗内部搜索卡片（严格对应截图4-9） */
.modal-search-card {
  background: #ffffff;
  border: 1px solid #ebeef5;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 12px 16px 14px;
  margin-bottom: 14px;
}

.currency-tabs-row {
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid #ebeef5;
  margin-bottom: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.currency-tabs-row::-webkit-scrollbar {
  display: none;
}

.currency-tab-btn {
  position: relative;
  border: none;
  background: transparent;
  padding: 6px 14px 9px;
  font-size: 13px;
  color: #606266;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.currency-tab-btn:hover {
  color: var(--primary);
}

.currency-tab-btn.active {
  color: var(--primary);
  font-weight: 600;
}

.currency-tab-btn.active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.modal-filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.modal-filter-input {
  width: 170px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  font-size: 12.5px;
  color: #303133;
  outline: none;
}

.modal-filter-input:focus {
  border-color: var(--primary);
}

.modal-filter-input::placeholder {
  color: #b4bccc;
}

.modal-filter-select {
  min-width: 158px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  font-size: 12.5px;
  color: #303133;
  background: #ffffff;
  outline: none;
  cursor: pointer;
}

.modal-filter-select.is-empty {
  color: #a8abb2;
}

.modal-filter-select option {
  color: #303133;
}

/* 弹窗表格（带底部横向滚动条样式，对应截图4-9） */
.modal-table-wrap {
  border: 1px solid #ebeef5;
  border-radius: 4px;
  overflow-x: auto;
  background: #ffffff;
}

.modal-table-wrap::-webkit-scrollbar {
  height: 8px;
}

.modal-table-wrap::-webkit-scrollbar-track {
  background: #f1f2f5;
  border-radius: 4px;
}

.modal-table-wrap::-webkit-scrollbar-thumb {
  background: #9ea4b0;
  border-radius: 4px;
}

.modal-table-wrap::-webkit-scrollbar-thumb:hover {
  background: #7f8694;
}

.modal-data-table {
  width: 100%;
  min-width: 1240px;
  border-collapse: collapse;
}

.modal-data-table thead th {
  background: #f7f8fa;
  color: #606266;
  font-weight: 500;
  font-size: 12.5px;
  padding: 13px 10px;
  text-align: center;
  border-bottom: 1px solid #ebeef5;
  border-right: 1px solid #f0f2f5;
  white-space: nowrap;
}

.modal-data-table thead th:last-child {
  border-right: none;
}

.modal-data-table tbody td {
  padding: 11px 10px;
  text-align: center;
  font-size: 12.5px;
  color: #606266;
  border-bottom: 1px solid #ebeef5;
  border-right: 1px solid #f2f3f5;
  vertical-align: middle;
}

.modal-data-table tbody td:last-child {
  border-right: none;
}

.modal-data-table tbody tr:hover {
  background: #f8fbff;
}

.modal-checkbox {
  width: 15px;
  height: 15px;
  accent-color: #303133;
  cursor: pointer;
}

.venue-id-cell {
  max-width: 116px;
  word-break: break-all;
  line-height: 1.35;
  margin: 0 auto;
}

.time-two-line {
  white-space: normal;
  line-height: 1.4;
  min-width: 92px;
}

/* 渠道图标 */
.channel-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.channel-icon-badge.alipay {
  background: #1677ff;
}

.channel-icon-badge.bank {
  background: #2f54eb;
  font-size: 13px;
}

.channel-icon-badge.usdt {
  background: #26a17b;
  font-size: 11px;
}

.channel-icon-badge.wallet {
  background: #fa8c16;
  font-size: 13px;
}

/* 弹窗行内操作按钮（蓝色设置手续费 + 绿色授权按钮） */
.modal-op-btns {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.btn-table-blue {
  height: 28px;
  padding: 0 11px;
  border: none;
  border-radius: 4px;
  background: #3b82f6;
  color: #ffffff;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-table-blue:hover {
  background: #2563eb;
}

.btn-table-green {
  height: 28px;
  padding: 0 11px;
  border: none;
  border-radius: 4px;
  background: #52c41a;
  color: #ffffff;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-table-green:hover {
  background: #46ad15;
}

/* 弹窗内完整分页条（对应截图底部） */
.modal-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 4px 2px;
  font-size: 12.5px;
  color: #606266;
}

.modal-page-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-page-jump {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.modal-jump-input {
  width: 56px;
  height: 28px;
  padding: 0 6px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  text-align: center;
  font-size: 12px;
  outline: none;
}

.modal-jump-input:focus {
  border-color: var(--primary);
}

/* 二级配置弹窗层级 */
.sub-modal-overlay {
  z-index: 260;
}

.sub-config-dialog {
  width: 480px;
  max-width: 94vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

.sub-config-dialog.sub-wide-game {
  width: 1120px;
  max-width: 94vw;
}

.sub-config-dialog.sub-wide-channel {
  width: 1360px;
  max-width: 96vw;
}

.sub-config-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
}

.sub-config-footer.centered-footer {
  justify-content: center;
  gap: 16px;
  padding: 16px 20px;
}

.sub-config-footer.centered-footer .btn {
  min-width: 84px;
  height: 36px;
  font-size: 13.5px;
}

.sub-game-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
}

.sub-channel-table {
  width: 100%;
  min-width: 1280px;
  border-collapse: collapse;
}

.sub-scope-cell {
  max-width: 168px;
  line-height: 1.4;
  white-space: normal;
  word-break: break-word;
  margin: 0 auto;
}

.sub-remark-cell {
  max-width: 150px;
  word-break: break-all;
  line-height: 1.35;
  margin: 0 auto;
}

.auth-check-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  padding: 4px 2px;
}

.auth-check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border: 1px solid #ebeef5;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.auth-check-row:hover {
  background: #f8fbff;
  border-color: #d9ecff;
}

.auth-check-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #303133;
}

.auth-check-meta {
  font-size: 11.5px;
  color: #909399;
}

/* 皮肤版式分组复选样式 */
.skin-top-bar {
  justify-content: space-between;
}

.skin-top-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.skin-total-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px 12px;
  border-radius: 14px;
  background: var(--primary-light);
  border: 1px solid #d9ecff;
  font-size: 12.5px;
  font-weight: 400;
  color: #606266;
  white-space: nowrap;
}

.skin-total-badge strong {
  color: var(--primary);
  font-weight: 600;
}

.skin-count-num.has-selected {
  color: var(--primary);
  font-weight: 600;
}

.skin-groups-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skin-group-card {
  border: 1px solid #ebeef5;
  border-radius: 6px;
  background: #fafbfc;
  padding: 12px 14px;
}

.skin-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eef0f4;
}

.skin-group-title {
  font-size: 13px;
  font-weight: 600;
  color: #303133;
}

.skin-group-checkall {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #606266;
  cursor: pointer;
  user-select: none;
}

.skin-group-checkall input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--primary);
  cursor: pointer;
}

.skin-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 14px;
}

.skin-checkbox-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid #e4e7ed;
  border-radius: 5px;
  background: #ffffff;
  font-size: 13px;
  color: #303133;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.skin-checkbox-item:hover {
  border-color: var(--primary-border);
  background: #f5faff;
}

.skin-checkbox-item.checked {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 500;
}

.skin-checkbox-item input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--primary);
  cursor: pointer;
}
