:root {
  --bg-dark: #0c0f17;
  --bg-card: rgba(22, 28, 45, 0.75);
  --bg-card-hover: rgba(30, 38, 60, 0.9);
  --bg-modal: #131826;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(79, 140, 255, 0.3);

  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-glow: rgba(59, 130, 246, 0.25);

  --accent-gold: #f59e0b;
  --accent-gold-glow: rgba(245, 158, 11, 0.3);
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --accent-purple: #a855f7;
  --accent-red: #ef4444;

  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
}

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

body {
  /* 原版外部字体配置 (如需还原可随时换回): font-family: 'Outfit', 'Noto Sans SC', sans-serif; */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 40%);
}

/* 顶部导航 */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(12, 15, 23, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-area {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.logo-icon {
  font-size: 28px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px var(--accent-gold-glow));
}

.logo-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(to right, #fff, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-sub {
  font-size: 11px;
  color: var(--text-muted);
}

/* 顶部中间核心指标看板：三栏对称布局，永远 100% 绝对居中于视口，不受左右两侧宽度影响 */
.header-metrics {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto;
}

.header-actions {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  min-width: 110px;
}

.metric-card .m-label {
  font-size: 11px;
  color: var(--text-dim);
}

.metric-card .m-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.metric-card .m-val.highlight {
  color: var(--accent-cyan);
}

.metric-card .m-val.gold {
  color: var(--accent-gold);
}

.metric-card-link {
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.metric-card-link:hover {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.metric-card-link .monitor-btn-val {
  color: #60a5fa;
  font-size: 16px;
  letter-spacing: 0.5px;
}

.metric-card-link:hover .monitor-btn-val {
  color: #93c5fd;
  text-shadow: 0 0 10px rgba(96, 165, 250, 0.6);
}

.metric-card-link:hover .m-label {
  color: #93c5fd;
}

.ws-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* 主容器与 Tab 导航 */
.main-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px;
}

.nav-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* 右侧个性化个人标识名牌 (DEV BY ROZJ) */
.author-tag-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  backdrop-filter: blur(8px);
  cursor: pointer;
  user-select: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.author-tag-badge .author-prefix-code {
  /* 原版字体: font-family: 'Outfit', sans-serif; */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--author-color-1, #93c5fd);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-transform: uppercase;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.author-tag-badge .author-label {
  /* 原版字体: font-family: 'Outfit', sans-serif; */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.author-tag-badge .author-name {
  /* 原版字体: font-family: 'Outfit', sans-serif; */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: var(--author-name-bg, linear-gradient(135deg, #ffffff 0%, #93c5fd 60%, #60a5fa 100%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px var(--author-glow, rgba(59, 130, 246, 0.25)));
  transition: filter 0.3s ease;
}

/* 鼠标悬浮固定不动，仅产生流光与色彩响应 */
.author-tag-badge:hover {
  border-color: var(--author-border-color, rgba(147, 197, 253, 0.35));
  box-shadow: 0 0 16px var(--author-glow, rgba(59, 130, 246, 0.25)), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* 移动端名牌在 PC 端默认完全隐藏 */
.author-badge-mobile {
  display: none !important;
}

/* 筛选条 */
.filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.time-presets {
  display: flex;
  align-items: center;
  gap: 6px;
}

.preset-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
  user-select: none;
}

.preset-btn:hover,
.preset-btn.active {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  border-color: var(--primary);
}

/* PC 端展示【前一天】，隐藏【后一天】；移动端通过媒体查询全部展示 */
.btn-step-day {
  display: none;
}

#btnPrevDay.btn-step-day {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#btnNextDay.btn-step-day {
  display: none;
}

.club-filter-wrap {
  display: inline-flex;
  align-items: center;
}

.club-select-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  outline: none;
  transition: all 0.2s;
  height: 31px;
  box-sizing: border-box;
  max-width: 130px;
}

.club-select-btn:hover,
.club-select-btn:focus,
.club-select-btn.active-filter {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  border-color: var(--primary);
}

.club-select-btn option {
  background: #111827;
  color: #fff;
  padding: 6px;
}

.club-pills-bar {
  display: none;
}

.custom-date-range {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.search-box {
  margin-left: auto;
}

.date-input {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.date-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

.date-input::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.85;
  cursor: pointer;
  padding: 2px;
  border-radius: 3px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.date-input::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
  transform: scale(1.15);
}

.search-input {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  width: 260px;
  outline: none;
}

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

/* 实时通知横幅 */
.live-ticker {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.1), rgba(168, 85, 247, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 13px;
}

.ticker-badge {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.ticker-content {
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Tab 面板显示隐藏 */
.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* 表格与卡片 */
.ranking-table-card,
.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.table-header-title,
.card-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
}

.table-title-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
}

.table-header-title h3,
.card-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.sub-tip {
  font-size: 12px;
  color: var(--text-dim);
  display: inline-block;
  font-weight: 400;
  line-height: 1.2;
}

.header-desc {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
  display: block;
}

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

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.data-table th {
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-dim);
  font-weight: 600;
  padding: 12px 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
  border-bottom: 1px solid var(--border-color);
}

.data-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  vertical-align: middle;
  white-space: nowrap;
}

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

.data-table tbody tr.clickable-row {
  cursor: pointer;
  user-select: none;
}

.data-table tbody tr.clickable-row:hover td {
  background-color: rgba(59, 130, 246, 0.1) !important;
}

.data-table tbody tr.clickable-row:hover td strong,
.data-table tbody tr.clickable-row:hover .anchor-nick,
.data-table tbody tr.clickable-row:hover .user-nick {
  color: #93c5fd;
}

.data-table tbody tr.clickable-row:active td {
  background-color: rgba(59, 130, 246, 0.18) !important;
}

.data-table tr:hover td {
  background: var(--bg-card-hover);
}

.loading-td {
  text-align: center;
  padding: 40px !important;
  color: var(--text-muted);
}

.text-right {
  text-align: right;
}

.text-center {
  text-align: center;
}

/* 排名徽章 */
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.rank-1 {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #000;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.5);
}

.rank-2 {
  background: linear-gradient(135deg, #e2e8f0, #94a3b8);
  color: #000;
  box-shadow: 0 0 10px rgba(226, 232, 240, 0.4);
}

.rank-3 {
  background: linear-gradient(135deg, #f97316, #b45309);
  color: #fff;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.4);
}

/* 用户画像与徽章 */
.user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #1f2937;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-name-col {
  display: flex;
  flex-direction: column;
}

.user-nick {
  font-weight: 600;
  color: #fff;
}

.user-uid {
  font-size: 11px;
  color: var(--text-dim);
}

.level-pill {
  font-size: 11px;
  font-weight: 700;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  height: 22px;
  padding: 1px 6px 0 6px;
  border-radius: 4px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-sizing: border-box;
}

.badge-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  vertical-align: middle;
}

.supreme-pill {
  font-size: 11px;
  font-weight: 700;
  height: 22px;
  padding: 1px 7px 0 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  line-height: 1;
  box-sizing: border-box;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.noble-pill {
  font-size: 11px;
  font-weight: 700;
  height: 22px;
  padding: 1px 7px 0 5px;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(239, 68, 68, 0.15));
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  line-height: 1;
  box-sizing: border-box;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.2);
  transition: all 0.2s ease;
}

.supreme-pill img.badge-icon,
.noble-pill img.badge-icon,
.dia-pill img.badge-icon {
  width: 15px;
  height: 15px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  align-self: center;
  margin: 0;
}

.dia-pill {
  font-size: 11px;
  font-weight: 700;
  height: 22px;
  padding: 1px 7px 0 5px;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  line-height: 1;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.price-gold {
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 15px;
}

/* 按钮规范 */
.btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap !important;
  word-break: keep-all;
  flex-shrink: 0;
}

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

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 2px 10px var(--primary-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

.btn-outline:hover {
  color: #fff;
  border-color: var(--primary);
}

.btn-sm {
  padding: 5px 12px;
  font-size: 12px;
  white-space: nowrap !important;
  min-width: 80px;
  height: 28px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-xs {
  padding: 4px 10px;
  font-size: 12px;
  white-space: nowrap !important;
  min-width: 48px;
  height: 26px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

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

.btn-block {
  width: 100%;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: #ef4444;
  color: #fff;
}

.text-nowrap {
  white-space: nowrap !important;
}

.badge-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  white-space: nowrap;
  vertical-align: middle;
}

/* 房间管理网格 */
.rooms-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
}

.batch-textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 12px;
  font-family: inherit;
  font-size: 13px;
  resize: vertical;
  margin-bottom: 12px;
}

.batch-textarea:focus {
  border-color: var(--primary);
  outline: none;
}

.divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 20px 0;
}

