/* =========================================================
   中国龙iOS 管理后台 — 深色科技风皮肤
   覆盖 Vben Admin + Ant Design Vue
   ========================================================= */

:root {
  --ds-primary: #6d5cff;
  --ds-primary-2: #38bdf8;
  --ds-bg: #070b15;
  --ds-bg-2: #0c1322;
  --ds-panel: rgba(148, 163, 184, 0.06);
  --ds-border: rgba(148, 163, 184, 0.14);
  --ds-text: #e2e8f0;
  --ds-text-2: #a8b4c8;
  --ds-text-3: #64748b;
}

/* ============ 全局底 ============ */
html, body {
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(109, 92, 255, 0.14), transparent 60%),
    radial-gradient(900px 480px at -10% 110%, rgba(56, 189, 248, 0.10), transparent 55%),
    linear-gradient(160deg, #070b15 0%, #0c1322 100%) !important;
  background-attachment: fixed !important;
  color: #e2e8f0 !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse at 50% 0%, rgba(0,0,0,.9), transparent 75%);
}

#app { position: relative; z-index: 1; }

/* ============ 主色变量覆盖 ============ */
.ant-btn-primary {
  background: linear-gradient(120deg, #6d5cff 0%, #38bdf8 100%) !important;
  border: none !important;
  box-shadow: 0 6px 18px rgba(109, 92, 255, 0.35) !important;
}
.ant-btn-primary:hover {
  filter: brightness(1.12) !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(109, 92, 255, 0.5) !important;
}

/* ============ 布局 ============ */
.ant-layout {
  background: transparent !important;
}

/* 侧边栏 */
.ant-layout-sider,
.vben-layout__aside,
[class*="sider"] {
  background: rgba(10, 16, 30, 0.8) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-right: 1px solid var(--ds-border) !important;
}

/* 顶栏 */
.ant-layout-header,
.vben-layout__header,
[class*="header"] {
  background: rgba(10, 16, 30, 0.65) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ds-border) !important;
}

/* 菜单 */
.ant-menu,
.ant-menu-light,
.ant-menu-dark {
  background: transparent !important;
  color: #a8b4c8 !important;
}
.ant-menu-item,
.ant-menu-submenu-title {
  color: #a8b4c8 !important;
  border-radius: 10px !important;
  margin-inline: 8px !important;
  margin-block: 3px !important;
}
.ant-menu-item:hover,
.ant-menu-submenu-title:hover {
  background: rgba(148, 163, 184, 0.08) !important;
  color: #fff !important;
}
.ant-menu-item-selected {
  background: linear-gradient(90deg, rgba(109, 92, 255, 0.28), rgba(56, 189, 248, 0.12)) !important;
  color: #fff !important;
  box-shadow: inset 0 0 0 1px rgba(109, 92, 255, 0.45) !important;
}

/* 品牌 LOGO 区域 */
.vben-layout__logo,
[class*="logo"] {
  background: transparent !important;
}

