/* ============================================================
   统一主题 unified-theme.css
   色板取自 /www/wwwroot/logo模板/splasher.html（师傅准备的登录页）
   适用于：熊猫v7 控制台(--fc-*) / iOS 后台(--primary 等 antd 变量) / Element Plus
   ============================================================ */
:root {
  /* 基础色板 */
  --bg: #05080d;
  --bg-2: #070c14;
  --plate: #0a1119;
  --plate-2: #0d1622;
  --text: #e6edf3;
  --text-2: #b6c6d8;
  --muted: #7e90a6;
  --faint: #55647a;
  --accent: #22d3ee;
  --accent-2: #34d399;
  --accent-3: #6366f1;
  --border: #17222f;
  --border-2: #1e2c3c;
  --radius: 16px;

  /* ---- 熊猫v7 控制台变量 ---- */
  --fc-bg-body: #05080d;
  --fc-bg-panel: #0a1119;
  --fc-bg-topbar: #070c14;
  --fc-accent: #22d3ee;
  --fc-accent-blue: #6366f1;
  --fc-border: #17222f;
  --fc-border-soft: #1e2c3c;
  --fc-input-bg: #0d1622;
  --fc-text: #e6edf3;
  --fc-text-secondary: #b6c6d8;
  --fc-text-muted: #7e90a6;
  --fc-danger: #f87171;

  /* ---- iOS 后台（antd light）变量 ---- */
  --primary: #22d3ee;
  --primary-hover: #5be0f2;
  --primary-active: #0fb3cc;
  --primary-bg: rgba(34, 211, 238, .12);
  --primary-border: rgba(34, 211, 238, .35);
  --success: #34d399;
  --success-bg: rgba(52, 211, 153, .12);
  --success-border: rgba(52, 211, 153, .35);
  --warning: #fbbf24;
  --warning-bg: rgba(251, 191, 36, .12);
  --warning-border: rgba(251, 191, 36, .35);
  --error: #f87171;
  --error-bg: rgba(248, 113, 113, .12);
  --error-border: rgba(248, 113, 113, .35);
  --heading: #e6edf3;
  --split: #17222f;
  --hairline: #17222f;
  --bg-layout: #05080d;
  --bg-container: #0a1119;
  --bg-hover: #0d1622;
  --header-bg: #070c14;
  --ring: 0 0 0 3px rgba(34, 211, 238, .18);

  /* ---- Element Plus ---- */
  --el-color-primary: #22d3ee;
  --el-color-primary-light-3: #5be0f2;
  --el-color-primary-light-5: #8aeaf6;
  --el-color-primary-light-7: #b9f2fa;
  --el-color-primary-light-8: #d0f6fc;
  --el-color-primary-light-9: #e6fbfd;
  --el-color-primary-dark-2: #0fb3cc;
  --el-bg-color: #0a1119;
  --el-bg-color-page: #05080d;
  --el-bg-color-overlay: #0d1622;
  --el-text-color-primary: #e6edf3;
  --el-text-color-regular: #b6c6d8;
  --el-text-color-secondary: #7e90a6;
  --el-border-color: #1e2c3c;
  --el-border-color-light: #17222f;
  --el-border-color-lighter: #17222f;
  --el-fill-color-blank: #0a1119;
  --el-mask-color: rgba(5, 8, 13, .78);
}

