/* JetBrains Mono 本地化：字体文件存于 /static/fonts/JetBrainsMono.ttf */
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/static/fonts/JetBrainsMono.ttf') format('truetype');
}

:root {
  --pro-bg-base: #0f0f10;
  --pro-bg-surface: #16161a;
  --pro-bg-elevated: #1e1e24;
  --pro-border: #2a2a35;
  --pro-border-hover: #3a3a48;
  --pro-text-primary: #e8e8f0;
  --pro-text-secondary: #8b8b9e;
  --pro-text-muted: #4a4a5a;
  --pro-accent: #5b6cff;
  --pro-accent-soft: rgba(91, 108, 255, 0.2);
  --pro-success: #00a3a3;
  --pro-warning: #d06a2e;
  --pro-danger: #c43d6e;
  --pro-shadow-lg: 0 28px 68px rgba(0, 0, 0, 0.55);
  --pro-shadow-md: 0 12px 30px rgba(0, 0, 0, 0.34);
  --pro-radius-xl: 22px;
  --pro-radius-lg: 16px;
  --pro-radius-md: 12px;
  --pro-radius-sm: 10px;
  --pro-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body.theme-pro {
  --bg-a: #0f0f10;
  --bg-b: #15151b;
  --bg-c: #1d1d27;
  --glass: rgba(27, 27, 36, 0.78);
  --glass-strong: rgba(32, 32, 44, 0.92);
  --line: rgba(101, 108, 130, 0.4);
  --text-main: var(--pro-text-primary);
  --text-sub: var(--pro-text-secondary);
  --brand: var(--pro-accent);
  --brand-2: #7280ff;
  --ok: var(--pro-success);
  --warn: var(--pro-warning);
  --danger: var(--pro-danger);
  --shadow: var(--pro-shadow-md);
  font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(760px 460px at -10% -8%, rgba(91, 108, 255, 0.16), transparent 66%),
    radial-gradient(820px 520px at 112% 112%, rgba(0, 163, 163, 0.12), transparent 68%),
    linear-gradient(145deg, #0f0f10 0%, #17171d 44%, #1f1f2a 100%);
  background-attachment: fixed;
  color: var(--pro-text-primary);
}

body.theme-pro::before,
body.theme-pro::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body.theme-pro::before {
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 50%, #000 35%, transparent 95%);
}

body.theme-pro::after {
  background:
    radial-gradient(circle at 12% 20%, rgba(91, 108, 255, 0.14), transparent 42%),
    radial-gradient(circle at 87% 74%, rgba(196, 61, 110, 0.12), transparent 40%);
  filter: blur(2px);
}

body.theme-pro .pro-shell {
  width: min(1560px, calc(100vw - 1.75rem));
  margin-inline: auto;
}

body.theme-pro .glass-card {
  border-radius: var(--pro-radius-xl);
  border: 1px solid var(--pro-border);
  background: linear-gradient(145deg, rgba(28, 28, 38, 0.88), rgba(19, 19, 27, 0.94));
  box-shadow: var(--pro-shadow-md);
  backdrop-filter: blur(12px) saturate(1.2);
}

body.theme-pro .glass-card:hover {
  border-color: var(--pro-border-hover);
}

body.theme-pro .pro-nav {
  position: fixed;
  top: 0 !important;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 60;
  border-radius: 0;
  margin: 0;
  padding: 0.9rem 1.25rem;
  backdrop-filter: blur(14px) saturate(1.3);
  background: linear-gradient(160deg, rgba(28, 28, 40, 0.9), rgba(20, 20, 28, 0.9));
}

body.theme-pro .pro-nav > div {
  width: min(1560px, calc(100vw - 1.75rem));
  margin-inline: auto;
}

body:has(.pro-nav) main {
  padding-top: 84px;
}

body.theme-pro .pro-panel {
  border-radius: var(--pro-radius-xl);
  border: 1px solid var(--pro-border);
  background: linear-gradient(160deg, rgba(27, 27, 38, 0.92), rgba(18, 18, 25, 0.95));
}

body.theme-pro .top-link {
  border-radius: var(--pro-radius-sm);
  border-color: var(--pro-border);
  background: rgba(22, 22, 30, 0.9);
  color: var(--pro-text-secondary);
  transition: all 0.2s var(--pro-ease);
}

body.theme-pro .top-link:hover,
body.theme-pro .top-link.active {
  border-color: rgba(114, 128, 255, 0.65);
  color: var(--pro-text-primary);
  background: linear-gradient(130deg, rgba(91, 108, 255, 0.34), rgba(91, 108, 255, 0.18));
  box-shadow: 0 0 0 1px rgba(91, 108, 255, 0.24);
}

body.theme-pro button,
body.theme-pro a,
body.theme-pro input,
body.theme-pro select,
body.theme-pro textarea {
  transition: border-color 0.2s var(--pro-ease), background-color 0.2s var(--pro-ease),
    color 0.2s var(--pro-ease), box-shadow 0.2s var(--pro-ease), transform 0.2s var(--pro-ease);
}

body.theme-pro button:not(:disabled):hover:not(.workspace-export-fab),
body.theme-pro a.inline-flex:hover {
  transform: translateY(-1px);
}

body.theme-pro input:not([type='checkbox']):not([type='radio']):not([type='file']),
body.theme-pro select,
body.theme-pro textarea {
  border-color: var(--pro-border) !important;
  background: rgba(25, 25, 34, 0.88) !important;
  color: var(--pro-text-primary) !important;
  border-radius: var(--pro-radius-sm) !important;
}

body.theme-pro input:not([type='checkbox']):not([type='radio']):focus,
body.theme-pro select:focus,
body.theme-pro textarea:focus {
  outline: none;
  border-color: rgba(114, 128, 255, 0.85) !important;
  box-shadow: 0 0 0 3px rgba(91, 108, 255, 0.2);
}

body.theme-pro table {
  border-collapse: separate;
  border-spacing: 0;
}

body.theme-pro thead tr {
  background: rgba(35, 35, 50, 0.9) !important;
}

body.theme-pro thead th {
  color: rgba(227, 230, 255, 0.94) !important;
  font-weight: 600 !important;
}

body.theme-pro tbody tr {
  background: rgba(20, 20, 29, 0.82);
}

body.theme-pro tbody tr:nth-child(even) {
  background: rgba(24, 24, 34, 0.86);
}

body.theme-pro tbody tr:hover {
  background: rgba(36, 36, 54, 0.9) !important;
}

body.theme-pro .loading-overlay {
  background: linear-gradient(145deg, rgba(16, 16, 24, 0.86), rgba(27, 27, 40, 0.88));
}

body.theme-pro .loading-spinner {
  border-color: rgba(114, 128, 255, 0.2);
  border-top-color: rgba(114, 128, 255, 0.95);
}

body.theme-pro .data-table-wrap,
body.theme-pro .overflow-x-auto {
  border-radius: var(--pro-radius-lg) !important;
}

body.theme-pro .text-sky-100\/70,
body.theme-pro .text-sky-100\/75,
body.theme-pro .text-sky-100\/85,
body.theme-pro .text-slate-300\/80,
body.theme-pro .text-slate-300\/90 {
  color: var(--pro-text-secondary) !important;
}

body.theme-pro .border-white\/20,
body.theme-pro .border-white\/15,
body.theme-pro .border-slate-300\/35,
body.theme-pro .border-slate-300\/40,
body.theme-pro .border-slate-300\/50 {
  border-color: var(--pro-border) !important;
}

body.theme-pro .bg-slate-950\/35,
body.theme-pro .bg-slate-950\/30,
body.theme-pro .bg-slate-900\/35,
body.theme-pro .bg-slate-900\/30,
body.theme-pro .bg-slate-900\/25,
body.theme-pro .bg-slate-900\/20,
body.theme-pro .bg-slate-900\/45 {
  background-color: rgba(24, 24, 34, 0.88) !important;
}

body.theme-index .mascot-bg-layer {
  opacity: 0.18;
  filter: drop-shadow(0 26px 50px rgba(0, 0, 0, 0.48)) drop-shadow(0 0 42px rgba(91, 108, 255, 0.26));
}

body.theme-index #workspaceTabSearch {
  border-color: var(--pro-border) !important;
  background: rgba(25, 25, 36, 0.88) !important;
  color: var(--pro-text-secondary) !important;
}

body.theme-index[data-theme-mode='light'] #workspaceTabSearch {
  background: transparent !important;
  color: var(--pro-text-secondary) !important;
}

body.theme-index #workspaceTabSearch.is-active,
body.theme-index .workspace-tab-btn.is-active,
body.theme-index .workspace-tab-btn[aria-pressed='true'] {
  color: #f1f2ff !important;
}

body.theme-index[data-theme-mode='light'] #workspaceTabSearch.is-active,
body.theme-index[data-theme-mode='light'] .workspace-tab-btn.is-active,
body.theme-index[data-theme-mode='light'] .workspace-tab-btn[aria-pressed='true'] {
  color: rgba(47, 99, 246, 1) !important;
}

body.theme-index .nav-bar {
  grid-template-columns: 1fr auto 1fr;
}

body.theme-index .nav-brand,
body.theme-export-records .nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
}

body.theme-index .nav-brand-logo,
body.theme-export-records .nav-brand-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid rgba(125, 211, 252, 0.34);
  border-radius: 12px;
  object-fit: cover;
  box-shadow:
    0 8px 20px rgba(2, 8, 23, 0.22),
    0 0 0 3px rgba(56, 189, 248, 0.06);
}

body.theme-index .nav-brand-copy,
body.theme-export-records .nav-brand-copy {
  min-width: 0;
  line-height: 1.1;
}

body.theme-index[data-theme-mode='light'] .nav-brand-logo,
body.theme-export-records[data-theme-mode='light'] .nav-brand-logo {
  border-color: rgba(14, 165, 233, 0.3);
  box-shadow:
    0 8px 20px rgba(15, 23, 42, 0.12),
    0 0 0 3px rgba(14, 165, 233, 0.06);
}

body.theme-index .nav-center {
  justify-self: center;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}

body.theme-index .nav-user {
  justify-self: end;
}

body.theme-index .nav-workspace-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 100%;
  white-space: nowrap;
}

body.theme-index .nav-workspace-tabs .workspace-tab-btn {
  border: none !important;
  background: transparent !important;
  color: var(--pro-text-secondary) !important;
  position: relative;
  padding: 8px 20px;
  border-radius: 0;
  transition: color 0.25s var(--pro-ease);
}

body.theme-index .nav-workspace-tabs .workspace-tab-btn::after {
  content: '';
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(91, 108, 255, 0.8), rgba(95, 130, 255, 0.9));
  opacity: 0;
  transform: scaleX(0);
  transition: opacity 0.3s var(--pro-ease), transform 0.3s var(--pro-ease);
}

body.theme-index .nav-workspace-tabs .workspace-tab-btn:hover {
  color: #f1f2ff;
}

body.theme-index .nav-workspace-tabs .workspace-tab-btn:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

body.theme-index .nav-workspace-tabs .workspace-tab-btn.is-active::after,
body.theme-index .nav-workspace-tabs .workspace-tab-btn[aria-pressed='true']::after {
  opacity: 1;
  transform: scaleX(1);
}

body.theme-index .nav-workspace-tabs .plugin-dropdown-wrapper {
  position: relative;
}

body.theme-index .nav-workspace-tabs .plugin-dropdown {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

body.theme-index .nav-workspace-tabs .plugin-dropdown-wrapper:hover .plugin-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

body.theme-index .nav-workspace-tabs .plugin-sub-btn {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  color: rgba(226, 232, 240, 0.85);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

body.theme-index .nav-workspace-tabs .plugin-sub-btn:hover {
  background: rgba(91, 108, 255, 0.18);
  color: #f1f2ff;
}

body.theme-export-records .workspace-tab-btn.is-active,
body.theme-export-records .workspace-tab-btn[aria-pressed='true'] {
  color: #f1f2ff !important;
}

body.theme-export-records .nav-bar {
  grid-template-columns: 1fr auto 1fr;
}

body.theme-export-records .nav-center {
  justify-self: center;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}

body.theme-export-records .nav-user {
  justify-self: end;
}

body.theme-export-records .nav-workspace-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 100%;
  white-space: nowrap;
}

body.theme-export-records .nav-workspace-tabs .workspace-tab-btn {
  border: none !important;
  background: transparent !important;
  color: var(--pro-text-secondary) !important;
  position: relative;
  padding: 8px 20px;
  border-radius: 0;
  transition: color 0.25s var(--pro-ease);
}

body.theme-export-records .nav-workspace-tabs .workspace-tab-btn::after {
  content: '';
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(91, 108, 255, 0.8), rgba(95, 130, 255, 0.9));
  opacity: 0;
  transform: scaleX(0);
  transition: opacity 0.3s var(--pro-ease), transform 0.3s var(--pro-ease);
}

body.theme-export-records .nav-workspace-tabs .workspace-tab-btn:hover {
  color: #f1f2ff !important;
}

body.theme-export-records .nav-workspace-tabs .workspace-tab-btn:hover::after,
body.theme-export-records .nav-workspace-tabs .workspace-tab-btn.is-active::after,
body.theme-export-records .nav-workspace-tabs .workspace-tab-btn[aria-pressed='true']::after {
  opacity: 1;
  transform: scaleX(1);
}

body.theme-export-records .nav-workspace-tabs .plugin-dropdown-wrapper {
  position: relative;
}