.single-add-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.form-input {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 10px 14px;
  font-size: 13px;
  outline: none;
}

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

.room-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.status-connected {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-reconnecting {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-disabled {
  background: rgba(107, 114, 128, 0.15);
  color: #9ca3af;
  border: 1px solid rgba(107, 114, 128, 0.3);
}

/* 开关 Switch 组件 */
.toggle-switch-wrap {
  display: flex;
  align-items: center;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: .3s;
  border-radius: 24px;
  border: 1px solid var(--border-color);
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  transition: .3s;
  border-radius: 50%;
}

input:checked+.slider {
  background-color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

input:checked+.slider:before {
  transform: translateX(20px);
}

/* 高并发配置卡片 */
.cfg-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.cfg-item {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 0.2s ease;
}

.cfg-item:hover {
  border-color: rgba(59, 130, 246, 0.3);
}

.cfg-desc {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 6px;
  line-height: 1.4;
}

.cfg-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

.cfg-ports-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.badge-port {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93c5fd;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: monospace;
}

.form-input-sm {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: #fff;
  padding: 4px 8px;
  font-size: 12px;
  outline: none;
}

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

.rooms-left-col {
  display: flex;
  flex-direction: column;
}

/* 模拟器面板优化排版 */
.sim-panel-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sim-form-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.sim-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

@media (max-width: 1200px) {
  .sim-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .sim-grid-5 {
    grid-template-columns: 1fr;
  }
}

.sim-gift-row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.ops-tools-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.ops-header {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.15);
}

.ops-body {
  padding: 16px 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  color: var(--text-dim);
}

.sim-actions {
  display: flex;
  gap: 12px;
}

/* 模态框 */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--bg-modal);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalIn 0.25s ease-out;
}