/* ============ 内容卡片 ============ */
.ant-card {
  background: rgba(148, 163, 184, 0.055) !important;
  border: 1px solid var(--ds-border) !important;
  border-radius: 14px !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(2, 6, 18, 0.35) !important;
}
.ant-card-head {
  border-bottom: 1px solid var(--ds-border) !important;
  background: transparent !important;
}
.ant-card-head-title { color: #e2e8f0 !important; }

/* 内容区背景 */
.ant-layout-content,
.vben-layout__main,
[class*="content"] {
  background: transparent !important;
}

/* ============ 表格 ============ */
.ant-table {
  background: transparent !important;
  color: #c4cede !important;
}
.ant-table-thead > tr > th {
  background: rgba(148, 163, 184, 0.07) !important;
  color: #9fb0c8 !important;
  border-bottom: 1px solid var(--ds-border) !important;
}
.ant-table-tbody > tr > td {
  background: transparent !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08) !important;
}
.ant-table-tbody > tr:hover > td {
  background: rgba(109, 92, 255, 0.08) !important;
}
.ant-pagination-item,
.ant-pagination-prev button,
.ant-pagination-next button {
  background: rgba(148, 163, 184, 0.07) !important;
  border: 1px solid var(--ds-border) !important;
}
.ant-pagination-item-active {
  background: linear-gradient(120deg, #6d5cff, #38bdf8) !important;
  border: none !important;
}

/* ============ 表单 ============ */
.ant-input,
.ant-input-affix-wrapper,
.ant-select-selector,
.ant-input-number,
textarea.ant-input {
  background: rgba(148, 163, 184, 0.06) !important;
  border: 1px solid var(--ds-border) !important;
  color: #e2e8f0 !important;
}
.ant-input:focus,
.ant-input-affix-wrapper:focus,
.ant-input-affix-wrapper-focused,
.ant-select-selector:focus,
.ant-select-focused .ant-select-selector {
  border-color: rgba(109, 92, 255, 0.6) !important;
  box-shadow: 0 0 12px rgba(109, 92, 255, 0.25) !important;
}

/* ============ 弹窗/抽屉/下拉 ============ */
.ant-modal-content,
.ant-drawer-content,
.ant-dropdown-menu,
.ant-select-dropdown,
.ant-popover-inner,
.ant-message-notice-content {
  background: rgba(16, 24, 42, 0.96) !important;
  border: 1px solid var(--ds-border) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 12px !important;
}
.ant-modal-header,
.ant-drawer-header {
  background: transparent !important;
  border-bottom: 1px solid var(--ds-border) !important;
}
.ant-modal-title { color: #e2e8f0 !important; }

/* ============ 标签 ============ */
.ant-tag {
  background: rgba(148, 163, 184, 0.1) !important;
  border: 1px solid rgba(148, 163, 184, 0.25) !important;
  color: #cbd5e1 !important;
  border-radius: 6px !important;
}

/* ============ 登录页 ============ */
.login-page,
[class*="login"] {
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(109, 92, 255, 0.22), transparent 60%),
    radial-gradient(800px 420px at -10% 110%, rgba(56, 189, 248, 0.18), transparent 55%),
    linear-gradient(160deg, #070b15 0%, #0c1322 100%) !important;
}

/* ============ 滚动条 ============ */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: rgba(148, 163, 184, 0.04); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(109, 92, 255, 0.5), rgba(56, 189, 248, 0.4));
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(109, 92, 255, 0.75); }

/* ============ 文本色 ============ */
::selection { background: rgba(109, 92, 255, 0.4); color: #fff; }

.ant-typography,
.ant-form-item-label > label {
  color: #c4cede !important;
}

/* ============ 水印调暗 ============ */
[class*="watermark"] {
  opacity: 0.35 !important;
}

/* ════════════════════════════════════════════════════════════
   登录页大改 · 中国龙iOS 暗黑科技风
   配合 /dragon-login.js 注入的 ds-* 类使用
   ════════════════════════════════════════════════════════════ */

/* ---- 页面底：深空 + 极光 ---- */
body.ds-login-page {
  background:
    radial-gradient(1100px 620px at 82% -8%, rgba(34, 211, 238, 0.15), transparent 60%),
    radial-gradient(1000px 560px at -12% 108%, rgba(124, 58, 237, 0.17), transparent 58%),
    radial-gradient(760px 420px at 50% 118%, rgba(16, 185, 129, 0.09), transparent 62%),
    linear-gradient(158deg, #04060d 0%, #070d1d 46%, #0a1226 100%) !important;
}

/* 网格地面（底部透视感） */
body.ds-login-page::before {
  content: "";
  position: fixed;
  left: -30%;
  right: -30%;
  bottom: -6%;
  height: 46vh;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(103, 232, 249, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 232, 249, 0.10) 1px, transparent 1px);
  background-size: 46px 46px;
  transform: perspective(560px) rotateX(62deg);
  transform-origin: 50% 100%;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 85%);
}

/* 画布粒子与登录层层级 */
canvas#ds-fx { z-index: 0; }
.ds-login { position: relative; z-index: 1; min-height: 100vh; background: transparent !important; }

/* ---- 左右两栏透明化，露出全局底 ---- */
.ds-login-left,
.ds-login-panel { background: transparent !important; }
.ds-left-bg { background: transparent !important; }

/* 原 Vben 大蓝图隐藏，换成龙纹场景 */
.ds-login-left svg.animate-float { display: none !important; }
.ds-login-left .login-background {
  background: linear-gradient(154deg, transparent 28%, rgba(34, 211, 238, 0.22) 48%, rgba(124, 58, 237, 0.18) 66%, transparent 78%) !important;
  filter: blur(80px);
}
.ds-login-left > div:last-child { z-index: 2; }