body.theme-export-records .nav-workspace-tabs .plugin-dropdown {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

body.theme-export-records .nav-workspace-tabs .plugin-dropdown-wrapper:hover .plugin-dropdown,
body.theme-export-records .nav-workspace-tabs .plugin-dropdown-wrapper:focus-within .plugin-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

body.theme-export-records .nav-workspace-tabs .plugin-sub-btn {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  color: rgba(226, 232, 240, 0.85);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

body.theme-export-records .nav-workspace-tabs .plugin-sub-btn:hover {
  background: rgba(91, 108, 255, 0.18);
  color: #f1f2ff;
}

body.theme-index .search-workspace {
  background: transparent;
  border: none;
  box-shadow: none;
}

body.theme-index .workspace-block {
  background: rgba(18, 18, 28, 0.6);
  border: 1px solid var(--pro-border);
  border-radius: 14px;
  padding: 1rem;
}

body.theme-index .workspace-header {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.theme-index .workspace-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(226, 232, 240, 0.7);
}

body.theme-index .workspace-status-dot {
  opacity: 0.55;
}

body.theme-index .category-filter-row {
  gap: 0.75rem;
}

body.theme-index .category-breadcrumb-line {
  flex-basis: 100%;
  margin-top: 0.35rem;
}

body.theme-index .section-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0.75rem;
}

body.theme-index .section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0;
}

body.theme-index .section-subtitle {
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.85);
}

body.theme-index .table-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.85);
}

body.theme-index .table-footer {
  border-color: rgba(255, 255, 255, 0.08);
}

body.theme-index .product-params {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(120px, 0.9fr) minmax(120px, 1fr);
  align-items: end;
  gap: 0.75rem 1rem;
}

body.theme-index .product-params > label {
  min-width: 0;
  width: 100%;
}

body.theme-index .product-params > label > input {
  width: 100% !important;
  min-width: 0 !important;
}

body.theme-index .product-params #productKeywordInput {
  min-width: 0 !important;
}

body.theme-index .product-params #productTotalPagesInput {
  width: 100% !important;
}

body.theme-index .product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  grid-column: 1 / -1;
  min-width: 0;
}

@media (max-width: 1180px) {
  body.theme-index .product-params {
    grid-template-columns: minmax(0, 1fr) minmax(112px, 150px) minmax(112px, 170px);
  }
}