.modal-content.modal-lg {
  width: min(94vw, 1440px);
  max-width: 1440px;
  height: clamp(560px, 86vh, 1200px);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-header {
  padding: 20px 28px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.2);
}

.modal-title-box h2 {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.modal-badge {
  font-size: 12px;
  color: var(--primary);
  background: rgba(59, 130, 246, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 4px;
  display: inline-block;
}

.modal-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  transition: all 0.2s;
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
  transform: rotate(90deg);
}

.modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 下钻统计指标 */
.detail-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.stat-box {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.2s, border-color 0.2s;
}

.stat-box:hover {
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
}

.stat-box .sb-label {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
}

.stat-box .sb-val {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-top: 6px;
  letter-spacing: -0.5px;
}

.stat-box .sb-val.gold {
  color: var(--accent-gold);
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}

.detail-section h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.trend-bars-container {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  min-height: 180px;
  height: 180px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 20px;
  overflow-x: auto;
}

.trend-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 58px;
  height: 100%;
  justify-content: flex-end;
  flex-shrink: 0;
}

.trend-bar-col.hourly-col {
  min-width: 36px;
  gap: 6px;
}

.trend-bar {
  width: 28px;
  background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
  border-radius: 5px 5px 0 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

.hourly-col .trend-bar {
  width: 20px;
  border-radius: 4px 4px 0 0;
}

.trend-bar.trend-bar-empty {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  min-height: 3px;
}

.trend-bar:hover {
  background: linear-gradient(180deg, #93c5fd 0%, #3b82f6 100%);
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.6);
  transform: scaleY(1.04);
}

.trend-date {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.trend-val {
  font-size: 10px;
  color: var(--accent-gold);
  font-weight: 700;
  white-space: nowrap;
  min-height: 14px;
}

.modal-table-scroll {
  max-height: 480px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.2);
}

.modal-table-scroll .data-table thead th {
  position: sticky;
  top: 0;
  background: #131826;
  z-index: 10;
  box-shadow: 0 1px 0 var(--border-color);
  white-space: nowrap;
}

.uid-text {
  font-family: 'JetBrains Mono', Consolas, monospace;
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
}

.trend-val {
  font-size: 10px;
  color: var(--accent-gold);
  font-weight: 700;
}

/* 用户弹窗头部画像 */
.user-header-info,
.anchor-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.user-big-avatar,
.anchor-big-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  background: #1f2937;
  flex-shrink: 0;
}

.anchor-big-avatar {
  border-color: #3b82f6;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

.user-header-name,
.anchor-header-name {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.user-header-name h2,
.anchor-header-name h2 {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.user-header-meta,
.anchor-header-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.user-header-meta .sep,
.anchor-header-meta .sep {
  margin: 0 2px;
  color: var(--text-dim);
}

.user-header-meta .gold {
  color: var(--accent-gold);
  font-size: 14px;
}

#btnUserModalBackToAnchor {
  display: none !important;
}

/* 主播列表中的头像与公会标签 */
.anchor-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.anchor-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: #1f2937;
  border: 2px solid rgba(59, 130, 246, 0.4);
  flex-shrink: 0;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.anchor-cell:hover .anchor-avatar {
  transform: scale(1.08);
  border-color: #3b82f6;
}

.anchor-name-col {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.anchor-nick {
  font-weight: 700;
  color: #fff;
  font-size: 14px;
}

.club-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

/* 第1大公会（默认现有颜色：极光紫蓝） */
.club-badge,
.club-badge-rank-1 {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(59, 130, 246, 0.22));
  color: #a78bfa;
  border: 1px solid rgba(167, 139, 250, 0.45);
  box-shadow: 0 0 6px rgba(139, 92, 246, 0.18);
}

/* 第2大公会（琥珀暖金/珊瑚金） */
.club-badge-rank-2 {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(234, 88, 12, 0.2));
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.45);
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.18);
}

/* 第3大公会及其他所有公会（翡翠薄荷青） */
.club-badge-rank-3 {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(6, 182, 212, 0.18));
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.45);
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.18);
}

/* 新人主播微标 (现代轻奢暖金微渐变 + 微星光动效) */
.badge-rookie {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(239, 68, 68, 0.22));
  color: #fde047;
  border: 1px solid rgba(250, 204, 21, 0.55);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.25);
  letter-spacing: 0.5px;
  white-space: nowrap;
  vertical-align: middle;
  line-height: 1.3;
}