/* ---------- 背景：光晕 + 网格，和登录页一致 ---------- */
html, body {
  background: #05080d !important;
  color: #e6edf3 !important;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, "Microsoft YaHei", sans-serif !important;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(680px 420px at 12% 18%, rgba(34, 211, 238, .13), transparent 70%),
    radial-gradient(760px 480px at 88% 92%, rgba(52, 211, 153, .10), transparent 72%),
    radial-gradient(900px 600px at 50% 50%, rgba(99, 102, 241, .07), transparent 75%),
    linear-gradient(180deg, #070c14, #05080d 55%, #04070b);
}
body > * { position: relative; z-index: 1; }

/* ---------- 容器 / 卡片 / 面板 ---------- */
.card, .panel, .box, .section, .container-card,
.el-card, .el-dialog, .el-message-box, .el-drawer,
.ant-card, .ant-modal-content {
  background: #0a1119 !important;
  border: 1px solid #17222f !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .45) !important;
  color: #e6edf3 !important;
}

/* ---------- 顶栏 / 侧栏 ---------- */
header, .topbar, .navbar, .header, .sidebar, .aside, .menu, .nav {
  background: #070c14 !important;
  border-color: #17222f !important;
  color: #e6edf3 !important;
}
.sidebar a, .menu a, .nav a, .topbar a, aside a, nav a {
  color: #b6c6d8 !important;
}
.sidebar a:hover, .menu a:hover, .nav a:hover, aside a:hover, nav a:hover,
.sidebar .active, .menu .active, .nav .active {
  color: #22d3ee !important;
  background: rgba(34, 211, 238, .10) !important;
}

/* ---------- 文字 ---------- */
h1, h2, h3, h4, h5, h6, .title, .heading { color: #e6edf3 !important; }
p, span, td, li, label, .text, .desc { color: #b6c6d8; }
.muted, .text-muted, .sub, .hint, .secondary { color: #7e90a6 !important; }
a { color: #22d3ee !important; }
a:hover { color: #5be0f2 !important; }

/* ---------- 表格 ---------- */
table, .table, .el-table, .ant-table {
  background: #0a1119 !important;
  color: #b6c6d8 !important;
}
.el-table tr, .ant-table-row, table tr { background: #0a1119 !important; }
.el-table th, .ant-table-thead > tr > th, thead th {
  background: #0d1622 !important;
  color: #e6edf3 !important;
  border-color: #17222f !important;
}
td, th, .el-table td, .ant-table-cell { border-color: #17222f !important; }
tr:hover > td, .el-table__body tr:hover > td { background: rgba(34, 211, 238, .06) !important; }

/* ---------- 表单 ---------- */
input, textarea, select,
.el-input__inner, .el-textarea__inner, .ant-input {
  background: #0d1622 !important;
  border: 1px solid #1e2c3c !important;
  color: #e6edf3 !important;
  border-radius: 10px !important;
}
input::placeholder, textarea::placeholder { color: #55647a !important; }
input:focus, textarea:focus, .el-input__inner:focus {
  border-color: #22d3ee !important;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .16) !important;
  outline: none !important;
}

/* ---------- 按钮 ---------- */
button, .btn, .button,
.el-button, .ant-btn {
  background: #0d1622 !important;
  border: 1px solid #1e2c3c !important;
  color: #e6edf3 !important;
  border-radius: 10px !important;
  transition: all .18s ease !important;
}
button:hover, .btn:hover, .el-button:hover, .ant-btn:hover {
  border-color: #22d3ee !important;
  color: #22d3ee !important;
}
.btn-primary, .primary, button.primary,
.el-button--primary, .ant-btn-primary {
  background: linear-gradient(135deg, #22d3ee, #34d399) !important;
  border: none !important;
  color: #04121a !important;
  font-weight: 600 !important;
  box-shadow: 0 6px 20px rgba(34, 211, 238, .25) !important;
}
.btn-primary:hover, .el-button--primary:hover, .ant-btn-primary:hover {
  filter: brightness(1.08) !important;
  color: #04121a !important;
}
.btn-danger, .danger, .el-button--danger, .ant-btn-dangerous {
  background: rgba(248, 113, 113, .14) !important;
  border-color: rgba(248, 113, 113, .45) !important;
  color: #fca5a5 !important;
}

/* ---------- 标签 / 徽标 ---------- */
.tag, .badge, .el-tag, .ant-tag {
  background: rgba(34, 211, 238, .12) !important;
  border: 1px solid rgba(34, 211, 238, .32) !important;
  color: #22d3ee !important;
  border-radius: 999px !important;
}
.tag.on, .badge.on, .el-tag--success { background: rgba(52, 211, 153, .14) !important; border-color: rgba(52, 211, 153, .4) !important; color: #34d399 !important; }
.tag.off, .badge.off { background: rgba(126, 144, 166, .12) !important; border-color: rgba(126, 144, 166, .34) !important; color: #7e90a6 !important; }

/* ---------- 弹层 ---------- */
.modal, .modal-content, .dialog, .popover, .dropdown-menu, .el-popper, .ant-dropdown {
  background: #0d1622 !important;
  border: 1px solid #1e2c3c !important;
  color: #e6edf3 !important;
}
.modal-overlay, .el-overlay { background: rgba(5, 8, 13, .78) !important; }

/* ---------- 滚动条 ---------- */
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: linear-gradient(#22d3ee, #34d399);
  border-radius: 8px;
}

/* ---------- 登录页（控制台） ---------- */
.login-wrap, .login-box, .auth-box, .login-card {
  background: rgba(10, 17, 25, .92) !important;
  border: 1px solid #17222f !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .55) !important;
}
.login-box h1, .auth-box h1 { color: #e6edf3 !important; letter-spacing: .04em; }
.login-box .sub, .login-box p { color: #7e90a6 !important; }

/* ============================================================
   登录页 —— 1:1 复刻 202 上 daov3.baosi.shop 的 Login.vue
   值全部取自 panel/dist/assets/Login-CXWQ_94w.css（无改动）
   映射：.lg → .login-page / .lg-box → .login-wrap
        .lg-logo → .login-logo-img / .lg-form → .login-card
   ============================================================ */

/* ---------- 背景层：同心弧线 + 双光晕 + 点阵网格 + 暗角 ---------- */
#hwb-login-art { display: none; }
body:has(.login-page) #hwb-login-art {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
#hwb-login-art svg.hwb-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
#hwb-login-art circle { fill: none; stroke: rgba(120, 200, 230, .5); stroke-width: 1; vector-effect: non-scaling-stroke; }
#hwb-login-art .ln-a { opacity: .17; }
#hwb-login-art .ln-b { opacity: .15; }
#hwb-login-art .ln-c { opacity: .12; }
#hwb-login-art .hwb-glow {
  position: absolute;
  width: 46vw;
  height: 46vw;
  max-width: 560px;
  max-height: 560px;
  border-radius: 50%;
  filter: blur(90px);
}
#hwb-login-art .g1 { top: -14%; right: -8%; background: radial-gradient(circle, rgba(34, 211, 238, .35), transparent 68%); }
#hwb-login-art .g2 { bottom: -18%; left: -10%; background: radial-gradient(circle, rgba(99, 102, 241, .30), transparent 70%); }

/* ---------- 页面容器 ---------- */
.login-page {
  position: fixed !important;
  inset: 0 !important;
  z-index: 3000 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  padding: 24px !important;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(34, 211, 238, .06), transparent 62%),
    radial-gradient(90% 80% at 50% 110%, rgba(99, 102, 241, .07), transparent 65%),
    #070a11 !important;
  color: #e8eef9 !important;
  font-family: Inter, 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif !important;
  -webkit-font-smoothing: antialiased;
}
.login-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(120, 200, 230, .1) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(65% 55% at 50% 45%, #000 10%, transparent 78%);
  mask-image: radial-gradient(65% 55% at 50% 45%, #000 10%, transparent 78%);
  pointer-events: none;
  z-index: 0;
}
.login-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 40%, transparent 40%, rgba(3, 6, 11, .75) 100%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- 居中盒 ---------- */
.login-wrap {
  position: relative !important;
  z-index: 3 !important;
  width: 100% !important;
  max-width: 352px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  margin: 0 auto !important;
}

/* ---------- Logo ---------- */
.login-header {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
}
.login-header h1,
.login-header p { display: none !important; }
.login-logo-img {
  width: 92px !important;
  height: 92px !important;
  object-fit: contain !important;
  border-radius: 50% !important;
  filter: drop-shadow(0 10px 30px rgba(34, 211, 238, .3)) !important;
  margin: 0 0 30px 0 !important;
  animation: hwb-lg-breathe 6s ease-in-out infinite !important;
  user-select: none;
  background: transparent !important;
  box-shadow: none !important;
}
@keyframes hwb-lg-breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.015); }
}

/* ---------- 表单 ---------- */
.login-card {
  width: 100% !important;
  max-width: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.login-card .corner { display: none !important; }

.login-card input,
.login-card .el-input__inner {
  width: 100% !important;
  height: 46px !important;
  padding: 0 14px !important;
  border-radius: 11px !important;
  border: 1px solid #1e2635 !important;
  background: #0e131d !important;
  color: #e8eef9 !important;
  font-size: 14.5px !important;
  font-family: inherit !important;
  outline: 0 !important;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease !important;
  margin: 0 !important;
}
.login-card input::placeholder { color: #4d5a6e !important; }
.login-card input:hover { border-color: #2a3446 !important; }
.login-card input:focus {
  border-color: rgba(34, 211, 238, .62) !important;
  background: #101722 !important;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .13) !important;
}
.login-card input:-webkit-autofill,
.login-card input:-webkit-autofill:hover,
.login-card input:-webkit-autofill:focus {
  -webkit-text-fill-color: #e8eef9 !important;
  -webkit-box-shadow: 0 0 0 1000px #101722 inset !important;
  transition: background-color 9999s ease-out;
}

/* 错误提示 */
.login-card .login-error {
  margin: 2px 2px 0 !important;
  padding: 9px 11px !important;
  border-radius: 9px !important;
  border: 1px solid rgba(248, 113, 113, .32) !important;
  background: rgba(248, 113, 113, .09) !important;
  color: #ffb3b3 !important;
  font-size: 12.5px !important;
  line-height: 1.45 !important;
  text-align: left !important;
  width: 100% !important;
}

/* 登录按钮 */
.login-card button,
.login-card button[type="submit"] {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  height: 47px !important;
  margin-top: 4px !important;
  border: 0 !important;
  border-radius: 11px !important;
  cursor: pointer !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: .16em !important;
  color: #04121a !important;
  background: linear-gradient(96deg, #22d3ee, #4ea8f5 52%, #6366f1) !important;
  box-shadow: 0 14px 32px -16px rgba(34, 211, 238, .85), 0 1px rgba(255, 255, 255, .25) inset !important;
  overflow: hidden !important;
  transition: filter .18s ease, box-shadow .22s ease, transform .14s ease !important;
}
.login-card button:hover:not(:disabled) {
  filter: brightness(1.06) !important;
  box-shadow: 0 20px 40px -16px rgba(99, 102, 241, .9), 0 1px rgba(255, 255, 255, .3) inset !important;
}
.login-card button:active:not(:disabled) { transform: translateY(1px) !important; }
.login-card button:disabled { cursor: progress !important; filter: saturate(.72) brightness(.95) !important; }
.login-card button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 42%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skew(-18deg);
}
.login-card button:hover:not(:disabled)::after { animation: hwb-lg-sheen .85s ease; }
@keyframes hwb-lg-sheen { 0% { left: -60%; } 100% { left: 120%; } }

/* 移动端 */
@media (max-width: 420px) {
  .login-logo-img { width: 72px !important; height: 72px !important; }
  .login-card input { height: 48px !important; font-size: 15px !important; }
  .login-card button { height: 49px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .login-logo-img, .login-card button::after { animation: none !important; }
}