@media (max-width: 820px) {
  body.theme-index .product-params {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.theme-index .product-params > label:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  body.theme-index .product-params {
    grid-template-columns: minmax(0, 1fr);
  }
}

body.theme-index .block-header {
  border-color: rgba(255, 255, 255, 0.08);
}

body.theme-index .block-header .rounded-xl {
  border-radius: 12px;
}

body.theme-index .product-tools {
  border-color: rgba(255, 255, 255, 0.08);
}

body.theme-index .product-tools .flex {
  row-gap: 0.5rem;
}

body.theme-index .workspace-block .data-table-wrap {
  border: 1px solid var(--pro-border);
  border-radius: 12px;
  background: rgba(14, 14, 22, 0.78);
}

body.theme-index .workspace-block .border-white\/20,
body.theme-index .workspace-block .border-white\/15 {
  border-color: var(--pro-border) !important;
}

body.theme-index .workspace-block .bg-slate-900\/25,
body.theme-index .workspace-block .bg-slate-900\/35,
body.theme-index .workspace-block .bg-slate-950\/35 {
  background: rgba(16, 16, 24, 0.7) !important;
}

@media (max-width: 1024px) {
  body.theme-index .nav-bar,
  body.theme-export-records .nav-bar {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  body.theme-index .nav-brand,
  body.theme-index .nav-user,
  body.theme-export-records .nav-brand,
  body.theme-export-records .nav-user {
    justify-self: center;
  }
}

@media (max-width: 480px) {
  body.theme-index .nav-brand-logo,
  body.theme-export-records .nav-brand-logo {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 10px;
  }
}

body.theme-index .pie-link-btn {
  border: none;
  background: transparent;
  color: #94a3b8;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

body.theme-index .pie-link-btn:hover {
  color: #cbd5f5;
}

body.theme-index .workspace-export-fab {
  border-radius: 999px;
  border-color: rgba(91, 108, 255, 0.62) !important;
  background: linear-gradient(135deg, rgba(91, 108, 255, 0.94), rgba(111, 123, 255, 0.82));
  box-shadow: 0 18px 34px rgba(76, 91, 255, 0.45);
}

body.theme-index .workspace-export-fab:hover {
  filter: brightness(1.06);
}

body.theme-admin .pro-nav,
body.theme-cookie .pro-nav,
body.theme-quota .pro-nav {
  border-radius: var(--pro-radius-xl);
}

body.theme-admin .top-link,
body.theme-cookie .top-link,
body.theme-quota .top-link,
body.theme-export-records .top-link {
  min-height: 36px;
  padding-inline: 14px;
}

body.theme-auth {
  padding-block: clamp(28px, 6vh, 60px);
}

body.theme-auth .glass-card {
  border-radius: 26px;
  background: linear-gradient(165deg, rgba(29, 29, 42, 0.96), rgba(16, 16, 24, 0.96));
  box-shadow: var(--pro-shadow-lg);
}

body.theme-auth .glass-input,
body.theme-auth input {
  border-color: var(--pro-border) !important;
  background: rgba(20, 20, 30, 0.92) !important;
}

body.theme-auth .glass-input:focus,
body.theme-auth input:focus {
  border-color: rgba(114, 128, 255, 0.85) !important;
  box-shadow: 0 0 0 3px rgba(91, 108, 255, 0.2);
}

body.theme-detail .page {
  max-width: 1400px;
}

body.theme-detail .panel {
  border: 1px solid var(--pro-border);
  border-radius: var(--pro-radius-xl);
  background: linear-gradient(160deg, rgba(27, 27, 38, 0.94), rgba(15, 15, 22, 0.96));
  box-shadow: var(--pro-shadow-md);
}

body.theme-detail .metric-card,
body.theme-detail .metric-popup,
body.theme-detail .hero-image-wrap {
  border-color: var(--pro-border) !important;
  background: rgba(23, 23, 34, 0.88) !important;
}

body.theme-detail .range-item.active {
  background: rgba(91, 108, 255, 0.22);
  color: #e8ebff;
}

body.theme-detail .back-link {
  border-color: var(--pro-border);
  background: rgba(18, 18, 28, 0.88);
  color: var(--pro-text-secondary);
}

body.theme-detail .back-link:hover {
  border-color: rgba(114, 128, 255, 0.65);
  color: var(--pro-text-primary);
}

body.theme-detail .range-item {
  border-color: var(--pro-border);
  background: rgba(20, 20, 30, 0.9);
  color: var(--pro-text-secondary);
  transition: all 0.2s var(--pro-ease);
}

body.theme-detail .range-item:hover {
  background: rgba(30, 30, 46, 0.92);
  color: var(--pro-text-primary);
}

body.theme-detail .range-item.active {
  border-color: rgba(114, 128, 255, 0.7);
  background: linear-gradient(135deg, rgba(91, 108, 255, 0.75), rgba(91, 108, 255, 0.45));
  color: #f6f7ff;
}

body.theme-detail .meta-grid,
body.theme-detail .metric-grid {
  border-color: var(--pro-border);
}

body.theme-detail .trend-panel,
body.theme-detail .pie-panel {
  border-color: var(--pro-border);
  background: linear-gradient(160deg, rgba(22, 22, 34, 0.92), rgba(14, 14, 22, 0.95));
  box-shadow: var(--pro-shadow-md);
}

body.theme-detail .trend-title,
body.theme-detail .delivery-title {
  color: #f1f2ff;
}

body.theme-detail .metric-card.active {
  box-shadow: 0 0 0 1px rgba(91, 108, 255, 0.35), 0 12px 24px rgba(33, 41, 82, 0.45);
}

body.theme-admin .admin-cards-panel,
body.theme-admin .admin-users-panel,
body.theme-admin .admin-risk-panel {
  border-radius: var(--pro-radius-xl);
  background: linear-gradient(160deg, rgba(26, 26, 36, 0.92), rgba(15, 15, 23, 0.96));
}

body.theme-admin .admin-toolbar,
body.theme-admin .admin-filter {
  border-color: var(--pro-border);
  background: rgba(18, 18, 28, 0.9);
}

body.theme-admin .admin-table-wrap,
body.theme-admin .admin-risk-table {
  border-color: var(--pro-border);
  background: rgba(20, 20, 30, 0.86);
}

body.theme-admin .admin-user-card,
body.theme-admin .admin-risk-card {
  border-color: var(--pro-border);
  background: rgba(20, 20, 30, 0.92);
  box-shadow: var(--pro-shadow-md);
}

body.theme-admin .admin-user-card:hover,
body.theme-admin .admin-risk-card:hover {
  border-color: var(--pro-border-hover);
}

body.theme-admin .admin-user-grid {
  gap: 1rem;
}

body.theme-export-records .export-panel {
  border-radius: var(--pro-radius-xl);
  background: linear-gradient(160deg, rgba(26, 26, 36, 0.92), rgba(15, 15, 23, 0.96));
}

body.theme-export-records .export-card {
  border-color: var(--pro-border);
  background: rgba(20, 20, 30, 0.9);
  box-shadow: var(--pro-shadow-md);
}

body.theme-export-records .export-card:hover {
  border-color: var(--pro-border-hover);
}

body.theme-export-records .export-tabs a {
  border-color: var(--pro-border);
}

body.theme-quota .quota-card {
  border-radius: var(--pro-radius-lg);
  border: 1px solid var(--pro-border);
  background: linear-gradient(160deg, rgba(24, 24, 34, 0.92), rgba(16, 16, 24, 0.96));
  box-shadow: var(--pro-shadow-md);
}

body.theme-quota .quota-redeem-panel,
body.theme-quota .quota-ledger-panel {
  border-radius: var(--pro-radius-xl);
  background: linear-gradient(160deg, rgba(26, 26, 36, 0.92), rgba(15, 15, 23, 0.96));
}

body.theme-quota .quota-ledger-panel {
  border-color: rgba(125, 211, 252, 0.16);
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.theme-quota .quota-ledger-title {
  color: #e0f2fe !important;
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.18);
}

body.theme-quota .quota-ledger-subtitle,
body.theme-quota .quota-ledger-summary {
  color: rgba(186, 230, 253, 0.72) !important;
}

body.theme-quota .quota-ledger-summary {
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.08);
  padding: 0.35rem 0.65rem;
}

body.theme-quota .quota-ledger-tabs {
  border-color: rgba(125, 211, 252, 0.22) !important;
  background: rgba(15, 23, 42, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.theme-quota .quota-ledger-tabs a {
  border-color: rgba(125, 211, 252, 0.18) !important;
}

body.theme-quota .quota-ledger-filter select,
body.theme-quota .quota-ledger-filter input {
  border-color: rgba(125, 211, 252, 0.16) !important;
  background: rgba(15, 23, 42, 0.72) !important;
  color: rgba(226, 232, 240, 0.95) !important;
  color-scheme: dark;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.theme-quota .quota-ledger-filter select:focus,
body.theme-quota .quota-ledger-filter input:focus {
  border-color: rgba(34, 211, 238, 0.62) !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.theme-quota .quota-ledger-filter input::placeholder {
  color: rgba(148, 163, 184, 0.78) !important;
}

body.theme-quota .quota-ledger-submit {
  border-color: rgba(34, 211, 238, 0.6) !important;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.95), rgba(6, 182, 212, 0.82)) !important;
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.24);
}

body.theme-quota .quota-ledger-reset {
  border-color: rgba(148, 163, 184, 0.28) !important;
  background: rgba(15, 23, 42, 0.72) !important;
  color: rgba(226, 232, 240, 0.95) !important;
}

body.theme-quota .quota-ledger-table-wrap {
  border-color: rgba(125, 211, 252, 0.18) !important;
  background: rgba(2, 6, 23, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.theme-quota .quota-ledger-table-wrap thead {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.88), rgba(15, 23, 42, 0.88)) !important;
  color: rgba(224, 242, 254, 0.94) !important;
}

body.theme-quota .quota-ledger-table-wrap tbody {
  color: rgba(226, 232, 240, 0.9) !important;
}

body.theme-quota .quota-ledger-table-wrap tbody tr {
  transition: background 0.18s ease;
}

body.theme-quota .quota-ledger-table-wrap tbody tr:hover {
  background: rgba(14, 165, 233, 0.08);
}

body.theme-quota .quota-redeem input {
  height: 2.75rem;
}

body.theme-quota .quota-summary {
  gap: 1rem;
}

body.theme-cookie .cookie-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  body.theme-cookie .cookie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

body.theme-cookie .cookie-block {
  border-radius: var(--pro-radius-lg);
  border: 1px solid var(--pro-border);
  background: linear-gradient(160deg, rgba(22, 22, 32, 0.9), rgba(14, 14, 22, 0.94));
  padding: 1rem;
  box-shadow: var(--pro-shadow-md);
}

body.theme-cookie .cookie-textarea {
  min-height: 220px;
  background: rgba(18, 18, 28, 0.92) !important;
}

body.theme-cookie .cookie-footer {
  padding-top: 0.75rem;
  border-top: 1px solid var(--pro-border);
}

body.theme-tool-seq .glass-card {
  border-radius: 24px;
}

body.theme-tool-seq .btn-primary {
  background: linear-gradient(135deg, rgba(91, 108, 255, 0.94), rgba(115, 126, 255, 0.82));
  box-shadow: 0 16px 30px rgba(81, 95, 255, 0.4);
}

body.theme-tool-seq .btn-ghost {
  border-color: var(--pro-border);
  color: var(--pro-text-secondary);
}

body.theme-pro ::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

body.theme-pro ::-webkit-scrollbar-track {
  background: rgba(18, 18, 25, 0.9);
}

body.theme-pro ::-webkit-scrollbar-thumb {
  background: rgba(76, 82, 108, 0.8);
  border-radius: 999px;
  border: 2px solid rgba(18, 18, 25, 0.9);
}

body.theme-pro ::-webkit-scrollbar-thumb:hover {
  background: rgba(112, 120, 154, 0.9);
}

.reveal-card {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 0.58s var(--pro-ease), transform 0.58s var(--pro-ease);
}

.reveal-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (max-width: 1024px) {
  body.theme-pro .pro-shell {
    width: min(100%, calc(100vw - 1rem));
  }

  body.theme-pro .pro-nav {
    border-radius: var(--pro-radius-lg);
  }

  body.theme-index .nav-workspace-tabs .workspace-tab-btn {
    padding-inline: 12px;
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  body.theme-pro .glass-card {
    border-radius: 18px;
  }

  body.theme-pro .pro-nav {
    padding: 0.72rem 0.85rem;
  }

  body.theme-index .workspace-export-fab {
    right: 14px;
    bottom: 16px;
  }
}

body.theme-pro .theme-mode-host {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.55rem;
}

body.theme-pro .theme-mode-toggle-wrap {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
}

body.theme-pro .theme-mode-float-wrap {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 92;
}

body.theme-pro .theme-mode-toggle {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(96, 165, 250, 0.58);
  background: rgba(59, 130, 246, 0.14);
  color: #60a5fa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.22);
  transition:
    color 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

html::view-transition-group(root) {
  animation-duration: 720ms;
  animation-timing-function: cubic-bezier(0.22, 0.78, 0.24, 1);
}

html::view-transition-old(root),
html::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

html::view-transition-old(root) {
  z-index: 1;
}

html::view-transition-new(root) {
  z-index: 2;
  animation: theme-mode-soft-reveal 720ms cubic-bezier(0.22, 0.78, 0.24, 1) both;
  clip-path: circle(var(--theme-reveal-radius) at var(--theme-reveal-x) var(--theme-reveal-y));
}

html[data-theme-transition-to='dark']::view-transition-new(root) {
  filter: saturate(0.96) brightness(0.98);
}

@keyframes theme-mode-soft-reveal {
  0% {
    clip-path: circle(0 at var(--theme-reveal-x) var(--theme-reveal-y));
    opacity: 0.72;
    filter: blur(2px) saturate(0.94);
  }
  45% {
    opacity: 0.94;
    filter: blur(0.7px) saturate(0.98);
  }
  100% {
    clip-path: circle(var(--theme-reveal-radius) at var(--theme-reveal-x) var(--theme-reveal-y));
    opacity: 1;
    filter: blur(0) saturate(1);
  }
}

html.theme-mode-fallback-transition body.theme-pro,
html.theme-mode-fallback-transition body.theme-pro::before,
html.theme-mode-fallback-transition body.theme-pro::after,
html.theme-mode-fallback-transition body.theme-pro .pro-nav,
html.theme-mode-fallback-transition body.theme-pro .glass-card,
html.theme-mode-fallback-transition body.theme-pro .pro-panel {
  transition:
    color 320ms ease,
    background-color 320ms ease,
    border-color 320ms ease,
    box-shadow 320ms ease,
    opacity 320ms ease;
}

@media (prefers-reduced-motion: reduce) {
  html::view-transition-group(root),
  html::view-transition-new(root) {
    animation-duration: 1ms;
  }

  html.theme-mode-fallback-transition body.theme-pro,
  html.theme-mode-fallback-transition body.theme-pro::before,
  html.theme-mode-fallback-transition body.theme-pro::after,
  html.theme-mode-fallback-transition body.theme-pro .pro-nav,
  html.theme-mode-fallback-transition body.theme-pro .glass-card,
  html.theme-mode-fallback-transition body.theme-pro .pro-panel {
    transition: none;
  }
}

body.theme-pro .theme-mode-toggle:hover {
  border-color: rgba(96, 165, 250, 0.88);
  background: rgba(59, 130, 246, 0.24);
  color: #93c5fd;
  transform: translateY(-1px);
}

body.theme-pro .theme-mode-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22), 0 10px 22px rgba(37, 99, 235, 0.26);
}

body.theme-pro .theme-mode-icon-wrap {
  position: relative;
  width: 19px;
  height: 19px;
}

body.theme-pro .theme-mode-icon {
  position: absolute;
  inset: 0;
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition:
    opacity 260ms ease,
    transform 360ms cubic-bezier(0.22, 0.78, 0.24, 1);
}

body.theme-pro .theme-mode-icon-sun {
  opacity: 0;
  transform: rotate(-70deg) scale(0.55);
}

body.theme-pro .theme-mode-icon-moon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

body.theme-pro[data-theme-mode='light'] .theme-mode-icon-sun {
  opacity: 1;
  transform: rotate(0) scale(1);
}

body.theme-pro[data-theme-mode='light'] .theme-mode-icon-moon {
  opacity: 0;
  transform: rotate(70deg) scale(0.55);
}

body.theme-pro .theme-mode-sr-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-content-enter {
  transform-origin: top center;
  animation: pro-page-content-enter 460ms cubic-bezier(0.22, 0.78, 0.24, 1) both;
  will-change: opacity, transform, filter;
}

@keyframes pro-page-content-enter {
  0% {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.996);
    filter: blur(2px);
  }
  55% {
    opacity: 0.9;
    filter: blur(0.5px);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-content-enter {
    animation: none;
  }
}

body.theme-pro[data-theme-mode='light'] .theme-mode-toggle-wrap {
  margin-left: 0;
}

body.theme-pro[data-theme-mode='light'] {
  --pro-bg-base: #f1f5fb;
  --pro-bg-surface: #f8fbff;
  --pro-bg-elevated: #ffffff;
  --pro-border: #d5dfec;
  --pro-border-hover: #c0cfe3;
  --pro-text-primary: #13253d;
  --pro-text-secondary: #4f6176;
  --pro-text-muted: #7c8ca2;
  --pro-accent: #2f63f6;
  --pro-accent-soft: rgba(47, 99, 246, 0.16);
  --pro-success: #0f9f87;
  --pro-warning: #c57916;
  --pro-danger: #c43c62;
  --pro-shadow-lg: 0 26px 58px rgba(50, 74, 114, 0.2);
  --pro-shadow-md: 0 12px 26px rgba(52, 75, 112, 0.14);
  --bg-a: #edf3ff;
  --bg-b: #f3f7ff;
  --bg-c: #f8fbff;
  --glass: rgba(255, 255, 255, 0.82);
  --glass-strong: rgba(255, 255, 255, 0.94);
  --line: rgba(126, 151, 185, 0.35);
  --text-main: var(--pro-text-primary);
  --text-sub: var(--pro-text-secondary);
  --brand: var(--pro-accent);
  --brand-2: #4f79f8;
  --ok: var(--pro-success);
  --warn: var(--pro-warning);
  --danger: var(--pro-danger);
  --shadow: var(--pro-shadow-md);
  color: var(--pro-text-primary);
  background:
    radial-gradient(760px 460px at -8% -6%, rgba(47, 99, 246, 0.16), transparent 68%),
    radial-gradient(820px 520px at 108% 116%, rgba(15, 159, 135, 0.14), transparent 70%),
    linear-gradient(145deg, #ecf2ff 0%, #f4f8ff 44%, #fbfcff 100%);
}

body.theme-pro[data-theme-mode='light']::before {
  background-image: linear-gradient(to right, rgba(38, 72, 120, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(38, 72, 120, 0.05) 1px, transparent 1px);
}

body.theme-pro[data-theme-mode='light']::after {
  background:
    radial-gradient(circle at 12% 18%, rgba(47, 99, 246, 0.12), transparent 44%),
    radial-gradient(circle at 87% 73%, rgba(15, 159, 135, 0.1), transparent 42%);
  filter: blur(3px);
}

body.theme-pro[data-theme-mode='light'] .glass-card {
  border-color: var(--pro-border);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(244, 249, 255, 0.94));
  box-shadow: var(--pro-shadow-md);
}

body.theme-pro[data-theme-mode='light'] .glass-card:hover {
  border-color: var(--pro-border-hover);
}

body.theme-pro[data-theme-mode='light'] .pro-nav {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.88), rgba(241, 247, 255, 0.92));
}

body.theme-pro[data-theme-mode='light'] .pro-panel {
  border-color: var(--pro-border);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(243, 248, 255, 0.94));
}

body.theme-pro[data-theme-mode='light'] .top-link {
  border-color: var(--pro-border);
  background: rgba(250, 252, 255, 0.95);
  color: var(--pro-text-secondary);
}

body.theme-pro[data-theme-mode='light'] .top-link:hover,
body.theme-pro[data-theme-mode='light'] .top-link.active {
  border-color: rgba(47, 99, 246, 0.48);
  color: #1a3264;
  background: linear-gradient(130deg, rgba(47, 99, 246, 0.18), rgba(79, 121, 248, 0.12));
  box-shadow: 0 0 0 1px rgba(47, 99, 246, 0.16);
}

body.theme-pro[data-theme-mode='light'] input:not([type='checkbox']):not([type='radio']):not([type='file']),
body.theme-pro[data-theme-mode='light'] select,
body.theme-pro[data-theme-mode='light'] textarea {
  border-color: var(--pro-border) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: var(--pro-text-primary) !important;
}

body.theme-pro[data-theme-mode='light'] input:not([type='checkbox']):not([type='radio']):focus,
body.theme-pro[data-theme-mode='light'] select:focus,
body.theme-pro[data-theme-mode='light'] textarea:focus {
  border-color: rgba(47, 99, 246, 0.62) !important;
  box-shadow: 0 0 0 3px rgba(47, 99, 246, 0.14);
}

body.theme-pro[data-theme-mode='light'] .user-menu-summary {
  border-color: rgba(47, 99, 246, 0.4) !important;
  background: rgba(47, 99, 246, 0.12) !important;
  color: #1a3264 !important;
}

body.theme-pro[data-theme-mode='light'] .user-menu-summary:hover {
  background: rgba(47, 99, 246, 0.18) !important;
}

body.theme-pro[data-theme-mode='light'] table {
  color: var(--pro-text-primary);
}

body.theme-pro[data-theme-mode='light'] thead tr {
  background: rgba(223, 233, 247, 0.75) !important;
}

body.theme-pro[data-theme-mode='light'] thead th {
  color: #2c3d57 !important;
}

body.theme-pro[data-theme-mode='light'] tbody tr {
  background: rgba(252, 254, 255, 0.94);
}

body.theme-pro[data-theme-mode='light'] tbody tr:nth-child(even) {
  background: rgba(245, 250, 255, 0.92);
}

body.theme-pro[data-theme-mode='light'] tbody tr:hover {
  background: rgba(235, 244, 255, 0.95) !important;
}

body.theme-pro[data-theme-mode='light'] .contact-wechat-card {
  border-radius: 12px;
  border: 1px solid rgba(191, 219, 254, 0.4);
  background: rgba(248, 250, 252, 0.8);
  padding: 12px;
}

body.theme-pro[data-theme-mode='light'] .contact-wechat-card .text-slate-300\/80,
body.theme-pro[data-theme-mode='light'] .contact-wechat-card .text-slate-100 {
  color: #475569 !important;
}

body.theme-pro[data-theme-mode='light'] .contact-wechat-card .text-2xl {
  color: #1e293b !important;
}

body.theme-pro[data-theme-mode='light'] .contact-wechat-card .border-cyan-300\/70 {
  border-color: rgba(6, 182, 212, 0.5) !important;
  color: #0891b2 !important;
  background: rgba(6, 182, 212, 0.1) !important;
}

body.theme-pro[data-theme-mode='light'] .contact-wechat-card .border-cyan-300\/70:hover {
  background: rgba(6, 182, 212, 0.2) !important;
}

/* 后台客服配置页面日间模式适配 */
body.theme-pro[data-theme-mode='light'] .admin-customer-service-panel {
  background: rgba(248, 250, 252, 0.8) !important;
  border-color: rgba(226, 232, 240, 0.8) !important;
}

body.theme-pro[data-theme-mode='light'] .admin-customer-service-panel .text-slate-100 {
  color: #1e293b !important;
}

body.theme-pro[data-theme-mode='light'] .admin-customer-service-panel .text-sky-100,
body.theme-pro[data-theme-mode='light'] .admin-customer-service-panel .text-sky-100\/70,
body.theme-pro[data-theme-mode='light'] .admin-customer-service-panel .text-sky-100\/80 {
  color: #0369a1 !important;
}

body.theme-pro[data-theme-mode='light'] .admin-customer-service-panel .text-slate-300\/80 {
  color: #475569 !important;
}

body.theme-pro[data-theme-mode='light'] .admin-customer-service-panel .rounded-xl,
body.theme-pro[data-theme-mode='light'] .admin-customer-service-panel .rounded-2xl,
body.theme-pro[data-theme-mode='light'] .admin-customer-service-panel .rounded-lg {
  border-color: rgba(203, 213, 225, 0.6) !important;
}

body.theme-pro[data-theme-mode='light'] .admin-customer-service-panel .bg-slate-900\/25,
body.theme-pro[data-theme-mode='light'] .admin-customer-service-panel .bg-slate-950\/40 {
  background: rgba(255, 255, 255, 0.7) !important;
}

body.theme-pro[data-theme-mode='light'] .admin-customer-service-panel input[type="text"] {
  background: rgba(255, 255, 255, 0.9) !important;
  color: #1e293b !important;
  border-color: rgba(148, 163, 184, 0.5) !important;
}

body.theme-pro[data-theme-mode='light'] .admin-customer-service-panel input[type="text"]:focus {
  border-color: #06b6d4 !important;
}

body.theme-pro[data-theme-mode='light'] .admin-customer-service-panel input[type="file"] {
  background: rgba(255, 255, 255, 0.9) !important;
  color: #374151 !important;
}

body.theme-pro[data-theme-mode='light'] .admin-customer-service-panel .text-emerald-100 {
  color: #047857 !important;
}

body.theme-pro[data-theme-mode='light'] .admin-customer-service-panel .border-emerald-300\/40 {
  border-color: rgba(52, 211, 153, 0.6) !important;
}

body.theme-pro[data-theme-mode='light'] .admin-customer-service-panel .bg-emerald-400\/15 {
  background: rgba(209, 250, 229, 0.5) !important;
}

body.theme-pro[data-theme-mode='light'] .admin-customer-service-panel .text-rose-100 {
  color: #be123c !important;
}

body.theme-pro[data-theme-mode='light'] .admin-customer-service-panel .border-rose-300\/50 {
  border-color: rgba(251, 113, 133, 0.6) !important;
}

body.theme-pro[data-theme-mode='light'] .admin-customer-service-panel .bg-rose-400\/15 {
  background: rgba(254, 205, 211, 0.5) !important;
}

body.theme-pro[data-theme-mode='light'] .loading-overlay {
  background: linear-gradient(145deg, rgba(236, 244, 255, 0.84), rgba(244, 250, 255, 0.88));
}

/* 三个工作台通用控件：搜索工作台 / 爆款工作台 / 天选 AI 智能采集 */
body.theme-index[data-theme-mode='dark'] .product-tools,
body.theme-index[data-theme-mode='dark'] .ai-product-tools,
body.theme-index[data-theme-mode='dark'] .hot-product-results > .mb-3 {
  border-color: rgba(125, 211, 252, 0.18) !important;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(30, 41, 59, 0.42)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 16px 38px rgba(2, 6, 23, 0.22);
}

body.theme-index[data-theme-mode='dark'] .product-tools input[type='text'],
body.theme-index[data-theme-mode='dark'] .ai-product-tools input[type='text'],
body.theme-index[data-theme-mode='dark'] #hotProductWorkspaceSection input[type='text'],
body.theme-index[data-theme-mode='dark'] #hotProductWorkspaceSection input[type='search'],
body.theme-index[data-theme-mode='dark'] #hotProductWorkspaceSection input[type='date'],
body.theme-index[data-theme-mode='dark'] #hotProductWorkspaceSection input[type='number'],
body.theme-index[data-theme-mode='dark'] #hotProductWorkspaceSection select,
body.theme-index[data-theme-mode='dark'] #productFilterSummary,
body.theme-index[data-theme-mode='dark'] #aiProductFilterSummary,
body.theme-index[data-theme-mode='dark'] #hotProductResultCategoryBtn,
body.theme-index[data-theme-mode='dark'] .workspace-pagination-select {
  border-color: rgba(125, 211, 252, 0.22) !important;
  background: rgba(15, 23, 42, 0.78) !important;
  color: rgba(226, 232, 240, 0.96) !important;
  color-scheme: dark;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.theme-index[data-theme-mode='dark'] .product-tools input::placeholder,
body.theme-index[data-theme-mode='dark'] .ai-product-tools input::placeholder,
body.theme-index[data-theme-mode='dark'] #hotProductWorkspaceSection input::placeholder {
  color: rgba(148, 163, 184, 0.82) !important;
}

body.theme-index[data-theme-mode='dark'] .product-tools input:focus,
body.theme-index[data-theme-mode='dark'] .ai-product-tools input:focus,
body.theme-index[data-theme-mode='dark'] #hotProductWorkspaceSection input:focus,
body.theme-index[data-theme-mode='dark'] #hotProductWorkspaceSection select:focus,
body.theme-index[data-theme-mode='dark'] #productFilterSummary:focus,
body.theme-index[data-theme-mode='dark'] #aiProductFilterSummary:focus,
body.theme-index[data-theme-mode='dark'] #hotProductResultCategoryBtn:focus {
  border-color: rgba(34, 211, 238, 0.65) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.theme-index[data-theme-mode='dark'] #productRefreshBtn,
body.theme-index[data-theme-mode='dark'] #productFilterClearBtn,
body.theme-index[data-theme-mode='dark'] #aiProductRefreshBtn,
body.theme-index[data-theme-mode='dark'] #aiProductFilterClearBtn,
body.theme-index[data-theme-mode='dark'] #hotProductResultFilterResetBtn,
body.theme-index[data-theme-mode='dark'] .collect-mode-btn,
body.theme-index[data-theme-mode='dark'] .hot-batch-action-trigger {
  border-color: rgba(125, 211, 252, 0.22) !important;
  background: rgba(15, 23, 42, 0.78) !important;
  color: rgba(226, 232, 240, 0.94) !important;
}

body.theme-index[data-theme-mode='dark'] #productRefreshBtn:hover,
body.theme-index[data-theme-mode='dark'] #productFilterClearBtn:hover,
body.theme-index[data-theme-mode='dark'] #aiProductRefreshBtn:hover,
body.theme-index[data-theme-mode='dark'] #aiProductFilterClearBtn:hover,
body.theme-index[data-theme-mode='dark'] #hotProductResultFilterResetBtn:hover,
body.theme-index[data-theme-mode='dark'] .collect-mode-btn:hover,
body.theme-index[data-theme-mode='dark'] .hot-batch-action-trigger:hover,
body.theme-index[data-theme-mode='dark'] .hot-batch-action-trigger[aria-expanded='true'] {
  border-color: rgba(34, 211, 238, 0.5) !important;
  background: rgba(14, 165, 233, 0.15) !important;
  color: #e0f2fe !important;
}

body.theme-index[data-theme-mode='dark'] .collect-mode-btn.is-active,
body.theme-index[data-theme-mode='dark'] .collect-mode-btn[aria-pressed='true'],
body.theme-index[data-theme-mode='dark'] #hotProductResultFilterBtn,
body.theme-index[data-theme-mode='dark'] #productFilterApplyBtn,
body.theme-index[data-theme-mode='dark'] #aiProductFilterApplyBtn {
  border-color: rgba(34, 211, 238, 0.58) !important;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.92), rgba(79, 70, 229, 0.7)) !important;
  color: #fff !important;
}

