/* ==========================================================================
   RankingSystem - 顶级现代高保真明亮系主题 (Ultra-Premium Light Theme)
   设计原则：与暗系保持 1:1 完全相同的按键尺寸、排版结构与功能布局，
   彻底消灭从亮转暗时的白边残影，全站注入 350ms 丝滑平滑过渡，柔和自然。
   ========================================================================== */

/* --- 0. 全局主题平滑渐变流转引擎 (彻底消灭生硬突变，350ms 丝滑流畅流转) --- */
html,
body,
.app-header,
.main-container,
.logo-title,
.logo-sub,
.metric-card,
.metric-card .m-label,
.metric-card .m-val,
.metric-card-link,
.metric-card-link .m-label,
.metric-card-link .monitor-btn-val,
.theme-toggle-btn,
.author-tag-badge,
.author-tag-badge .author-prefix-code,
.author-tag-badge .author-label,
.author-tag-badge .author-name,
.nav-tabs,
.tab-btn,
.controls-bar,
.filter-bar,
.preset-btn,
.date-input,
select,
input,
.live-ticker,
.ticker-badge,
.ticker-content,
.ranking-table-card,
.card,
.table-header-title h3,
.card-header h3,
.sub-tip,
.header-desc,
.data-table,
.data-table th,
.data-table td,
.data-table tbody tr,
.data-table tbody tr td,
.sticky-col-rank,
.sticky-col-anchor,
.sticky-col-user,
.level-pill,
.dia-pill,
.anchor-avatar,
.avatar-img,
.anchor-nick,
.user-nick,
.btn-primary,
.btn-secondary,
.btn-outline,
.app-footer,
.footer-logo,
.footer-badge,
.footer-disclaimer-text,
.footer-link-btn,
.footer-bottom-bar,
.modal-overlay,
.modal-content,
.modal-title,
.stat-box,
.stat-box .sb-val,
.trend-bars-container,
.modal-table-scroll,
.modal-footer {
  transition: 
    background-color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* --- 1. 根级 CSS 变量覆盖 (当且仅当 data-theme="light" 时生效) --- */
html[data-theme="light"],
body[data-theme="light"] {
  --bg-dark: #f0f4f9;                    /* 科技冷灰背景 */
  --bg-card: rgba(255, 255, 255, 0.94); /* 晶莹珍珠白 */
  --bg-card-hover: #ffffff;
  --bg-modal: #ffffff;
  --border-color: rgba(203, 213, 225, 0.7);
  --border-highlight: rgba(37, 99, 235, 0.35);

  --primary: #2563eb;                    /* 皇家科技蓝 */
  --primary-hover: #1d4ed8;
  --primary-glow: rgba(37, 99, 235, 0.25);

  --accent-gold: #d97706;                /* 饱满有力的琥珀深金 */
  --accent-gold-glow: rgba(217, 119, 6, 0.2);
  --accent-cyan: #0284c7;
  --accent-green: #059669;
  --accent-purple: #7c3aed;
  --accent-red: #dc2626;

  --text-main: #0f172a;                  /* Slate-900 顶级清晰正文 */
  --text-muted: #475569;                 /* Slate-600 */
  --text-dim: #64748b;                   /* Slate-500 */

  --shadow-lg: 0 14px 34px -4px rgba(15, 23, 42, 0.06), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
}

/* --- 2. 全局背景与极光微弥散 --- */
html[data-theme="light"] body {
  background-color: #f0f4f9 !important;
  color: #0f172a !important;
  background-image:
    radial-gradient(circle at 8% 12%, rgba(37, 99, 235, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 92% 82%, rgba(217, 119, 6, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.02) 0%, transparent 60%) !important;
}

/* --- 3. 顶部 Header 与 Logo 区域重塑 --- */
html[data-theme="light"] .app-header {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.03) !important;
}

html[data-theme="light"] .logo-title {
  background: linear-gradient(135deg, #1e293b 0%, #334155 45%, #2563eb 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: none !important;
  font-weight: 700 !important;
  font-size: 17px !important;
  letter-spacing: 0.8px !important;
}

html[data-theme="light"] .logo-sub {
  color: #64748b !important;
  font-weight: 400 !important;
  letter-spacing: 0.4px !important;
}

/* 顶部指标看板卡片 (无纯白内阴影，彻底消灭从亮切暗的白边) */
html[data-theme="light"] .metric-card {
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03) !important;
}

html[data-theme="light"] .metric-card:hover {
  border-color: rgba(148, 163, 184, 0.8) !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06) !important;
  transform: translateY(-1px);
}

html[data-theme="light"] .metric-card .m-label {
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: 0.2px !important;
}

html[data-theme="light"] .metric-card .m-val {
  color: #1e293b !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: -0.2px !important;
}

html[data-theme="light"] .metric-card .m-val.highlight {
  color: #0284c7 !important;
  font-weight: 600 !important;
}

html[data-theme="light"] .metric-card .m-val.gold {
  color: #b45309 !important;
  font-weight: 650 !important;
}

/* 直播监控室按钮：柔和科技微光，彻底去除白边 */
html[data-theme="light"] .metric-card-link {
  background-color: rgba(37, 99, 235, 0.06) !important;
  background-image: none !important;
  border: 1px solid rgba(37, 99, 235, 0.22) !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.04) !important;
}