/* ---- 龙纹徽章舞台 ---- */
.ds-emblem-stage {
  position: relative;
  width: 288px;
  height: 288px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.ds-rings i {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
}
.ds-rings i:nth-child(1) { width: 168px; height: 168px; border: 1px dashed rgba(103, 232, 249, 0.4); animation: ds-spin 16s linear infinite; }
.ds-rings i:nth-child(2) { width: 224px; height: 224px; border: 1px solid rgba(167, 139, 250, 0.26); animation: ds-spin-rev 26s linear infinite; }
.ds-rings i:nth-child(3) { width: 284px; height: 284px; border: 1px dotted rgba(34, 211, 238, 0.18); animation: ds-spin 34s linear infinite; }
@keyframes ds-spin { to { transform: rotate(360deg); } }
@keyframes ds-spin-rev { to { transform: rotate(-360deg); } }

.ds-emblem {
  width: 122px;
  height: 122px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 32% 26%, rgba(34, 211, 238, 0.28), rgba(9, 15, 32, 0.92) 64%);
  border: 1px solid rgba(103, 232, 249, 0.45);
  animation: ds-pulse 3.4s ease-in-out infinite;
}
.ds-emblem span {
  font-size: 62px;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(165deg, #eaffff 5%, #67e8f9 42%, #818cf8 76%, #f0abfc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 16px rgba(103, 232, 249, 0.55));
}
@keyframes ds-pulse {
  0%, 100% { box-shadow: 0 0 34px rgba(34, 211, 238, 0.3), inset 0 0 26px rgba(34, 211, 238, 0.16); }
  50% { box-shadow: 0 0 64px rgba(34, 211, 238, 0.55), inset 0 0 40px rgba(34, 211, 238, 0.3); }
}

/* 扫描光带 */
.ds-scan {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 20px;
  pointer-events: none;
}
.ds-scan::before {
  content: "";
  position: absolute;
  left: -40%;
  top: -12%;
  width: 55%;
  height: 124%;
  background: linear-gradient(105deg, transparent, rgba(103, 232, 249, 0.14), transparent);
  animation: ds-scan 5.6s ease-in-out infinite;
}
@keyframes ds-scan { 0%, 52% { left: -40%; } 88%, 100% { left: 140%; } }

/* ---- 左侧大标题 ---- */
.ds-title-big {
  margin: 30px 0 12px !important;
  font-size: 47px;
  letter-spacing: 7px;
  font-weight: 800;
  background: linear-gradient(93deg, #f0fdff 0%, #67e8f9 38%, #818cf8 76%, #c084fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 20px rgba(103, 232, 249, 0.35));
}
.ds-title-big span {
  font-size: 30px;
  letter-spacing: 3px;
  margin-left: 10px;
  background: linear-gradient(93deg, #67e8f9, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ds-title-sub {
  margin: 0 !important;
  color: #7285a8 !important;
  letter-spacing: 4px;
  font-size: 14px;
}

/* 功能芯片 */
.ds-chips {
  display: flex;
  gap: 12px;
  margin-top: 38px;
}
.ds-chip {
  flex: 1;
  min-width: 148px;
  padding: 13px 16px;
  border-radius: 12px;
  background: rgba(13, 20, 40, 0.55);
  border: 1px solid rgba(103, 232, 249, 0.15);
  backdrop-filter: blur(8px);
  text-align: left;
  transition: all 0.3s ease;
}
.ds-chip:hover {
  transform: translateY(-3px);
  border-color: rgba(103, 232, 249, 0.5);
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.2);
}
.ds-chip b {
  display: block;
  color: #dff7ff;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 5px;
}
.ds-chip i {
  font-style: normal;
  color: #5f7195;
  font-size: 12px;
}
.ds-ver {
  margin-top: 42px;
  color: #3d4f6f;
  font-size: 11px;
  letter-spacing: 4px;
  font-family: ui-monospace, Consolas, "Courier New", monospace;
}

/* 左侧原有说明文字重排 */
.ds-left-cap2 {
  margin-top: 10px !important;
  color: #54648a !important;
  font-size: 12.5px !important;
  letter-spacing: 1px;
}

/* ---- 右侧登录卡片：玻璃 + 流光边框 ---- */
.ds-card {
  position: relative;
  padding: 42px 36px !important;
  border-radius: 20px !important;
  background: linear-gradient(165deg, rgba(15, 23, 44, 0.72), rgba(9, 14, 28, 0.9)) !important;
  border: 1px solid rgba(103, 232, 249, 0.2) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 0 0 1px rgba(103, 232, 249, 0.05),
    0 26px 70px rgba(2, 6, 23, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  overflow: hidden;
}
.ds-card::before {
  content: "";
  position: absolute;
  inset: -60%;
  background: conic-gradient(from var(--ds-ang, 0deg),
    transparent 0 70%,
    rgba(103, 232, 249, 0.55) 82%,
    rgba(167, 139, 250, 0.55) 90%,
    transparent 100%);
  animation: ds-border-rot 5s linear infinite;
  pointer-events: none;
}
@property --ds-ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes ds-border-rot { to { --ds-ang: 360deg; } }
.ds-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 19px;
  background: linear-gradient(165deg, rgba(13, 20, 40, 0.94), rgba(8, 13, 26, 0.98));
  pointer-events: none;
}
.ds-card > * { position: relative; z-index: 1; }

/* 卡片标题 */
.ds-card h2 {
  font-size: 30px !important;
  background: linear-gradient(92deg, #eafcff, #67e8f9 55%, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  filter: drop-shadow(0 0 12px rgba(103, 232, 249, 0.3));
}
.ds-card h2 + p {
  color: #7285a8 !important;
  letter-spacing: 1px;
}

/* 输入框 */
.ds-card input[data-slot="form-control"] {
  height: 46px !important;
  border-radius: 11px !important;
  background: rgba(7, 12, 26, 0.66) !important;
  border-color: rgba(103, 232, 249, 0.16) !important;
  color: #e2f7ff !important;
  font-size: 14px;
  transition: all 0.25s ease;
}
.ds-card input[data-slot="form-control"]::placeholder { color: #46587a !important; }
.ds-card input[data-slot="form-control"]:hover { border-color: rgba(103, 232, 249, 0.35) !important; }
.ds-card input[data-slot="form-control"]:focus {
  border-color: #22d3ee !important;
  background: rgba(8, 15, 32, 0.85) !important;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.14), 0 0 24px rgba(34, 211, 238, 0.22) !important;
}

/* 记住账号 / 忘记密码 */
.ds-card label { color: #8fa3c8 !important; }
.ds-card .vben-link { color: #67e8f9 !important; }
.ds-card .vben-link:hover { color: #a5f3fc !important; text-shadow: 0 0 12px rgba(103, 232, 249, 0.6); }

/* 主登录按钮 */
.ds-btn-login {
  height: 48px !important;
  border-radius: 12px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 10px !important;
  text-indent: 10px;
  color: #041018 !important;
  border: none !important;
  background: linear-gradient(100deg, #0ea5e9 0%, #22d3ee 45%, #6366f1 100%) !important;
  box-shadow: 0 10px 32px rgba(34, 211, 238, 0.38) !important;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}
.ds-btn-login:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 16px 44px rgba(34, 211, 238, 0.5) !important;
}
.ds-btn-login::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: ds-shine 2.8s ease-in-out infinite;
}
@keyframes ds-shine { 0%, 45% { left: -60%; } 80%, 100% { left: 130%; } }

/* 手机号 / 扫码 按钮 */
.ds-btn-mode {
  height: 40px !important;
  border-radius: 10px !important;
  background: rgba(10, 17, 34, 0.5) !important;
  border-color: rgba(103, 232, 249, 0.16) !important;
  color: #8fa3c8 !important;
  transition: all 0.25s ease;
}
.ds-btn-mode:hover {
  border-color: rgba(103, 232, 249, 0.5) !important;
  color: #c9f6ff !important;
  background: rgba(15, 26, 52, 0.65) !important;
}

/* 第三方图标行 */
.ds-card .w-full:last-child svg { color: #5b6b8c; }
.ds-card .w-full:last-child svg:hover { color: #67e8f9; }

/* ---- 顶栏 ---- */
.ds-logo {
  border-radius: 10px;
  filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.55));
}
.ds-brand-text {
  background: linear-gradient(92deg, #eafcff, #67e8f9 70%, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
  letter-spacing: 1px;
}
.ds-topbar {
  background: rgba(12, 19, 38, 0.6) !important;
  border: 1px solid rgba(103, 232, 249, 0.14) !important;
  backdrop-filter: blur(12px);
  border-radius: 999px !important;
  box-shadow: 0 6px 22px rgba(2, 6, 18, 0.5) !important;
}

/* ---- 响应式 ---- */
@media (max-width: 1024px) {
  .ds-card { padding: 34px 26px !important; }
  .ds-title-big { font-size: 38px; }
  .ds-chips { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .ds-card { padding: 28px 20px !important; border-radius: 16px !important; }
  .ds-card h2 { font-size: 24px !important; }
}