body.theme-index[data-theme-mode='dark'] #searchExportBtn,
body.theme-index[data-theme-mode='dark'] #aiCollectExportBtn,
body.theme-index[data-theme-mode='dark'] #hotProductExportBtn {
  border: 1px solid rgba(34, 211, 238, 0.48) !important;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.96), rgba(14, 165, 233, 0.82)) !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.2);
}

body.theme-index[data-theme-mode='dark'] #productBatchBtn,
body.theme-index[data-theme-mode='dark'] #aiProductBatchBtn,
body.theme-index[data-theme-mode='dark'] .hot-batch-action-danger {
  border-color: rgba(251, 113, 133, 0.38) !important;
  background: rgba(127, 29, 29, 0.22) !important;
  color: #fecdd3 !important;
}

body.theme-index[data-theme-mode='dark'] #productBatchBtn:hover,
body.theme-index[data-theme-mode='dark'] #aiProductBatchBtn:hover,
body.theme-index[data-theme-mode='dark'] .hot-batch-action-danger:hover {
  border-color: rgba(251, 113, 133, 0.62) !important;
  background: rgba(244, 63, 94, 0.16) !important;
  color: #ffe4e6 !important;
}

body.theme-index[data-theme-mode='dark'] #productFilterPanel,
body.theme-index[data-theme-mode='dark'] #aiProductFilterPanel,
body.theme-index[data-theme-mode='dark'] #productBatchPanel,
body.theme-index[data-theme-mode='dark'] #aiProductBatchPanel,
body.theme-index[data-theme-mode='dark'] .hot-batch-action-menu,
body.theme-index[data-theme-mode='dark'] #hotProductResultCategoryDropdown,
body.theme-index[data-theme-mode='dark'] .hot-price-panel,
body.theme-index[data-theme-mode='dark'] .hot-date-panel {
  border-color: rgba(125, 211, 252, 0.22) !important;
  background: rgba(15, 23, 42, 0.97) !important;
  color: rgba(226, 232, 240, 0.96) !important;
  box-shadow: 0 20px 54px rgba(2, 6, 23, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

body.theme-index[data-theme-mode='dark'] #keywordProgressBatchActionMenu,
body.theme-index[data-theme-mode='dark'] #aiKeywordProgressBatchActionMenu,
body.theme-index[data-theme-mode='dark'] #hotProductProgressBatchActionMenu {
  border-color: rgba(34, 211, 238, 0.24) !important;
  background: #0f172a !important;
  color: #e2e8f0 !important;
  box-shadow: 0 22px 50px rgba(2, 6, 23, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(18px);
}

body.theme-index[data-theme-mode='dark'] #keywordProgressBatchActionMenu .hot-batch-action-item,
body.theme-index[data-theme-mode='dark'] #aiKeywordProgressBatchActionMenu .hot-batch-action-item,
body.theme-index[data-theme-mode='dark'] #hotProductProgressBatchActionMenu .hot-batch-action-item {
  color: #dbeafe !important;
}

body.theme-index[data-theme-mode='dark'] #keywordProgressBatchActionMenu .hot-batch-action-item:hover,
body.theme-index[data-theme-mode='dark'] #aiKeywordProgressBatchActionMenu .hot-batch-action-item:hover,
body.theme-index[data-theme-mode='dark'] #hotProductProgressBatchActionMenu .hot-batch-action-item:hover {
  background: rgba(14, 165, 233, 0.16) !important;
  color: #f8fafc !important;
}

body.theme-index[data-theme-mode='dark'] #keywordProgressBatchActionMenu .hot-batch-action-danger,
body.theme-index[data-theme-mode='dark'] #aiKeywordProgressBatchActionMenu .hot-batch-action-danger,
body.theme-index[data-theme-mode='dark'] #hotProductProgressBatchActionMenu .hot-batch-action-danger {
  border: 1px solid rgba(244, 63, 94, 0.18) !important;
  background: rgba(127, 29, 29, 0.34) !important;
  color: #fda4af !important;
}

body.theme-index[data-theme-mode='dark'] .hot-batch-action-item {
  color: rgba(226, 232, 240, 0.94) !important;
}

body.theme-index[data-theme-mode='dark'] .hot-batch-action-item:hover {
  background: rgba(14, 165, 233, 0.13) !important;
  color: #e0f2fe !important;
}

body.theme-index[data-theme-mode='dark'] #productKeywordFilterOptions,
body.theme-index[data-theme-mode='dark'] #aiProductKeywordFilterOptions,
body.theme-index[data-theme-mode='dark'] #hotProductResultCategoryList {
  border-color: rgba(71, 85, 105, 0.55) !important;
  background: rgba(30, 41, 59, 0.68) !important;
  color: rgba(226, 232, 240, 0.94) !important;
}

body.theme-index[data-theme-mode='dark'] .hot-log-panel,
body.theme-index[data-theme-mode='dark'] #keywordProgressTable,
body.theme-index[data-theme-mode='dark'] #aiCollectKeywordProgressTable,
body.theme-index[data-theme-mode='dark'] .hot-result-table-wrap,
body.theme-index[data-theme-mode='dark'] .data-table-wrap {
  border-color: rgba(125, 211, 252, 0.16) !important;
  background: rgba(2, 6, 23, 0.28) !important;
}

body.theme-index[data-theme-mode='dark'] #keywordProgressTable thead,
body.theme-index[data-theme-mode='dark'] #aiCollectKeywordProgressTable thead,
body.theme-index[data-theme-mode='dark'] .hot-result-table-wrap thead,
body.theme-index[data-theme-mode='dark'] .product-metrics-table thead {
  background: linear-gradient(180deg, rgba(51, 65, 85, 0.92), rgba(30, 41, 59, 0.92)) !important;
  color: rgba(241, 245, 249, 0.96) !important;
}

body.theme-index[data-theme-mode='dark'] #keywordProgressTable tbody,
body.theme-index[data-theme-mode='dark'] #aiCollectKeywordProgressTable tbody,
body.theme-index[data-theme-mode='dark'] .hot-result-table-wrap tbody,
body.theme-index[data-theme-mode='dark'] .product-metrics-table tbody {
  color: rgba(226, 232, 240, 0.92) !important;
}

body.theme-index[data-theme-mode='dark'] #keywordProgressTable tbody tr:hover,
body.theme-index[data-theme-mode='dark'] #aiCollectKeywordProgressTable tbody tr:hover,
body.theme-index[data-theme-mode='dark'] .hot-result-table-wrap tbody tr:hover,
body.theme-index[data-theme-mode='dark'] .product-metrics-table tbody tr:hover {
  background: rgba(14, 165, 233, 0.08) !important;
}

body.theme-index[data-theme-mode='dark'] #productSelectedCount,
body.theme-index[data-theme-mode='dark'] #aiProductSelectedCount,
body.theme-index[data-theme-mode='dark'] #keywordProgressSelectedCount,
body.theme-index[data-theme-mode='dark'] #aiKeywordProgressSelectedCount,
body.theme-index[data-theme-mode='dark'] #hotProductSelectedCount,
body.theme-index[data-theme-mode='dark'] #hotProductProgressSelectedCount {
  border: 1px solid rgba(34, 211, 238, 0.28);
  background: rgba(14, 165, 233, 0.16) !important;
  color: #bae6fd !important;
}

body.theme-index[data-theme-mode='dark'] #collectStatsInline,
body.theme-index[data-theme-mode='dark'] #aiCollectStatsInline,
body.theme-index[data-theme-mode='dark'] #hotProductCollectStatsInline {
  border-color: rgba(34, 211, 238, 0.25) !important;
  background: rgba(14, 165, 233, 0.1) !important;
  color: rgba(224, 242, 254, 0.94) !important;
}