html[data-theme="light"] .metric-card-link .monitor-btn-val {
  color: #2563eb !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}

html[data-theme="light"] .metric-card-link .m-label {
  color: #3b82f6 !important;
}

html[data-theme="light"] .metric-card-link:hover {
  background: rgba(37, 99, 235, 0.1) !important;
  border-color: #2563eb !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.15) !important;
}

/* --- 主题切换键 (现代极简高精矢量 SVG 图标，固定静止，即点即切换) --- */
.theme-toggle-btn {
  background: transparent !important;
  border: none !important;
  border-radius: 50% !important;
  padding: 0 !important;
  width: 34px !important;
  height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  position: relative !important;
  flex-shrink: 0 !important;
  user-select: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
  outline: none !important;
  transform: none !important;
  transition: opacity 0.2s ease, transform 0.2s ease !important;
}

.theme-toggle-btn:hover {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transform: none !important;
  opacity: 0.75 !important;
}

.theme-toggle-btn:active {
  transform: none !important;
  opacity: 0.55 !important;
}

.theme-toggle-btn svg {
  width: 22px !important;
  height: 22px !important;
  display: block !important;
  flex-shrink: 0 !important;
  transform: none !important;
  transition: color 0.2s ease, filter 0.2s ease !important;
}

.theme-toggle-btn:hover svg {
  transform: none !important;
}

/* 深色模式：高保真太阳轮廓线框，香槟金柔光微晕 */
.theme-toggle-btn .theme-icon-sun {
  display: inline-flex !important;
  color: #f59e0b !important;
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.6)) !important;
}

.theme-toggle-btn .theme-icon-moon {
  display: none !important;
}

/* 明亮模式：高保真纤细月牙线框，典雅深炭灰蓝，悬浮微染科技蓝 */
html[data-theme="light"] .theme-toggle-btn {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transform: none !important;
}

html[data-theme="light"] .theme-toggle-btn:hover {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transform: none !important;
  opacity: 0.75 !important;
}

html[data-theme="light"] .theme-toggle-btn .theme-icon-sun {
  display: none !important;
}

html[data-theme="light"] .theme-toggle-btn .theme-icon-moon {
  display: inline-flex !important;
  color: #334155 !important;
  filter: drop-shadow(0 0 4px rgba(51, 65, 85, 0.25)) !important;
}

html[data-theme="light"] .theme-toggle-btn:hover .theme-icon-moon {
  color: #2563eb !important;
  filter: drop-shadow(0 0 8px rgba(37, 99, 235, 0.4)) !important;
}

/* --- 4. 导航 Tab 栏目：卡片化微光白底，与下方筛选条完美呼应，告别浮空隔阂 --- */
html[data-theme="light"] .nav-tabs {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 10px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.03) !important;
  padding: 8px 14px !important;
}

html[data-theme="light"] .tab-btn {
  background: transparent !important;
  border: 1px solid transparent !important;
  color: #475569 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  padding: 8px 16px !important;
  border-radius: var(--radius-sm) !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  box-shadow: none !important;
}

html[data-theme="light"] .tab-btn:hover {
  color: #0f172a !important;
  background: rgba(15, 23, 42, 0.05) !important;
  border-color: transparent !important;
}

html[data-theme="light"] .tab-btn.active {
  color: #ffffff !important;
  background: var(--primary) !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35) !important;
  border-color: var(--primary) !important;
}

/* --- 4.1 个人标志 DEV BY ROZJ：消灭纯白内阴影，从亮切暗 0 白边 --- */
html[data-theme="light"] .author-tag-badge {
  background-color: #ffffff !important;
  background-image: none !important;
  border: 1px solid rgba(37, 99, 235, 0.22) !important;
  border-radius: 20px !important;
  padding: 6px 16px !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.05) !important;
  backdrop-filter: blur(10px) !important;
  cursor: pointer !important;
}

html[data-theme="light"] .author-tag-badge:hover {
  border-color: rgba(99, 102, 241, 0.45) !important;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.16) !important;
}

html[data-theme="light"] .author-tag-badge .author-prefix-code {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(37, 99, 235, 0.3) !important;
  border-radius: 4px !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2) !important;
  font-weight: 800 !important;
  letter-spacing: 1px !important;
}

html[data-theme="light"] .author-tag-badge .author-label {
  color: #64748b !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
}

html[data-theme="light"] .author-tag-badge .author-name {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #d97706 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  font-weight: 800 !important;
  letter-spacing: 1.5px !important;
  filter: drop-shadow(0 2px 6px rgba(124, 58, 237, 0.2)) !important;
}

/* --- 5. 筛选控制栏 (Controls Bar) --- */
html[data-theme="light"] .filter-bar,
html[data-theme="light"] .controls-bar {
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.03) !important;
  margin-bottom: 10px !important;
}

html[data-theme="light"] .preset-btn {
  background: #ffffff !important;
  border: 1px solid rgba(203, 213, 225, 0.9) !important;
  color: #334155 !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02) !important;
}

html[data-theme="light"] .preset-btn:hover {
  background: #f8fafc !important;
  color: #2563eb !important;
  border-color: #93c5fd !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.1) !important;
  transform: none !important;
}

html[data-theme="light"] .preset-btn.active {
  background-color: #2563eb !important;
  background-image: none !important;
  color: #ffffff !important;
  border-color: #1d4ed8 !important;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28) !important;
}

html[data-theme="light"] .date-input,
html[data-theme="light"] select,
html[data-theme="light"] input[type="text"],
html[data-theme="light"] input[type="date"],
html[data-theme="light"] input[type="password"] {
  background: #ffffff !important;
  border: 1px solid rgba(203, 213, 225, 0.9) !important;
  color: #0f172a !important;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.02) !important;
}

html[data-theme="light"] select:focus,
html[data-theme="light"] input:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14) !important;
}