.rookie-sparkle {
  font-size: 10px;
  display: inline-block;
  animation: rookieGlow 2.5s infinite ease-in-out;
}

@keyframes rookieGlow {

  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 1px #fde047);
  }

  50% {
    transform: scale(1.18);
    filter: drop-shadow(0 0 5px #facc15);
  }
}

.status-live-pill {
  padding: 2px 6px;
  font-size: 11px;
  border-radius: 4px;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.status-offline-pill {
  padding: 2px 6px;
  font-size: 11px;
  border-radius: 4px;
  font-weight: 600;
  background: rgba(107, 114, 128, 0.2);
  color: #9ca3af;
  border: 1px solid rgba(107, 114, 128, 0.4);
}

/* 未知礼物字典补全样式 */
.gift-thumb-box {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.gift-thumb-box img,
.gift-thumb-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.input-table-sm {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: #fff;
  padding: 5px 8px;
  font-size: 12px;
  width: 100%;
  outline: none;
}

.input-table-sm:focus {
  border-color: var(--primary);
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
  color: var(--text-main);
}

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

.modal-md {
  max-width: 520px;
}

/* ================= 观众数据大厅样式 ================= */
.user-stats-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.user-kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.user-kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.user-kpi-card .kpi-icon {
  font-size: 28px;
  background: rgba(255, 255, 255, 0.05);
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-kpi-card .kpi-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-kpi-card .kpi-label {
  font-size: 12px;
  color: var(--text-muted);
}

.user-kpi-card .kpi-value {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-mono);
}

.user-lobby-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--border-color);
}

.user-lobby-toolbar .toolbar-left {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  flex: 1;
}

.form-select {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 9px 14px;
  font-size: 13px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

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

.form-select option {
  background: #111827;
  color: #fff;
}

.search-input-wrap {
  min-width: 220px;
  max-width: 320px;
}

.search-input-wrap .form-input {
  width: 100%;
  padding: 9px 14px;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.15);
}

.pagination-info {
  font-size: 13px;
  color: var(--text-muted);
}

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

.cur-page-badge {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  min-width: 28px;
  text-align: center;
}

/* 高并发配置卡片与开关 */
.toggle-switch-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #374151;
  transition: .3s;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

input:checked+.slider {
  background-color: #2563eb;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}

input:checked+.slider:before {
  transform: translateX(20px);
}

.status-badge-concurrency {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  background: rgba(107, 114, 128, 0.2);
  color: #9ca3af;
  border: 1px solid rgba(156, 163, 175, 0.2);
  transition: all 0.3s;
}

.status-badge-concurrency.active {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.3);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.2);
}

.cfg-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: opacity 0.3s ease;
}

.cfg-section.disabled-view {
  opacity: 0.45;
  pointer-events: none;
}

.cfg-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 12px;
}

.cfg-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin: 4px 0 8px 0;
  line-height: 1.4;
}

.cfg-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.cfg-ports-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge-port {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.cfg-actions {
  margin-top: 14px;
}

/* 主播开播头像呼吸灯特效 (Breathing Light Pulse) */
.avatar-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.anchor-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #1f2937;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

/* 正在直播呼吸灯动效 (Breathing Light Pulse) */
.avatar-wrap.live-breathing .anchor-avatar {
  border: 2px solid #ef4444;
  animation: liveBreathingPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes liveBreathingPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7), 0 0 8px rgba(239, 68, 68, 0.6);
    border-color: #ef4444;
  }

  50% {
    box-shadow: 0 0 0 7px rgba(239, 68, 68, 0), 0 0 16px rgba(244, 63, 94, 0.85);
    border-color: #f43f5e;
  }

  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0), 0 0 8px rgba(239, 68, 68, 0.6);
    border-color: #ef4444;
  }
}

/* LIVE 角标 */
.live-badge-mini {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: linear-gradient(135deg, #ef4444, #f43f5e);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: liveBadgeGlow 2s ease-in-out infinite alternate;
}

@keyframes liveBadgeGlow {
  from {
    filter: drop-shadow(0 0 2px rgba(239, 68, 68, 0.6));
  }

  to {
    filter: drop-shadow(0 0 6px rgba(244, 63, 94, 1));
  }
}

.status-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-offline-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(107, 114, 128, 0.15);
  color: #9ca3af;
  border: 1px solid rgba(156, 163, 175, 0.2);
}

/* 主播头像直达直播间交互 */
.avatar-wrap.clickable-avatar {
  cursor: pointer;
}

.avatar-wrap.clickable-avatar:hover .anchor-avatar {
  transform: scale(1.08);
  border-color: #3b82f6;
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.6);
}

.avatar-wrap.clickable-avatar.live-breathing:hover .anchor-avatar {
  border-color: #f43f5e;
  box-shadow: 0 0 18px rgba(244, 63, 94, 0.9);
}

.avatar-jump-hint {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  pointer-events: none;
}

.avatar-wrap.clickable-avatar:hover .avatar-jump-hint {
  opacity: 1;
}