body.theme-index[data-theme-mode='light'] .product-tools,
body.theme-index[data-theme-mode='light'] .ai-product-tools,
body.theme-index[data-theme-mode='light'] .hot-product-results > .mb-3 {
  border-color: rgba(203, 213, 225, 0.95) !important;
  background: rgba(248, 250, 252, 0.92) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

body.theme-index[data-theme-mode='light'] .hot-batch-action-trigger,
body.theme-index[data-theme-mode='light'] #productBatchPanel,
body.theme-index[data-theme-mode='light'] #aiProductBatchPanel,
body.theme-index[data-theme-mode='light'] .hot-batch-action-menu,
body.theme-index[data-theme-mode='light'] #hotProductResultCategoryDropdown,
body.theme-index[data-theme-mode='light'] .hot-price-panel,
body.theme-index[data-theme-mode='light'] .hot-date-panel {
  border-color: rgba(203, 213, 225, 0.95) !important;
  background: rgba(255, 255, 255, 0.98) !important;
  color: #334155 !important;
}

body.theme-index[data-theme-mode='light'] .hot-batch-action-trigger:hover,
body.theme-index[data-theme-mode='light'] .hot-batch-action-trigger[aria-expanded='true'] {
  border-color: rgba(14, 165, 233, 0.45) !important;
  background: rgba(240, 249, 255, 0.96) !important;
  color: #0369a1 !important;
}

body.theme-index[data-theme-mode='light'] .hot-log-panel,
body.theme-index[data-theme-mode='light'] #keywordProgressTable,
body.theme-index[data-theme-mode='light'] #aiCollectKeywordProgressTable,
body.theme-index[data-theme-mode='light'] .hot-result-table-wrap,
body.theme-index[data-theme-mode='light'] .data-table-wrap {
  border-color: rgba(203, 213, 225, 0.95) !important;
  background: rgba(255, 255, 255, 0.82) !important;
}

/* 搜索工作台抖店授权提示弹窗日间模式适配 */
body.theme-pro[data-theme-mode='light'] #searchCookieMask {
  background: rgba(148, 163, 184, 0.3) !important;
}

body.theme-pro[data-theme-mode='light'] #cookieWarningBanner {
  color: #1e293b !important;
}

body.theme-pro[data-theme-mode='light'] #cookieWarningBanner .glass-card {
  background: rgba(254, 243, 199, 0.95) !important;
  border-color: rgba(251, 191, 36, 0.6) !important;
}

body.theme-pro[data-theme-mode='light'] #cookieWarningBanner .text-amber-100 {
  color: #92400e !important;
}

body.theme-pro[data-theme-mode='light'] #cookieWarningBanner .text-amber-100\/90 {
  color: #b45309 !important;
}

body.theme-pro[data-theme-mode='light'] #cookieWarningBanner .border-amber-300\/70 {
  border-color: rgba(217, 119, 6, 0.5) !important;
}

body.theme-pro[data-theme-mode='light'] #cookieWarningBanner .bg-amber-500\/15 {
  background: rgba(253, 224, 71, 0.3) !important;
}

body.theme-pro[data-theme-mode='light'] #cookieWarningBanner .bg-amber-500\/25 {
  background: rgba(252, 211, 77, 0.4) !important;
}

body.theme-pro[data-theme-mode='light'] #cookieWarningBanner .bg-amber-500\/25:hover {
  background: rgba(252, 211, 77, 0.6) !important;
}

body.theme-pro[data-theme-mode='light'] #cookieWarningBanner .text-amber-50 {
  color: #78350f !important;
}

body.theme-pro[data-theme-mode='light'] #cookieWarningBanner a,
body.theme-pro[data-theme-mode='light'] #searchCookieMask a {
  color: #075985 !important;
  background: rgba(14, 165, 233, 0.14) !important;
  border-color: rgba(2, 132, 199, 0.45) !important;
}

body.theme-pro[data-theme-mode='light'] #cookieWarningBanner a:hover,
body.theme-pro[data-theme-mode='light'] #searchCookieMask a:hover {
  color: #0c4a6e !important;
  background: rgba(14, 165, 233, 0.24) !important;
}

body.theme-pro[data-theme-mode='light'] #cookieWarningBanner .text-amber-100\/80 {
  color: #b45309 !important;
}

body.theme-pro[data-theme-mode='light'] #searchCookieMask > div {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(226, 232, 240, 0.8) !important;
}

body.theme-pro[data-theme-mode='light'] #searchCookieMask .text-slate-100 {
  color: #1e293b !important;
}

body.theme-pro[data-theme-mode='light'] #searchCookieMask .text-slate-200\/90 {
  color: #475569 !important;
}

body.theme-pro[data-theme-mode='light'] #searchCookieMask .border-white\/25 {
  border-color: rgba(148, 163, 184, 0.5) !important;
}

body.theme-pro[data-theme-mode='light'] #searchCookieMask .bg-slate-700\/55 {
  background: rgba(75, 85, 99, 0.9) !important;
}

body.theme-pro[data-theme-mode='light'] #searchCookieMask .bg-slate-700\/55:hover {
  background: rgba(55, 65, 81, 1) !important;
}

body.theme-pro[data-theme-mode='light'] #searchCookieMask .text-white {
  color: #1e293b !important;
}

body.theme-pro[data-theme-mode='light'] #brandFilterConfigMask .preview-modal {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(226, 232, 240, 0.8) !important;
}

/* 导出配置面板日间模式适配 - 过滤选项 */
body.theme-pro[data-theme-mode='light'] #exportConfigMask .preview-modal .rounded-xl.border-white\/20 {
  background: rgba(241, 245, 249, 0.8) !important;
  border-color: rgba(203, 213, 225, 0.6) !important;
}

body.theme-pro[data-theme-mode='light'] #exportConfigMask .preview-modal .text-amber-100\/95 {
  color: #b45309 !important;
}

body.theme-pro[data-theme-mode='light'] #exportConfigMask .preview-modal .border-amber-400\/50 {
  border-color: rgba(251, 191, 36, 0.6) !important;
}

body.theme-pro[data-theme-mode='light'] #exportConfigMask .preview-modal .bg-amber-500\/15 {
  background: rgba(251, 191, 36, 0.2) !important;
}

body.theme-pro[data-theme-mode='light'] #exportConfigMask .preview-modal .bg-amber-500\/15:hover {
  background: rgba(251, 191, 36, 0.35) !important;
}

body.theme-pro[data-theme-mode='light'] #exportConfigMask .preview-modal .text-amber-200 {
  color: #b45309 !important;
}

body.theme-pro[data-theme-mode='light'] #exportConfigMask .preview-modal .text-lime-100\/95 {
  color: #15803d !important;
}

body.theme-pro[data-theme-mode='light'] #exportConfigMask .preview-modal .text-emerald-100\/95 {
  color: #047857 !important;
}

body.theme-pro[data-theme-mode='light'] #exportConfigMask .preview-modal .border-lime-400\/50 {
  border-color: rgba(132, 204, 22, 0.6) !important;
}

body.theme-pro[data-theme-mode='light'] #exportConfigMask .preview-modal .bg-lime-500\/15 {
  background: rgba(132, 204, 22, 0.2) !important;
}

body.theme-pro[data-theme-mode='light'] #exportConfigMask .preview-modal .bg-lime-500\/15:hover {
  background: rgba(132, 204, 22, 0.35) !important;
}

body.theme-pro[data-theme-mode='light'] #exportConfigMask .preview-modal .text-lime-200 {
  color: #15803d !important;
}

body.theme-pro[data-theme-mode='light'] #brandFilterConfigMask .preview-modal .text-slate-100 {
  color: #1e293b !important;
}

body.theme-pro[data-theme-mode='light'] #brandFilterConfigMask .preview-modal .text-sky-100\/75 {
  color: #0369a1 !important;
}

body.theme-pro[data-theme-mode='light'] #brandFilterConfigMask .preview-modal .border-white\/20 {
  border-color: rgba(203, 213, 225, 0.6) !important;
}

body.theme-pro[data-theme-mode='light'] #brandFilterConfigMask .preview-modal .bg-slate-950\/35 {
  background: rgba(248, 250, 252, 0.8) !important;
}

body.theme-pro[data-theme-mode='light'] #brandFilterConfigMask .preview-modal .text-slate-200\/90 {
  color: #475569 !important;
}

body.theme-pro[data-theme-mode='light'] .loading-spinner {
  border-color: rgba(47, 99, 246, 0.18);
  border-top-color: rgba(47, 99, 246, 0.8);
  background: rgba(255, 255, 255, 0.84);
}

body.theme-pro[data-theme-mode='light'] .toast-item {
  background: #ffffff !important;
  backdrop-filter: none;
  box-shadow: 0 10px 24px rgba(66, 92, 130, 0.16);
}

body.theme-pro[data-theme-mode='light'] .toast-item.toast-success {
  color: #0f766e;
}

body.theme-pro[data-theme-mode='light'] .toast-item.toast-warning {
  color: #a16207;
}

body.theme-pro[data-theme-mode='light'] .toast-item.toast-error {
  color: #b91c1c;
}

body.theme-pro[data-theme-mode='light'] .toast-item .toast-close {
  color: rgba(64, 85, 116, 0.72);
}

body.theme-pro[data-theme-mode='light'] .toast-item .toast-close:hover {
  color: rgba(36, 57, 88, 0.96);
}

body.theme-pro[data-theme-mode='light'] .text-white,
body.theme-pro[data-theme-mode='light'] .text-slate-100,
body.theme-pro[data-theme-mode='light'] .text-slate-100\/95,
body.theme-pro[data-theme-mode='light'] .text-slate-100\/90,
body.theme-pro[data-theme-mode='light'] .text-slate-200,
body.theme-pro[data-theme-mode='light'] .text-slate-200\/95,
body.theme-pro[data-theme-mode='light'] .text-slate-200\/90,
body.theme-pro[data-theme-mode='light'] .text-slate-200\/85,
body.theme-pro[data-theme-mode='light'] .text-slate-200\/80,
body.theme-pro[data-theme-mode='light'] .text-slate-300,
body.theme-pro[data-theme-mode='light'] .text-slate-300\/90,
body.theme-pro[data-theme-mode='light'] .text-slate-300\/85,
body.theme-pro[data-theme-mode='light'] .text-slate-300\/80,
body.theme-pro[data-theme-mode='light'] .text-slate-300\/70,
body.theme-pro[data-theme-mode='light'] .text-sky-100,
body.theme-pro[data-theme-mode='light'] .text-sky-100\/90,
body.theme-pro[data-theme-mode='light'] .text-sky-100\/85,
body.theme-pro[data-theme-mode='light'] .text-sky-100\/80,
body.theme-pro[data-theme-mode='light'] .text-sky-100\/75,
body.theme-pro[data-theme-mode='light'] .text-sky-100\/70,
body.theme-pro[data-theme-mode='light'] .text-sky-200,
body.theme-pro[data-theme-mode='light'] .text-sky-200\/90,
body.theme-pro[data-theme-mode='light'] .text-sky-200\/80,
body.theme-pro[data-theme-mode='light'] .text-sky-200\/70,
body.theme-pro[data-theme-mode='light'] .text-sky-300,
body.theme-pro[data-theme-mode='light'] .text-cyan-100,
body.theme-pro[data-theme-mode='light'] .text-cyan-100\/90,
body.theme-pro[data-theme-mode='light'] .text-cyan-100\/85,
body.theme-pro[data-theme-mode='light'] .text-cyan-100\/80,
body.theme-pro[data-theme-mode='light'] .text-cyan-100\/75,
body.theme-pro[data-theme-mode='light'] .text-cyan-200,
body.theme-pro[data-theme-mode='light'] .text-cyan-200\/90,
body.theme-pro[data-theme-mode='light'] .text-cyan-300 {
  color: var(--pro-text-primary) !important;
}

body.theme-pro[data-theme-mode='light'] .text-slate-400,
body.theme-pro[data-theme-mode='light'] .text-slate-400\/80,
body.theme-pro[data-theme-mode='light'] .text-slate-400\/70,
body.theme-pro[data-theme-mode='light'] .text-slate-500,
body.theme-pro[data-theme-mode='light'] .text-slate-500\/80,
body.theme-pro[data-theme-mode='light'] .text-slate-500\/70 {
  color: var(--pro-text-secondary) !important;
}

body.theme-pro[data-theme-mode='light'] .text-emerald-100,
body.theme-pro[data-theme-mode='light'] .text-emerald-100\/95,
body.theme-pro[data-theme-mode='light'] .text-emerald-100\/90,
body.theme-pro[data-theme-mode='light'] .text-emerald-100\/80,
body.theme-pro[data-theme-mode='light'] .text-emerald-200,
body.theme-pro[data-theme-mode='light'] .text-emerald-200\/90,
body.theme-pro[data-theme-mode='light'] .text-emerald-300 {
  color: #106e61 !important;
}

body.theme-pro[data-theme-mode='light'] .text-amber-100,
body.theme-pro[data-theme-mode='light'] .text-amber-100\/95,
body.theme-pro[data-theme-mode='light'] .text-amber-100\/90,
body.theme-pro[data-theme-mode='light'] .text-amber-100\/80,
body.theme-pro[data-theme-mode='light'] .text-amber-200,
body.theme-pro[data-theme-mode='light'] .text-amber-200\/90,
body.theme-pro[data-theme-mode='light'] .text-amber-300 {
  color: #8d5b15 !important;
}

body.theme-pro[data-theme-mode='light'] .text-rose-100,
body.theme-pro[data-theme-mode='light'] .text-rose-100\/90,
body.theme-pro[data-theme-mode='light'] .text-rose-200,
body.theme-pro[data-theme-mode='light'] .text-rose-200\/90,
body.theme-pro[data-theme-mode='light'] .text-rose-300 {
  color: #93385d !important;
}

body.theme-pro[data-theme-mode='light'] .text-lime-200,
body.theme-pro[data-theme-mode='light'] .text-lime-100,
body.theme-pro[data-theme-mode='light'] .text-lime-100\/95,
body.theme-pro[data-theme-mode='light'] .text-lime-300 {
  color: #43610f !important;
}