/* --- 5.1 公会下拉筛选列表 (全白底黑字极简高级质感) --- */
html[data-theme="light"] .club-select-btn {
  background: #ffffff !important;
  border: 1px solid rgba(203, 213, 225, 0.9) !important;
  color: #334155 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02) !important;
}

html[data-theme="light"] .club-select-btn:hover,
html[data-theme="light"] .club-select-btn:focus,
html[data-theme="light"] .club-select-btn.active-filter {
  background: #eff6ff !important;
  color: #2563eb !important;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

html[data-theme="light"] .club-select-btn option {
  background-color: #ffffff !important;
  color: #1e293b !important;
  padding: 8px 12px !important;
}


/* --- 5.2 移动端公会选择横滑胶囊条 (明亮系完美高保真高对比度适配) --- */
html[data-theme="light"] .club-pill {
  background: #ffffff !important;
  border: 1px solid rgba(203, 213, 225, 0.95) !important;
  color: #334155 !important;
  font-weight: 600 !important;
  font-size: 11.5px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
  transform: none !important;
}

html[data-theme="light"] .club-pill:hover {
  background: #f8fafc !important;
  color: #2563eb !important;
  border-color: #93c5fd !important;
  transform: none !important;
}

html[data-theme="light"] .club-pill.active {
  background-color: #2563eb !important;
  background-image: none !important;
  border-color: #1d4ed8 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.32) !important;
  transform: none !important;
}

/* --- 6. 实时动态跑马灯 (Live Ticker) --- */
html[data-theme="light"] .live-ticker {
  background: linear-gradient(90deg, rgba(239, 246, 255, 0.95) 0%, rgba(245, 243, 255, 0.9) 100%) !important;
  border: 1px solid rgba(191, 219, 254, 0.9) !important;
  box-shadow: 0 3px 12px rgba(37, 99, 235, 0.05) !important;
  margin-bottom: 10px !important;
}

html[data-theme="light"] .live-ticker[style*="display: none"] {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
}

html[data-theme="light"] .ticker-badge {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #dc2626 !important;
  border: 1px solid rgba(239, 68, 68, 0.2) !important;
}

html[data-theme="light"] .ticker-content {
  color: #1e293b !important;
  font-weight: 500 !important;
}

/* --- 7. 数据排行榜核心卡片与表格 (Data Table) --- */
html[data-theme="light"] .ranking-table-card,
html[data-theme="light"] .card {
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 12px 36px -4px rgba(15, 23, 42, 0.04), 0 2px 8px rgba(15, 23, 42, 0.02) !important;
  border-radius: 18px !important;
}

html[data-theme="light"] .table-header-title h3,
html[data-theme="light"] .card-header h3 {
  color: #1e293b !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px !important;
}

html[data-theme="light"] .sub-tip,
html[data-theme="light"] .header-desc {
  color: #64748b !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  letter-spacing: 0.2px !important;
}

/* 表头：浅灰微光渐变 */
html[data-theme="light"] .data-table th {
  background: #f8fafc !important;
  color: #475569 !important;
  font-weight: 700 !important;
  border-bottom: 2px solid #e2e8f0 !important;
  border-top: none !important;
}

html[data-theme="light"] .data-table th.sortable:hover {
  color: #2563eb !important;
  background: #eff6ff !important;
}

html[data-theme="light"] .data-table th.sortable.sort-active {
  color: #1d4ed8 !important;
  background: #dbeafe !important;
}

html[data-theme="light"] .data-table th.sortable.sort-active .sort-arrow {
  color: #2563eb !important;
}

/* 彻底解决 iOS Safari 下 border-collapse 与 sticky 冲突导致方形伪图层瑕疵 */
.data-table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

/* 表头粘性列：保持与整行表头一致的浅灰底 #f8fafc，坚决杜绝表头出现突兀的白方块 */
html[data-theme="light"] .data-table th.sticky-col-rank,
html[data-theme="light"] .data-table th.sticky-col-anchor,
html[data-theme="light"] .data-table th.sticky-col-user {
  background: #f8fafc !important;
  background-color: #f8fafc !important;
  color: #475569 !important;
  z-index: 15 !important;
  border-bottom: 2px solid #e2e8f0 !important;
}

/* 表格数据行 */
html[data-theme="light"] .data-table td {
  border-bottom: 1px solid #f1f5f9 !important;
  color: #334155 !important;
}

/* 数据行粘性固定列：纯白底色，与整行数据保持一体 */
html[data-theme="light"] .data-table td.sticky-col-rank,
html[data-theme="light"] .data-table td.sticky-col-anchor,
html[data-theme="light"] .data-table td.sticky-col-user {
  background-color: #ffffff !important;
  z-index: 10 !important;
}

/* 消除暗色系粗暴的黑方块投影 (rgba(0,0,0,0.45))，改用极微细腻分割线 */
html[data-theme="light"] .data-table th.sticky-col-anchor,
html[data-theme="light"] .data-table td.sticky-col-anchor,
html[data-theme="light"] .data-table th.sticky-col-user,
html[data-theme="light"] .data-table td.sticky-col-user {
  box-shadow: 2px 0 6px rgba(15, 23, 42, 0.04) !important;
  border-right: 1px solid rgba(226, 232, 240, 0.8) !important;
}

/* iOS WebKit 专用硬件加速隔离与背景防裁切溢出 (彻底消除方形闪烁/黑方块/图层撕裂) */
.data-table th.sticky-col-rank,
.data-table td.sticky-col-rank,
.data-table th.sticky-col-anchor,
.data-table td.sticky-col-anchor,
.data-table th.sticky-col-user,
.data-table td.sticky-col-user {
  -webkit-backface-visibility: hidden !important;
  backface-visibility: hidden !important;
  -webkit-transform: translate3d(0, 0, 0) !important;
  transform: translate3d(0, 0, 0) !important;
  background-clip: padding-box !important;
}

/* 行悬停：整行从排名到最后操作列 100% 连贯一致的冰川柔光蓝微光 */
html[data-theme="light"] .data-table tbody tr.clickable-row:hover td,
html[data-theme="light"] .data-table tbody tr.clickable-row:hover td.sticky-col-rank,
html[data-theme="light"] .data-table tbody tr.clickable-row:hover td.sticky-col-anchor,
html[data-theme="light"] .data-table tbody tr.clickable-row:hover td.sticky-col-user {
  background-color: #eff6ff !important;
  background-image: none !important;
}

html[data-theme="light"] .data-table tbody tr.clickable-row:hover td strong,
html[data-theme="light"] .data-table tbody tr.clickable-row:hover .anchor-nick,
html[data-theme="light"] .data-table tbody tr.clickable-row:hover .user-nick {
  color: #2563eb !important;
}

/* --- 7.1 主播与用户头像明亮精致微边框 (方案：彻底消除死黑边) --- */
html[data-theme="light"] .anchor-avatar,
html[data-theme="light"] .avatar-img,
html[data-theme="light"] .result-avatar,
html[data-theme="light"] .modal-anchor-avatar,
html[data-theme="light"] .anchor-big-avatar,
html[data-theme="light"] .user-big-avatar {
  background-color: #f8fafc !important;
  border: 1.5px solid rgba(203, 213, 225, 0.85) !important;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06) !important;
}