.live-room-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #60a5fa;
  text-decoration: none;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.live-room-link:hover {
  background: rgba(59, 130, 246, 0.3);
  color: #93c5fd;
  border-color: #3b82f6;
}

/* 用户画像与大模态框固定自适应布局（兼容 1080P、2K、4K 及笔记本） */
/* 用户画像与主播详情大模态框固定自适应弹性布局（完美兼容 1080P、2K/1440P、4K 及各种缩放比例） */
.modal-content.anchor-profile-modal,
.modal-content.user-profile-modal {
  width: min(94vw, 1440px);
  max-width: 1440px;
  height: clamp(580px, 88vh, 1280px);
  display: flex;
  flex-direction: column;
}

.anchor-profile-modal .modal-header,
.user-profile-modal .modal-header {
  flex-shrink: 0;
}

.anchor-profile-modal .modal-body,
.user-profile-modal .modal-body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 24px;
  min-height: 0;
}

.anchor-profile-modal .detail-stats-grid {
  flex-shrink: 0;
}

.anchor-profile-modal #anchorDailyTrendSection {
  flex-shrink: 0;
}

.anchor-profile-modal .anchor-fans-section,
.user-profile-modal .detail-section {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 250px;
}

.anchor-profile-modal .modal-table-scroll,
.user-profile-modal .modal-table-scroll {
  flex: 1;
  min-height: 220px;
  max-height: none;
  overflow-y: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.2);
}

.modal-table-scroll .data-table thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #141b2a;
  box-shadow: 0 1px 0 var(--border-color);
}

/* 2K / 1440P (2560x1440 及系统高分屏 125%/150% 缩放适配) */
@media (min-width: 1600px) and (min-height: 850px) {

  .modal-content.modal-lg,
  .modal-content.anchor-profile-modal,
  .modal-content.user-profile-modal {
    width: min(94vw, 1440px);
    max-width: 1440px;
    height: clamp(750px, 88vh, 1420px);
  }

  .anchor-profile-modal .modal-body,
  .user-profile-modal .modal-body {
    padding: 22px 28px;
    gap: 20px;
  }

  .anchor-profile-modal .anchor-fans-section,
  .user-profile-modal .detail-section {
    min-height: 380px;
  }
}

/* 4K (3840x2160) 高清大屏适配 */
@media (min-width: 2500px) and (min-height: 1200px) {

  .modal-content.modal-lg,
  .modal-content.anchor-profile-modal,
  .modal-content.user-profile-modal {
    width: min(90vw, 1440px);
    max-width: 1440px;
    height: clamp(950px, 86vh, 1800px);
  }

  .anchor-profile-modal .anchor-fans-section,
  .user-profile-modal .detail-section {
    min-height: 480px;
  }
}

/* 笔记本 / 较矮屏幕 (高度 <= 820px) 紧凑适配 */
@media (max-height: 820px) {

  .modal-content.modal-lg,
  .modal-content.anchor-profile-modal,
  .modal-content.user-profile-modal {
    height: 94vh;
  }

  .anchor-profile-modal .modal-body,
  .user-profile-modal .modal-body {
    padding: 12px 18px;
    gap: 12px;
  }

  .anchor-profile-modal .anchor-fans-section,
  .user-profile-modal .detail-section {
    min-height: 180px;
  }

  .anchor-profile-modal .modal-table-scroll,
  .user-profile-modal .modal-table-scroll {
    min-height: 140px;
  }
}

/* 用户画像弹窗顶部时间与房间联动样式 */
.user-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
  padding: 12px 18px;
}

.user-modal-time-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.modal-preset-group {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 1px;
}

.modal-time-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.2;
}

.modal-time-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.modal-time-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

.modal-time-btn.nav-btn {
  font-size: 10px;
  padding: 3px 5px;
}

.modal-custom-date-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 2px 4px;
}

.modal-date-picker {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 11px;
  font-family: inherit;
  outline: none;
  width: 92px;
}

.modal-date-picker::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.85;
  cursor: pointer;
  padding: 1px;
  border-radius: 3px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.modal-date-picker::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
  transform: scale(1.15);
}

.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.section-header-row h3 {
  margin-bottom: 0 !important;
}

.sub-hint {
  font-size: 12px;
  font-weight: normal;
  color: var(--text-dim);
  margin-left: 8px;
}

/* 跨直播间表格行点击与选中态 */
.clickable-room-row {
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.clickable-room-row:hover {
  background: rgba(59, 130, 246, 0.12) !important;
}

.clickable-room-row.selected-room-row {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.28) 0%, rgba(37, 99, 235, 0.08) 100%) !important;
  box-shadow: inset 4px 0 0 #3b82f6;
}

.clickable-room-row.selected-room-row td {
  color: #fff;
}

.clickable-room-row.selected-room-row .anchor-nick {
  color: #60a5fa !important;
}

.active-room-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12px;
  color: #93c5fd;
}

.active-room-filter-tag strong {
  color: #fff;
}