body.theme-pro[data-theme-mode='light'] .text-indigo-100,
body.theme-pro[data-theme-mode='light'] .text-indigo-100\/95,
body.theme-pro[data-theme-mode='light'] .text-indigo-100\/90,
body.theme-pro[data-theme-mode='light'] .text-indigo-100\/80,
body.theme-pro[data-theme-mode='light'] .text-indigo-100\/75,
body.theme-pro[data-theme-mode='light'] .text-indigo-200,
body.theme-pro[data-theme-mode='light'] .text-indigo-200\/90,
body.theme-pro[data-theme-mode='light'] .text-indigo-200\/80 {
  color: #243c67 !important;
}

body.theme-pro[data-theme-mode='light'] button.text-white[class*='bg-sky-'],
body.theme-pro[data-theme-mode='light'] button.text-white[class*='bg-cyan-'],
body.theme-pro[data-theme-mode='light'] button.text-white[class*='bg-emerald-'],
body.theme-pro[data-theme-mode='light'] button.text-white[class*='bg-indigo-'],
body.theme-pro[data-theme-mode='light'] button.text-white[class*='bg-amber-'],
body.theme-pro[data-theme-mode='light'] button.text-white[class*='bg-rose-'],
body.theme-pro[data-theme-mode='light'] button.text-white[class*='bg-slate-700'],
body.theme-pro[data-theme-mode='light'] a.text-white[class*='bg-sky-'],
body.theme-pro[data-theme-mode='light'] a.text-white[class*='bg-cyan-'],
body.theme-pro[data-theme-mode='light'] a.text-white[class*='bg-emerald-'],
body.theme-pro[data-theme-mode='light'] a.text-white[class*='bg-indigo-'],
body.theme-pro[data-theme-mode='light'] a.text-white[class*='bg-amber-'],
body.theme-pro[data-theme-mode='light'] a.text-white[class*='bg-rose-'],
body.theme-pro[data-theme-mode='light'] a.text-white[class*='bg-slate-700'] {
  color: #ffffff !important;
}

body.theme-pro[data-theme-mode='light'] .border-white\/20,
body.theme-pro[data-theme-mode='light'] .border-white\/15,
body.theme-pro[data-theme-mode='light'] .border-white\/10,
body.theme-pro[data-theme-mode='light'] .border-slate-300\/35,
body.theme-pro[data-theme-mode='light'] .border-slate-300\/40,
body.theme-pro[data-theme-mode='light'] .border-slate-300\/50 {
  border-color: var(--pro-border) !important;
}

body.theme-pro[data-theme-mode='light'] .bg-slate-950\/35,
body.theme-pro[data-theme-mode='light'] .bg-slate-950\/30,
body.theme-pro[data-theme-mode='light'] .bg-slate-950\/90,
body.theme-pro[data-theme-mode='light'] .bg-slate-900\/45,
body.theme-pro[data-theme-mode='light'] .bg-slate-900\/35,
body.theme-pro[data-theme-mode='light'] .bg-slate-900\/30,
body.theme-pro[data-theme-mode='light'] .bg-slate-900\/25,
body.theme-pro[data-theme-mode='light'] .bg-slate-900\/20 {
  background-color: rgba(248, 251, 255, 0.96) !important;
}

body.theme-pro[data-theme-mode='light'] .hover\:bg-slate-900\/50:hover,
body.theme-pro[data-theme-mode='light'] .hover\:bg-slate-900\/55:hover,
body.theme-pro[data-theme-mode='light'] .hover\:bg-slate-800\/60:hover,
body.theme-pro[data-theme-mode='light'] .hover\:bg-white\/10:hover {
  background-color: rgba(229, 238, 250, 0.94) !important;
}

body.theme-pro[data-theme-mode='light'] .theme-mode-toggle {
  border-color: rgba(249, 115, 22, 0.42);
  background: rgba(249, 115, 22, 0.1);
  color: #f97316;
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.16);
}

body.theme-pro[data-theme-mode='light'] .theme-mode-toggle:hover {
  border-color: rgba(234, 88, 12, 0.62);
  background: rgba(249, 115, 22, 0.17);
  color: #ea580c;
}

body.theme-pro[data-theme-mode='light'] .theme-mode-toggle:focus-visible {
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2), 0 10px 22px rgba(234, 88, 12, 0.2);
}

body.theme-index[data-theme-mode='light'] .mascot-bg-layer {
  opacity: 0.2;
  filter: drop-shadow(0 20px 34px rgba(90, 110, 146, 0.26)) drop-shadow(0 0 26px rgba(47, 99, 246, 0.16));
}

body.theme-index[data-theme-mode='light'] #workspaceTabSearch {
  border: none !important;
  background: transparent !important;
  color: var(--pro-text-secondary) !important;
}

body.theme-index[data-theme-mode='light'] .nav-workspace-tabs {
  border: none;
  background: transparent;
  box-shadow: none;
}

body.theme-index[data-theme-mode='light'] .nav-workspace-tabs .workspace-tab-btn {
  color: var(--pro-text-secondary) !important;
}

body.theme-index[data-theme-mode='light'] .nav-workspace-tabs .workspace-tab-btn::after {
  background: linear-gradient(90deg, rgba(47, 99, 246, 0.8), rgba(79, 121, 248, 0.9));
}

body.theme-index[data-theme-mode='light'] #workspaceTabSearch.is-active,
body.theme-index[data-theme-mode='light'] #workspaceTabAiCollect.is-active,
body.theme-index[data-theme-mode='light'] .workspace-tab-btn.is-active,
body.theme-index[data-theme-mode='light'] .workspace-tab-btn[aria-pressed='true'] {
  box-shadow: none;
  background: transparent !important;
  color: rgba(47, 99, 246, 1) !important;
}

body.theme-index[data-theme-mode='light'] #workspaceTabHotProduct.is-active,
body.theme-index[data-theme-mode='light'] #workspaceTabHotProduct[aria-pressed='true'] {
  color: var(--pro-text-secondary) !important;
}

body.theme-index[data-theme-mode='light'] .nav-workspace-tabs .workspace-tab-btn:hover {
  color: rgba(47, 99, 246, 1) !important;
}

body.theme-index[data-theme-mode='light'] #workspaceTabSearch.is-active:hover,
body.theme-index[data-theme-mode='light'] #workspaceTabAiCollect.is-active:hover,
body.theme-index[data-theme-mode='light'] .workspace-tab-btn.is-active:hover,
body.theme-index[data-theme-mode='light'] .workspace-tab-btn[aria-pressed='true']:hover {
  color: rgba(47, 99, 246, 1) !important;
}

body.theme-index[data-theme-mode='light'] .nav-workspace-tabs .plugin-dropdown {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(0, 0, 0, 0.1);
}

body.theme-index[data-theme-mode='light'] .nav-workspace-tabs .plugin-sub-btn {
  color: rgba(30, 41, 59, 0.85);
}

body.theme-index[data-theme-mode='light'] .nav-workspace-tabs .plugin-sub-btn:hover {
  background: rgba(47, 99, 246, 0.12);
  color: rgba(47, 99, 246, 1);
}

body.theme-export-records[data-theme-mode='light'] .nav-workspace-tabs {
  border: none;
  background: transparent;
  box-shadow: none;
}

body.theme-export-records[data-theme-mode='light'] .nav-workspace-tabs .workspace-tab-btn {
  color: var(--pro-text-secondary) !important;
}

body.theme-export-records[data-theme-mode='light'] .nav-workspace-tabs .workspace-tab-btn::after {
  background: linear-gradient(90deg, rgba(47, 99, 246, 0.8), rgba(79, 121, 248, 0.9));
}

body.theme-export-records[data-theme-mode='light'] .workspace-tab-btn.is-active,
body.theme-export-records[data-theme-mode='light'] .workspace-tab-btn[aria-pressed='true'],
body.theme-export-records[data-theme-mode='light'] .workspace-tab-btn.is-active:hover,
body.theme-export-records[data-theme-mode='light'] .workspace-tab-btn[aria-pressed='true']:hover,
body.theme-export-records[data-theme-mode='light'] .nav-workspace-tabs .workspace-tab-btn:hover {
  color: rgba(47, 99, 246, 1) !important;
}

body.theme-export-records[data-theme-mode='light'] .nav-workspace-tabs .plugin-dropdown {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(0, 0, 0, 0.1);
}

body.theme-export-records[data-theme-mode='light'] .nav-workspace-tabs .plugin-sub-btn {
  color: rgba(30, 41, 59, 0.85);
}

body.theme-export-records[data-theme-mode='light'] .nav-workspace-tabs .plugin-sub-btn:hover {
  background: rgba(47, 99, 246, 0.12);
  color: rgba(47, 99, 246, 1);
}

body.theme-index[data-theme-mode='light'] .workspace-block {
  background: rgba(251, 254, 255, 0.92);
  border-color: var(--pro-border);
}

body.theme-index[data-theme-mode='light'] .workspace-header,
body.theme-index[data-theme-mode='light'] .table-footer,
body.theme-index[data-theme-mode='light'] .block-header,
body.theme-index[data-theme-mode='light'] .product-tools {
  border-color: rgba(150, 169, 197, 0.34);
}

body.theme-index[data-theme-mode='light'] .workspace-status,
body.theme-index[data-theme-mode='light'] .section-subtitle,
body.theme-index[data-theme-mode='light'] .table-meta {
  color: rgba(79, 97, 118, 0.88);
}

body.theme-index[data-theme-mode='light'] .section-title {
  color: #20344f;
}

body.theme-index[data-theme-mode='light'] .workspace-block .data-table-wrap {
  border-color: var(--pro-border);
  background: rgba(250, 253, 255, 0.95);
}

body.theme-index[data-theme-mode='light'] .pie-link-btn {
  color: #4f6176;
}

body.theme-index[data-theme-mode='light'] .pie-link-btn:hover {
  color: #2a4269;
}

body.theme-index[data-theme-mode='light'] #productKeywordFilterSummary,
body.theme-index[data-theme-mode='light'] #productTimeRangeSummary {
  border-color: rgba(150, 174, 208, 0.48);
  background: rgba(247, 251, 255, 0.96);
  color: #28415f;
}

body.theme-index[data-theme-mode='light'] #productKeywordFilterSummary:hover,
body.theme-index[data-theme-mode='light'] #productTimeRangeSummary:hover {
  border-color: rgba(100, 142, 197, 0.58);
  background: rgba(240, 247, 255, 0.98);
}

body.theme-index[data-theme-mode='light'] #productKeywordFilterOptions,
body.theme-index[data-theme-mode='light'] #productTimeRangeDropdown > div {
  border-color: rgba(146, 170, 202, 0.52);
  background: rgba(252, 255, 255, 0.98);
  box-shadow: 0 16px 34px rgba(42, 72, 116, 0.18);
}

body.theme-index[data-theme-mode='light'] #productKeywordFilterOptions label {
  color: #2a4465;
}

body.theme-index[data-theme-mode='light'] #productKeywordFilterOptions label:hover {
  background: rgba(47, 99, 246, 0.08);
}

body.theme-index[data-theme-mode='light'] #productKeywordFilterOptions .text-slate-300 {
  color: #60758d !important;
}

body.theme-index[data-theme-mode='light'] #productTimeRangeDropdown label > div {
  color: #5b728d !important;
}

body.theme-index[data-theme-mode='light'] #productStartTimeInput,
body.theme-index[data-theme-mode='light'] #productEndTimeInput {
  border-color: rgba(147, 171, 203, 0.52);
  background: rgba(246, 251, 255, 0.96);
  color: #203a57;
}

body.theme-index[data-theme-mode='light'] #productStartTimeInput::-webkit-calendar-picker-indicator,
body.theme-index[data-theme-mode='light'] #productEndTimeInput::-webkit-calendar-picker-indicator {
  filter: invert(24%) sepia(18%) saturate(706%) hue-rotate(176deg);
  opacity: 0.72;
}

body.theme-index[data-theme-mode='light'] .workspace-export-fab {
  border-color: rgba(47, 99, 246, 0.58) !important;
  background: linear-gradient(135deg, rgba(47, 99, 246, 0.92), rgba(83, 124, 248, 0.8));
  box-shadow: 0 16px 30px rgba(47, 99, 246, 0.28);
}

body.theme-auth[data-theme-mode='light'] .glass-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(245, 250, 255, 0.97));
}

body.theme-auth[data-theme-mode='light'] .glass-input,
body.theme-auth[data-theme-mode='light'] input {
  border-color: var(--pro-border) !important;
  background: rgba(255, 255, 255, 0.98) !important;
}

body.theme-auth[data-theme-mode='light'] .glass-input:focus,
body.theme-auth[data-theme-mode='light'] input:focus {
  border-color: rgba(47, 99, 246, 0.58) !important;
  box-shadow: 0 0 0 3px rgba(47, 99, 246, 0.15);
}

body.theme-detail[data-theme-mode='light'] .panel {
  border-color: var(--pro-border);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(245, 250, 255, 0.96));
}

body.theme-detail[data-theme-mode='light'] .metric-card,
body.theme-detail[data-theme-mode='light'] .metric-popup,
body.theme-detail[data-theme-mode='light'] .hero-image-wrap,
body.theme-detail[data-theme-mode='light'] .trend-panel,
body.theme-detail[data-theme-mode='light'] .pie-panel {
  border-color: var(--pro-border) !important;
  background: rgba(250, 253, 255, 0.95) !important;
}

body.theme-detail[data-theme-mode='light'] .trend-title,
body.theme-detail[data-theme-mode='light'] .delivery-title {
  color: #1f3b5e;
}

body.theme-detail[data-theme-mode='light'] .back-link,
body.theme-detail[data-theme-mode='light'] .range-item {
  border-color: var(--pro-border);
  background: rgba(249, 252, 255, 0.97);
  color: var(--pro-text-secondary);
}

body.theme-detail[data-theme-mode='light'] .range-item:hover {
  background: rgba(233, 242, 255, 0.84);
  color: #1b335c;
}