html[data-theme="light"] .avatar-wrap.clickable-avatar:hover .anchor-avatar,
html[data-theme="light"] .anchor-cell:hover .anchor-avatar {
  border-color: #2563eb !important;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.25) !important;
}

/* 正在直播头像呼吸灯：通透动感红粉呼吸灯，底色纯白洁净无黑圈 */
html[data-theme="light"] .avatar-wrap.live-breathing .anchor-avatar {
  background-color: #ffffff !important;
  border: 2px solid #ef4444 !important;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6), 0 0 8px rgba(239, 68, 68, 0.4) !important;
}

html[data-theme="light"] .avatar-wrap.clickable-avatar.live-breathing:hover .anchor-avatar {
  border-color: #f43f5e !important;
  box-shadow: 0 0 16px rgba(244, 63, 94, 0.6) !important;
}

/* --- 7.2 主播与用户名称 (方案 A：高级深炭蓝灰 Slate-800，字重 600，告别死黑突兀) --- */
html[data-theme="light"] .anchor-nick,
html[data-theme="light"] .user-nick {
  color: #1e293b !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  letter-spacing: 0.2px !important;
}

html[data-theme="light"] .data-table tbody tr.clickable-row:hover td strong,
html[data-theme="light"] .data-table tbody tr.clickable-row:hover .anchor-nick,
html[data-theme="light"] .data-table tbody tr.clickable-row:hover .user-nick {
  color: #2563eb !important;
}

/* 房间号通透微光科技蓝胶囊 */
html[data-theme="light"] .level-pill {
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.95) 0%, rgba(219, 234, 254, 0.9) 100%) !important;
  color: #1d4ed8 !important;
  border: 1px solid rgba(191, 219, 254, 0.9) !important;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.08) !important;
  font-weight: 700 !important;
}

/* 亮色模式下的尊贵金 VIP 靓号胶囊 (方案A) */
html[data-theme="light"] .level-pill.vip-room-pill {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
  color: #b45309 !important;
  border: 1px solid #fcd34d !important;
  box-shadow: 0 1px 3px rgba(217, 119, 6, 0.15) !important;
  text-shadow: none !important;
}

html[data-theme="light"] .level-pill.vip-room-pill .vip-crown-icon {
  color: #d97706 !important;
  filter: none !important;
}

/* 钻粉身份徽章：晶莹水晶紫粉微光胶囊，告别白字盖白底隐形 */
html[data-theme="light"] .dia-pill {
  background: linear-gradient(135deg, rgba(245, 243, 255, 0.95) 0%, rgba(238, 242, 255, 0.95) 100%) !important;
  color: #7c3aed !important;
  border: 1px solid rgba(196, 181, 253, 0.9) !important;
  box-shadow: 0 1px 3px rgba(124, 58, 237, 0.12) !important;
  font-weight: 700 !important;
}

/* 金额流水琥珀深金 */
html[data-theme="light"] .price-gold {
  color: #d97706 !important;
  font-weight: 800 !important;
}

/* 查看详情操作按钮 */
html[data-theme="light"] .btn-primary {
  background-color: #2563eb !important;
  background-image: none !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.28) !important;
  font-weight: 600 !important;
}

html[data-theme="light"] .btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4) !important;
  transform: none !important;
}

/* --- 8. 模态弹窗 (Modal) 全面高保真明亮适配 (主播详情页 & 用户画像页) --- */
html[data-theme="light"] .modal-overlay {
  background: rgba(15, 23, 42, 0.45) !important;
  backdrop-filter: blur(8px) !important;
}

html[data-theme="light"] .modal-content {
  background: #ffffff !important;
  border: 1px solid rgba(203, 213, 225, 0.8) !important;
  color: #0f172a !important;
  box-shadow: 0 25px 60px -10px rgba(15, 23, 42, 0.16) !important;
}

html[data-theme="light"] .modal-header,
html[data-theme="light"] .user-modal-header {
  background: #ffffff !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
}