.tag-close-btn {
  background: transparent;
  border: none;
  color: #93c5fd;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  padding: 0 2px;
  border-radius: 2px;
  transition: color 0.15s ease;
}

.tag-close-btn:hover {
  color: #f87171;
}

.gold-dim {
  color: #f59e0b;
  opacity: 0.75;
}

/* ================= 管理员鉴权与隐私控制样式 ================= */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-auth-header-wrap {
  display: flex;
  align-items: center;
}

.admin-login-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-login-btn:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--primary);
  color: #93c5fd;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.admin-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 4px 12px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 20px;
}

.admin-crown-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-gold);
}

.btn-logout-mini {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #d1d5db;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-logout-mini:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.tab-lock-icon {
  font-size: 11px;
  margin-left: 2px;
  opacity: 0.7;
}

/* 绿色开关 */
.switch-green input:checked+.slider {
  background-color: #10b981 !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.45) !important;
}

/* 管理员登录模态框 */
.modal-auth-box {
  max-width: 440px !important;
}

.auth-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.auth-icon-circle {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(168, 85, 247, 0.2));
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 12px;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.auth-tip-msg {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 8px;
}

.password-input-wrap {
  position: relative;
  width: 100%;
}

.password-input-wrap .form-input {
  width: 100%;
  padding-right: 42px;
}

.btn-toggle-pwd {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px 6px;
  font-size: 14px;
  border-radius: 4px;
  transition: color 0.2s;
}

.btn-toggle-pwd:hover {
  color: var(--text-main);
}

.auth-error-msg {
  width: 100%;
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 6px;
  color: #fca5a5;
  font-size: 12px;
  text-align: left;
}

.auth-footer-hint {
  margin-top: 14px;
  font-size: 11px;
  color: var(--text-dim);
}

/* ================= 搜索并申请收录主播直播间模态框样式 ================= */
.modal-content.submit-room-modal {
  width: min(94vw, 1440px);
  max-width: 1440px;
  height: clamp(620px, 90vh, 1280px);
  display: flex;
  flex-direction: column;
}

.submit-room-title-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.title-with-desc {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.title-with-desc h2 {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.title-sub-tip {
  font-size: 13px;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 3px 10px;
  border-radius: 14px;
  font-weight: 500;
}

.submit-room-body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 24px;
  min-height: 0;
}

.submit-search-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.submit-search-bar {
  display: flex;
  gap: 12px;
  align-items: center;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.search-icon-prefix {
  position: absolute;
  left: 14px;
  font-size: 15px;
  color: var(--text-dim);
  pointer-events: none;
}

.search-room-input {
  width: 100%;
  padding: 10px 16px !important;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.4) !important;
  border-color: rgba(59, 130, 246, 0.35) !important;
}

.search-room-input:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.35) !important;
}

/* 搜索结果下拉面板 */
.search-results-box {
  background: #111726;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 250px;
  margin-top: 4px;
}

.results-title-hint {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-gold);
}

.results-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
  overflow-y: auto;
  max-height: 180px;
  padding: 4px 6px 6px 4px;
}

.result-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.result-item-card:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.result-item-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.result-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.result-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.result-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-room-id {
  font-size: 11px;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', Consolas, monospace;
}

.btn-select-room {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid var(--primary);
  color: #93c5fd;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.result-item-card:hover .btn-select-room {
  background: var(--primary);
  color: #fff;
}

/* 选定区域 */
.submit-selected-card {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  flex-shrink: 0;
}

.selected-inputs-row {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  gap: 16px;
  align-items: end;
}

.form-group-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group-item label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.readonly-input {
  background: rgba(0, 0, 0, 0.3) !important;
  color: #fff !important;
  cursor: default !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.btn-success {
  background: #10b981;
  color: #fff;
  border: none;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-success:hover:not(:disabled) {
  background: #059669;
  transform: translateY(-1px);
}

.btn-success:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

/* 底部列表 */
.pending-table-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  gap: 10px;
}

.pending-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 0;
}

.pending-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pending-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.pending-count-badge {
  font-size: 12px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 2px 8px;
  border-radius: 12px;
}

.pending-table-scroll {
  flex: 1;
  min-height: 200px;
  max-height: none;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.2);
}

.btn-copy-room {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #93c5fd;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-copy-room:hover {
  background: var(--primary);
  color: #fff;
}