body.theme-detail[data-theme-mode='light'] .range-item.active {
  border-color: rgba(47, 99, 246, 0.56);
  background: linear-gradient(135deg, rgba(47, 99, 246, 0.82), rgba(79, 121, 248, 0.66));
  color: #f7f9ff;
}

body.theme-detail[data-theme-mode='light'] .back-link:hover {
  border-color: rgba(47, 99, 246, 0.52);
  background: linear-gradient(135deg, rgba(47, 99, 246, 0.18), rgba(79, 121, 248, 0.12));
  color: #1b335c;
}

body.theme-detail[data-theme-mode='light'] .title,
body.theme-detail[data-theme-mode='light'] .meta-value,
body.theme-detail[data-theme-mode='light'] .delivery-title,
body.theme-detail[data-theme-mode='light'] .metric-value,
body.theme-detail[data-theme-mode='light'] .split-row b,
body.theme-detail[data-theme-mode='light'] .pie-title,
body.theme-detail[data-theme-mode='light'] .pie-center-value,
body.theme-detail[data-theme-mode='light'] .pie-item b,
body.theme-detail[data-theme-mode='light'] .trend-tooltip-title {
  color: var(--pro-text-primary) !important;
}

body.theme-detail[data-theme-mode='light'] .shop,
body.theme-detail[data-theme-mode='light'] .meta-label,
body.theme-detail[data-theme-mode='light'] .delivery-sub,
body.theme-detail[data-theme-mode='light'] .metric-title,
body.theme-detail[data-theme-mode='light'] .split-row,
body.theme-detail[data-theme-mode='light'] .trend-legend,
body.theme-detail[data-theme-mode='light'] .trend-empty,
body.theme-detail[data-theme-mode='light'] .pie-desc,
body.theme-detail[data-theme-mode='light'] .pie-center-label,
body.theme-detail[data-theme-mode='light'] .pie-item,
body.theme-detail[data-theme-mode='light'] .pie-empty {
  color: var(--pro-text-secondary) !important;
}

body.theme-detail[data-theme-mode='light'] .meta-value.good {
  color: var(--pro-success) !important;
}

body.theme-detail[data-theme-mode='light'] .meta-grid,
body.theme-detail[data-theme-mode='light'] .metric-split {
  border-color: rgba(129, 152, 184, 0.36);
}

body.theme-detail[data-theme-mode='light'] .range-list,
body.theme-detail[data-theme-mode='light'] .pie-switch {
  border-color: var(--pro-border);
  background: rgba(247, 251, 255, 0.94);
}

body.theme-detail[data-theme-mode='light'] .pie-tab {
  border-right-color: var(--pro-border);
  color: var(--pro-text-secondary);
}

body.theme-detail[data-theme-mode='light'] .pie-tab.active {
  background: linear-gradient(135deg, rgba(47, 99, 246, 0.16), rgba(79, 121, 248, 0.12));
  color: #1e3f82;
}

body.theme-detail[data-theme-mode='light'] .pie-tab:disabled {
  color: #8fa0b5;
  background: rgba(228, 236, 247, 0.86);
}

body.theme-detail[data-theme-mode='light'] .metric-card {
  background: linear-gradient(165deg, rgba(252, 254, 255, 0.98), rgba(242, 248, 255, 0.94)) !important;
}

body.theme-detail[data-theme-mode='light'] .metric-card:hover {
  border-color: rgba(47, 99, 246, 0.48) !important;
}

body.theme-detail[data-theme-mode='light'] .metric-card.active {
  border-color: rgba(47, 99, 246, 0.62) !important;
  box-shadow: 0 0 0 1px rgba(47, 99, 246, 0.2);
  background: linear-gradient(165deg, rgba(232, 241, 255, 0.95), rgba(245, 250, 255, 0.97)) !important;
}

body.theme-detail[data-theme-mode='light'] .trend-chart-wrap {
  border-color: rgba(132, 154, 183, 0.46);
  background: rgba(249, 252, 255, 0.96);
}

body.theme-detail[data-theme-mode='light'] #trendChartSvg line {
  stroke: rgba(130, 153, 183, 0.44) !important;
}

body.theme-detail[data-theme-mode='light'] #trendChartSvg text {
  fill: #7287a3 !important;
}

body.theme-detail[data-theme-mode='light'] .trend-tooltip {
  border-color: rgba(127, 149, 179, 0.42);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 24px rgba(64, 90, 130, 0.2);
  color: var(--pro-text-secondary);
}

body.theme-detail[data-theme-mode='light'] .pie-card {
  border-color: var(--pro-border);
  background: rgba(255, 255, 255, 0.98);
}

body.theme-detail[data-theme-mode='light'] .pie-donut::after {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: inset 0 0 0 1px rgba(126, 150, 183, 0.28);
}

body.theme-detail[data-theme-mode='light'] .delivery-loading-mask {
  background: linear-gradient(135deg, rgba(246, 250, 255, 0.96), rgba(236, 244, 255, 0.92));
  color: #2a4368;
}

body.theme-detail[data-theme-mode='light'] .delivery-loading-spinner {
  border-color: rgba(47, 99, 246, 0.22);
  border-top-color: rgba(47, 99, 246, 0.82);
}

body.theme-admin[data-theme-mode='light'] .admin-cards-panel,
body.theme-admin[data-theme-mode='light'] .admin-users-panel,
body.theme-admin[data-theme-mode='light'] .admin-risk-panel,
body.theme-admin[data-theme-mode='light'] .admin-user-card,
body.theme-admin[data-theme-mode='light'] .admin-risk-card,
body.theme-admin[data-theme-mode='light'] .admin-toolbar,
body.theme-admin[data-theme-mode='light'] .admin-filter,
body.theme-admin[data-theme-mode='light'] .admin-table-wrap,
body.theme-admin[data-theme-mode='light'] .admin-risk-table {
  border-color: var(--pro-border);
  background: rgba(249, 252, 255, 0.95);
}

body.theme-admin .tab-btn {
  border-color: var(--pro-border);
}

body.theme-admin[data-theme-mode='light'] .tab-btn {
  border-color: rgba(47, 99, 246, 0.28);
  background: rgba(242, 246, 255, 0.96);
  color: var(--pro-text-secondary);
}

body.theme-admin[data-theme-mode='light'] .tab-btn:hover {
  background: rgba(230, 238, 255, 0.96);
  color: var(--pro-text-primary);
}

body.theme-admin[data-theme-mode='light'] .tab-btn.text-cyan-300,
body.theme-admin[data-theme-mode='light'] .tab-btn.border-cyan-400 {
  border-color: rgba(47, 99, 246, 0.65);
  background: rgba(47, 99, 246, 0.12);
  color: #1e3f8a;
}

body.theme-admin[data-theme-mode='light'] .tab-btn.bg-cyan-500\/25 {
  background: rgba(47, 99, 246, 0.14);
}

/* 日间模式分页样式 */
body.theme-admin[data-theme-mode='light'] .card-pagination {
  background: rgba(242, 246, 255, 0.96) !important;
  border-color: var(--pro-border) !important;
}

body.theme-admin[data-theme-mode='light'] .card-pagination .text-slate-200\/85 {
  color: var(--pro-text-secondary) !important;
}

body.theme-admin[data-theme-mode='light'] .card-pagination select {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: var(--pro-border) !important;
  color: var(--pro-text-primary) !important;
}

body.theme-admin[data-theme-mode='light'] .card-pagination a {
  border-color: var(--pro-border) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: var(--pro-text-secondary) !important;
}

body.theme-admin[data-theme-mode='light'] .card-pagination a:hover {
  background: rgba(47, 99, 246, 0.08) !important;
  color: var(--pro-text-primary) !important;
  border-color: rgba(47, 99, 246, 0.48) !important;
}

body.theme-admin[data-theme-mode='light'] .card-pagination span {
  border-color: var(--pro-border) !important;
  background: rgba(255, 255, 255, 0.7) !important;
  color: var(--pro-text-secondary) !important;
}

body.theme-admin[data-theme-mode='light'] .card-pagination span.border-cyan-400 {
  border-color: rgba(47, 99, 246, 0.65) !important;
  background: rgba(47, 99, 246, 0.12) !important;
  color: #1e3f8a !important;
}

/* 日间模式卡密生成成功弹窗 */
body.theme-admin[data-theme-mode='light'] .card-generated-modal {
  border-color: var(--pro-border) !important;
  background: rgba(249, 252, 255, 0.98) !important;
  box-shadow: 0 20px 55px rgba(66, 92, 130, 0.2) !important;
}

body.theme-admin[data-theme-mode='light'] .card-generated-modal h2 {
  color: #1e3f8a !important;
}

body.theme-admin[data-theme-mode='light'] .card-generated-modal p {
  color: var(--pro-text-secondary) !important;
}

body.theme-admin[data-theme-mode='light'] .card-generated-modal li {
  border-color: var(--pro-border) !important;
  background: rgba(255, 255, 255, 0.96) !important;
}

body.theme-admin[data-theme-mode='light'] .card-generated-modal code {
  color: var(--pro-text-primary) !important;
}

body.theme-admin[data-theme-mode='light'] .card-generated-modal button {
  border-color: var(--pro-border) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: var(--pro-text-secondary) !important;
}

body.theme-admin[data-theme-mode='light'] .card-generated-modal button:hover {
  background: rgba(47, 99, 246, 0.08) !important;
  color: var(--pro-text-primary) !important;
}

body.theme-export-records[data-theme-mode='light'] .export-panel,
body.theme-export-records[data-theme-mode='light'] .export-card {
  border-color: var(--pro-border);
  background: rgba(250, 253, 255, 0.95);
}

body.theme-export-records[data-theme-mode='light'] .export-card:hover {
  border-color: var(--pro-border-hover);
}

body.theme-quota[data-theme-mode='light'] .quota-card,
body.theme-quota[data-theme-mode='light'] .quota-redeem-panel,
body.theme-quota[data-theme-mode='light'] .quota-ledger-panel {
  border-color: var(--pro-border);
  background: rgba(250, 253, 255, 0.95);
}

body.theme-quota[data-theme-mode='light'] .quota-ledger-title {
  color: #0f172a !important;
  text-shadow: none;
}

body.theme-quota[data-theme-mode='light'] .quota-ledger-subtitle,
body.theme-quota[data-theme-mode='light'] .quota-ledger-summary {
  color: #64748b !important;
}

body.theme-quota[data-theme-mode='light'] .quota-ledger-summary {
  border-color: rgba(14, 165, 233, 0.2);
  background: rgba(240, 249, 255, 0.86);
}

body.theme-quota[data-theme-mode='light'] .quota-ledger-tabs {
  border-color: rgba(203, 213, 225, 0.92) !important;
  background: rgba(241, 245, 249, 0.9);
}

body.theme-quota[data-theme-mode='light'] .quota-ledger-filter select,
body.theme-quota[data-theme-mode='light'] .quota-ledger-filter input {
  border-color: rgba(203, 213, 225, 0.95) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: #334155 !important;
  color-scheme: light;
}

body.theme-quota[data-theme-mode='light'] .quota-ledger-filter select:focus,
body.theme-quota[data-theme-mode='light'] .quota-ledger-filter input:focus {
  border-color: rgba(14, 165, 233, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.13);
}

body.theme-quota[data-theme-mode='light'] .quota-ledger-reset {
  border-color: rgba(203, 213, 225, 0.95) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: #334155 !important;
}

body.theme-quota[data-theme-mode='light'] .quota-ledger-table-wrap {
  border-color: rgba(203, 213, 225, 0.95) !important;
  background: rgba(255, 255, 255, 0.72);
}

body.theme-quota[data-theme-mode='light'] .quota-ledger-table-wrap thead {
  background: linear-gradient(180deg, rgba(241, 245, 249, 0.96), rgba(226, 232, 240, 0.86)) !important;
  color: #334155 !important;
}

body.theme-quota[data-theme-mode='light'] .quota-ledger-table-wrap tbody {
  color: #334155 !important;
}

body.theme-quota[data-theme-mode='light'] .quota-ledger-table-wrap tbody tr:hover {
  background: rgba(14, 165, 233, 0.07);
}

body.theme-cookie[data-theme-mode='light'] .cookie-block {
  border-color: var(--pro-border);
  background: rgba(249, 253, 255, 0.95);
}

body.theme-cookie[data-theme-mode='light'] .cookie-textarea {
  background: rgba(255, 255, 255, 0.98) !important;
}

body.theme-cookie[data-theme-mode='light'] .cookie-footer {
  border-top-color: var(--pro-border);
}

body.theme-tool-seq[data-theme-mode='light'] .btn-primary {
  background: linear-gradient(135deg, rgba(47, 99, 246, 0.92), rgba(83, 124, 248, 0.8));
  box-shadow: 0 16px 30px rgba(47, 99, 246, 0.25);
}

body.theme-tool-seq[data-theme-mode='light'] .btn-ghost {
  border-color: var(--pro-border);
  color: var(--pro-text-secondary);
}

body.theme-pro[data-theme-mode='light'] ::-webkit-scrollbar-track {
  background: rgba(237, 244, 255, 0.9);
}

body.theme-pro[data-theme-mode='light'] ::-webkit-scrollbar-thumb {
  background: rgba(138, 159, 191, 0.72);
  border: 2px solid rgba(237, 244, 255, 0.95);
}

body.theme-pro[data-theme-mode='light'] ::-webkit-scrollbar-thumb:hover {
  background: rgba(116, 139, 174, 0.84);
}

/* 日间模式侧边栏样式 */
body.theme-pro[data-theme-mode='light'] .sidebar {
  background: rgba(240, 247, 255, 0.95);
  border-color: var(--pro-border);
}

body.theme-pro[data-theme-mode='light'] .sidebar-header {
  border-color: rgba(180, 200, 225, 0.4);
}