html[data-theme="light"] .modal-title,
html[data-theme="light"] .anchor-header-name h2,
html[data-theme="light"] .user-header-name h2 {
  color: #0f172a !important;
  font-weight: 800 !important;
}

html[data-theme="light"] .anchor-header-meta,
html[data-theme="light"] .user-header-meta {
  color: #64748b !important;
}

html[data-theme="light"] .anchor-header-meta strong,
html[data-theme="light"] .user-header-meta strong {
  color: #1e293b !important;
}

html[data-theme="light"] .user-header-meta .gold {
  color: #d97706 !important;
}

html[data-theme="light"] .live-room-link {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
  color: #2563eb !important;
}

html[data-theme="light"] .live-room-link:hover {
  background: #dbeafe !important;
  border-color: #2563eb !important;
  color: #1d4ed8 !important;
}

html[data-theme="light"] .modal-close {
  background: #f1f5f9 !important;
  border: 1px solid rgba(203, 213, 225, 0.8) !important;
  color: #64748b !important;
}

html[data-theme="light"] .modal-close:hover {
  background: rgba(239, 68, 68, 0.1) !important;
  color: #dc2626 !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
}

/* 模态框顶部时间控件 */
html[data-theme="light"] .modal-preset-group {
  background: #f1f5f9 !important;
  border: 1px solid rgba(203, 213, 225, 0.85) !important;
}

html[data-theme="light"] .modal-time-btn {
  color: #475569 !important;
}

html[data-theme="light"] .modal-time-btn:hover {
  color: #0f172a !important;
  background: rgba(15, 23, 42, 0.06) !important;
}

html[data-theme="light"] .modal-time-btn.active {
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.3) !important;
}

html[data-theme="light"] .modal-custom-date-wrap {
  background: #f1f5f9 !important;
  border: 1px solid rgba(203, 213, 225, 0.85) !important;
}

html[data-theme="light"] .modal-date-picker {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid rgba(203, 213, 225, 0.9) !important;
}

/* 统计卡片网格 (彻底解决数值白字隐形问题) */
html[data-theme="light"] .stat-box {
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
}

html[data-theme="light"] .stat-box:hover {
  border-color: rgba(37, 99, 235, 0.35) !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06) !important;
}

html[data-theme="light"] .stat-box .sb-label {
  color: #64748b !important;
  font-weight: 500 !important;
}

html[data-theme="light"] .stat-box .sb-val {
  color: #1e293b !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .stat-box .sb-val.gold {
  color: #d97706 !important;
  text-shadow: none !important;
}

/* 收入走势柱状图容器 (告别黑灰色大色块) */
html[data-theme="light"] .detail-section h3 {
  color: #1e293b !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .sub-hint,
html[data-theme="light"] .fans-rank-notice {
  color: #64748b !important;
}

html[data-theme="light"] .trend-bars-container {
  background: #f8fafc !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.03) !important;
}

html[data-theme="light"] .trend-date {
  color: #64748b !important;
}

html[data-theme="light"] .trend-val {
  color: #d97706 !important;
}

html[data-theme="light"] .trend-bar.trend-bar-empty {
  background: rgba(203, 213, 225, 0.45) !important;
}

/* 弹窗表格滚动容器与表头 (告别黑灰色大色块) */
html[data-theme="light"] .modal-table-scroll {
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
}

html[data-theme="light"] .modal-table-scroll .data-table thead th,
html[data-theme="light"] .anchor-profile-modal .data-table th,
html[data-theme="light"] .user-profile-modal .data-table th {
  background: #f8fafc !important;
  color: #475569 !important;
  border-bottom: 2px solid #e2e8f0 !important;
  box-shadow: 0 1px 0 #e2e8f0 !important;
}

html[data-theme="light"] .modal-table-scroll .data-table td,
html[data-theme="light"] .anchor-profile-modal .data-table td,
html[data-theme="light"] .user-profile-modal .data-table td {
  background: #ffffff !important;
  color: #334155 !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

html[data-theme="light"] .modal-table-scroll .data-table tbody tr:hover td {
  background: #f8fafc !important;
}

html[data-theme="light"] .uid-text {
  color: #64748b !important;
}

/* 次要操作按钮 (如用户画像按钮) */
html[data-theme="light"] .btn-secondary {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid rgba(203, 213, 225, 0.9) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  font-weight: 600 !important;
}

html[data-theme="light"] .btn-secondary:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
}

/* 激活的房间筛选标签 */
html[data-theme="light"] .active-room-filter-tag {
  background: #eff6ff !important;
  border: 1px solid #bfdbfe !important;
  color: #1d4ed8 !important;
}

html[data-theme="light"] .active-room-filter-tag strong {
  color: #1e40af !important;
}

html[data-theme="light"] .tag-close-btn {
  color: #1d4ed8 !important;
}

html[data-theme="light"] .tag-close-btn:hover {
  color: #dc2626 !important;
}

/* 模态框吸底维权栏 (彻底消除纯黑底，融入高雅白卡质感) */
html[data-theme="light"] .modal-footer.modal-takedown-footer {
  background: #f8fafc !important;
  border-top: 1px solid rgba(226, 232, 240, 0.9) !important;
}

html[data-theme="light"] .modal-footer.modal-takedown-footer.user-takedown-footer {
  background: #faf5ff !important;
  border-top: 1px solid rgba(233, 213, 255, 0.8) !important;
}

html[data-theme="light"] .modal-takedown-footer .takedown-text {
  color: #64748b !important;
}

html[data-theme="light"] .modal-takedown-footer .btn-takedown-trigger {
  background: #f0f9ff !important;
  color: #0284c7 !important;
  border: 1px solid rgba(186, 230, 253, 0.9) !important;
  font-weight: 600 !important;
}

html[data-theme="light"] .modal-takedown-footer .btn-takedown-trigger:hover {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25) !important;
}

