/* 喜吃鱼 · 交付版后台视觉（全站统一，与主题切换无关） */
html.xiyu-admin.xiyu-skin,
html.xiyu-admin.xiyu-skin[data-theme='haofeng'],
html.xiyu-admin.xiyu-skin[data-theme='midnight'],
html.xiyu-admin.xiyu-skin[data-theme='ocean'],
html.xiyu-admin.xiyu-skin[data-theme='ember'],
html.xiyu-admin.xiyu-skin[data-theme='violet'],
html.xiyu-admin.xiyu-skin[data-theme='forest'],
html.xiyu-admin.xiyu-skin[data-theme='light'],
html.xiyu-admin.xiyu-skin:not([data-theme]) {
  --background: #071018;
  --foreground: #f0f9ff;
  --muted: #0c1929;
  --muted-foreground: #94a3b8;
  --card: #0f2438;
  --card-foreground: #f0f9ff;
  --border: #1e3a5f;
  --input: #0a1628;
  --primary: #fb923c;
  --primary-foreground: #1c0a00;
  --primary-glow: rgba(251, 146, 60, 0.45);
  --secondary: #132f4c;
  --accent: rgba(56, 189, 248, 0.12);
  --ring: #38bdf8;
  --sidebar: #082032;
  --sidebar-foreground: #94a3b8;
  --sidebar-foreground-active: #fff7ed;
  --sidebar-border: #1e4976;
  --layout-shadow: 0 1px 0 rgba(56, 189, 248, 0.08), 0 12px 40px rgba(0, 0, 0, 0.45);
  --card-shadow: 0 0 0 1px rgba(56, 189, 248, 0.06), 0 8px 28px rgba(0, 0, 0, 0.4);
  --radius-card: 14px;
  color-scheme: dark;
}

html.xiyu-admin.xiyu-skin body {
  background: radial-gradient(1200px 600px at 10% -10%, rgba(56, 189, 248, 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(251, 146, 60, 0.1), transparent 50%),
    var(--background) !important;
}

html.xiyu-admin.xiyu-skin #root {
  background: transparent !important;
}

html.xiyu-admin.xiyu-skin .sidebar-panel {
  background: linear-gradient(180deg, #0a2540 0%, #071018 100%) !important;
  border-right: 1px solid var(--sidebar-border) !important;
}

html.xiyu-admin.xiyu-skin .sidebar-header {
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
  padding-bottom: 1rem;
}

html.xiyu-admin.xiyu-skin .sidebar-brand-icon,
html.xiyu-admin.xiyu-skin .login-brand {
  background: linear-gradient(135deg, #fb923c 0%, #ea580c 50%, #0ea5e9 100%) !important;
  box-shadow: 0 8px 24px rgba(251, 146, 60, 0.35) !important;
  border-radius: 14px !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em;
}

html.xiyu-admin.xiyu-skin .nav-item-active {
  background: linear-gradient(90deg, rgba(251, 146, 60, 0.18), rgba(56, 189, 248, 0.08)) !important;
  color: #fdba74 !important;
  box-shadow: inset 3px 0 0 #fb923c !important;
}

html.xiyu-admin.xiyu-skin .nav-item-active::before {
  display: none !important;
}

html.xiyu-admin.xiyu-skin .sidebar-nav-group-head.is-active-group {
  color: #fdba74 !important;
}

html.xiyu-admin.xiyu-skin .sidebar-nav-group-head:hover {
  background: rgba(56, 189, 248, 0.08) !important;
}

html.xiyu-admin.xiyu-skin .sidebar-submenu {
  border-color: rgba(56, 189, 248, 0.2) !important;
}

html.xiyu-admin.xiyu-skin .nav-icon-wrap-group {
  background: rgba(251, 146, 60, 0.12) !important;
}

html.xiyu-admin.xiyu-skin .app-topbar,
html.xiyu-admin.xiyu-skin .top-header,
html.xiyu-admin.xiyu-skin .mobile-topbar {
  background: rgba(8, 32, 50, 0.92) !important;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.12) !important;
}

html.xiyu-admin.xiyu-skin .page-title {
  color: #fff7ed !important;
  font-weight: 700 !important;
}

html.xiyu-admin.xiyu-skin .panel-card,
html.xiyu-admin.xiyu-skin .stat-card {
  background: linear-gradient(165deg, rgba(15, 36, 56, 0.98), rgba(12, 25, 41, 0.95)) !important;
  border: 1px solid rgba(56, 189, 248, 0.12) !important;
  box-shadow: var(--card-shadow) !important;
}

/* 登录页与控制台同一套深色布局（含旧 dist 双栏登录） */
html.xiyu-admin.xiyu-skin .login-scene-layout {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: min(100vh, 900px) !important;
  padding: 2rem 1rem !important;
  gap: 0 !important;
}

html.xiyu-admin.xiyu-skin .login-showcase {
  display: none !important;
}

html.xiyu-admin.xiyu-skin .login-panel {
  width: min(100%, 26rem) !important;
  margin: 0 auto !important;
  border: 1px solid rgba(251, 146, 60, 0.25);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(56, 189, 248, 0.08);
}

html.xiyu-admin.xiyu-skin .login-card {
  background: rgba(8, 32, 50, 0.88) !important;
}

html.xiyu-admin.xiyu-skin .login-card-head-minimal {
  flex-direction: row !important;
  align-items: center !important;
  gap: 0.75rem !important;
}

html.xiyu-admin.xiyu-skin .login-title::before {
  content: none;
}

html.xiyu-admin.xiyu-skin .app-footer-warning {
  color: #64748b !important;
  border-top-color: rgba(56, 189, 248, 0.1) !important;
}