body.theme-pro[data-theme-mode='light'] .sidebar-footer {
  border-color: rgba(180, 200, 225, 0.4);
}

body.theme-pro[data-theme-mode='light'] .sidebar-link {
  color: var(--pro-text-secondary);
}

body.theme-pro[data-theme-mode='light'] .sidebar-link:hover {
  background: rgba(47, 99, 246, 0.08);
  color: var(--pro-text-primary);
}

body.theme-pro[data-theme-mode='light'] .sidebar-link.active {
  background: linear-gradient(135deg, rgba(47, 99, 246, 0.15), rgba(79, 121, 248, 0.1));
  color: var(--pro-accent);
  border-color: rgba(47, 99, 246, 0.25);
}

body.theme-pro[data-theme-mode='light'] .sidebar-footer .text-slate-300\/70 {
  color: var(--pro-text-secondary) !important;
}

body.theme-pro[data-theme-mode='light'] .sidebar-footer .text-slate-400\/60 {
  color: var(--pro-text-muted) !important;
}

body.theme-pro[data-theme-mode='light'] .sidebar-toggle {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--pro-border);
}

/* 日间模式 - 个人中心概览页面 */
body.theme-pro[data-theme-mode='light'] .main-content .text-xl {
  color: var(--pro-text-primary) !important;
}

body.theme-pro[data-theme-mode='light'] .main-content .text-xs {
  color: var(--pro-text-secondary) !important;
}

body.theme-pro[data-theme-mode='light'] .main-content .text-base {
  color: var(--pro-text-primary) !important;
}

body.theme-pro[data-theme-mode='light'] .main-content .text-sm {
  color: var(--pro-text-secondary) !important;
}

body.theme-pro[data-theme-mode='light'] .main-content .text-slate-100 {
  color: var(--pro-text-primary) !important;
}

body.theme-pro[data-theme-mode='light'] .main-content .text-slate-400\/70 {
  color: var(--pro-text-secondary) !important;
}

body.theme-pro[data-theme-mode='light'] .main-content .text-sky-100 {
  color: var(--pro-accent) !important;
}

body.theme-pro[data-theme-mode='light'] .main-content .text-sky-100\/80 {
  color: var(--pro-accent) !important;
}

body.theme-pro[data-theme-mode='light'] .main-content .text-emerald-100 {
  color: var(--pro-success) !important;
}

body.theme-pro[data-theme-mode='light'] .main-content .text-emerald-100\/80 {
  color: var(--pro-success) !important;
}

body.theme-pro[data-theme-mode='light'] .main-content .text-violet-100 {
  color: #7c3aed !important;
}

body.theme-pro[data-theme-mode='light'] .main-content .text-violet-100\/80 {
  color: #7c3aed !important;
}

body.theme-pro[data-theme-mode='light'] .main-content .text-slate-400\/60 {
  color: var(--pro-text-muted) !important;
}

body.theme-pro[data-theme-mode='light'] .main-content .glass-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(248, 251, 255, 0.98));
  border-color: var(--pro-border);
}

body.theme-pro[data-theme-mode='light'] .main-content .glass-card:hover {
  border-color: var(--pro-border-hover);
}

body.theme-pro[data-theme-mode='light'] .main-content .rounded-xl {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(91, 108, 255, 0.2);
}

body.theme-pro[data-theme-mode='light'] .main-content .bg-sky-500\/10 {
  background: rgba(91, 108, 255, 0.08);
}

body.theme-pro[data-theme-mode='light'] .main-content .bg-emerald-500\/10 {
  background: rgba(0, 163, 163, 0.08);
}

body.theme-pro[data-theme-mode='light'] .main-content .bg-violet-500\/10 {
  background: rgba(124, 58, 237, 0.08);
}

body.theme-pro[data-theme-mode='light'] .main-content input[type="text"] {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: var(--pro-border) !important;
  color: var(--pro-text-primary) !important;
}

body.theme-pro[data-theme-mode='light'] .main-content input[type="text"]::placeholder {
  color: var(--pro-text-muted) !important;
}

body.theme-pro[data-theme-mode='light'] .main-content input[type="text"]:focus {
  border-color: rgba(91, 108, 255, 0.85) !important;
  box-shadow: 0 0 0 3px rgba(91, 108, 255, 0.2) !important;
}

body.theme-pro[data-theme-mode='light'] .main-content button.bg-amber-500 {
  background: var(--pro-accent) !important;
  color: #fff !important;
}

body.theme-pro[data-theme-mode='light'] .main-content button.bg-amber-500:hover {
  background: #4a5ce4 !important;
}

body.theme-pro[data-theme-mode='light'] .main-content .border-sky-300\/35 {
  border-color: rgba(91, 108, 255, 0.25);
}

body.theme-pro[data-theme-mode='light'] .main-content .border-emerald-300\/35 {
  border-color: rgba(0, 163, 163, 0.25);
}

body.theme-pro[data-theme-mode='light'] .main-content .border-violet-300\/35 {
  border-color: rgba(124, 58, 237, 0.25);
}

body.theme-pro[data-theme-mode='light'] .main-content .rounded-md span {
  color: var(--pro-accent) !important;
  border-color: rgba(91, 108, 255, 0.3) !important;
  background: rgba(91, 108, 255, 0.1) !important;
}

body.theme-pro[data-theme-mode='light'] .main-content [class*="border-sky-300"],
body.theme-pro[data-theme-mode='light'] .main-content [class*="border-emerald-300"],
body.theme-pro[data-theme-mode='light'] .main-content [class*="border-violet-300"] {
  border-color: rgba(91, 108, 255, 0.25) !important;
}

body.theme-pro[data-theme-mode='light'] .main-content [class*="bg-sky-500"],
body.theme-pro[data-theme-mode='light'] .main-content [class*="bg-emerald-500"],
body.theme-pro[data-theme-mode='light'] .main-content [class*="bg-violet-500"] {
  opacity: 0.8;
}

/* 分站管理页：避免通用 rounded/text 规则覆盖操作按钮的日间配色 */
body.theme-admin[data-theme-mode='light'] .admin-tenants-page .tenant-primary-button {
  border-color: #1d4ed8 !important;
  background: #2563eb !important;
  color: #ffffff !important;
  opacity: 1;
}

body.theme-admin[data-theme-mode='light'] .admin-tenants-page .tenant-primary-button:hover {
  background: #1d4ed8 !important;
}

body.theme-admin[data-theme-mode='light'] .admin-tenants-page .tenant-secondary-button {
  border-color: rgba(37, 99, 235, 0.38) !important;
  background: rgba(37, 99, 235, 0.08) !important;
  color: #1d4ed8 !important;
}

body.theme-admin[data-theme-mode='light'] .admin-tenants-page .tenant-secondary-button:hover {
  background: rgba(37, 99, 235, 0.14) !important;
}

body.theme-admin[data-theme-mode='light'] .admin-tenants-page .tenant-danger-button {
  border-color: rgba(190, 24, 93, 0.34) !important;
  background: rgba(225, 29, 72, 0.08) !important;
  color: #be123c !important;
}

body.theme-admin[data-theme-mode='light'] .admin-tenants-page .tenant-success-button {
  border-color: rgba(5, 150, 105, 0.34) !important;
  background: rgba(5, 150, 105, 0.08) !important;
  color: #047857 !important;
}

body.theme-admin[data-theme-mode='light'] .admin-tenants-page .tenant-protected-note {
  border-color: rgba(217, 119, 6, 0.3) !important;
  background: rgba(245, 158, 11, 0.08) !important;
  color: #92400e !important;
}

body.theme-admin[data-theme-mode='light'] .admin-tenants-page .tenant-site-card {
  border-color: rgba(148, 163, 184, 0.34) !important;
  background: rgba(255, 255, 255, 0.78) !important;
}

body.theme-admin .branding-preview-card [data-preview-accent] {
  background: var(--tenant-preview-color, #2563eb);
}

body.theme-admin[data-theme-mode='light'] .admin-branding-page .branding-primary-button {
  border-color: #1d4ed8 !important;
  background: #2563eb !important;
  color: #ffffff !important;
  opacity: 1;
}

body.theme-admin[data-theme-mode='light'] .admin-branding-page .branding-primary-button:hover {
  background: #1d4ed8 !important;
}

body.theme-admin[data-theme-mode='light'] .admin-branding-page .branding-secondary-button {
  border-color: rgba(37, 99, 235, 0.38) !important;
  background: rgba(37, 99, 235, 0.08) !important;
  color: #1d4ed8 !important;
}

body.theme-admin[data-theme-mode='light'] .admin-branding-page .branding-preview-card .rounded-xl {
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(248, 250, 252, 0.9);
}

body.theme-admin[data-theme-mode='light'] .admin-branding-page .branding-preview-logo {
  border-color: rgba(148, 163, 184, 0.34) !important;
  background: rgba(226, 232, 240, 0.82) !important;
}

body.theme-admin[data-theme-mode='light'] .tenant-admin-header {
  border-color: rgba(148, 163, 184, 0.3) !important;
  background: rgba(255, 255, 255, 0.86) !important;
}

body.theme-admin[data-theme-mode='light'] .tenant-admin-header-title {
  color: #0f172a !important;
}

body.theme-admin[data-theme-mode='light'] .tenant-admin-header-subtitle,
body.theme-admin[data-theme-mode='light'] .tenant-admin-header-account {
  color: #475569 !important;
}

body.theme-admin[data-theme-mode='light'] .tenant-admin-secondary-button {
  border-color: rgba(37, 99, 235, 0.38) !important;
  background: rgba(37, 99, 235, 0.08) !important;
  color: #1d4ed8 !important;
}

/* ========== 管理后台 - 用户列表表格样式 ========== */
body.theme-admin .admin-users-table {
  border-collapse: separate;
  border-spacing: 0;
}

body.theme-admin .admin-users-table thead tr {
  background: rgba(18, 22, 38, 0.95) !important;
  border-radius: var(--pro-radius-md);
}

body.theme-admin .admin-users-table thead th {
  color: rgba(186, 200, 255, 0.85) !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
}

body.theme-admin .admin-users-table tbody tr {
  background: rgba(15, 17, 26, 0.75);
}

body.theme-admin .admin-users-table tbody tr:nth-child(even) {
  background: rgba(18, 20, 30, 0.8);
}

body.theme-admin .admin-users-table tbody tr:hover {
  background: rgba(28, 32, 50, 0.92) !important;
}

body.theme-admin .admin-users-table tbody td {
  border-bottom: 1px solid rgba(42, 42, 53, 0.6);
}

body.theme-admin .admin-users-table tbody tr:last-child td {
  border-bottom: none;
}

body.theme-admin .admin-users-table .admin-user-row {
  transition: background-color 0.15s ease;
}

/* 用户列表表格 - 日间模式适配 */
body.theme-admin[data-theme-mode='light'] .admin-users-table thead tr {
  background: rgba(235, 238, 255, 0.85) !important;
}

body.theme-admin[data-theme-mode='light'] .admin-users-table thead th {
  color: rgba(60, 70, 120, 0.95) !important;
}

body.theme-admin[data-theme-mode='light'] .admin-users-table tbody tr {
  background: rgba(250, 251, 255, 0.9);
}

body.theme-admin[data-theme-mode='light'] .admin-users-table tbody tr:nth-child(even) {
  background: rgba(245, 248, 255, 0.95);
}

body.theme-admin[data-theme-mode='light'] .admin-users-table tbody tr:hover {
  background: rgba(230, 235, 255, 0.95) !important;
}

body.theme-admin[data-theme-mode='light'] .admin-users-table tbody td {
  border-bottom-color: rgba(180, 190, 220, 0.3);
}

body.theme-admin[data-theme-mode='light'] .admin-users-table .text-slate-100 {
  color: rgba(40, 50, 100, 0.95) !important;
}

body.theme-admin[data-theme-mode='light'] .admin-users-table .text-slate-200\/80 {
  color: rgba(60, 70, 110, 0.9) !important;
}

body.theme-admin[data-theme-mode='light'] .admin-users-table .text-slate-300\/70 {
  color: rgba(80, 90, 130, 0.85) !important;
}

body.theme-admin[data-theme-mode='light'] .admin-users-table .text-slate-400\/60 {
  color: rgba(100, 110, 150, 0.8) !important;
}

body.theme-admin[data-theme-mode='light'] .admin-users-table .text-emerald-100 {
  color: #007a7a !important;
}

body.theme-admin[data-theme-mode='light'] .admin-users-table .text-violet-100 {
  color: #6d28d9 !important;
}

body.theme-admin[data-theme-mode='light'] .admin-users-table .text-sky-100\/80 {
  color: rgba(91, 108, 255, 0.85) !important;
}

/* 响应式 - 小屏幕表格横向滚动 */
@media (max-width: 1024px) {
  body.theme-admin .admin-users-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  body.theme-admin .admin-users-table tbody,
  body.theme-admin .admin-users-table thead,
  body.theme-admin .admin-users-table th,
  body.theme-admin .admin-users-table td,
  body.theme-admin .admin-users-table tr {
    display: block;
  }

  body.theme-admin .admin-users-table thead {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  body.theme-admin .admin-users-table tbody tr {
    border: 1px solid rgba(42, 42, 53, 0.8);
    margin-bottom: 0.75rem;
    border-radius: var(--pro-radius-md);
  }

  body.theme-admin .admin-users-table td {
    border: none;
    border-bottom: 1px solid rgba(42, 42, 53, 0.4);
    position: relative;
    padding-left: 40%;
  }

  body.theme-admin .admin-users-table td::before {
    position: absolute;
    left: 0.75rem;
    width: 35%;
    padding-right: 0.5rem;
    white-space: nowrap;
    font-weight: 600;
    color: rgba(186, 200, 255, 0.6);
    content: attr(data-label);
  }
}
/* 天选 AI 智能体配置弹窗 */