html[data-theme="light"] .user-takedown-footer .btn-takedown-trigger {
  background: #fbf5ff !important;
  color: #7c3aed !important;
  border: 1px solid rgba(221, 214, 254, 0.9) !important;
  font-weight: 600 !important;
}

html[data-theme="light"] .user-takedown-footer .btn-takedown-trigger:hover {
  background: #7c3aed !important;
  color: #ffffff !important;
  border-color: #7c3aed !important;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25) !important;
}

/* --- 8.1 搜索并申请收录主播直播间模态框明亮适配 --- */
html[data-theme="light"] .submit-room-modal .modal-header {
  background: #ffffff !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
}

html[data-theme="light"] .title-with-desc h2 {
  color: #0f172a !important;
  font-weight: 800 !important;
}

html[data-theme="light"] .title-sub-tip {
  background: rgba(37, 99, 235, 0.08) !important;
  color: #2563eb !important;
  border: 1px solid rgba(37, 99, 235, 0.25) !important;
}

html[data-theme="light"] .search-room-input {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid rgba(203, 213, 225, 0.9) !important;
}

html[data-theme="light"] .search-room-input:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

html[data-theme="light"] .search-results-box {
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .results-title-hint {
  color: #d97706 !important;
}

html[data-theme="light"] .result-item-card {
  background: #f8fafc !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
}

html[data-theme="light"] .result-item-card:hover {
  background: #eff6ff !important;
  border-color: #2563eb !important;
}

html[data-theme="light"] .result-name {
  color: #0f172a !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .result-room-id {
  color: #64748b !important;
}

html[data-theme="light"] .btn-select-room {
  background: rgba(37, 99, 235, 0.08) !important;
  color: #2563eb !important;
  border: 1px solid rgba(37, 99, 235, 0.25) !important;
}

html[data-theme="light"] .result-item-card:hover .btn-select-room {
  background: #2563eb !important;
  color: #ffffff !important;
}

/* 选定主播信息展示卡片 */
html[data-theme="light"] .submit-selected-card {
  background: rgba(16, 185, 129, 0.05) !important;
  border: 1px solid rgba(16, 185, 129, 0.25) !important;
}

html[data-theme="light"] .form-group-item label {
  color: #334155 !important;
  font-weight: 600 !important;
}

html[data-theme="light"] .readonly-input {
  background: #ffffff !important;
  color: #1e293b !important;
  border: 1px solid rgba(203, 213, 225, 0.9) !important;
}

/* 确认添加提交按钮 (彻底解决禁用态白字隐形问题) */
html[data-theme="light"] .btn-success:disabled {
  background: #e2e8f0 !important;
  color: #94a3b8 !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: none !important;
  opacity: 1 !important;
  cursor: not-allowed !important;
}

html[data-theme="light"] .btn-success:not(:disabled) {
  background: #059669 !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3) !important;
}

/* 底部待收录列表 */
html[data-theme="light"] .pending-title {
  color: #0f172a !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .pending-count-badge {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .pending-table-scroll {
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
}

/* --- 8.2 法律声明与侵权投诉通道模态框明亮适配 --- */
html[data-theme="light"] .legal-modal-box .modal-header {
  background: #ffffff !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
}

html[data-theme="light"] .legal-badge-pill {
  background: rgba(16, 185, 129, 0.08) !important;
  color: #059669 !important;
  border: 1px solid rgba(16, 185, 129, 0.25) !important;
}

/* 内部 Tab 切换栏 (彻底告别黑灰色大横条) */
html[data-theme="light"] .legal-modal-tabs {
  background: #f8fafc !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
}

html[data-theme="light"] .legal-tab-btn {
  color: #475569 !important;
  background: transparent !important;
  border: 1px solid transparent !important;
}

html[data-theme="light"] .legal-tab-btn:hover {
  color: #0f172a !important;
  background: rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] .legal-tab-btn.active {
  background: #ffffff !important;
  color: #2563eb !important;
  border: 1px solid rgba(203, 213, 225, 0.9) !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
}

/* Tab 1: 免责声明条款卡片 */
html[data-theme="light"] .legal-article-card {
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  border-left: 3px solid #2563eb !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02) !important;
}

html[data-theme="light"] .legal-card-title {
  color: #0f172a !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .legal-card-title .title-icon {
  color: #2563eb !important;
  font-weight: 800 !important;
}

html[data-theme="light"] .legal-article-card p {
  color: #334155 !important;
  line-height: 1.75 !important;
}

html[data-theme="light"] .legal-article-card p strong {
  color: #0f172a !important;
  font-weight: 700 !important;
}

/* Tab 2: 侵权投诉通道 */
html[data-theme="light"] .complaint-notice-banner {
  background: rgba(245, 158, 11, 0.08) !important;
  border: 1px solid rgba(245, 158, 11, 0.25) !important;
}

html[data-theme="light"] .complaint-notice-banner .banner-text {
  color: #92400e !important;
}

html[data-theme="light"] .complaint-notice-banner .banner-text strong {
  color: #78350f !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .complaint-contact-box {
  background: #f8fafc !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
}

html[data-theme="light"] .contact-badge {
  color: #0284c7 !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .contact-tip {
  color: #059669 !important;
  font-weight: 600 !important;
}

html[data-theme="light"] .email-addr {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid rgba(203, 213, 225, 0.9) !important;
}

html[data-theme="light"] .complaint-template-box {
  background: #f8fafc !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
}

html[data-theme="light"] .template-header-row h4 {
  color: #0f172a !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .template-content-pre {
  background: #ffffff !important;
  border: 1px solid rgba(203, 213, 225, 0.9) !important;
  color: #334155 !important;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.02) !important;
}

/* --- 9. 移动端 (max-width: 768px) 完美适配 --- */
@media (max-width: 768px) {

  /* 移动端标题 STREAM RANKING PRO 强制单行自适应，坚决禁止换行 */
  .logo-title,
  html[data-theme="light"] .logo-title {
    font-size: clamp(12px, 3.8vw, 14px) !important;
    letter-spacing: 0.2px !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    flex-shrink: 0 !important;
    line-height: 1.2 !important;
  }

  /* 移动端明亮系与深色系保持 100% 一致：坚决彻底隐藏图2的导航Tab栏目、实时动态与标题 */
  html[data-theme="light"] .nav-tabs,
  html[data-theme="light"] .nav-tabs *,
  .nav-tabs,
  .nav-tabs * {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  html[data-theme="light"] .live-ticker,
  .live-ticker {
    display: none !important;
  }

  html[data-theme="light"] .table-header-title,
  .table-header-title {
    display: none !important;
  }

  /* 移动端主题切换按钮：放置于右上角呼吸闪烁绿点左边，小巧精致 */
  .theme-toggle-btn {
    height: 30px !important;
    width: 30px !important;
    min-width: 30px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    order: unset !important;
    transform: none !important;
  }

  .theme-toggle-btn svg {
    width: 18px !important;
    height: 18px !important;
  }

  .theme-toggle-btn .theme-icon-sun,
  .theme-toggle-btn .theme-icon-moon {
    font-size: 16px !important;
  }
}

/* --- 10. 防止未加载出来时底部跳动 (Anti-CLS 粘性底栏稳定机制) --- */
.main-container {
  min-height: calc(100vh - 220px) !important;
  display: flex !important;
  flex-direction: column !important;
}

.tab-pane.active {
  flex: 1 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
}

.main-container .ranking-table-card,
.main-container .table-wrapper {
  min-height: 480px !important;
}

.modal-content .table-wrapper.modal-table-scroll,
.modal-table-scroll {
  min-height: 0 !important;
}

.loading-td {
  height: 380px !important;
  min-height: 380px !important;
  vertical-align: middle !important;
}

/* --- 11. 全局页脚 Footer 明亮模式高保真重塑 (彻底告别原黑色调) --- */
html[data-theme="light"] .app-footer {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-top: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 -4px 20px -2px rgba(15, 23, 42, 0.03) !important;
}

html[data-theme="light"] .footer-logo {
  color: #0f172a !important;
  font-weight: 800 !important;
}

html[data-theme="light"] .footer-badge {
  background: rgba(37, 99, 235, 0.08) !important;
  color: #2563eb !important;
  border-color: rgba(37, 99, 235, 0.25) !important;
}

html[data-theme="light"] .footer-disclaimer-text {
  color: #64748b !important;
}

html[data-theme="light"] .footer-link-btn {
  background: #ffffff !important;
  border: 1px solid rgba(203, 213, 225, 0.8) !important;
  color: #475569 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02) !important;
}

html[data-theme="light"] .footer-link-btn:hover {
  background: #f8fafc !important;
  color: #2563eb !important;
  border-color: #93c5fd !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.1) !important;
}

html[data-theme="light"] .footer-link-btn.highlight-link {
  color: #0284c7 !important;
  background: rgba(2, 132, 199, 0.08) !important;
  border-color: rgba(2, 132, 199, 0.25) !important;
}

html[data-theme="light"] .footer-link-btn.highlight-link:hover {
  background: rgba(2, 132, 199, 0.14) !important;
  border-color: #0284c7 !important;
}

html[data-theme="light"] .footer-link-btn.email-link {
  color: #d97706 !important;
  background: rgba(217, 119, 6, 0.08) !important;
  border-color: rgba(217, 119, 6, 0.25) !important;
}

html[data-theme="light"] .footer-link-btn.email-link:hover {
  background: rgba(217, 119, 6, 0.14) !important;
  border-color: #d97706 !important;
}

html[data-theme="light"] .footer-bottom-bar {
  border-top: 1px solid rgba(241, 245, 249, 1) !important;
  color: #64748b !important;
}

@media (max-width: 768px) {
  html[data-theme="light"] .app-footer {
    background: rgba(255, 255, 255, 0.96) !important;
  }
}


/* --- 彻底消除明亮系筛选工具条所有按钮 (今日/本周/本月/近7天/公会/前一天/查询/重置) 的 hover/active 抖动 (零位移) --- */
html[data-theme="light"] .filter-bar .preset-btn,
html[data-theme="light"] .filter-bar .btn,
html[data-theme="light"] .filter-bar button,
html[data-theme="light"] .filter-bar select,
html[data-theme="light"] .preset-btn,
html[data-theme="light"] .btn-step-day,
html[data-theme="light"] .club-select-btn,
html[data-theme="light"] #btnApplyDate,
html[data-theme="light"] #btnResetDate,
html[data-theme="light"] #btnPrevDay,
html[data-theme="light"] #btnNextDay,
html[data-theme="light"] .data-table td .btn,
html[data-theme="light"] .data-table td .btn-secondary,
html[data-theme="light"] .data-table td .btn-primary {
  transform: none !important;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease !important;
}

html[data-theme="light"] .filter-bar .preset-btn:hover,
html[data-theme="light"] .filter-bar .preset-btn:active,
html[data-theme="light"] .filter-bar .btn:hover,
html[data-theme="light"] .filter-bar .btn:active,
html[data-theme="light"] .filter-bar button:hover,
html[data-theme="light"] .filter-bar button:active,
html[data-theme="light"] .preset-btn:hover,
html[data-theme="light"] .preset-btn:active,
html[data-theme="light"] .btn-step-day:hover,
html[data-theme="light"] .btn-step-day:active,
html[data-theme="light"] #btnApplyDate:hover,
html[data-theme="light"] #btnApplyDate:active,
html[data-theme="light"] #btnResetDate:hover,
html[data-theme="light"] #btnResetDate:active,
html[data-theme="light"] #btnPrevDay:hover,
html[data-theme="light"] #btnPrevDay:active,
html[data-theme="light"] #btnNextDay:hover,
html[data-theme="light"] #btnNextDay:active,
html[data-theme="light"] .data-table td .btn:hover,
html[data-theme="light"] .data-table td .btn:active {
  transform: none !important;
}

/* --- 主榜单操作按钮 (查看详情 & 用户画像) 1:1 对标图3雅致浅灰微边框小药丸设计 --- */
html[data-theme="light"] .data-table td .btn,
html[data-theme="light"] .data-table td .btn-secondary,
html[data-theme="light"] .data-table td .btn-primary,
html[data-theme="light"] .data-table td .btn-sm {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid rgba(203, 213, 225, 0.9) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  padding: 4px 12px !important;
  border-radius: 4px !important;
  transform: none !important;
  height: 28px !important;
  min-width: 76px !important;
}

html[data-theme="light"] .data-table td .btn:hover,
html[data-theme="light"] .data-table td .btn-secondary:hover,
html[data-theme="light"] .data-table td .btn-primary:hover,
html[data-theme="light"] .data-table td .btn-sm:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.08) !important;
  transform: none !important;
}