.btn-delete-pending {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-delete-pending:hover {
  background: #ef4444;
  color: #fff;
}

.btn-delete-pending.confirming {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  color: #ffffff !important;
  font-weight: 700;
}

/* 桌面端默认辅助类 */
.mobile-sub-paid {
  display: none;
}

.anchor-meta-sub {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.anchor-roomid-mini {
  display: none;
}

.income-cell-wrap {
  display: inline-flex;
  flex-direction: column;
}

/* ==========================================================================
   📱 MOBILE RESPONSIVE ADAPTATION (移动端超精细深度适配)
   ========================================================================== */
@media (max-width: 768px) {

  /* 1. 基础容器与头部大盘 */
  body {
    font-size: 13px;
  }

  .app-header {
    padding: 8px 12px;
    flex-wrap: wrap;
    gap: 8px;
    background: rgba(12, 15, 23, 0.95);
  }

  .logo-icon {
    font-size: 20px;
  }

  .logo-title {
    font-size: 14px;
    letter-spacing: 0.5px;
  }

  /* 隐藏移动端顶部奖杯 emoji */
  .logo-icon {
    display: none !important;
  }

  .logo-sub {
    display: none;
  }

  .header-actions {
    gap: 6px;
  }

  /* 移动端实时同步转为呼吸闪烁小绿点 */
  .ws-status {
    padding: 4px 5px !important;
    border-radius: 50% !important;
    gap: 0 !important;
    min-width: unset !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  #wsStatusText {
    display: none !important;
  }

  /* 顶部大盘指标转为横向丝滑滑动胶囊条：移动端必须靠左对齐，不继承PC居中，确保【今日流水】排在最前显眼可见 */
  .header-metrics {
    width: 100%;
    order: 3;
    overflow-x: auto;
    padding-bottom: 2px;
    gap: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start !important;
    margin: 0 !important;
  }

  .header-metrics::-webkit-scrollbar {
    display: none;
  }

  /* 顶部大盘指标：移动端隐藏分流跳转按钮、监控房间、在线连接，保留今日流水/今日送礼人数/总礼物数/直播监控室 */
  #btnBackupServerLink,
  #metricCardTotalRooms,
  #metricCardConnectedRooms {
    display: none !important;
  }

  #metricCardIncome {
    display: flex !important;
    order: 1 !important;
    flex-shrink: 0 !important;
  }

  #metricCardUsers {
    display: flex !important;
    order: 2 !important;
    flex-shrink: 0 !important;
  }

  #metricCardGifts {
    display: flex !important;
    order: 3 !important;
    flex-shrink: 0 !important;
  }

  /* 个人专属名牌 (DEV BY ROZJ)：排在第 4 位 */
  .header-metrics .author-tag-badge {
    display: inline-flex !important;
    order: 4 !important;
    flex-shrink: 0 !important;
    padding: 0 10px;
    height: 38px;
    border-radius: var(--radius-sm);
    align-items: center;
    gap: 5px;
    margin-left: 0;
  }

  /* 快捷跳转 (直播监控室)：排在第 5 位 */
  #btnLiveMonitorRoom {
    display: flex !important;
    order: 5 !important;
    flex-shrink: 0 !important;
  }

  .metric-card {
    min-width: 85px;
    padding: 5px 8px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
  }

  .metric-card .m-label {
    font-size: 9px;
  }

  .metric-card .m-val {
    font-size: 13px;
  }

  .metric-card-link .monitor-btn-val {
    font-size: 12px;
  }

  .header-metrics .author-tag-badge .author-prefix-code {
    font-size: 8.5px;
    padding: 1px 4px;
  }

  .header-metrics .author-tag-badge .author-label {
    font-size: 9.5px;
  }

  .header-metrics .author-tag-badge .author-name {
    font-size: 12px;
  }

  .main-container {
    padding: 8px 8px 30px 8px;
  }

  /* 2. 隐藏移动端顶部按键、实时动态、表格标题与大提示 */
  .nav-tabs {
    display: none !important;
  }

  .live-ticker {
    display: none !important;
  }

  .table-header-title {
    display: none !important;
  }

  /* 3. 筛选栏流式重构与非弹出式公会横滑列表 */
  .filter-bar {
    padding: 8px;
    gap: 7px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 6px;
  }

  /* 移动端非弹出式横向滑动胶囊条（置于第1行） */
  .club-pills-bar {
    order: 1;
    display: flex;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .club-pills-bar::-webkit-scrollbar {
    display: none;
  }

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

  .club-pill {
    padding: 4px 10px;
    font-size: 11.5px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s ease;
    user-select: none;
  }

  .club-pill:active {
    transform: scale(0.95);
  }

  .club-pill.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(37, 99, 235, 0.35));
    border-color: #3b82f6;
    color: #93c5fd;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.35);
  }

  /* 时间预设（今日/本周/本月/历史累计，置于第2行） */
  .time-presets {
    order: 2;
    overflow-x: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
    width: 100%;
    padding-bottom: 2px;
    scrollbar-width: none;
    gap: 4px;
  }

  .time-presets::-webkit-scrollbar {
    display: none;
  }

  .preset-btn {
    padding: 5px 10px;
    font-size: 12px;
    flex-shrink: 0;
  }

  .btn-step-day {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  /* 移动端隐藏原生下拉弹出框 */
  .club-filter-wrap {
    display: none !important;
  }

  /* 自定义日期区间（置于第3行） */
  .custom-date-range {
    order: 3;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    width: 100%;
  }

  /* 隐藏“指定区间:”文字 */
  .custom-date-range .date-label {
    display: none !important;
  }

  /* 隐藏“重置”按钮 */
  #btnResetDate {
    display: none !important;
  }

  .date-input {
    flex: 1;
    min-width: 0;
    padding: 5px 6px;
    font-size: 11px;
  }

  .search-box {
    order: 4;
    width: 100%;
  }

  .search-input {
    width: 100%;
    padding: 6px 10px;
    font-size: 12px;
  }

  .ranking-table-card {
    padding: 4px 4px;
    margin-top: 0;
  }

  /* 4. 手机端冻结列大宽表设计 (Sticky Left Columns) */
  .table-wrapper {
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-sm);
  }

  .col-hide-mobile {
    display: none !important;
  }

  /* 表头统一紧凑缩小上下空间 */
  .data-table th {
    padding: 5px 6px !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    height: 28px;
    box-sizing: border-box;
  }

  /* 排名列粘滞锁定 */
  .data-table th.sticky-col-rank,
  .data-table td.sticky-col-rank {
    position: sticky;
    left: 0;
    z-index: 10;
    background: #0d121f !important;
    min-width: 32px;
    max-width: 34px;
    padding: 5px 2px !important;
    text-align: center;
  }

  /* 主播/用户列粘滞锁定 */
  .data-table th.sticky-col-anchor,
  .data-table td.sticky-col-anchor,
  .data-table th.sticky-col-user,
  .data-table td.sticky-col-user {
    position: sticky;
    left: 32px;
    z-index: 10;
    background: #0d121f !important;
    min-width: 125px;
    max-width: 140px;
    padding: 5px 6px !important;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.45);
  }

  .data-table tbody tr.clickable-row:hover td.sticky-col-rank,
  .data-table tbody tr.clickable-row:hover td.sticky-col-anchor,
  .data-table tbody tr.clickable-row:hover td.sticky-col-user {
    background: #141e30 !important;
  }

  /* 主播头像与上下排列昵称/公会/房间号 */
  .anchor-cell {
    gap: 6px;
  }

  .anchor-avatar {
    width: 32px;
    height: 32px;
    border-width: 1.5px;
  }

  .anchor-name-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
  }

  .anchor-nick {
    font-size: 12.5px;
    max-width: 85px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
  }

  .anchor-meta-sub {
    display: flex;
    align-items: center;
    gap: 3px;
  }

  .anchor-meta-sub .club-badge {
    font-size: 10px;
    padding: 1px 5px;
    height: 16px;
    line-height: 14px;
  }

  .anchor-roomid-mini {
    display: none !important;
  }

  /* 收入与付费人数上下排列 */
  .income-cell-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
  }

  .income-cell-wrap .price-gold {
    font-size: 12.5px;
    font-weight: 700;
  }

  .mobile-sub-paid {
    display: block !important;
    font-size: 10.5px;
    color: #94a3b8;
    font-weight: 500;
  }

  .data-table th {
    padding: 10px 8px;
    font-size: 11px;
  }

  .data-table td {
    padding: 8px 8px;
    font-size: 12px;
  }

  /* 5. 主播详情与画像弹窗全屏覆盖化 (Full-Screen Bottom Sheet) */
  .modal-overlay {
    padding: 0 !important;
    align-items: flex-end !important;
  }

  .modal-card {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 94vh !important;
    max-height: 94vh !important;
    border-radius: 18px 18px 0 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    padding: 12px !important;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.7) !important;
    animation: slideUpMobile 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  @keyframes slideUpMobile {
    from {
      transform: translateY(100%);
    }

    to {
      transform: translateY(0);
    }
  }

  .modal-header {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
  }

  .modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 22px;
    width: 30px;
    height: 30px;
    line-height: 26px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
  }

  .modal-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: env(safe-area-inset-bottom, 20px);
  }

  .anchor-detail-header-left {
    gap: 10px;
  }

  .modal-anchor-avatar {
    width: 46px;
    height: 46px;
  }

  .anchor-header-name h2 {
    font-size: 16px;
  }

  .anchor-header-meta {
    font-size: 11px;
    flex-wrap: wrap;
    gap: 6px;
  }

  .user-modal-time-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 100%;
  }

  .modal-preset-group {
    overflow-x: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
    width: 100%;
    scrollbar-width: none;
    gap: 3px;
  }

  .modal-preset-group::-webkit-scrollbar {
    display: none;
  }

  .modal-time-btn {
    padding: 4px 8px;
    font-size: 11px;
    flex-shrink: 0;
  }

  .modal-custom-date-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .modal-date-picker {
    flex: 1;
    font-size: 11px;
    padding: 3px 5px;
  }

  /* 详情页指标卡片转为 2 列自适应宫格 */
  .detail-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }

  .stat-box {
    padding: 6px 8px !important;
  }

  .stat-box .sb-label {
    font-size: 10.5px;
  }

  .stat-box .sb-val {
    font-size: 15px !important;
  }

  .trend-bars-container {
    height: 130px;
    padding-bottom: 20px;
  }

  .trend-val {
    font-size: 9px;
  }

  .trend-date {
    font-size: 9px;
  }
}