/* --- 移动端明亮系精细适配：与暗系保持 1:1 完全相同的紧凑头部与卡片比例 --- */
@media (max-width: 768px) {
  html[data-theme="light"] .nav-tabs,
  html[data-theme="light"] .nav-tabs *,
  .nav-tabs,
  .nav-tabs * {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  /* 顶部 App Header 容器与标题大小 1:1 对齐暗黑模式 */
  html[data-theme="light"] .app-header {
    padding: 8px 12px !important;
    gap: 8px !important;
  }

  html[data-theme="light"] .logo-title {
    font-size: clamp(12px, 3.8vw, 14px) !important;
    letter-spacing: 0.2px !important;
    line-height: 1.2 !important;
  }

  /* 顶部大盘指标卡片 1:1 对齐暗黑模式极简紧凑尺寸 */
  html[data-theme="light"] .metric-card {
    min-width: 85px !important;
    padding: 5px 8px !important;
    border-radius: var(--radius-sm) !important;
    height: auto !important;
  }

  html[data-theme="light"] .metric-card .m-label {
    font-size: 9px !important;
    letter-spacing: 0 !important;
  }

  html[data-theme="light"] .metric-card .m-val {
    font-size: 13px !important;
    letter-spacing: 0 !important;
  }

  html[data-theme="light"] .metric-card-link .monitor-btn-val {
    font-size: 12px !important;
  }

  /* 个人专属名牌 (DEV BY ROZJ) 移动端 1:1 对齐暗黑方块，彻底取消大号跑道圆胶囊 */
  html[data-theme="light"] .header-metrics .author-tag-badge {
    height: 38px !important;
    padding: 0 10px !important;
    border-radius: var(--radius-sm) !important;
    font-size: 11px !important;
    gap: 5px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
  }

  html[data-theme="light"] .header-metrics .author-tag-badge .author-prefix-code {
    font-size: 8.5px !important;
    padding: 1px 4px !important;
    letter-spacing: 0.5px !important;
  }

  html[data-theme="light"] .header-metrics .author-tag-badge .author-label,
  html[data-theme="light"] .header-metrics .author-tag-badge .author-name {
    font-size: 11px !important;
    letter-spacing: 0.5px !important;
  }
}

/* --- 8.1 赞助打赏模态框 (modalDonate) 明亮模式精细适配 --- */
html[data-theme="light"] .modal-donate-box {
  background: #ffffff !important;
  border-color: rgba(37, 99, 235, 0.25) !important;
  box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.18), 0 0 25px rgba(37, 99, 235, 0.1) !important;
}

html[data-theme="light"] .donate-statement-card {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

html[data-theme="light"] .donate-lead-text {
  color: #1e293b !important;
}

html[data-theme="light"] .donate-sub-text {
  color: #64748b !important;
}

html[data-theme="light"] .donate-sub-text strong {
  color: #2563eb !important;
}

html[data-theme="light"] .donate-quote-banner {
  background: #fefce8 !important;
  border-left-color: #ca8a04 !important;
  color: #854d0e !important;
}

html[data-theme="light"] .donate-qr-wrapper {
  background: #ffffff !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08), 0 0 0 1px #e2e8f0 !important;
}

html[data-theme="light"] .donate-qr-pill {
  background: #eff6ff !important;
  color: #2563eb !important;
  border-color: #bfdbfe !important;
}

html[data-theme="light"] .donate-qr-hint {
  color: #64748b !important;
}

html[data-theme="light"] .donate-contact-footer {
  border-top-color: #e2e8f0 !important;
}

html[data-theme="light"] .donate-contact-item {
  color: #64748b !important;
}

html[data-theme="light"] .donate-contact-val {
  color: #d97706 !important;
}
